a02f848c5aff65045cd4ed066f382aa7f562183f
[platform/upstream/glibc.git] / ChangeLog
1 2017-04-11  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
2
3         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Define the
4         implementation-specific function name and remove unneeded macros
5         definition.
6         * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
7         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
8         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
9         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
10         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
11         * sysdeps/powerpc/powerpc64/power7/strchr.S: Set a default
12         function name if not defined and pass as parameter to macros
13         accordingly.
14         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Likewise.
15         * sysdeps/powerpc/powerpc64/power7/strrchr.S: Likewise.
16         * sysdeps/powerpc/powerpc64/power8/strchr.S: Likewise.
17         * sysdeps/powerpc/powerpc64/strchr.S: Likewise.
18
19         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Define
20         the strlen implementation name and remove unneeded macros definition.
21         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
22         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
23         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Define
24         the strnlen implementation name and remove unneeded macros definition.
25         * sysdeps/powerpc/powerpc64/power7/strlen.S: Set a default function
26         name if not defined and pass as parameter to macros accordingly.
27         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Likewise.
28         * sysdeps/powerpc/powerpc64/power8/strlen.S: Likewise.
29         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
30
31         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Define
32         the implementation-specific function name and remove unneeded
33         macros definition.
34         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
35         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S Likewise.
36         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
37         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
38         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
39         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
40         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
41         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
42         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
43         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Set a default function
44         name if not defined and pass as parameter to macros accordingly.
45         * sysdeps/powerpc/powerpc64/power7/strcmp.S: Likewise.
46         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
47         * sysdeps/powerpc/powerpc64/power8/strcmp.S: Likewise.
48         * sysdeps/powerpc/powerpc64/power8/strncmp.S: Likewise.
49         * sysdeps/powerpc/powerpc64/power9/strcmp.S: Likewise.
50         * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
51         * sysdeps/powerpc/powerpc64/strcmp.S: Likewise.
52         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
53
54         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Define the
55         implementation-specific function name and remove unneeded macros
56         definition.
57         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
58         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
59         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
60         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
61         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
62         * sysdeps/powerpc/powerpc64/power7/strncpy.S: Set a default
63         function name if not defined.
64         * sysdeps/powerpc/powerpc64/power8/strcpy.S: Likewise.
65         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Likewise.
66
67 2017-04-11  Paul Clarke  <pc@us.ibm.com>
68
69         * elf/elf.h (AT_L1I_CACHESIZE, AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE,
70         AT_L1D_CACHEGEOMETRY, AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY,
71         AT_L3_CACHESIZE, AT_L3_CACHEGEOMETRY): New.  Add auxvec
72         identifiers from kernel arch/powerpc/include/uapi/asm/auxvec.h.
73
74 2017-04-11  Florian Weimer  <fweimer@redhat.com>
75             Zack Weinberg  <zackw@panix.com>
76
77         * manual/filesys.texi (Reading/Closing Directory): Mark readdir,
78         readdir64 as thread-safe.  Update warning about readdir_r.
79
80 2017-04-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
81
82         * sysdeps/unix/sysv/linux/x86/Implies: New file.
83         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Move to ...
84         * sysdeps/alpha/nptl/bits/pthreadtypes.h: ... here.
85         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Move to ...
86         * sysdeps/powerpc/nptl/bits/pthreadtypes.h: ... here.
87         * sysdeps/x86/bits/pthreadtypes.h: Move to ...
88         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
89
90 2017-04-10  H.J. Lu  <hongjiu.lu@intel.com>
91
92         * sysdeps/i386/dl-procinfo.c: Include
93         <sysdeps/x86/dl-procinfo.c>.
94         * sysdeps/x86_64/dl-procinfo.c: Likewise.
95         * sysdeps/x86/dl-procinfo.c: New file.
96
97 2017-04-10  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
98
99         * sysdeps/generic/math_private.h: Remove declarations of
100         many functions that are already declared in math.h.
101         * sysdeps/ieee754/ldbl-128/e_logl.c: Include math.h to get the
102         declaration for __frexpl.
103         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Include math.h to get
104         the declarations for __scalbnl and fabsl.
105
106 2017-04-09  Dmitry V. Levin  <ldv@altlinux.org>
107
108         [BZ #20831]
109         * elf/dl-map-segments.h (_dl_map_segments): Check for failure
110         of __mprotect to change protection on the excess portion
111         to disallow all access.
112
113 2017-04-07  H.J. Lu  <hongjiu.lu@intel.com>
114
115         * sysdeps/i386/fpu/fclrexcpt.c (__feclearexcept): Use
116         HAS_CPU_FEATURE to check for SSE.
117         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
118         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Likewise.
119         * sysdeps/i386/fpu/fegetenv.c (__fegetenv): Likewise.
120         * sysdeps/i386/fpu/fegetmode.c (fegetmode): Likewise.
121         * sysdeps/i386/fpu/feholdexcpt.c (__feholdexcept): Likewise.
122         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Likewise.
123         * sysdeps/i386/fpu/fesetmode.c (fesetmode): Likewise.
124         * sysdeps/i386/fpu/fesetround.c (__fesetround): Likewise.
125         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Likewise.
126         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Likewise.
127         * sysdeps/i386/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
128         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
129         * sysdeps/i386/setfpucw.c (__setfpucw): Likewise.
130         * sysdeps/x86/cpu-features.h (bit_cpu_SSE): New.
131         (index_cpu_SSE): Likewise.
132         (reg_SSE): Likewise.
133
134 2017-04-07  Paul Eggert  <eggert@cs.ucla.edu>
135
136         * posix/getopt1.c: Include <config.h>, not "config.h".
137
138 2017-04-07  Zack Weinberg  <zackw@panix.com>
139
140         * posix/bits/getopt_core.h, posix/bits/getopt_ext.h
141         * posix/getopt.c, posix/getopt1.c, posix/getopt_int.h:
142         Mention in top-of-file boilerplate that these files are shared
143         with gnulib.
144         * posix/getopt.h, posix/bits/getopt_posix.h:
145         Mention in top-of-file boilerplate that these files are NOT shared
146         with gnulib, unlike the rest of the getopt implementation.
147
148         * posix/bits/getopt_core.h, posix/bits/getopt_ext.h:
149         New files, intended to be shared with gnulib.
150         * posix/bits/getopt_posix.h:
151         New file, not intended to be shared with gnulib.
152         * posix/getopt.h: Now just includes features.h,
153         bits/getopt_core.h, and bits/getopt_ext.h.  Will
154         no longer be shared with gnulib.
155         * include/bits/getopt_core.h, include/bits/getopt_ext.h
156         * include/bits/getopt_posix.h: New wrappers.
157         * posix/Makefile: Install new headers.
158         * posix/unistd.h, libio/stdio.h:
159         Include bits/getopt_posix.h instead of getopt.h.
160
161         * include/libc-symbols.h: For gnulib compatibility, define
162         _GL_UNUSED, _GL_UNUSED_LABEL, _GL_ATTRIBUTE_PURE, and
163         _GL_ATTRIBUTE_CONST.
164         * posix/getopt.c (_getopt_initialize): Mark argc and argv
165         parameters with _GL_UNUSED.
166
167         * posix/getopt.c: When used standalone, define __libc_use_alloca
168         as always false and alloca to abort if called.
169         (process_long_option): Rewrite handling of ambiguous long options
170         to use a single boolean vector, not a linked list; use
171         __libc_use_alloca to decide whether to allocate this using alloca.
172         * posix/tst-getopt_long1.c: Adjust text of expected error message.
173
174         * posix/getopt.c (process_long_option): New function split out
175         from _getopt_internal_r.
176         (_getopt_internal_r): Replace both copies of the long-option
177         processing code with calls to process_long_option.
178         * posix/bug-getopt4.c (one_test): Print argv[0] in error messages.
179         (do_test): Differentiate argv[0] in the two subtests.
180
181         * posix/getopt_int.h (_getopt_data): Remove __posixly_correct field.
182         * posix/getopt.c (_getopt_internal_r): Move some initialization code...
183         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
184
185         * posix/getopt.h: Add backup definition of __nonnull for
186         consistency with gnulib.  Define __getopt_argv_const to const
187         if not already defined.
188         (getopt): Update doc comment from gnulib.  Prototype
189         unconditionally.  Add __nonnull annotation.
190         (__posix_getopt): Add __nonnull annotation.
191         (getopt_long, getopt_long_only): Use __getopt_argv_const in
192         prototypes for consistency with gnulib.  Add __nonnull
193         annotations.
194         * posix/getopt.c (_getopt_initialize, _getopt_internal_r)
195         (getopt_internal): Change 'argv' argument to type 'char **'.
196         Remove now-unnecessary casts.
197         (getopt, __posix_getopt): Eliminate repetition with a macro.
198         Cast 'argv' to 'char **' when calling _getopt_internal.
199         * posix/getopt1.c (getopt_long, getopt_long_only):
200         Use __getopt_argv_const for consistency with gnulib.
201         Cast 'argv' to 'char **' when calling _getopt_internal.
202         (_getopt_long_r, _getopt_long_only_r):
203         Change 'argv' argument to type 'char **'.
204         (main): Constify 'long_options'.
205         * posix/getopt_int.h (getopt_internal, _getopt_internal_r)
206         (_getopt_long_r, _getopt_long_only_r):
207         Change 'argv' argument to type 'char **'.
208
209         * stdio-common/fxprintf.c (__fxprintf_nocancel): New function.
210         (locked_vfxprintf): New helper function. Handle arbitrary
211         multibyte strings, not just ASCII.
212         * include/stdio.h: Declare __fxprintf_nocancel.
213         * posix/getopt.c: When _LIBC is defined, define fprintf to
214         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
215         to _IO_funlockfile.  When neither _LIBC nor
216         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
217         funlockfile as no-ops.
218         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks;
219         the standalone error-printing code can now be used for libc as
220         well.  Add an flockfile/funlockfile pair around one case where
221         the error message is printed in several chunks.  Don't use fputc.
222         * posix/tst-getopt-cancel.c: New test.
223         * posix/Makefile: Run it.
224
225         * posix/getopt.c (_getopt_internal_r): Don't increment
226         d->optind a second time when reporting ambiguous -W options.
227
228         * posix/getopt_int.h: Include getopt.h.
229         Use impl-namespace names for all arguments to _getopt_internal and
230         _getopt_internal_r.
231         Declare __ordering enum outside the struct.
232         Harmonize comments with gnulib.
233         * posix/getopt1.c: Simplify #ifdeffage at top of file. Remove
234         ELIDE_CODE logic entirely.  Move inclusion of stdlib.h to
235         #ifdef TEST block and make unconditional.  Do not define NULL.
236         * posix/getopt.c: Partial merge from gnulib, covering the
237         initial includes and global declarations, commentary, and
238         a couple of semantically-neutral code changes.
239
240         * posix/getopt.c, posix/getopt.h, posix/getopt1.c, posix/getopt_int.h:
241         Use '...' instead of `...' for quotation marks inside
242         comments and strings.
243
244         * config.h.in (USE_NONOPTION_FLAGS): Remove.
245         * csu/init-first.c: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
246         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
247         * posix/getopt_int.h: Likewise.
248         * posix/getopt.c: Likewise. Also remove SWAP_FLAGS and the
249         __libc_argc and __libc_argv externs, which were only used by
250         #ifdef USE_NONOPTION_FLAGS blocks.
251         * posix/getopt_init.c: Remove file.
252         * posix/Makefile (routines): Remove getopt_init.
253         * include/getopt.h: Don't declare __getopt_initialize_environment.
254         * manual/getopt.texi: Remove mention of USE_NONOPTION_FLAGS in
255         a comment.
256
257 2017-04-07  Florian Weimer  <fweimer@redhat.com>
258
259         * resolv/res_mkquery.c (res_nmkquery): Remove IQUERY support.
260
261 2017-04-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
262
263         * sysdeps/sparc/sparc32/Makefile (libc.so-gnulib): New rule.
264         * sysdeps/sparc/sparc32/sparcv8/udiv.S (.udiv): Make a strong_alias
265         to __wrap_.udiv.
266         * sysdeps/sparc/sparc32/sparcv9/udiv.S (.udiv): Likewise.
267         * sysdeps/sparc/sparc32/udiv.S (.udiv): Likewise.
268
269         * sysdeps/i386/symbol-hacks.h: New file.
270         * sysdeps/m68k/symbol-hacks.h: New file.
271         * sysdeps/powerpc/powerpc32/symbol-hacks.h: New file.
272         * sysdeps/s390/s390-32/symbol-hacks.h: New file.
273         * sysdeps/unix/sysv/linux/i386/Makefile
274         [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
275         [$(subdir) = csu] (sysdep-only-routines): Likewise.
276         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
277         * sysdeps/unix/sysv/linux/m68k/Makefile
278         [$(subdir) = csu] (sysdep_routines): Likewise.
279         [$(subdir) = csu] (sysdep-only-routines): Likewise.
280         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
281         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
282         [$(subdir) = csu] (sysdep_routines): Likewise.
283         [$(subdir) = csu] (sysdep-only-routines): Likewise.
284         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
285         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile
286         [$(subdir) = csu] (sysdep_routines): Likewise.
287         [$(subdir) = csu] (sysdep-only-routines): Likewise.
288         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
289         * sysdeps/wordsize-32/Makefile: Remove file.
290         * sysdeps/wordsize-32/symbol-hacks.h: Definitions move to ...
291         * sysdeps/wordsize-32/divdi3-symbol-hacks.h: ... here.
292
293 2017-04-05  H.J. Lu  <hongjiu.lu@intel.com>
294
295         * elf/tst-dlopen-aout.c (TEST_FUNCTION): Removed.
296         (TEST_FUNCTION_ARGV): New.
297
298 2017-04-05  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
299
300         * elf/next.c: Import support/test-driver.c instead of
301         test-skeleton.c and delete TEST_FUNCTION macro definition.
302         * elf/nodelete.c: Likewise.
303         * elf/order2.c: Likewise.
304         * elf/tst-_dl_addr_inside_object.c: Likewise.
305         * elf/tst-addr1.c: Likewise.
306         * elf/tst-align.c: Likewise.
307         * elf/tst-align2.c: Likewise.
308         * elf/tst-audit11.c: Likewise.
309         * elf/tst-audit12.c: Likewise.
310         * elf/tst-audit2.c: Likewise.
311         * elf/tst-audit9.c: Likewise.
312         * elf/tst-auxv.c: Likewise and define TEST_FUNCTION_ARGV macro.
313         * elf/tst-deep1.c: Likewise.
314         * elf/tst-dl-iter-static.c: Likewise.
315         * elf/tst-dlmodcount.c: Likewise.
316         * elf/tst-dlmopen1.c: Likewise.
317         * elf/tst-dlmopen2.c: Likewise.
318         * elf/tst-dlmopen3.c: Likewise.
319         * elf/tst-dlopen-aout.c: Likewise.
320         * elf/tst-dlopenrpath.c: Likewise.
321         * elf/tst-dlsym-error.c: Likewise.
322         * elf/tst-execstack-needed.c: Likewise.
323         * elf/tst-execstack-prog.c: Likewise.
324         * elf/tst-execstack.c: Likewise.
325         * elf/tst-global1.c: Likewise.
326         * elf/tst-gnu2-tls1.c: Likewise.
327         * elf/tst-latepthread.c: Likewise.
328         * elf/tst-leaks1.c: Likewise.
329         * elf/tst-linkall-static.c: Likewise.
330         (do_test): New function.
331         * elf/tst-nodelete-opened.c: Likewise.
332         * elf/tst-nodelete.cc: Likewise.
333         * elf/tst-nodelete2.c: Likewise.
334         * elf/tst-noload.c: Likewise.
335         * elf/tst-null-argv.c: Likewise and define TEST_FUNCTION_ARGV marcro.
336         * elf/tst-order-main.c: Likewise.
337         * elf/tst-pathopt.c: Likewise.
338         * elf/tst-pie2.c: Likewise.
339         * elf/tst-piemod1.c: Likewise.
340         * elf/tst-prelink.c: Likewise.
341         * elf/tst-protected1a.c: Likewise.
342         * elf/tst-protected1b.c: Likewise.
343         * elf/tst-ptrguard1.c: Likewise, import getopt.h,
344         and define _GNU_SOURCE macro.
345         (cmdline_process_function): New function.
346         * elf/tst-relsort1.c: Likewise.
347         * elf/tst-stackguard1.c: Likewise, import getopt.h,
348         and define _GNU_SOURCE macro.
349         (cmdline_process_function): New function.
350         * elf/tst-thrlock.c: Likewise.
351         * elf/tst-tls-dlinfo.c: Likewise.
352         * elf/tst-tls-manydynamic.c: Likewise and import support/xthread.h.
353         * elf/tst-tls1.c: Likewise.
354         * elf/tst-tls10.c: Likewise.
355         * elf/tst-tls11.c: Likewise.
356         * elf/tst-tls12.c: Likewise.
357         * elf/tst-tls13.c: Likewise.
358         * elf/tst-tls14.c: Likewise.
359         * elf/tst-tls15.c: Likewise.
360         * elf/tst-tls16.c: Likewise.
361         * elf/tst-tls17.c: Likewise.
362         * elf/tst-tls18.c: Likewise.
363         * elf/tst-tls19.c: Likewise.
364         * elf/tst-tls2.c: Likewise.
365         * elf/tst-tls3.c: Likewise.
366         * elf/tst-tls4.c: Likewise.
367         * elf/tst-tls5.c: Likewise.
368         * elf/tst-tls6.c: Likewise.
369         * elf/tst-tls7.c: Likewise.
370         * elf/tst-tls8.c: Likewise.
371         * elf/tst-tls9.c: Likewise.
372         * elf/tst-tlsalign-extern.c: Likewise.
373         * elf/tst-tlsalign.c: Likewise.
374         * elf/tst-unique1.c: Likewise.
375         * elf/tst-unique2.c: Likewise.
376         * elf/vismain.c: Likewise.
377
378 2017-04-05  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
379
380         * string/test-strnlen.c (do_page_tests): New function
381         to check length of strings ending at the page boundary.
382         (test_main): Added call to the do_page_tests function.
383
384 2017-04-05  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
385             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
386
387         * sysdeps/powerpc/powerpc64/multiarch/Makefile
388         (sysdep_routines): Add strnlen-power8.
389         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
390         (strnlen): Add __strnlen_power8 to list of strnlen functions.
391         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: New file.
392         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c
393         (__strnlen): Add __strnlen_power8 to ifunc list.
394         * sysdeps/powerpc/powerpc64/power8/strnlen.S: New file.
395
396 2017-04-04  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
397
398         * wcsmbs/tst-btowc.c: Import support/test-driver.c and remove
399         the TEST_FUNCTION macro definition.
400         * wcsmbs/tst-mbrtowc2.c: Likewise.
401         * wcsmbs/tst-mbsrtowcs.c: Likewise.
402         * wcsmbs/tst-wchar-h.c: Likewise.
403         * wcsmbs/tst-wcpncpy.c: Likewise.
404         * wcsmbs/tst-wcrtomb.c: Likewise.
405         * wcsmbs/tst-wcsnlen.c: Likewise.
406         * wcsmbs/tst-wcstof.c: Likewise.
407
408 2017-04-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
409
410         * nptl/pthread_create.c (START_THREAD_DEFN): Remove
411         CALL_THREAD_FCT macro usage.
412         * sysdeps/i386/nptl/tls.h (CALL_THREAD_FCT): Remove definition.
413         * sysdeps/x86_64/nptl/tls.h (CALL_THREAD_FCT): Likewise.
414         * sysdeps/x86_64/32/nptl/tls.h: Remove file.
415
416         * nptl/pthreadP.h (USE_REQUEUE_PI): Remove ununsed macro.
417         * sysdeps/unix/sysv/linux/arm/kernel-features.h
418         (__ASSUME_REQUEUE_PI): Likewise.
419         * sysdeps/unix/sysv/linux/kernel-features.h
420         (__ASSUME_REQUEUE_PI): Likewise.
421         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
422         (__ASSUME_REQUEUE_PI): Likewise.
423         * sysdeps/unix/sysv/linux/mips/kernel-features.h
424         (__ASSUME_REQUEUE_PI): Likewise.
425         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
426         (__ASSUME_REQUEUE_PI): Likewise.
427
428 2017-04-04  Florian Weimer  <fweimer@redhat.com>
429
430         * resolv/tst-resolv-canonname.c: New file.
431         * resolv/Makefile (tests): Add tst-resolv-canonname.
432         (tst-resolv-canonname): Link with -ldl, -lresolv, -lpthread.
433
434 2017-04-04  Florian Weimer  <fweimer@redhat.com>
435
436         * include/arpa/nameser.h (__ns_name_ntop, __ns_name_unpack):
437         Declare.
438         * resolv/nss_dns/dns-network.c: Include <arpa/nameser.h>.
439         (NS_MAXCDNAME): Remove definition.
440         (__ns_name_ntop, __ns_name_unpack): Remove declaration.
441         * resolv/nss_dns/dns-host.c: Include <arpa/nameser.h>.
442         (NS_MAXCDNAME): Remove definition.
443         (__ns_name_ntop, __ns_name_unpack): Remove declaration.
444
445 2017-04-04  Florian Weimer  <fweimer@redhat.com>
446
447         * resolv/nss_dns/dns-network.c (getanswer_r): Remove __dn_expand
448         call whose result is not used.
449
450 2017-04-04  Florian Weimer  <fweimer@redhat.com>
451
452         * resolv/tst-ns_name.c, resolv/tst-ns_name.data: New file.
453         * resolv/Makefile (tests): Add tst-ns_name.
454         (tst-ns_name): Link with -lresolv.
455         (tst-ns_name.out): Depend on the input data file.
456
457 2017-04-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
458
459         * sysdeps/s390/s390-32/tls-macros.h (TLS_LD, TLS_GD):
460         Clobber also r14.
461
462 2017-04-03  Mike Frysinger  <vapier@gentoo.org>
463
464         [BZ #21253]
465         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Increase argv_size
466         slack space by 32KiB.
467
468 2017-04-01  Wladimir van der Laan  <laanwj@gmail.com>
469
470         [BZ #21338]
471         * malloc/malloc.c: Call do_set_arena_max for M_ARENA_MAX
472         instead of incorrect do_set_arena_test
473
474 2017-03-31  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
475
476         * math/math.h: Fix check for __MATH_DECLARE_LDOUBLE.
477         * math/bits/math-finite.h: Likewise.
478
479 2017-03-31  Slava Barinov  <v.barinov@samsung.com>
480
481         [BZ #21289]
482         * io/fts.h (fts_set): Replace __REDIRECT with __REDIRECT_NTH.
483
484 2017-03-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
485
486         * sysdeps/unix/sysv/linux/test-errno-linux.c (do_test): Handle
487         non expected inotify_add_watch and quotactl return.
488
489 2017-03-30  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
490
491         * math/e_rem_pio2l.c (__ieee754_rem_pio2l): Change return type
492         to int32_t.
493         * sysdeps/generic/math_private.h: Declare __ieee754_rem_pio2l
494         as returning int32_t.
495
496 2017-03-30  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
497
498         * math/math.h: Include bits/math-finite.h once per
499         floating-point type.
500         * math/bits/math-finite.h: Macroize all declarations by
501         floating-point type.
502
503 2017-03-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
504
505         [BZ #21182]
506         * string/test-memchr.c (do_test): Add BZ#21182 checks for address
507         near end of a page.
508         * sysdeps/i386/i686/multiarch/memchr-sse2.S (__memchr): Fix
509         overflow calculation.
510
511 2017-03-28  Steve Ellcey  <sellcey@caviumnetworks.com>
512
513         * benchtests/bench-memcpy-random.c (TEST_NAME): Change to memcpy.
514         (IMPL) Call with 1 instead of 0 as argument.
515
516 2017-03-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
517
518         * sysdeps/unix/sysv/linux/arm/setegid.c: Remove file.
519         * sysdeps/unix/sysv/linux/arm/seteuid.c: Likewise.
520         * sysdeps/unix/sysv/linux/arm/setgid.c: Likewise.
521         * sysdeps/unix/sysv/linux/arm/setgroups.c: Likewise.
522         * sysdeps/unix/sysv/linux/arm/setregid.c: Likewise.
523         * sysdeps/unix/sysv/linux/arm/setresgid.c: Likewise.
524         * sysdeps/unix/sysv/linux/arm/setresuid.c: Likewise.
525         * sysdeps/unix/sysv/linux/arm/setreuid.c: Likewise.
526         * sysdeps/unix/sysv/linux/arm/setuid.c: Likewise.
527         * sysdeps/unix/sysv/linux/i386/setegid.c: Likewise.
528         * sysdeps/unix/sysv/linux/i386/seteuid.c: Likewise.
529         * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
530         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
531         * sysdeps/unix/sysv/linux/i386/setregid.c: Likewise.
532         * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
533         * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
534         * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
535         * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
536         * sysdeps/unix/sysv/linux/m68k/setegid.c: Likewise.
537         * sysdeps/unix/sysv/linux/m68k/seteuid.c: Likewise.
538         * sysdeps/unix/sysv/linux/m68k/setgid.c: Likewise.
539         * sysdeps/unix/sysv/linux/m68k/setgroups.c: Likewise.
540         * sysdeps/unix/sysv/linux/m68k/setregid.c: Likewise.
541         * sysdeps/unix/sysv/linux/m68k/setresgid.c: Likewise.
542         * sysdeps/unix/sysv/linux/m68k/setresuid.c: Likewise.
543         * sysdeps/unix/sysv/linux/m68k/setreuid.c: Likewise.
544         * sysdeps/unix/sysv/linux/m68k/setuid.c: Likewise.
545         * sysdeps/unix/sysv/linux/microblaze/setgroups.c: Likewise.
546         * sysdeps/unix/sysv/linux/s390/s390-32/setegid.c: Likewise.
547         * sysdeps/unix/sysv/linux/s390/s390-32/seteuid.c: Likewise.
548         * sysdeps/unix/sysv/linux/s390/s390-32/setgid.c: Likewise.
549         * sysdeps/unix/sysv/linux/s390/s390-32/setgroups.c: Likewise.
550         * sysdeps/unix/sysv/linux/s390/s390-32/setregid.c: Likewise.
551         * sysdeps/unix/sysv/linux/s390/s390-32/setresgid.c: Likewise.
552         * sysdeps/unix/sysv/linux/s390/s390-32/setresuid.c: Likewise.
553         * sysdeps/unix/sysv/linux/s390/s390-32/setreuid.c: Likewise.
554         * sysdeps/unix/sysv/linux/s390/s390-32/setuid.c: Likewise.
555         * sysdeps/unix/sysv/linux/sh/setegid.c: Likewise.
556         * sysdeps/unix/sysv/linux/sh/seteuid.c: Likewise.
557         * sysdeps/unix/sysv/linux/sh/setgid.c: Likewise.
558         * sysdeps/unix/sysv/linux/sh/setgroups.c: Likewise.
559         * sysdeps/unix/sysv/linux/sh/setregid.c: Likewise.
560         * sysdeps/unix/sysv/linux/sh/setresgid.c: Likewise.
561         * sysdeps/unix/sysv/linux/sh/setresuid.c: Likewise.
562         * sysdeps/unix/sysv/linux/sh/setreuid.c: Likewise.
563         * sysdeps/unix/sysv/linux/sh/setuid.c: Likewise.
564         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c: Likewise.
565         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c: Likewise.
566         * sysdeps/unix/sysv/linux/sparc/sparc32/setgid.c: Likewise.
567         * sysdeps/unix/sysv/linux/sparc/sparc32/setgroups.c: Likewise.
568         * sysdeps/unix/sysv/linux/sparc/sparc32/setregid.c: Likewise.
569         * sysdeps/unix/sysv/linux/sparc/sparc32/setresgid.c: Likewise.
570         * sysdeps/unix/sysv/linux/sparc/sparc32/setresuid.c: Likewise.
571         * sysdeps/unix/sysv/linux/sparc/sparc32/setreuid.c: Likewise.
572         * sysdeps/unix/sysv/linux/sparc/sparc32/setuid.c: Likewise.
573         * sysdeps/unix/sysv/linux/setegid.c (setegid): Use
574         INLINE_SYSCALL_ERROR_RETURN_VALUE.
575         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
576         * sysdeps/unix/sysv/linux/setgid.c (setgid): Use __NR_setgid32 if
577         defined.
578         * sysdeps/unix/sysv/linux/setgroups.c (setgroups): Use
579         __NR_setgroups32 if defined.
580         * sysdeps/unix/sysv/linux/setregid.c (__setregid): Use __NR_setregid32
581         if defined.
582         * sysdeps/unix/sysv/linux/setresgid.c (__setresgid): Use
583         __NR_setresgid32 is defined.
584         * sysdeps/unix/sysv/linux/setresuid.c (__setresuid): Use
585         __NR_setresuid32 if defined.
586         * sysdeps/unix/sysv/linux/setreuid.c (__setreuid): Use
587         __NR_setreuid32 if defined.
588         * sysdeps/unix/sysv/linux/setuid.c (__setuid): Use __NR_setuid32 if
589         defined.
590         * sysdeps/unix/sysv/linux/arm/setegid.c: Remove file.
591         * sysdeps/unix/sysv/linux/arm/seteuid.c: Likewise.
592         * sysdeps/unix/sysv/linux/arm/setgid.c: Likewise.
593         * sysdeps/unix/sysv/linux/arm/setgroups.c: Likewise.
594         * sysdeps/unix/sysv/linux/arm/setregid.c: Likewise.
595         * sysdeps/unix/sysv/linux/arm/setresgid.c: Likewise.
596         * sysdeps/unix/sysv/linux/arm/setresuid.c: Likewise.
597         * sysdeps/unix/sysv/linux/arm/setreuid.c: Likewise.
598         * sysdeps/unix/sysv/linux/arm/setuid.c: Likewise.
599         * sysdeps/unix/sysv/linux/i386/setegid.c: Likewise.
600         * sysdeps/unix/sysv/linux/i386/seteuid.c: Likewise.
601         * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
602         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
603         * sysdeps/unix/sysv/linux/i386/setregid.c: Likewise.
604         * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
605         * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
606         * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
607         * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
608         * sysdeps/unix/sysv/linux/m68k/setegid.c: Likewise.
609         * sysdeps/unix/sysv/linux/m68k/seteuid.c: Likewise.
610         * sysdeps/unix/sysv/linux/m68k/setgid.c: Likewise.
611         * sysdeps/unix/sysv/linux/m68k/setgroups.c: Likewise.
612         * sysdeps/unix/sysv/linux/m68k/setregid.c: Likewise.
613         * sysdeps/unix/sysv/linux/m68k/setresgid.c: Likewise.
614         * sysdeps/unix/sysv/linux/m68k/setresuid.c: Likewise.
615         * sysdeps/unix/sysv/linux/m68k/setreuid.c: Likewise.
616         * sysdeps/unix/sysv/linux/m68k/setuid.c: Likewise.
617         * sysdeps/unix/sysv/linux/microblaze/setgroups.c: Likewise.
618         * sysdeps/unix/sysv/linux/s390/s390-32/setegid.c: Likewise.
619         * sysdeps/unix/sysv/linux/s390/s390-32/seteuid.c: Likewise.
620         * sysdeps/unix/sysv/linux/s390/s390-32/setgid.c: Likewise.
621         * sysdeps/unix/sysv/linux/s390/s390-32/setgroups.c: Likewise.
622         * sysdeps/unix/sysv/linux/s390/s390-32/setregid.c: Likewise.
623         * sysdeps/unix/sysv/linux/s390/s390-32/setresgid.c: Likewise.
624         * sysdeps/unix/sysv/linux/s390/s390-32/setresuid.c: Likewise.
625         * sysdeps/unix/sysv/linux/s390/s390-32/setreuid.c: Likewise.
626         * sysdeps/unix/sysv/linux/s390/s390-32/setuid.c: Likewise.
627         * sysdeps/unix/sysv/linux/sh/setegid.c: Likewise.
628         * sysdeps/unix/sysv/linux/sh/seteuid.c: Likewise.
629         * sysdeps/unix/sysv/linux/sh/setgid.c: Likewise.
630         * sysdeps/unix/sysv/linux/sh/setgroups.c: Likewise.
631         * sysdeps/unix/sysv/linux/sh/setregid.c: Likewise.
632         * sysdeps/unix/sysv/linux/sh/setresgid.c: Likewise.
633         * sysdeps/unix/sysv/linux/sh/setresuid.c: Likewise.
634         * sysdeps/unix/sysv/linux/sh/setreuid.c: Likewise.
635         * sysdeps/unix/sysv/linux/sh/setuid.c: Likewise.
636         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c: Likewise.
637         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c: Likewise.
638         * sysdeps/unix/sysv/linux/sparc/sparc32/setgid.c: Likewise.
639         * sysdeps/unix/sysv/linux/sparc/sparc32/setgroups.c: Likewise.
640         * sysdeps/unix/sysv/linux/sparc/sparc32/setregid.c: Likewise.
641         * sysdeps/unix/sysv/linux/sparc/sparc32/setresgid.c: Likewise.
642         * sysdeps/unix/sysv/linux/sparc/sparc32/setresuid.c: Likewise.
643         * sysdeps/unix/sysv/linux/sparc/sparc32/setreuid.c: Likewise.
644         * sysdeps/unix/sysv/linux/sparc/sparc32/setuid.c: Likewise.
645         * sysdeps/unix/sysv/linux/setegid.c (setegid): Use
646         INLINE_SYSCALL_ERROR_RETURN_VALUE.
647         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
648         * sysdeps/unix/sysv/linux/setgid.c (setgid): Use __NR_setgid32 if
649         defined.
650         * sysdeps/unix/sysv/linux/setgroups.c (setgroups): Use
651         __NR_setgroups32 if defined.
652         * sysdeps/unix/sysv/linux/setregid.c (__setregid): Use __NR_setregid32
653         if defined.
654         * sysdeps/unix/sysv/linux/setresgid.c (__setresgid): Use
655         __NR_setresgid32 is defined.
656         * sysdeps/unix/sysv/linux/setresuid.c (__setresuid): Use
657         __NR_setresuid32 if defined.
658         * sysdeps/unix/sysv/linux/setreuid.c (__setreuid): Use
659         __NR_setreuid32 if defined.
660         * sysdeps/unix/sysv/linux/setuid.c (__setuid): Use __NR_setuid32 if
661         defined.
662
663 2017-03-27  Joseph Myers  <joseph@codesourcery.com>
664
665         [BZ #21277]
666         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (IUCLC): Define
667         unconditionally.
668         (IMAXBEL): Likewise.
669         (IUTF8): Likewise.
670
671 2017-03-27  Szabolcs Nagy  <szabolcs.nagy@arm.com>
672
673         * sysdeps/aarch64/libm-test-ulps: Update.
674
675 2017-03-24  Sunyeop Lee  <sunyeop97@gmail.com>
676
677         * README.tunables: Updated descriptions.
678         * elf/dl-tunables.list: Fixed typo: SXID_NONE -> NONE.
679         * scripts/gen-tunables.awk: Updated the code related to the
680         commit.
681
682 2017-03-23  Wilco Dijkstra  <wdijkstr@arm.com>
683
684         * benchtests/Makefile (string-benchset): Add memcpy-random.
685         * benchtests/bench-memcpy-random.c: New file.
686
687 2017-03-23  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
688
689         * stdio-common/printf.h (register_printf_modifier): Change the
690         order of __wur and __THROW.
691         (register_printf_type): Likewise.
692
693 2017-03-23  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
694
695         * string/test-string.h (TEST_FUNCTION): Use test_main instead of
696         test_main ().
697         (CMDLINE_PROCESS): Use function instead of defined macro.
698         * debug/test-strcpy_chk.c: Import support/test-driver.c and also
699         <suppport/support.h> to use set_fortify_handler().
700         * string/bug-envz1.c: Import support/test-driver.c instead of
701         test-skeleton.c.
702         * string/bug-strcoll2.c: Likewise.
703         * string/bug-strtok1.c: Likewise.
704         * string/stratcliff.c: Likewise.
705         * string/test-ffs.c: Likewise.
706         * string/test-memccpy.c: Likewise.
707         * string/test-memchr.c: Likewise.
708         * string/test-memcmp.c: Likewise.
709         * string/test-memcpy.c: Likewise.
710         * string/test-memmem.c: Likewise.
711         * string/test-memmove.c: Likewise.
712         * string/test-memrchr.c: Likewise.
713         * string/test-memset.c: Likewise.
714         * string/test-rawmemchr.c: Likewise.
715         * string/test-strcasecmp.c: Likewise.
716         * string/test-strcasestr.c: Likewise.
717         * string/test-strcat.c: Likewise.
718         * string/test-strchr.c: Likewise.
719         * string/test-strcmp.c: Likewise.
720         * string/test-strcpy.c: Likewise.
721         * string/test-string.h: Likewise.
722         * string/test-strlen.c: Likewise.
723         * string/test-strncasecmp.c: Likewise.
724         * string/test-strncat.c: Likewise.
725         * string/test-strncmp.c: Likewise.
726         * string/test-strncpy.c: Likewise.
727         * string/test-strnlen.c: Likewise.
728         * string/test-strpbrk.c: Likewise.
729         * string/test-strrchr.c: Likewise.
730         * string/test-strspn.c: Likewise.
731         * string/test-strstr.c: Likewise.
732         * string/tst-bswap.c: Likewise.
733         * string/tst-cmp.c: Likewise.
734         * string/tst-endian.c: Likewise.
735         * string/tst-inlcall.c: Likewise.
736         * string/tst-strcoll-overflow.c: Likewise.
737         * string/tst-strfry.c: Likewise.
738         * string/tst-strlen.c: Likewise.
739         * string/tst-strtok.c: Likewise.
740         * string/tst-strtok_r.c: Likewise.
741         * string/tst-strxfrm.c: Likewise.
742         * string/tst-strxfrm2.c: Likewise.
743         * string/tst-svc.c: Likewise.
744         * string/tst-svc2.c: Likewise.
745
746 2017-03-22  Zack Weinberg  <zackw@panix.com>
747
748         * stdio-common/bug25.c: Include stdlib.h.
749         * support/tst-support_format_dns_packet.c: Include stdio.h,
750         stdlib.h, and string.h.
751         * support/tst-support_record_failure.c: Include string.h.
752         * support/tst-support_record_failure-2.sh: Adjust line number
753         expectations and correct a typo in an error message.
754
755 2017-03-21  H.J. Lu  <hongjiu.lu@intel.com>
756
757         [BZ #21258]
758         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve_opt):
759         Define only if _dl_runtime_resolve is defined to
760         _dl_runtime_resolve_sse_vex.
761         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_opt):
762         Fallthrough to _dl_runtime_resolve_sse_vex.
763
764 2017-03-21  Joseph Myers  <joseph@codesourcery.com>
765
766         * INSTALL: Regenerated.
767
768 2017-03-21  Thorsten Kukuk  <kukuk@suse.com>
769
770         * config.h.in: Add LINK_OBSOLETE_NSL.
771         * config.make.in: Add build-obsolete-nsl.
772         * configure.ac: Add obsolete-nsl option.
773         * include/libc-symbols.h: Define libnsl_hidden_nolink_def.
774         * include/rpcsvc/yp.h: Add missing functions as libnsl_hidden_proto.
775         * include/rpcsvc/nislib.h: Likewise.
776         * include/rpcsvc/ypclnt.h: Likewise.
777         * manual/install.texi: Document --enable-obsolete-nsl.
778         * nis/Makefile: Build only libnsl by default (add build-obsolete-nsl).
779         * nis/nis_add.c: Replace libnsl_hidden_def with
780         libnsl_hidden_nolink_def.
781         * nis/nis_addmember.c: Likewise.
782         * nis/nis_call.c: Likewise.
783         * nis/nis_clone_obj.c: Likewise.
784         * nis/nis_defaults.c: Likeise.
785         * nis/nis_domain_of_r.c: Likewise.
786         * nis/nis_error.c: Likewise.
787         * nis/nis_file.c: Likewise.
788         * nis/nis_free.c: Likewise.
789         * nis_local_names.c: Likewise.
790         * nis/nis_lookup.c: Likewise.
791         * nis/nis_modify.c: Likewise.
792         * nis/nis_print.c: Likewise.
793         * nis/nis_remove.c: Likewise.
794         * nis/nis_table.c: Likewise.
795         * nis/nis_util.c: Likewise.
796         * nis/nis_xdr.c: Likewise.
797         * nis/yp_xdr.c: Likewise.
798         * nis/ypclnt.c: Likewise.
799         * nis/ypupdate_xdr.c: Likewise.
800         * nis/nis_checkpoint.c: Add libnsl_hidden_nolink_def to all functions.
801         * nis/nis_clone_dir.c: Likewise.
802         * nis/nis_clone_res.c: Likewise.
803         * nis/nis_creategroup.c: Likewise.
804         * nis/nis_destroygroup.c: Likewise.
805         * nis/nis_domain_of.c: Likewise.
806         * nis/nis_getservlist.c: Likewise.
807         * nis/nis_ismember.c: Likewise.
808         * nis/nis_mkdir.c: Likewise.
809         * nis/nis_ping.c: Likewise.
810         * nis/nis_print_group_entry.c: Likewise.
811         * nis/nis_removemember.c: Likewise.
812         * nis/nis_rmdir.c: Likewise.
813         * nis/nis_server.c: Likewise.
814         * nis/nis_subr.c: Likewise.
815         * nis/nis_verifygroup.c: Likewise.
816
817 2017-03-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
818
819         * malloc/tst-interpose-aux.c (check_for_allocations):
820         Move compiler barrier before free.
821
822 2017-03-20  Joseph Myers  <joseph@codesourcery.com>
823
824         [BZ #21279]
825         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile
826         [$(subdir) = conform] (conformtest-xfail-conds): Update comment.
827         * conform/data/mqueue.h-data (mq_attr.mq_flags): XFAIL for
828         x86_64-x32-linux.
829         (mq_attr.mq_maxmsg): Likewise.
830         (mq_attr.mq_msgsize): Likewise.
831         (mq_attr.mq_curmsgs): Likewise.
832
833         [BZ #21278]
834         * sysdeps/unix/sysv/linux/mips/mips32/Makefile
835         [$(subdir) = conform] (conformtest-xfail-conds): Update comment.
836         * conform/data/sys/stat.h-data (stat.st_rdev): XFAIL for
837         mips-o32-linux.
838
839         [BZ #21268]
840         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (NL2): Define only
841         if [__USE_MISC]
842         (NL3): Likewise.
843
844 2017-03-20  Mike Frysinger  <vapier@gentoo.org>
845
846         [BZ #21275]
847         * sysdeps/unix/sysv/linux/spawni.c [__ia64__] (CLONE): Rename
848         __stack to __stackbase.
849         (STACK): Invert _STACK_GROWS_DOWN and _STACK_GROWS_UP order of
850         checks so we can include defined(__ia64__) first.
851
852 2017-03-19  Christian Brauner  <christian.brauner@ubuntu.com>
853
854         * sysdeps/unix/sysv/linux/ttyname.h: New file.
855         * sysdeps/unix/sysv/linux/ttyname.c: Include "ttyname.h".
856         (ttyname) [!_STATBUF_ST_RDEV]: Make code unconditional.
857         Call is_pty when the link does not exist or does not match, fail
858         with ENODEV when it returns true.
859         * sysdeps/unix/sysv/linux/ttyname_r.c: Include "ttyname.h".
860         (__ttyname_r) [!_STATBUF_ST_RDEV]: Make code unconditional.
861         Call is_pty when the link does not exist or does not match, fail
862         with ENODEV when it returns true.
863
864 2017-03-18  Joseph Myers  <joseph@codesourcery.com>
865
866         [BZ #16437]
867         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile
868         [$(subdir) = conform] (conformtest-xfail-conds): New variable.
869         * conform/data/signal.h-data (timespec.tv_nsec): XFAIL for
870         x86_64-x32-linux.
871         * conform/data/sys/select.h-data (timespec.tv_nsec): Likewise.
872         * conform/data/sys/stat.h-data (timespec.tv_nsec): Likewise.
873         * conform/data/time.h-data (timespec.tv_nsec): Likewise.
874
875         [BZ #21261]
876         * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h
877         [__WORDSIZE == 64 && !_ASM] (__sparc64_jmp_buf): Use reserved
878         names for all fields.
879         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Update
880         for jmp_buf field renaming.
881         (_JMPBUF_UNWINDS_ADJ): Likewise.
882
883         * conform/conformtest.pl: Handle xfail[cond]- in header mentioned
884         with allow-header.
885
886 2017-03-17  Chris Evans  <scarybeasts@gmail.com>
887
888         * malloc/malloc.c (unlink): Add consistency check between size and
889         next->prev->size, to further harden against 1-byte overflows.
890
891 2017-03-17  H.J. Lu  <hongjiu.lu@intel.com>
892
893         * sysdeps/x86/cpu-features.c (init_cpu_features): Check AVX with
894         CPU_FEATURES_CPU_P.
895
896 2017-03-17  Joseph Myers  <joseph@codesourcery.com>
897
898         [BZ #21259]
899         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (IXANY): Define
900         unconditionally, not just for [__USE_MISC].
901
902         [BZ #17786]
903         * sysdeps/unix/sysv/linux/mips/mips32/Makefile: New file.
904         * conform/data/sys/stat.h-data (stat.st_dev): XFAIL for
905         mips-o32-linux.
906
907         [BZ #21260]
908         * sysdeps/unix/sysv/linux/alpha/Makefile
909         [$(subdir) = conform] (conformtest-xfail-conds): New variable.
910         * conform/data/netdb.h-data (netent.n_net): XFAIL for alpha-linux.
911
912         * conform/conformtest.pl ($cross): New variable.
913         (--cross): New command-line option.
914         (runtest): Skip test execution when cross-compiling.
915         * conform/Makefile (conformtest-cross): New variable.
916         ($(conformtest-header-tests)): Pass $(conformtest-cross) to
917         conformtest.pl.
918
919         * conform/conformtest.pl ($xfail_str): New variable.
920         (--xfail=): New command-line option.
921         (top level): Handle expectations starting xfail[cond]-.
922         * conform/Makefile (conformtest-xfail): New variable.
923         ($(conformtest-header-tests)): Pass $(conformtest-xfail) to
924         conformtest.pl.
925
926 2017-03-16  Joseph Myers  <joseph@codesourcery.com>
927
928         * conform/conformtest.pl: Use compilation instead of execution
929         tests for testing values of constants and usability in #if.
930
931 2017-03-16  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
932
933         * math/auto-libm-test-in: Mark some catan and catanh as
934         xfail-rounding:ibm128-libgcc.
935         * math/auto-libm-test-out-catan: Regenerate.
936         * math/auto-libm-test-out-catanh: Likewise.
937
938 2017-03-16  Joseph Myers  <joseph@codesourcery.com>
939
940         * misc/sys/cdefs.h (__BEGIN_NAMESPACE_STD): Remove macro.
941         (__END_NAMESPACE_STD): Likewise.
942         (__USING_NAMESPACE_STD): Likewise.
943         (__BEGIN_NAMESPACE_C99): Likewise.
944         (__END_NAMESPACE_C99): Likewise.
945         (__USING_NAMESPACE_C99): Likewise.
946         * math/math.h (_Mdouble_BEGIN_NAMESPACE): Do not define and
947         undefine macro.
948         (_Mdouble_END_NAMESPACE): Likewise.
949         * ctype/ctype.h: Do not handle C++ namespaces.
950         * libio/bits/stdio-ldbl.h: Likewise.
951         * libio/stdio.h: Likewise.
952         * locale/locale.h: Likewise.
953         * math/bits/mathcalls.h: Likewise.
954         * setjmp/setjmp.h: Likewise.
955         * signal/signal.h: Likewise.
956         * stdlib/bits/stdlib-float.h: Likewise.
957         * stdlib/bits/stdlib-ldbl.h: Likewise.
958         * stdlib/stdlib.h: Likewise.
959         * string/string.h: Likewise.
960         * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
961         * time/bits/types/clock_t.h: Likewise.
962         * time/bits/types/struct_tm.h: Likewise.
963         * time/bits/types/time_t.h: Likewise.
964         * time/time.h: Likewise.
965         * wcsmbs/bits/wchar-ldbl.h: Likewise.
966         * wcsmbs/uchar.h: Likewise.
967         * wcsmbs/wchar.h: Likewise.
968         [_GLIBCPP_USE_NAMESPACES] (wint_t): Remove conditional definition.
969         * wctype/wctype.h: Do not handle C++ namespaces.
970         * scripts/begin-end-check.pl: Remove.
971         * Makefile (installed-headers): Likewise.
972         (tests-special): Do not add $(objpfx)begin-end-check.out.
973         ($(objpfx)begin-end-check.out): Remove.
974
975 2017-03-15  Steve Ellcey  <sellcey@caviumnetworks.com>
976             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
977
978         * sysdeps/aarch64/dl-machine.h: Include cpu-features.c.
979         (DL_PLATFORM_INIT): New define.
980         (dl_platform_init): New function.
981         * sysdeps/aarch64/ldsodefs.h: Include cpu-features.h.
982         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: New file.
983         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h: Likewise.
984         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c: Likewise.
985         * sysdeps/unix/sysv/linux/aarch64/libc-start.c: Likewise.
986
987 2017-03-15  Mike Frysinger  <vapier@gentoo.org>
988
989         * sysdeps/x86_64/mempcpy_chk.S (__mempcpy_chk): Check for SHARED
990         instead of PIC.
991
992 2017-03-15  Joseph Myers  <joseph@codesourcery.com>
993
994         [BZ #21094]
995         * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
996         24+24+24-bit pi for wider range of values around pi/2.
997         * math/auto-libm-test-in: Add more tests of cos and tan.
998         * math/auto-libm-test-out-cos: Regenerated.
999         * math/auto-libm-test-out-tan: Likewise.
1000
1001 2017-03-15  John David Anglin  <danglin@gcc.gnu.org>
1002
1003         * sysdeps/hppa/dl-machine.h (DL_STACK_END): Define.
1004         (RTLD_START): Don't record stack end address in _dl_start_user.
1005
1006 2017-03-15  Alexey Neyman  <stilor@att.net>
1007
1008         [BZ #21088]
1009         * nss/nsswitch.c (nscd_init_cb, is_nscd): Make the #if check
1010         around definitions match those around use.
1011
1012 2017-03-15  Alexey Neyman  <stilor@att.net>
1013
1014         * configure.ac: Avoid empty subexpression in grep.
1015         * configure: Regenerate.
1016
1017 2017-03-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1018
1019         * posix/test-errno.c (do_test): Initialize setsockopt optlen.
1020         * sysdeps/unix/sysv/linux/test-errno.c: Move to ...
1021         * sysdeps/unix/sysv/linux/test-errno-linux.c: ... here.
1022         (test_wrp_rv): Fix format.
1023         (test_wrp_rv2): New macro.
1024         (do_test): Handle mlock return on 64 bits kernels with 32 bits
1025         binaries.
1026
1027 2017-03-15  Joseph Myers  <joseph@codesourcery.com>
1028
1029         * sysdeps/x86/fpu/test-math-vector-sincos.h (INIT_VEC_PTRS_LOOP):
1030         Use a union when storing pointers.
1031         (VECTOR_WRAPPER_fFF_2): Do not take address of integer vector and
1032         cast result when passing to INIT_VEC_PTRS_LOOP.
1033         (VECTOR_WRAPPER_fFF_3): Likewise.
1034         (VECTOR_WRAPPER_fFF_4): Likewise.
1035
1036 2017-03-14  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1037
1038         * include/bits/mathcalls-helper-functions.h: New file.
1039         * math/Makefile (headers): Add bits/mathcalls-helper-functions.h.
1040         * math/bits/mathcalls.h (__finite, __fpclassify, __iseqsig)
1041         (__isinf, __isnan, __issignaling, __signbit): Move declarations to
1042         math/bits/mathcalls-helper-functions.h.
1043         * math/bits/mathcalls-helper-functions.h: New file.
1044         * math/math.h: Include bits/mathcalls-helper-functions.h for
1045         float, double, and long double.
1046
1047 2017-03-15  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1048
1049         * math/s_iseqsig_template.c (__iseqsig): Use __feraiseexcept
1050         instead of feraiseexcept.
1051
1052 2017-03-15  Florian Weimer  <fweimer@redhat.com>
1053
1054         [BZ #21243]
1055         * support/temp_file.c (support_delete_temp_files): Add comment
1056         about ignored errors.
1057
1058 2017-03-15  Florian Weimer  <fweimer@redhat.com>
1059
1060         [BZ #21244]
1061         * support/xclose.c: New file.
1062         * support/Makefile (libsupport-routines): Add xclose.
1063         * support/xunistd.h (xclose): Declare.
1064         * support/resolv_test.c (server_thread_tcp_client)
1065         (server_thread_tcp, make_server_sockets, resolv_test_start)
1066         (resolv_test_end): Call xclose instead of close.
1067         * support/support_enter_network_namespace.c
1068         (support_enter_network_namespace): Likewise.
1069         * support/support_run_diff.c (write_to_temp_file): Likewise.
1070
1071 2017-03-15  Florian Weimer  <fweimer@redhat.com>
1072
1073         * support/support_format_dns_packet.c (support_format_dns_packet):
1074         Handle CNAME records in the response.  Extract RDATA names from
1075         rdata, not the whole packet.  Check AAAA record length.
1076         * support/tst-support_format_dns_packet.c: New file.
1077         * support/Makefile (tests): Add tst-support_format_dns_packet.
1078         (tst-support_format_dns_packet): Link against libresolv.
1079
1080 2017-03-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1081
1082         [BZ #21232]
1083         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise64.c: Add
1084         posix_fadvise64 weak_alias for static build.
1085
1086 2017-03-14  Andreas Schwab  <schwab@suse.de>
1087
1088         * sysdeps/generic/dl-procinfo.h (_dl_platform_string): Remove.
1089         * sysdeps/alpha/dl-procinfo.h (_dl_platform_string): Remove.
1090         (_dl_string_platform): Use GLRO(dl_alpha_platforms) directly.
1091         * sysdeps/i386/dl-procinfo.h (_dl_platform_string): Remove.
1092         * sysdeps/mips/dl-procinfo.h (_dl_platform_string): Remove.
1093         (_dl_string_platform): Use GLRO(dl_mips_platforms) directly.
1094         * sysdeps/s390/dl-procinfo.h (_dl_platform_string): Remove.
1095         * sysdeps/sparc/dl-procinfo.h (_dl_platform_string): Remove.
1096
1097 2017-03-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1098
1099         * sysdeps/mach/hurd/send.c (__send): Convert hurdish error code into
1100         posix error code.
1101         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
1102
1103 2017-03-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1104
1105         * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
1106         no_isolate usage for SH.
1107
1108 2017-03-13  Wilco Dijkstra  <wdijkstr@arm.com>
1109
1110         [BZ #15105]
1111         [BZ #19463]
1112         * elf/dl-cache.c (_dl_load_cache_lookup): Use __strdup.
1113         * inet/rcmd.c (rcmd_af): Likewise.
1114         * inet/rexec.c   (rexec_af): Likewise.
1115         * intl/dcigettext.c (_LIBC): Likewise.
1116         * intl/finddomain.c (_nl_find_domain): Use strdup expansion.
1117         * locale/loadarchive.c (_nl_load_locale_from_archive): Use __strdup.
1118         * locale/setlocale.c (setlocale): Likewise.
1119         * posix/spawn_faction_addopen.c
1120         (posix_spawn_file_actions_addopen): Likewise.
1121         * stdlib/putenv.c (putenv): Use __strndup.
1122         * sunrpc/svc_simple.c (__registerrpc): Use __strdup.
1123         * sysdeps/posix/getaddrinfo.c (gaih_inet): Use __strdup/__strndup.
1124         * include/stdlib.h (__need_malloc_and_calloc): Remove uses.
1125         (__Need_M_And_C) Remove define/undef.
1126         * stdlib/stdlib.h (__need_malloc_and_calloc): Remove uses.
1127         (__malloc_and_calloc_defined): Remove define.
1128         * string/bits/string2.h (__strdup): Remove define.
1129         (strdup): Likewise.
1130         (__strndup): Likewise.
1131         (strndup): Likewise.
1132
1133 2017-03-13  Joseph Myers  <joseph@codesourcery.com>
1134
1135         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_AUTOFLOWLABEL): New
1136         macro.
1137         (IPV6_ADDR_PREFERENCES): Likewise.
1138         (IPV6_MINHOPCOUNT): Likewise.
1139         (IPV6_ORIGDSTADDR): Likewise.
1140         (IPV6_RECVORIGDSTADDR): Likewise.
1141         (IPV6_TRANSPARENT): Likewise.
1142         (IPV6_UNICAST_IF): Likewise.
1143         (IPV6_RECVFRAGSIZE): Likewise.
1144
1145 2017-03-13  Thorsten Kukuk  <kukuk@suse.com>
1146
1147         * sunrpc/Makefile: only run rpcgen tests if we build rpcgen.
1148
1149 2017-03-12  Alexey Neyman <stilor@att.net>
1150
1151         * sysdeps/sh/dl-machine.h (elf_machine_rela): The condition
1152         in R_SH_DIR32 case is always false when inlined from
1153         dl-conflict.c. Ifdef out to prevent GCC from insertin an
1154
1155 2016-03-12  Marko Myllynen  <myllynen@redhat.com>
1156
1157         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
1158         (__ASSUME_RECV_SYSCALL): Replace duplicate by
1159         __ASSUME_SEND_SYSCALL.
1160
1161 2017-03-11  Thorsten Kukuk  <kukuk@suse.com>
1162
1163         * sunrpc/Makefile: don't build and install rpcsvc header
1164         files, rpcgen and librpcsvc.a by default.
1165
1166 2017-03-10  Stefan Liebler  <stli@linux.vnet.ibm.com>
1167
1168         * math/auto-libm-test-out-catan: Regenerated.
1169         * math/auto-libm-test-out-catanh: Likewise.
1170         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
1171
1172 2017-03-09  Joseph Myers  <joseph@codesourcery.com>
1173
1174         * sysdeps/mips/mips64/libm-test-ulps: Update catan and catanh ulps
1175         for long double with corrected test expectations.
1176
1177 2016-03-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1178
1179         * sysdeps/unix/sysv/linux/sysdep.h (HAVE_INTERNAL_SEND_SYMBOL):
1180         Define.
1181         * sysdeps/unix/sysv/linux/aarch64/sysdep.h
1182         (HAVE_INTERNAL_SEND_SYMBOL): Undefine.
1183         * sysdeps/unix/sysv/linux/nios2/sysdep.h
1184         (HAVE_INTERNAL_SEND_SYMBOL): Likewise.
1185         * sysdeps/unix/sysv/linux/tile/sysdep.h
1186         (HAVE_INTERNAL_SEND_SYMBOL): Likewise.
1187         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
1188         (__ASSUME_RECV_SYSCALL): Define.
1189         * sysdeps/unix/sysv/linux/arm/kernel-features.h
1190         (__ASSUME_RECV_SYSCALL): Likewise.
1191         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
1192         (__ASSUME_RECV_SYSCALL): Likewise.
1193         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
1194         (__ASSUME_RECV_SYSCALL): Likewise.
1195         * sysdeps/unix/sysv/linux/mips/kernel-features.h
1196         (__ASSUME_RECV_SYSCALL): Likewise.
1197         * sysdeps/unix/sysv/linux/i386/kernel-features.h
1198         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Remove define.
1199         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
1200         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
1201         * sysdeps/unix/sysv/linux/s390/kernel-features.h
1202         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
1203         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove send from
1204         auto-generation list.
1205         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
1206         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
1207         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewike.
1208         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
1209         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1210         * sysdeps/unix/sysv/linux/send.c: Simplify includes.
1211         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Replace by
1212         __ASSUME_SENDTO_SYSCALL.
1213         * sysdeps/unix/sysv/linux/x86_64/send.c: Remove file.
1214         * sysdeps/unix/sysv/linux/mips/mips64/send.c: Likewise.
1215         * sysdeps/unix/sysv/linux/generic/send.c: Likewise.
1216
1217         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove sendto from
1218         auto-generation list.
1219         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
1220         * sysdeps/unix/sysv/linux/generic/syscalls.list: Likewise.
1221         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
1222         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1223         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
1224         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1225         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1226         * sysdeps/unix/sysv/linux/kernel-features.h
1227         (__ASSUME_SENDTO_SYSCALL): Define by default.
1228         * sysdeps/unix/sysv/linux/i386/kernel-features.h
1229         (__ASSUME_SENDTO_SYSCALL): Undef it is kernel does not support
1230         __NR_sendto.
1231         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
1232         (__ASSUME_SENDTO_SYSCALL): Likewise.
1233         * sysdeps/unix/sysv/linux/s390/kernel-features.h
1234         (__ASSUME_SENDTO_SYSCALL): Likewise.
1235         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
1236         (__ASSUME_SENDTO_SYSCALL): Remove definition.
1237         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
1238         (__ASSUME_SENDTO_SYSCALL): Likewise.
1239         * sysdeps/unix/sysv/linux/sh/kernel-features.h:
1240         (__ASSUME_SENDTO_SYSCALL): Likewise.
1241         * sysdeps/unix/sysv/linux/sendto.c: Simplify includes.
1242
1243         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove recv from
1244         auto-generation list.
1245         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
1246         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
1247         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1248         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
1249         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1250         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
1251         (__ASSUME_RECV_SYSCALL): New define.
1252         * sysdeps/unix/sysv/linux/arm/kernel-features.h
1253         (__ASSUME_RECV_SYSCALL): Likewise.
1254         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
1255         (__ASSUME_RECV_SYSCALL): Likewise.
1256         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
1257         (__ASSUME_RECV_SYSCALL): Likewise.
1258         * sysdeps/unix/sysv/linux/mips/kernel-features.h
1259         (__ASSUME_RECV_SYSCALL): Likewise.
1260         * sysdeps/unix/sysv/linux/i386/kernel-features.h
1261         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Remove define.
1262         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
1263         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Remove define.
1264         * sysdeps/unix/sysv/linux/s390/kernel-features.h
1265         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Remove define.
1266         * sysdeps/unix/sysv/linux/generic/recv.c: Remove file.
1267         * sysdeps/unix/sysv/linux/mips/mips64/recv.c: Likewise.
1268         * sysdeps/unix/sysv/linux/x86_64/recv.c: Likewise.
1269         * sysdeps/unix/sysv/linux/recv.c: Simplify includes.
1270         (__libc_recv): Use __ASSUME_RECVFROM_SYSCALL instead of
1271         __ASSUME_RECVFROM_FOR_RECV_SYSCALL to issue recvfrom syscall.
1272
1273         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove recvfrom from
1274         auto-generation list.
1275         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
1276         * sysdeps/unix/sysv/linux/generic/syscalls.list: Likewise.
1277         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
1278         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1279         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1280         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1281         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
1282         * sysdeps/unix/sysv/linux/i386/kernel-features.h
1283         (__ASSUME_RECVFROM_SYSCALL): Define by default.
1284         * sysdeps/unix/sysv/linux/kernel-features.h
1285         (__ASSUME_RECVFROM_SYSCALL): Undef it if kernel does not support
1286         __NR_recvfrom.
1287         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
1288         (__ASSUME_RECVFROM_SYSCALL): Likewise.
1289         * sysdeps/unix/sysv/linux/s390/kernel-features.h
1290         (__ASSUME_RECVFROM_SYSCALL): Likewise.
1291         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
1292         (__ASSUME_RECVFROM_SYSCALL): Remove definition.
1293         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
1294         (__ASSUME_RECVFROM_SYSCALL): Likewise.
1295         * sysdeps/unix/sysv/linux/sh/kernel-features.h
1296         (__ASSUME_RECVFROM_SYSCALL): Likewise.
1297         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
1298         (__ASSUME_RECVFROM_SYSCALL): Likewise.
1299         * sysdeps/unix/sysv/linux/recvfrom.c: Simplify includes.
1300
1301         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove connect from
1302         auto-generation list.
1303         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
1304         * sysdeps/unix/sysv/linux/generic/syscalls.list: Likewise.
1305         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1306         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1307         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
1308         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1309         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
1310         * sysdeps/unix/sysv/linux/connect.c: Simplify include list.
1311         * sysdeps/unix/sysv/linux/kernel-features.h
1312         (__ASSUME_CONNECT_SYSCALL): Define.
1313         * sysdeps/unix/sysv/linux/i386/kernel-features.h
1314         (__ASSUME_CONNECT_SYSCALL): Undef if kernel does not support it.
1315         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
1316         (__ASSUME_CONNECT_SYSCALL): Likewise.
1317         * sysdeps/unix/sysv/linux/s390/kernel-features.h
1318         (__ASSUME_CONNECT_SYSCALL): Likewise.
1319         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
1320         (__ASSUME_CONNECT_SYSCALL): Likewise.
1321
1322         * sysdeps/unix/sysv/linux/accept.c (__libc_accept): Replace
1323         __ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL by __ASSUME_ACCEPT4_SYSCALL.
1324         * sysdeps/unix/sysv/linux/alpha/syscalls.list?: Remove accept from
1325         auto-generation list.
1326         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
1327         * sysdeps/unix/sysv/linux/generic/syscalls.list: Likewise.
1328         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
1329         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1330         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
1331         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1332         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1333         * sysdeps/unix/sysv/linux/i386/kernel-features.h
1334         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Remove define.
1335         (__ASSUME_ACCEPT_SYSCALL): Undefine.
1336         * sysdeps/unix/sysv/linux/kernel-features.h
1337         (__ASSUME_ACCEPT_SYSCALL): New define.
1338         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
1339         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Remove define.
1340         (__ASSUME_ACCEPT_SYSCALL): Define wheter kernel version supports.
1341         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
1342         (__ASSUME_ACCEPT_SYSCALL): Define.
1343         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
1344         (__ASSUME_ACCEPT_SYSCALL): Undefine.
1345         * sysdeps/unix/sysv/linux/s390/kernel-features.h
1346         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Remove define.
1347         (__ASSUME_ACCEPT_SYSCALL): Undefine.
1348         * sysdeps/unix/sysv/linux/sh/kernel-features.h
1349         (__ASSUME_ACCEPT_SYSCALL): Undefine.
1350         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
1351         (__ASSUME_ACCEPT_SYSCALL): Undefine for 32 bits.
1352
1353 2017-03-08  Yury Norov <ynorov@caviumnetworks.com>
1354             Zack Weinberg  <zackw@panix.com>
1355
1356         * posix/test-errno.c: New file.
1357         * posix/Makefile (tests): Add test-errno.
1358         * sysdeps/unix/sysv/linux/test-errno.c: New file.
1359         * sysdeps/unix/sysv/linux/Makefile (tests): Add test-errno.
1360
1361 2017-03-08  Stefan Liebler  <stli@linux.vnet.ibm.com>
1362
1363         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
1364
1365 2017-03-07  Florian Weimer  <fweimer@redhat.com>
1366
1367         * time/tzset.c (compute_offset): Open-code min macro.
1368         (min, max, sign): Remove.
1369
1370 2017-03-07  Florian Weimer  <fweimer@redhat.com>
1371
1372         [BZ #15576]
1373         Remove TZNAME_MAX limit from sysconf.
1374         * include/time.h (__tzname_cur_max, __tzname_max): Remove
1375         declaration.
1376         * time/tzfile.c (__tzfile_read, __tzfile_default): Do not call
1377         compute_tzname_max.
1378         (compute_tzname_max): Remove.
1379         * time/tzset.c (__tzname_cur_max, __tzname_max): Remove.
1380         (update_vars): Do not update __tzname_cur_max.
1381         (tzset_internal): Remove argument.
1382         (__tzset): Adjust call to tzset_internal.
1383         (__tz_convert): Likewise.
1384
1385         * posix/sysconf.c (__sysconf): Return -1 for _SC_TZNAME_MAX.
1386         * sysdeps/posix/sysconf.c (__sysconf): Likewise.
1387         * manual/conf.texi (Sysconf Definition): Update comment.
1388
1389 2017-03-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
1390
1391         [BZ #21209]
1392         * elf/rtld.c (process_envvars): Ignore LD_HWCAP_MASK for
1393         AT_SECURE processes.
1394         * sysdeps/generic/unsecvars.h: Add LD_HWCAP_MASK.
1395         * elf/tst-env-setuid.c (test_parent): Test LD_HWCAP_MASK.
1396         (test_child): Likewise.
1397         * elf/Makefile (tst-env-setuid-ENV): Add LD_HWCAP_MASK.
1398
1399 2017-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1400
1401         * sysdeps/unix/sysv/linux/hppa/ipc_priv.h: New file.
1402
1403 2017-03-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
1404
1405         * sysdeps/s390/atomic-machine.h
1406         (USE_ATOMIC_COMPILER_BUILTINS): Define to 1.
1407         (__arch_compare_and_exchange_val_8_acq,
1408         __arch_compare_and_exchange_val_16_acq,
1409         __arch_compare_and_exchange_val_32_acq,
1410         __arch_compare_and_exchange_val_64_acq):
1411         Delete macro.
1412         (atomic_compare_and_exchange_val_acq,
1413         atomic_compare_and_exchange_val_rel,
1414         atomic_compare_and_exchange_bool_acq,
1415         catomic_compare_and_exchange_bool_acq,
1416         atomic_exchange_acq, atomic_exchange_rel,
1417         atomic_exchange_and_add_acq,
1418         atomic_exchange_and_add_rel,
1419         catomic_exchange_and_add, atomic_or_val,
1420         atomic_or, catomic_or, atomic_bit_test_set,
1421         atomic_and_val, atomic_and, catomic_and):
1422         Define macros with help of C11 atomic builtins.
1423
1424 2017-03-03  Justus Winter <justus@gnupg.org>
1425
1426         * sysdeps/mach/hurd/ftruncate64.c: New file.
1427         * sysdeps/mach/hurd/truncate64.c: Likewise.
1428
1429 2017-03-03  Florian Weimer  <fweimer@redhat.com>
1430
1431         * time/tzfile.c (NOID): Do not define.
1432         * time/tzset.c (NOID): Likewise.
1433
1434 2017-03-03  Florian Weimer  <fweimer@redhat.com>
1435
1436         * time/tzset.c (compute_offset): Remove __attribute_noinline__.
1437
1438 2017-03-02  Florian Weimer  <fweimer@redhat.com>
1439
1440         * elf/get-dynamic-info.h: Remove header file inclusion guard.
1441
1442 2017-03-02  Florian Weimer  <fweimer@redhat.com>
1443
1444         [BZ #21015]
1445         * manual/install.texi (Configuring and compiling): Document
1446         --enable-bind-now.
1447         * Makeconfig [bind-now] (LDFLAGS-lib.so): Set.
1448         (build-shlib-helper): Use $(LDFLAGS-lib.so).
1449         (format.lds): Likewise.
1450         [bind-now] (LDFLAGS-c.so): Remove.
1451         * sysdeps/x86_64/localplt.data (libm.so): matherr relocation can
1452         be R_X86_64_GLOB_DAT.
1453         * sysdeps/unix/sysv/linux/i386/localplt.data (libm.so): matherr
1454         relocation can be R_386_GLOB_DAT.
1455         * sysdeps/unix/sysv/linux/alpha/localplt.data (libm.so): matherr
1456         relocaiton can be R_ALPHA_GLOB_DAT.
1457         * iconvdata/Makefile [bind-now] (LDFLAGS.so): Add -Wl,-z,now.
1458
1459 2017-03-01  Zack Weinberg  <zackw@panix.com>
1460
1461         * include/libc-pointer-arith.h: New file.  Define
1462         cast_to_integer, ALIGN_UP, ALIGN_DOWN, PTR_ALIGN_UP, and
1463         PTR_ALIGN_DOWN here.
1464         * include/libc-internal.h: Definitions of above macros
1465         moved from here.  Don't include libc-diag.h anymore either.
1466         * posix/wordexp-test.c: Include stdint.h and libc-pointer-arith.h.
1467         Don't include libc-internal.h.
1468
1469         * debug/pcprofile.c, elf/dl-tunables.c, elf/soinit.c, io/openat.c
1470         * io/openat64.c, misc/ptrace.c, nptl/pthread_clock_gettime.c
1471         * nptl/pthread_clock_settime.c, nptl/pthread_cond_common.c
1472         * string/strcoll_l.c, sysdeps/nacl/brk.c
1473         * sysdeps/unix/clock_settime.c
1474         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c
1475         * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c
1476         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
1477         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c:
1478         Don't include libc-internal.h.
1479
1480         * elf/get-dynamic-info.h, iconv/loop.c
1481         * iconvdata/iso-2022-cn-ext.c, locale/weight.h, locale/weightwc.h
1482         * misc/reboot.c, nis/nis_table.c, nptl_db/thread_dbP.h
1483         * nscd/connections.c, resolv/res_send.c, soft-fp/fmadf4.c
1484         * soft-fp/fmasf4.c, soft-fp/fmatf4.c, stdio-common/vfscanf.c
1485         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
1486         * sysdeps/ieee754/dbl-64/k_rem_pio2.c
1487         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
1488         * sysdeps/ieee754/flt-32/k_rem_pio2f.c
1489         * sysdeps/ieee754/ldbl-128/k_tanl.c
1490         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c
1491         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c
1492         * sysdeps/ieee754/ldbl-96/k_tanl.c, sysdeps/nptl/futex-internal.h:
1493         Include libc-diag.h instead of libc-internal.h.
1494
1495         * elf/dl-load.c, elf/dl-reloc.c, locale/programs/locarchive.c
1496         * nptl/nptl-init.c, string/strcspn.c, string/strspn.c
1497         * malloc/malloc.c, sysdeps/i386/nptl/tls.h
1498         * sysdeps/nacl/dl-map-segments.h, sysdeps/x86_64/atomic-machine.h
1499         * sysdeps/unix/sysv/linux/spawni.c
1500         * sysdeps/x86_64/nptl/tls.h:
1501         Include libc-pointer-arith.h instead of libc-internal.h.
1502
1503         * elf/get-dynamic-info.h, sysdeps/nacl/dl-map-segments.h
1504         * sysdeps/x86_64/atomic-machine.h:
1505         Add multiple include guard.
1506
1507         * nss/tst-cancel-getpwuid_r.c: Include nss.h.
1508         * string/strcasestr.c: No need to include config.h.
1509         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
1510         sys/auxv.h. Don't include sysdep.h.
1511         * sysdeps/powerpc/tst-set_ppr.c: Don't include dl-procinfo.h.
1512
1513         * dlfcn/tst-dladdr.c: Don't include ldsodefs.h.  Don't use
1514         DL_LOOKUP_ADDRESS.
1515         * math/test-misc.c: Instead of testing NO_LONG_DOUBLE, test whether
1516         LDBL_MANT_DIG is greater than DBL_MANT_DIG.
1517         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Use
1518         sysconf (_SC_PAGESIZE) instead of __getpagesize in definition
1519         of ARTIFICIAL_LIMIT.
1520         * sysdeps/unix/sysv/linux/tst-clone.c [__ia64__]: Add extern
1521         declaration of __clone2.
1522
1523 2017-02-28  Florian Weimer  <fweimer@redhat.com>
1524
1525         * scripts/backport-support.sh (latest_commit): New file.
1526
1527 2017-02-28  Florian Weimer  <fweimer@redhat.com>
1528
1529         [BZ #20257]
1530         * inet/Makefile (routines): Add deadline.
1531         (tests-static): Add tst-deadline.
1532         * inet/net-internal.h (struct deadline_current_time)
1533         (__deadline_current_time, struct deadline, __deadline_is_infinite)
1534         (__deadline_elapsed, __deadline_first, __deadline_from_timeval)
1535         (__deadline_to_ms, __is_timeval_valid_timeout): Declare.
1536         * inet/deadline.c: New file.
1537         * inet/tst-deadline.c: Likewise.
1538         * sunrpc/Makefile (tests): Add tst-udp-nonblocking,
1539         tst-udp-timeout, tst-udp-garbage.
1540         (tst-udp-nonblocking, tst-udp-timeout): Link against libc.so
1541         explicitly.
1542         (tst-udp-garbage): Likewise.  Also link against thread library.
1543         * sunrpc/clnt_udp.c (struct cu_data): Mention in comment that the
1544         struct layout is part of the ABI.
1545         (clntudp_call): Rework timeout handling.
1546         * sunrpc/tst-udp-garbage.c: New file.
1547         * sunrpc/tst-udp-nonblocking.c: Likewise.
1548         * sunrpc/tst-udp-timeout.c: Likewise.
1549
1550 2017-02-28  Florian Weimer  <fweimer@redhat.com>
1551
1552         [BZ #5010]
1553         * sunrpc/svc.c (svc_is_mapped): Remove.
1554         (svc_unregister): Obtain mapped status while the service is still
1555         registered.
1556         * sunrpc/Makefile [have-thread-library] (tests): Add
1557         tst-svc_register.
1558         (tst-svc_register): Link against libc.so explicitly and the thread
1559         library.
1560         * sunrpc/tst-svc_register.c: New file.
1561
1562 2017-02-28  Andreas Schwab  <schwab@linux-m68k.org>
1563
1564         * bits/sigthread.h: Refer to <signal.h>, not <pthread.h>.
1565         * sysdeps/pthread/bits/sigthread.h: Likewise.
1566
1567 2017-02-27  Florian Weimer  <fweimer@redhat.com>
1568
1569         [BZ #21115]
1570         * sunrpc/clnt_udp.c (clntudp_call): Free ancillary data later.
1571         * sunrpc/Makefile (tests): Add tst-udp-error.
1572         (tst-udp-error): Link against libc.so explicitly.
1573         * sunrpc/tst-udp-error: New file.
1574
1575 2017-02-25  Zack Weinberg  <zackw@panix.com>
1576
1577         * sysdeps/generic/math_private.h: Use __BIG_ENDIAN and
1578         __LITTLE_ENDIAN, not BIG_ENDIAN and LITTLE_ENDIAN.
1579
1580         * sysdeps/generic/math_ldbl.h
1581         * sysdeps/ia64/fpu/math_ldbl.h
1582         * sysdeps/ieee754/ldbl-128/math_ldbl.h
1583         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
1584         * sysdeps/ieee754/ldbl-96/math_ldbl.h
1585         * sysdeps/powerpc/fpu/math_ldbl.h
1586         * sysdeps/x86_64/fpu/math_ldbl.h:
1587         Allow direct inclusion.  Use uintNN_t instead of u_intNN_t.
1588         Use __BIG_ENDIAN and __LITTLE_ENDIAN, not BIG_ENDIAN and
1589         LITTLE_ENDIAN.  Include endian.h and/or stdint.h if necessary.
1590         Add copyright notices.
1591
1592         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_canonicalize_int):
1593         Don't use EXTRACT_WORDS64.
1594
1595         * sysdeps/ieee754/ldbl-96/test-canonical-ldbl-96.c
1596         * sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c
1597         * sysdeps/ieee754/ldbl-128ibm/test-canonical-ldbl-128ibm.c
1598         * sysdeps/ieee754/ldbl-128ibm/test-totalorderl-ldbl-128ibm.c:
1599         Include math_ldbl.h, not math_private.h.
1600
1601 2017-02-25  Zack Weinberg  <zackw@panix.com>
1602
1603         * include/libc-diag.h: New file.  Define ignore_value,
1604         DIAG_PUSH_NEEDS_COMMENT, DIAG_POP_NEEDS_COMMENT,
1605         DIAG_IGNORE_NEEDS_COMMENT, and DIAG_IGNORE_Os_NEEDS_COMMENT here.
1606
1607         * include/libc-internal.h: Definitions of above macros moved from
1608         here.  Include libc-diag.h.  Add copyright notice.
1609
1610         * malloc/tst-malloc.c, malloc/tst-memcheck.c, malloc/tst-realloc.c
1611         * misc/tst-error1.c, posix/tst-dir.c, stdio-common/bug21.c
1612         * stdio-common/scanf14.c, stdio-common/scanf4.c, stdio-common/scanf7.c
1613         * stdio-common/test-vfprintf.c, stdio-common/tst-printf.c
1614         * stdio-common/tst-printfsz.c, stdio-common/tst-sprintf.c
1615         * stdio-common/tst-unlockedio.c, stdio-common/tstdiomisc.c
1616         * stdlib/bug-getcontext.c, string/tester.c, string/tst-endian.c
1617         * time/tst-strptime2.c, wcsmbs/tst-wcstof.c:
1618         Include libc-diag.h instead of libc-internal.h.
1619
1620         * stdlib/tst-environ.c: Include libc-diag.h.  Suppress -Wnonnull for
1621         call to unsetenv (NULL).
1622         * nptl/tst-mutex1.c: Include libc-diag.h.  Suppress -Wnonnull for
1623         call to pthread_mutexattr_destroy (NULL).
1624
1625 2017-02-25  Zack Weinberg  <zackw@panix.com>
1626
1627         * include/features.h (__GLIBC_USE_DEPRECATED_GETS): New macro.
1628         * libio/stdio.h, libio/bits/stdio2.h: Condition gets on
1629         __GLIBC_USE (DEPRECATED_GETS).  Update comments to indicate
1630         gets was removed from C++ in C++14.
1631         * include/stdio.h: Remove redundant declaration of gets.
1632         * debug/tst-chk1.c, stdio-common/tst-gets.c: Force gets to
1633         be declared, since we are testing it.
1634         * stdio-common/Makefile (tst-gets.c): Compile with
1635         -Wno-deprecated-declarations.
1636         * debug/Makefile (tst-chk1.c, tst-chk2.c, tst-chk3.c, tst-chk4.cc)
1637         (tst-chk5.cc, tst-chk6.cc, tst-lfschk1.c, tst-lfschk2.c)
1638         (tst-lfschk3.c, tst-lfschk4.cc, tst-lfschk5.cc, tst-lfschk6.cc):
1639         Compile with -Wno-deprecated-declarations.
1640
1641 2017-02-24  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1642
1643         * math/libm-test-support.c (check_ulp): Use LIT() around literal
1644         numbers.
1645
1646 2017-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
1647
1648         * resolv/tst-resolv-qtypes.c (domain):
1649         Change type to const pointer to const char.
1650
1651 2017-02-24  Joseph Myers  <joseph@codesourcery.com>
1652
1653         * math/Makefile (libm-tests-generated): Remove variable.
1654         (libm-tests-base-normal): New variable.
1655         (libm-tests-base-finite): Likewise.
1656         (libm-tests-base-inline): Likewise.
1657         (libm-tests-base): Likewise.
1658         (libm-tests-normal): Likewise.
1659         (libm-tests-finite): Likewise.
1660         (libm-tests-inline): Likewise.
1661         (libm-tests-vector): Likewise.
1662         (libm-tests): Define in terms of these new variables.
1663         (libm-tests-for-type): New variable.
1664         (libm-tests.o): Move definition.
1665         (tests): Move addition of $(libm-tests).
1666         (generated): Update for new and removed libm test files.
1667         ($(objpfx)libm-test.c): Remove target.
1668         ($(objpfx)libm-have-vector-test.h): Likewise.
1669         (CFLAGS-test-double-vlen2.c): Remove variable.
1670         (CFLAGS-test-double-vlen4.c): Likewise.
1671         (CFLAGS-test-double-vlen8.c): Likewise.
1672         (CFLAGS-test-float-vlen4.c): Likewise.
1673         (CFLAGS-test-float-vlen8.c): Likewise.
1674         (CFLAGS-test-float-vlen16.c): Likewise.
1675         (CFLAGS-test-float.c): Likewise.
1676         (CFLAGS-test-float-finite.c): Likewise.
1677         (CFLAGS-libm-test-support-float.c): Likewise.
1678         (CFLAGS-test-double.c): Likewise.
1679         (CFLAGS-test-double-finite.c): Likewise.
1680         (CFLAGS-libm-test-support-double.c): Likewise.
1681         (CFLAGS-test-ldouble.c): Likewise.
1682         (CFLAGS-test-ldouble-finite.c): Likewise.
1683         (CFLAGS-libm-test-support-ldouble.c): Likewise.
1684         (libm-test-inline-cflags): New variable.
1685         (CFLAGS-test-ifloat.c): Remove variable.
1686         (CFLAGS-test-idouble.c): Likewise.
1687         (CFLAGS-test-ildouble.c): Likewise.
1688         ($(addprefix $(objpfx), $(libm-tests.o))): Move target and update
1689         dependencies.
1690         ($(foreach t,$(libm-tests-normal),$(objpfx)$(t).c)): New rule.
1691         ($(foreach t,$(libm-tests-finite),$(objpfx)$(t).c)): Likewise.
1692         ($(foreach t,$(libm-tests-inline),$(objpfx)$(t).c)): Likewise.
1693         ($(foreach t,$(libm-tests-vector),$(objpfx)$(t).c)): Likewise.
1694         ($(foreach t,$(types),$(objpfx)libm-test-support-$(t).c)):
1695         Likewise.
1696         (dependencies on libm-test-support-*.o): Remove.
1697         ($(foreach f,$(libm-test-funcs-all),$(objpfx)$(o)-$(f).o)): New
1698         rules using iterators.
1699         ($(addprefix $(objpfx),$(call libm-tests-for-type,$(o)))):
1700         Likewise.
1701         ($(objpfx)libm-test-support-$(o).o): Likewise.
1702         ($(addprefix $(objpfx),$(filter-out $(tests-static)
1703         $(libm-vec-tests),$(tests)))): Filter out $(libm-tests-vector)
1704         instead.
1705         ($(addprefix $(objpfx), $(libm-vec-tests))): Use iterator to
1706         define rule instead.
1707         * math/README.libm-test: Update.
1708         * math/libm-test-acos.inc: Include libm-test-driver.c.
1709         (do_test): New function.
1710         * math/libm-test-acosh.inc: Include libm-test-driver.c.
1711         (do_test): New function.
1712         * math/libm-test-asin.inc: Include libm-test-driver.c.
1713         (do_test): New function.
1714         * math/libm-test-asinh.inc: Include libm-test-driver.c.
1715         (do_test): New function.
1716         * math/libm-test-atan.inc: Include libm-test-driver.c.
1717         (do_test): New function.
1718         * math/libm-test-atan2.inc: Include libm-test-driver.c.
1719         (do_test): New function.
1720         * math/libm-test-atanh.inc: Include libm-test-driver.c.
1721         (do_test): New function.
1722         * math/libm-test-cabs.inc: Include libm-test-driver.c.
1723         (do_test): New function.
1724         * math/libm-test-cacos.inc: Include libm-test-driver.c.
1725         (do_test): New function.
1726         * math/libm-test-cacosh.inc: Include libm-test-driver.c.
1727         (do_test): New function.
1728         * math/libm-test-canonicalize.inc: Include libm-test-driver.c.
1729         (do_test): New function.
1730         * math/libm-test-carg.inc: Include libm-test-driver.c.
1731         (do_test): New function.
1732         * math/libm-test-casin.inc: Include libm-test-driver.c.
1733         (do_test): New function.
1734         * math/libm-test-casinh.inc: Include libm-test-driver.c.
1735         (do_test): New function.
1736         * math/libm-test-catan.inc: Include libm-test-driver.c.
1737         (do_test): New function.
1738         * math/libm-test-catanh.inc: Include libm-test-driver.c.
1739         (do_test): New function.
1740         * math/libm-test-cbrt.inc: Include libm-test-driver.c.
1741         (do_test): New function.
1742         * math/libm-test-ccos.inc: Include libm-test-driver.c.
1743         (do_test): New function.
1744         * math/libm-test-ccosh.inc: Include libm-test-driver.c.
1745         (do_test): New function.
1746         * math/libm-test-ceil.inc: Include libm-test-driver.c.
1747         (do_test): New function.
1748         * math/libm-test-cexp.inc: Include libm-test-driver.c.
1749         (do_test): New function.
1750         * math/libm-test-cimag.inc: Include libm-test-driver.c.
1751         (do_test): New function.
1752         * math/libm-test-clog.inc: Include libm-test-driver.c.
1753         (do_test): New function.
1754         * math/libm-test-clog10.inc: Include libm-test-driver.c.
1755         (do_test): New function.
1756         * math/libm-test-conj.inc: Include libm-test-driver.c.
1757         (do_test): New function.
1758         * math/libm-test-copysign.inc: Include libm-test-driver.c.
1759         (do_test): New function.
1760         * math/libm-test-cos.inc: Include libm-test-driver.c.
1761         (do_test): New function.
1762         * math/libm-test-cosh.inc: Include libm-test-driver.c.
1763         (do_test): New function.
1764         * math/libm-test-cpow.inc: Include libm-test-driver.c.
1765         (do_test): New function.
1766         * math/libm-test-cproj.inc: Include libm-test-driver.c.
1767         (do_test): New function.
1768         * math/libm-test-creal.inc: Include libm-test-driver.c.
1769         (do_test): New function.
1770         * math/libm-test-csin.inc: Include libm-test-driver.c.
1771         (do_test): New function.
1772         * math/libm-test-csinh.inc: Include libm-test-driver.c.
1773         (do_test): New function.
1774         * math/libm-test-csqrt.inc: Include libm-test-driver.c.
1775         (do_test): New function.
1776         * math/libm-test-ctan.inc: Include libm-test-driver.c.
1777         (do_test): New function.
1778         * math/libm-test-ctanh.inc: Include libm-test-driver.c.
1779         (do_test): New function.
1780         * math/libm-test-erf.inc: Include libm-test-driver.c.
1781         (do_test): New function.
1782         * math/libm-test-erfc.inc: Include libm-test-driver.c.
1783         (do_test): New function.
1784         * math/libm-test-exp.inc: Include libm-test-driver.c.
1785         (do_test): New function.
1786         * math/libm-test-exp10.inc: Include libm-test-driver.c.
1787         (do_test): New function.
1788         * math/libm-test-exp2.inc: Include libm-test-driver.c.
1789         (do_test): New function.
1790         * math/libm-test-expm1.inc: Include libm-test-driver.c.
1791         (do_test): New function.
1792         * math/libm-test-fabs.inc: Include libm-test-driver.c.
1793         (do_test): New function.
1794         * math/libm-test-fdim.inc: Include libm-test-driver.c.
1795         (do_test): New function.
1796         * math/libm-test-floor.inc: Include libm-test-driver.c.
1797         (do_test): New function.
1798         * math/libm-test-fma.inc: Include libm-test-driver.c.
1799         (do_test): New function.
1800         * math/libm-test-fmax.inc: Include libm-test-driver.c.
1801         (do_test): New function.
1802         * math/libm-test-fmaxmag.inc: Include libm-test-driver.c.
1803         (do_test): New function.
1804         * math/libm-test-fmin.inc: Include libm-test-driver.c.
1805         (do_test): New function.
1806         * math/libm-test-fminmag.inc: Include libm-test-driver.c.
1807         (do_test): New function.
1808         * math/libm-test-fmod.inc: Include libm-test-driver.c.
1809         (do_test): New function.
1810         * math/libm-test-fpclassify.inc: Include libm-test-driver.c.
1811         (do_test): New function.
1812         * math/libm-test-frexp.inc: Include libm-test-driver.c.
1813         (do_test): New function.
1814         * math/libm-test-fromfp.inc: Include libm-test-driver.c.
1815         (do_test): New function.
1816         * math/libm-test-fromfpx.inc: Include libm-test-driver.c.
1817         (do_test): New function.
1818         * math/libm-test-getpayload.inc: Include libm-test-driver.c.
1819         (do_test): New function.
1820         * math/libm-test-hypot.inc: Include libm-test-driver.c.
1821         (do_test): New function.
1822         * math/libm-test-ilogb.inc: Include libm-test-driver.c.
1823         (do_test): New function.
1824         * math/libm-test-iscanonical.inc: Include libm-test-driver.c.
1825         (do_test): New function.
1826         * math/libm-test-iseqsig.inc: Include libm-test-driver.c.
1827         (do_test): New function.
1828         * math/libm-test-isfinite.inc: Include libm-test-driver.c.
1829         (do_test): New function.
1830         * math/libm-test-isgreater.inc: Include libm-test-driver.c.
1831         (do_test): New function.
1832         * math/libm-test-isgreaterequal.inc: Include libm-test-driver.c.
1833         (do_test): New function.
1834         * math/libm-test-isinf.inc: Include libm-test-driver.c.
1835         (do_test): New function.
1836         * math/libm-test-isless.inc: Include libm-test-driver.c.
1837         (do_test): New function.
1838         * math/libm-test-islessequal.inc: Include libm-test-driver.c.
1839         (do_test): New function.
1840         * math/libm-test-islessgreater.inc: Include libm-test-driver.c.
1841         (do_test): New function.
1842         * math/libm-test-isnan.inc: Include libm-test-driver.c.
1843         (do_test): New function.
1844         * math/libm-test-isnormal.inc: Include libm-test-driver.c.
1845         (do_test): New function.
1846         * math/libm-test-issignaling.inc: Include libm-test-driver.c.
1847         (do_test): New function.
1848         * math/libm-test-issubnormal.inc: Include libm-test-driver.c.
1849         (do_test): New function.
1850         * math/libm-test-isunordered.inc: Include libm-test-driver.c.
1851         (do_test): New function.
1852         * math/libm-test-iszero.inc: Include libm-test-driver.c.
1853         (do_test): New function.
1854         * math/libm-test-j0.inc: Include libm-test-driver.c.
1855         (do_test): New function.
1856         * math/libm-test-j1.inc: Include libm-test-driver.c.
1857         (do_test): New function.
1858         * math/libm-test-jn.inc: Include libm-test-driver.c.
1859         (do_test): New function.
1860         * math/libm-test-lgamma.inc: Include libm-test-driver.c.
1861         (do_test): New function.
1862         * math/libm-test-llogb.inc: Include libm-test-driver.c.
1863         (do_test): New function.
1864         * math/libm-test-llrint.inc: Include libm-test-driver.c.
1865         (do_test): New function.
1866         * math/libm-test-llround.inc: Include libm-test-driver.c.
1867         (do_test): New function.
1868         * math/libm-test-log.inc: Include libm-test-driver.c.
1869         (do_test): New function.
1870         * math/libm-test-log10.inc: Include libm-test-driver.c.
1871         (do_test): New function.
1872         * math/libm-test-log1p.inc: Include libm-test-driver.c.
1873         (do_test): New function.
1874         * math/libm-test-log2.inc: Include libm-test-driver.c.
1875         (do_test): New function.
1876         * math/libm-test-logb.inc: Include libm-test-driver.c.
1877         (do_test): New function.
1878         * math/libm-test-lrint.inc: Include libm-test-driver.c.
1879         (do_test): New function.
1880         * math/libm-test-lround.inc: Include libm-test-driver.c.
1881         (do_test): New function.
1882         * math/libm-test-modf.inc: Include libm-test-driver.c.
1883         (do_test): New function.
1884         * math/libm-test-nearbyint.inc: Include libm-test-driver.c.
1885         (do_test): New function.
1886         * math/libm-test-nextafter.inc: Include libm-test-driver.c.
1887         (do_test): New function.
1888         * math/libm-test-nextdown.inc: Include libm-test-driver.c.
1889         (do_test): New function.
1890         * math/libm-test-nexttoward.inc: Include libm-test-driver.c.
1891         (do_test): New function.
1892         * math/libm-test-nextup.inc: Include libm-test-driver.c.
1893         (do_test): New function.
1894         * math/libm-test-pow.inc: Include libm-test-driver.c.
1895         (do_test): New function.
1896         * math/libm-test-remainder.inc: Include libm-test-driver.c.
1897         (do_test): New function.
1898         * math/libm-test-remquo.inc: Include libm-test-driver.c.
1899         (do_test): New function.
1900         * math/libm-test-rint.inc: Include libm-test-driver.c.
1901         (do_test): New function.
1902         * math/libm-test-round.inc: Include libm-test-driver.c.
1903         (do_test): New function.
1904         * math/libm-test-roundeven.inc: Include libm-test-driver.c.
1905         (do_test): New function.
1906         * math/libm-test-scalb.inc: Include libm-test-driver.c.
1907         (do_test): New function.
1908         * math/libm-test-scalbln.inc: Include libm-test-driver.c.
1909         (do_test): New function.
1910         * math/libm-test-scalbn.inc: Include libm-test-driver.c.
1911         (do_test): New function.
1912         * math/libm-test-setpayload.inc: Include libm-test-driver.c.
1913         (do_test): New function.
1914         * math/libm-test-setpayloadsig.inc: Include libm-test-driver.c.
1915         (do_test): New function.
1916         * math/libm-test-signbit.inc: Include libm-test-driver.c.
1917         (do_test): New function.
1918         * math/libm-test-significand.inc: Include libm-test-driver.c.
1919         (do_test): New function.
1920         * math/libm-test-sin.inc: Include libm-test-driver.c.
1921         (do_test): New function.
1922         * math/libm-test-sincos.inc: Include libm-test-driver.c.
1923         (do_test): New function.
1924         * math/libm-test-sinh.inc: Include libm-test-driver.c.
1925         (do_test): New function.
1926         * math/libm-test-sqrt.inc: Include libm-test-driver.c.
1927         (do_test): New function.
1928         * math/libm-test-tan.inc: Include libm-test-driver.c.
1929         (do_test): New function.
1930         * math/libm-test-tanh.inc: Include libm-test-driver.c.
1931         (do_test): New function.
1932         * math/libm-test-tgamma.inc: Include libm-test-driver.c.
1933         (do_test): New function.
1934         * math/libm-test-totalorder.inc: Include libm-test-driver.c.
1935         (do_test): New function.
1936         * math/libm-test-totalordermag.inc: Include libm-test-driver.c.
1937         (do_test): New function.
1938         * math/libm-test-trunc.inc: Include libm-test-driver.c.
1939         (do_test): New function.
1940         * math/libm-test-ufromfp.inc: Include libm-test-driver.c.
1941         (do_test): New function.
1942         * math/libm-test-ufromfpx.inc: Include libm-test-driver.c.
1943         (do_test): New function.
1944         * math/libm-test-y0.inc: Include libm-test-driver.c.
1945         (do_test): New function.
1946         * math/libm-test-y1.inc: Include libm-test-driver.c.
1947         (do_test): New function.
1948         * math/libm-test-yn.inc: Include libm-test-driver.c.
1949         (do_test): New function.
1950         * math/libm-test-driver.c: Do not include libm-have-vector-test.h.
1951         (HAVE_VECTOR): Remove macro.
1952         (START): Do not call HAVE_VECTOR.
1953         * math/test-double-vlen2.h (FUNC_TEST): Remove macro.
1954         * math/test-double-vlen4.h (FUNC_TEST): Remove macro.
1955         * math/test-double-vlen8.h (FUNC_TEST): Remove macro.
1956         * math/test-float-vlen16.h (FUNC_TEST): Remove macro.
1957         * math/test-float-vlen4.h (FUNC_TEST): Remove macro.
1958         * math/test-float-vlen8.h (FUNC_TEST): Remove macro.
1959         * math/test-math-vector.h (FUNC_TEST): New macro.
1960         (WRAPPER_DECL): Rename to WRAPPER_DECL_f.
1961         * sysdeps/x86_64/fpu/Makefile (double-vlen2-funcs): New variable.
1962         (double-vlen4-funcs): Likewise.
1963         (double-vlen4-avx2-funcs): Likewise.
1964         (double-vlen8-funcs): Likewise.
1965         (float-vlen4-funcs): Likewise.
1966         (float-vlen8-funcs): Likewise.
1967         (float-vlen8-avx2-funcs): Likewise.
1968         (float-vlen16-funcs): Likewise.
1969         (CFLAGS-test-double-vlen4-avx2.c): Remove variable.
1970         (CFLAGS-test-float-vlen8-avx2.c): Likewise.
1971         * sysdeps/x86_64/fpu/test-double-vlen4.h (TEST_VECTOR_cos): Remove
1972         macro.
1973         (TEST_VECTOR_sin): Likewise.
1974         (TEST_VECTOR_sincos): Likewise.
1975         (TEST_VECTOR_log): Likewise.
1976         (TEST_VECTOR_exp): Likewise.
1977         (TEST_VECTOR_pow): Likewise.
1978         * sysdeps/x86_64/fpu/test-double-vlen8.h (TEST_VECTOR_cos):
1979         Likewise.
1980         (TEST_VECTOR_sin): Likewise.
1981         (TEST_VECTOR_sincos): Likewise.
1982         (TEST_VECTOR_log): Likewise.
1983         (TEST_VECTOR_exp): Likewise.
1984         (TEST_VECTOR_pow): Likewise.
1985         * sysdeps/x86_64/fpu/test-float-vlen16.h (TEST_VECTOR_cosf):
1986         Likewise.
1987         (TEST_VECTOR_sinf): Likewise.
1988         (TEST_VECTOR_sincosf): Likewise.
1989         (TEST_VECTOR_logf): Likewise.
1990         (TEST_VECTOR_expf): Likewise.
1991         (TEST_VECTOR_powf): Likewise.
1992         * sysdeps/x86_64/fpu/test-float-vlen8.h (TEST_VECTOR_cosf):
1993         Likewise.
1994         (TEST_VECTOR_sinf): Likewise.
1995         (TEST_VECTOR_sincosf): Likewise.
1996         (TEST_VECTOR_logf): Likewise.
1997         (TEST_VECTOR_expf): Likewise.
1998         (TEST_VECTOR_powf): Likewise.
1999         * math/gen-libm-have-vector-test.sh: Remove file.
2000         * math/libm-test.inc: Likewise.
2001         * math/libm-test-support-double.c: Likewise.
2002         * math/libm-test-support-float.c: Likewise.
2003         * math/libm-test-support-ldouble.c: Likewise.
2004         * math/test-double-finite.c: Likewise.: Likewise.
2005         * math/test-double.c: Likewise.
2006         * math/test-float-finite.c: Likewise.
2007         * math/test-float.c: Likewise.
2008         * math/test-idouble.c: Likewise.
2009         * math/test-ifloat.c: Likewise.
2010         * math/test-ildouble.c: Likewise.
2011         * math/test-ldouble-finite.c: Likewise.
2012         * math/test-ldouble.c: Likewise.
2013         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
2014         * sysdeps/x86_64/fpu/test-double-vlen2.h: Likewise.
2015         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
2016         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
2017         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
2018         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
2019         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
2020         * sysdeps/x86_64/fpu/test-float-vlen4.h: Likewise.
2021         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
2022         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
2023
2024 2017-02-23 Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2025            Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2026
2027         * math/Makefile: Add wrappers to gen-libm-calls.
2028         * math/w_acos_template.c: New file.
2029         * math/w_acosh_template.c: Likewise.
2030         * math/w_asin_template.c: Likewise.
2031         * math/w_atan2_template.c: Likewise.
2032         * math/w_atanh_template.c: Likewise.
2033         * math/w_cosh_template.c: Likewise.
2034         * math/w_exp10_template.c: Likewise.
2035         * math/w_exp2_template.c: Likewise.
2036         * math/w_exp_template.c: Likewise.
2037         * math/w_fmod_template.c: Likewise.
2038         * math/w_hypot_template.c: Likewise.
2039         * math/w_j0_template.c: Likewise.
2040         * math/w_j1_template.c: Likewise.
2041         * math/w_jn_template.c: Likewise.
2042         * math/w_lgamma_r_template.c: Likewise.
2043         * math/w_lgamma_template.c: Likewise.
2044         * math/w_log10_template.c: Likewise.
2045         * math/w_log2_template.c: Likewise.
2046         * math/w_log_template.c: Likewise.
2047         * math/w_pow_template.c: Likewise.
2048         * math/w_remainder_template.c: Likewise.
2049         * math/w_sinh_template.c: Likewise.
2050         * math/w_sqrt_template.c: Likewise.
2051         * math/w_tgamma_template.c: Likewise.: Likewise.
2052         * sysdeps/generic/math-type-macros-double.h
2053         (__USE_WRAPPER_TEMPLATE): New macro to control inclusion of
2054         the new wrappers.
2055         * sysdeps/generic/math-type-macros-float.h: Likewise.
2056         * sysdeps/generic/math-type-macros-ldouble.h: Likewise.
2057
2058 2017-02-22  Joseph Myers  <joseph@codesourcery.com>
2059
2060         * sysdeps/unix/sysv/linux/sys/timerfd.h (TFD_TIMER_CANCEL_ON_SET):
2061         New enum constant and macro.
2062
2063         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
2064         kernel version to 4.10.
2065
2066 2017-02-21  Joseph Myers  <joseph@codesourcery.com>
2067
2068         * sysdeps/unix/sysv/linux/bits/in.h (IP_RECVFRAGSIZE): New macro.
2069
2070 2017-02-21  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2071
2072         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2073
2074 2017-02-21  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
2075
2076         * sysdeps/powerpc/tst-set_ppr.c: New file.
2077         Implement test cases for __ppc_set_ppr_* functions.
2078         * sysdeps/powerpc/Makefile ($(subdir),misc): Add tst-set_ppr
2079         in the list of tests.
2080
2081 2017-02-21  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
2082
2083         * sysdeps/powerpc/test-get_hwcap.c: Use <support/test-driver.c>
2084         instead of test-skeleton.c.
2085         (do_test): Replaced pthread_create and pthread_join with
2086         xpthread_create and xpthread_join.  Use TEST_VERIFY_EXIT macro.
2087         Removed unneeded status variable.
2088         * sysdeps/powerpc/test-gettimebase.c: Use <support/test-driver.c>
2089         instead of test-skeleton.c.
2090         * sysdeps/powerpc/tst-tlsopt-powerpc.c: Likewise.
2091
2092 2017-02-20  Mike FABIAN  <mfabian@redhat.com>
2093
2094         [BZ #20313]
2095         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
2096         201605L, for Unicode 9.
2097
2098 2017-02-20  Joseph Myers  <joseph@codesourcery.com>
2099
2100         * math/libm-test-support.h (EXCEPTIONS_OK): Remove macro.
2101         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
2102         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
2103         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
2104         (UNDERFLOW_EXCEPTION_OK_DOUBLE): Likewise.
2105         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
2106
2107 2017-02-19  Zack Weinberg  <zackw@panix.com>
2108
2109         * rt/tst-mqueue4.c: Include stdint.h.
2110
2111 2017-02-17  Joseph Myers  <joseph@codesourcery.com>
2112
2113         * sysdeps/arm/libm-test-ulps: Update.
2114         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
2115         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
2116         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
2117
2118 2017-01-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2119
2120         [BZ #21029]
2121         * config.h.in [CAN_USE_REGISTER_ASM_EBP]: New define.
2122         * sysdeps/unix/sysv/linux/i386/Makefile
2123         [$(subdir) = elf] (sysdep-dl-routines): Add libc-do-syscall.
2124         (uses-6-syscall-arguments): Remove.
2125         [$(subdir) = misc] (CFLAGS-epoll_pwait.o): Likewise.
2126         [$(subdir) = misc] (CFLAGS-epoll_pwait.os): Likewise.
2127         [$(subdir) = misc] (CFLAGS-mmap.o): Likewise.
2128         [$(subdir) = misc] (CFLAGS-mmap.os): Likewise.
2129         [$(subdir) = misc] (CFLAGS-mmap64.o): Likewise.
2130         [$(subdir) = misc] (CFLAGS-mmap64.os): Likewise.
2131         [$(subdir) = misc] (CFLAGS-pselect.o): Likewise.
2132         [$(subdir) = misc] (cflags-pselect.o): Likewise.
2133         [$(subdir) = misc] (cflags-pselect.os): Likewise.
2134         [$(subdir) = misc] (cflags-rtld-mmap.os): Likewise.
2135         [$(subdir) = sysvipc] (cflags-semtimedop.o): Likewise.
2136         [$(subdir) = sysvipc] (cflags-semtimedop.os): Likewise.
2137         [$(subdir) = io] (CFLAGS-posix_fadvise64.o): Likewise.
2138         [$(subdir) = io] (CFLAGS-posix_fadvise64.os): Likewise.
2139         [$(subdir) = io] (CFLAGS-posix_fallocate.o): Likewise.
2140         [$(subdir) = io] (CFLAGS-posix_fallocate.os): Likewise.
2141         [$(subdir) = io] (CFLAGS-posix_fallocate64.o): Likewise.
2142         [$(subdir) = io] (CFLAGS-posix_fallocate64.os): Likewise.
2143         [$(subdir) = io] (CFLAGS-sync_file_range.o): Likewise.
2144         [$(subdir) = io] (CFLAGS-sync_file_range.os): Likewise.
2145         [$(subdir) = io] (CFLAGS-fallocate.o): Likewise.
2146         [$(subdir) = io] (CFLAGS-fallocate.os): Likewise.
2147         [$(subdir) = io] (CFLAGS-fallocate64.o): Likewise.
2148         [$(subdir) = io] (CFLAGS-fallocate64.os): Likewise.
2149         [$(subdir) = nptl] (CFLAGS-pthread_rwlock_timedrdlock.o):
2150         Likewise.
2151         [$(subdir) = nptl] (CFLAGS-pthread_rwlock_timedrdlock.os):
2152         Likewise.
2153         [$(subdir) = nptl] (CFLAGS-pthread_rwlock_timedrwlock.o):
2154         Likewise.
2155         [$(subdir) = nptl] (CFLAGS-pthread_rwlock_timedrwlock.os):
2156         Likewise.
2157         [$(subdir) = nptl] (CFLAGS-sem_wait.o): Likewise.
2158         [$(subdir) = nptl] (CFLAGS-sem_wait.os): Likewise.
2159         [$(subdir) = nptl] (CFLAGS-sem_timedwait.o): Likewise.
2160         [$(subdir) = nptl] (CFLAGS-sem_timedwait.os): Likewise.
2161         * sysdeps/unix/sysv/linux/i386/configure.ac: Add check if compiler allows
2162         ebp on inline assembly.
2163         * sysdeps/unix/sysv/linux/i386/configure: Regenerate.
2164         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
2165         Set if CAN_USE_REGISTER_ASM_EBP is set.
2166
2167 2017-02-17  H.J. Lu  <hongjiu.lu@intel.com>
2168
2169         * sysdeps/x86/cpu-features.c (init_cpu_features): Use
2170         index_cpu_RTM and reg_RTM to clear the bit_cpu_RTM bit.
2171
2172 2017-02-17  Joseph Myers  <joseph@codesourcery.com>
2173
2174         * math/auto-libm-test-in: Add tests of catan and catanh.
2175         * math/auto-libm-test-out-catan: New generated file.
2176         * math/auto-libm-test-out-catanh: Likewise.
2177         * math/libm-test-catan.inc (catan_test_data): Use AUTO_TESTS_c_c.
2178         Move tests with finite inputs, except divide-by-zero cases, to
2179         auto-libm-test-in.
2180         * math/libm-test-catanh.inc (catanh_test_data): Likewise.
2181         * math/Makefile (libm-test-funcs-auto): Add catan and catanh.
2182         (libm-test-funcs-noauto): Remove catan and catanh.
2183         * sysdeps/i386/fpu/libm-test-ulps: Update.
2184         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2185         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2186
2187         * math/auto-libm-test-in: Add tests of casin and casinh.
2188         * math/auto-libm-test-out-casin: New generated file.
2189         * math/auto-libm-test-out-casinh: Likewise.
2190         * math/libm-test-casin.inc (casin_test_data): Use AUTO_TESTS_c_c.
2191         Move tests with finite inputs to auto-libm-test-in.
2192         * math/libm-test-casinh.inc (casinh_test_data): Likewise.
2193         * math/Makefile (libm-test-funcs-auto): Add casin and casinh.
2194         (libm-test-funcs-noauto): Remove casin and casinh.
2195         * sysdeps/i386/fpu/libm-test-ulps: Update.
2196         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2197         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2198
2199         * math/auto-libm-test-in: Add tests of cacos and cacosh.
2200         * math/auto-libm-test-out-cacos: New generated file.
2201         * math/auto-libm-test-out-cacosh: Likewise.
2202         * math/libm-test-cacos.inc (cacos_test_data): Use AUTO_TESTS_c_c.
2203         Move tests with finite inputs to auto-libm-test-in.
2204         * math/libm-test-cacosh.inc (cacosh_test_data): Likewise.
2205         * math/Makefile (libm-test-funcs-auto): Add cacos and cacosh.
2206         (libm-test-funcs-noauto): Remove cacos and cacosh.
2207         * sysdeps/i386/fpu/libm-test-ulps: Update.
2208         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2209         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2210
2211         Revert:
2212         2017-02-16  Zack Weinberg  <zackw@panix.com>
2213
2214         * sysdeps/x86_64/fpu/math-tests-arch.h: Include cpu-features.h.
2215         Don't include init-arch.h.
2216         * sysdeps/x86_64/multiarch/test-multiarch.h: Include cpu-features.h.
2217         Don't include init-arch.h.
2218
2219 2017-02-17  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2220
2221         [BZ #21171]
2222         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r): Return
2223         +Inf and raise divide-by-zero when x is negative.
2224         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Likewise.
2225         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r): Likewise.
2226         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10):  Return
2227         -Inf and raise divide-by-zero when x = +-0.
2228         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
2229         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
2230         * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
2231         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
2232         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
2233         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
2234         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
2235
2236 2017-02-16  Zack Weinberg  <zackw@panix.com>
2237
2238         * scripts/build-many-glibcs.py (bot_build_mail): If the
2239         bot_config does not contain all of the necessary email-
2240         related settings, just print a warning and continue.
2241
2242 2017-02-16  Zack Weinberg  <zackw@panix.com>
2243
2244         * crypt/md5.h: Test _LIBC with #if defined, not #if.
2245         * dirent/opendir-tst1.c: Include sys/stat.h.
2246         * dirent/tst-fdopendir.c: Include sys/stat.h.
2247         * dirent/tst-fdopendir2.c: Include stdlib.h.
2248         * dirent/tst-scandir.c: Include stdbool.h.
2249         * elf/tst-auditmod1.c: Include link.h and stddef.h.
2250         * elf/tst-tls15.c: Include stdlib.h.
2251         * elf/tst-tls16.c: Include stdlib.h.
2252         * elf/tst-tls17.c: Include stdlib.h.
2253         * elf/tst-tls18.c: Include stdlib.h.
2254         * iconv/tst-iconv6.c: Include endian.h.
2255         * iconvdata/bug-iconv11.c: Include limits.h.
2256         * io/test-utime.c: Include stdint.h.
2257         * io/tst-faccessat.c: Include sys/stat.h.
2258         * io/tst-fchmodat.c: Include sys/stat.h.
2259         * io/tst-fchownat.c: Include sys/stat.h.
2260         * io/tst-fstatat.c: Include sys/stat.h.
2261         * io/tst-futimesat.c: Include sys/stat.h.
2262         * io/tst-linkat.c: Include sys/stat.h.
2263         * io/tst-mkdirat.c: Include sys/stat.h and stdbool.h.
2264         * io/tst-mkfifoat.c: Include sys/stat.h and stdbool.h.
2265         * io/tst-mknodat.c: Include sys/stat.h and stdbool.h.
2266         * io/tst-openat.c: Include stdbool.h.
2267         * io/tst-readlinkat.c: Include sys/stat.h.
2268         * io/tst-renameat.c: Include sys/stat.h.
2269         * io/tst-symlinkat.c: Include sys/stat.h.
2270         * io/tst-unlinkat.c: Include stdbool.h.
2271         * libio/bug-memstream1.c: Include stdlib.h.
2272         * libio/bug-wmemstream1.c: Include stdlib.h.
2273         * libio/tst-fwrite-error.c: Include stdlib.h.
2274         * libio/tst-memstream1.c: Include stdlib.h.
2275         * libio/tst-memstream2.c: Include stdlib.h.
2276         * libio/tst-memstream3.c: Include stdlib.h.
2277         * malloc/tst-interpose-aux.c: Include stdint.h.
2278         * misc/tst-preadvwritev-common.c: Include sys/stat.h.
2279         * nptl/tst-basic7.c: Include limits.h.
2280         * nptl/tst-cancel25.c: Include pthread.h, not pthreadP.h.
2281         * nptl/tst-cancel4.c: Include stddef.h, limits.h, and sys/stat.h.
2282         * nptl/tst-cancel4_1.c: Include stddef.h.
2283         * nptl/tst-cancel4_2.c: Include stddef.h.
2284         * nptl/tst-cond16.c: Include limits.h.
2285         Use sysconf(_SC_PAGESIZE) instead of __getpagesize.
2286         * nptl/tst-cond18.c: Include limits.h.
2287         Use sysconf(_SC_PAGESIZE) instead of __getpagesize.
2288         * nptl/tst-cond4.c: Include stdint.h.
2289         * nptl/tst-cond6.c: Include stdint.h.
2290         * nptl/tst-stack2.c: Include limits.h.
2291         * nptl/tst-stackguard1.c: Include stddef.h.
2292         * nptl/tst-tls4.c: Include stdint.h. Don't include tls.h.
2293         * nptl/tst-tls4moda.c: Include stddef.h.
2294         Don't include stdio.h, unistd.h, or tls.h.
2295         * nptl/tst-tls4modb.c: Include stddef.h.
2296         Don't include stdio.h, unistd.h, or tls.h.
2297         * nptl/tst-tls5.h: Include stddef.h. Don't include stdlib.h or tls.h.
2298         * posix/tst-getaddrinfo2.c: Include stdio.h.
2299         * posix/tst-getaddrinfo5.c: Include stdio.h.
2300         * posix/tst-pathconf.c: Include sys/stat.h.
2301         * posix/tst-posix_fadvise-common.c: Include stdint.h.
2302         * posix/tst-preadwrite-common.c: Include sys/stat.h.
2303         * posix/tst-regex.c: Include stdint.h.
2304         Don't include spawn.h or spawn_int.h.
2305         * posix/tst-regexloc.c: Don't include spawn.h or spawn_int.h.
2306         * posix/tst-vfork3.c: Include sys/stat.h.
2307         * resolv/tst-bug18665-tcp.c: Include stdlib.h.
2308         * resolv/tst-res_hconf_reorder.c: Include stdlib.h.
2309         * resolv/tst-resolv-search.c: Include stdlib.h.
2310         * stdio-common/tst-fmemopen2.c: Include stdint.h.
2311         * stdio-common/tst-vfprintf-width-prec.c: Include stdlib.h.
2312         * stdlib/test-canon.c: Include sys/stat.h.
2313         * stdlib/tst-tls-atexit.c: Include stdbool.h.
2314         * string/test-memchr.c: Include stdint.h.
2315         * string/tst-cmp.c: Include stdint.h.
2316         * sysdeps/pthread/tst-timer.c: Include stdint.h.
2317         * sysdeps/unix/sysv/linux/tst-sync_file_range.c: Include stdint.h.
2318         * sysdeps/wordsize-64/tst-writev.c: Include limits.h and stdint.h.
2319         * sysdeps/x86_64/fpu/math-tests-arch.h: Include cpu-features.h.
2320         Don't include init-arch.h.
2321         * sysdeps/x86_64/multiarch/test-multiarch.h: Include cpu-features.h.
2322         Don't include init-arch.h.
2323         * sysdeps/x86_64/tst-auditmod10b.c: Include link.h and stddef.h.
2324         * sysdeps/x86_64/tst-auditmod3b.c: Include link.h and stddef.h.
2325         * sysdeps/x86_64/tst-auditmod4b.c: Include link.h and stddef.h.
2326         * sysdeps/x86_64/tst-auditmod5b.c: Include link.h and stddef.h.
2327         * sysdeps/x86_64/tst-auditmod6b.c: Include link.h and stddef.h.
2328         * sysdeps/x86_64/tst-auditmod6c.c: Include link.h and stddef.h.
2329         * sysdeps/x86_64/tst-auditmod7b.c: Include link.h and stddef.h.
2330         * time/clocktest.c: Include stdint.h.
2331         * time/tst-posixtz.c: Include stdint.h.
2332         * timezone/tst-timezone.c: Include stdint.h.
2333
2334 2017-02-16  Zack Weinberg  <zackw@panix.com>
2335
2336         * string/string.h [__USE_MISC]: Include strings.h.
2337         (__bzero, bcmp, bcopy, bzero, index, rindex)
2338         (strcasecmp, strncasecmp, strcasecmp_l, strncasecmp_l)
2339         (ffs, ffsl, ffsll): Don't declare.
2340         * string/strings.h: Do not suppress the file if string.h has
2341         already been included.
2342         (bcmp, bcopy, bzero, strcasecmp, strncasecmp): Add __nonnull
2343         annotations.
2344         (index, rindex): Define inline forwarders even if
2345         __CORRECT_ISO_CPP_STRING_H_PROTO is defined.
2346         (ffs): Use __attribute_const__.
2347         (ffsl, ffsll): Declare here.
2348         (strcasecmp_l, strncasecmp_l): Correct comments; these functions
2349         have now been standardized.
2350         * include/string.h (__bzero): Declare here.
2351
2352         * bits/types.h: Move to posix/bits.
2353         * include/bits/types.h: New wrapper.
2354
2355 2017-02-15  Wilco Dijkstra  <wdijkstr@arm.com>
2356
2357         * string/bits/string2.h (strcmp): Remove define.
2358         (__strcmp_cg): Likewise.
2359         (strncmp): Likewise.
2360
2361 2017-02-15  Wilco Dijkstra  <wdijkstr@arm.com>
2362
2363         * include/string.h: Add __cplusplus check.
2364
2365 2017-02-15  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2366
2367         [BZ #21134]
2368         * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_y0): Raise the
2369         "divide by zero" exception when the input is zero.
2370         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_y1): Likewise.
2371         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Likewise.
2372         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Likewise.
2373         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Likewise.
2374         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
2375
2376 2017-02-15  Joseph Myers  <joseph@codesourcery.com>
2377
2378         * sysdeps/x86_64/fpu/test-double-vlen2.c: Move most contents to,
2379         and include ...
2380         * sysdeps/x86_64/fpu/test-double-vlen2.h: ... here.  New file.
2381         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Move most contents
2382         to, and include ...
2383         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.h: ... here.  New
2384         file.
2385         * sysdeps/x86_64/fpu/test-double-vlen4.c: Move most contents to,
2386         and include ...
2387         * sysdeps/x86_64/fpu/test-double-vlen4.h: ... here.  New file.
2388         * sysdeps/x86_64/fpu/test-double-vlen8.c: Move most contents to,
2389         and include ...
2390         * sysdeps/x86_64/fpu/test-double-vlen8.h: ... here.  New file.
2391         * sysdeps/x86_64/fpu/test-float-vlen16.c: Move most contents to,
2392         and include ...
2393         * sysdeps/x86_64/fpu/test-float-vlen16.h: ... here.  New file.
2394         * sysdeps/x86_64/fpu/test-float-vlen4.c: Move most contents to,
2395         and include ...
2396         * sysdeps/x86_64/fpu/test-float-vlen4.h: ... here.  New file.
2397         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Move most contents
2398         to, and include ...
2399         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.h: ... here.  New file.
2400         * sysdeps/x86_64/fpu/test-float-vlen8.c: Move most contents to,
2401         and include ...
2402         * sysdeps/x86_64/fpu/test-float-vlen8.h: ... here.  New file.
2403
2404 2017-02-14  Joseph Myers  <joseph@codesourcery.com>
2405
2406         * math/libm-test-support.h: Do not include <math-tests-arch.h>
2407         here.
2408         * math/libm-test-support.c (libm_test_init): Do not call
2409         INIT_ARCH_EXT here.
2410         * math/libm-test-driver.c: Include <math-tests-arch.h>.
2411         (main): Call INIT_ARCH_EXT.
2412
2413 2017-02-12  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2414
2415         [BZ #21130]
2416         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Return NAN
2417         with the "invalid" exception raised when x is -Inf.
2418         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
2419
2420 2017-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
2421
2422         * string/bits/string2.h (strchr): Remove define.
2423
2424 2017-02-09  H.J. Lu  <hongjiu.lu@intel.com>
2425
2426         * sysdeps/x86_64/Makefile (tests): Add tst-sse, tst-avx and
2427         tst-avx512.
2428         (test-extras): Add tst-avx-aux and tst-avx512-aux.
2429         (extra-test-objs): Add tst-avx-aux.o and tst-avx512-aux.o.
2430         (modules-names): Add tst-ssemod, tst-avxmod and tst-avx512mod.
2431         ($(objpfx)tst-sse): New rule.
2432         ($(objpfx)tst-avx): Likewise.
2433         ($(objpfx)tst-avx512): Likewise.
2434         (CFLAGS-tst-avx-aux.c): New.
2435         (CFLAGS-tst-avxmod.c): Likewise.
2436         (CFLAGS-tst-avx512-aux.c): Likewise.
2437         (CFLAGS-tst-avx512mod.c): Likewise.
2438         * sysdeps/x86_64/tst-avx-aux.c: New file.
2439         * sysdeps/x86_64/tst-avx.c: Likewise.
2440         * sysdeps/x86_64/tst-avx512-aux.c: Likewise.
2441         * sysdeps/x86_64/tst-avx512.c: Likewise.
2442         * sysdeps/x86_64/tst-avx512mod.c: Likewise.
2443         * sysdeps/x86_64/tst-avxmod.c: Likewise.
2444         * sysdeps/x86_64/tst-sse.c: Likewise.
2445         * sysdeps/x86_64/tst-ssemod.c: Likewise.
2446
2447 2017-02-09  Joseph Myers  <joseph@codesourcery.com>
2448
2449         * math/auto-libm-test-in: Add more tests of csin and csinh.
2450         * math/auto-libm-test-out-csin: Regenerated.
2451         * math/auto-libm-test-out-csinh: Likewise.
2452         * math/libm-test-csin.inc (csin_test_data): Remove tests moved to
2453         auto-libm-test-in.
2454         * math/libm-test-csinh.inc (csinh_test_data): Likewise.
2455
2456 2017-02-09  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2457
2458         * math/Makefile (libm-compat-calls-ldouble-yes): Merge into
2459         libm-compat-calls-auto.
2460         (libm-compat-calls): Likewise.
2461         (libm-compat-calls-auto): Rename to libm-compat-calls and add
2462         w_lgamma_compatF and k_standardF (merged from the items above).
2463         (libm-routines): Use libm-compat-calls, instead of
2464         libm-compat-calls-auto, with type-foreach.
2465
2466 2017-02-09  Joseph Myers  <joseph@codesourcery.com>
2467
2468         * math/test-math-inline.h (__LIBC_INTERNAL_MATH_INLINES): Undefine
2469         macro.
2470         * math/Makefile (CPPFLAGS-test-ifloat.c): Rename to ...
2471         (CFLAGS-test-ifloat.c): ... this.  Remove
2472         -U__LIBC_INTERNAL_MATH_INLINES.
2473         * math/Makefile (CPPFLAGS-test-idouble.c): Rename to ...
2474         (CFLAGS-test-idouble.c): ... this.  Remove
2475         -U__LIBC_INTERNAL_MATH_INLINES.
2476         * math/Makefile (CPPFLAGS-test-ildouble.c): Rename to ...
2477         (CFLAGS-test-ildouble.c): ... this.  Remove
2478         -U__LIBC_INTERNAL_MATH_INLINES.
2479
2480 2017-02-08  Joseph Myers  <joseph@codesourcery.com>
2481
2482         * math/libm-test-support.c: New file.  Content from
2483         math/libm-test-driver.c.
2484         * math/libm-test-support.h: Likewise.
2485         * math/libm-test-support-double.c: New file.
2486         * math/libm-test-support-float.c: Likewise.
2487         * math/libm-test-support-ldouble.c: Likewise.
2488         * math/libm-test-driver.c: Remove main comment and header
2489         includes.  Include libm-test-support.h.
2490         [!_GNU_SOURCE] (_GNU_SOURCE): Do not define.
2491         (flag_test_errno): Remove static.
2492         (flag_test_exceptions): Likewise.
2493         (flag_test_finite): Likewise.
2494         (flag_test_inline): Likewise.
2495         (flag_test_mathvec): Likewise.
2496         (test_msg): Likewise.
2497         (NO_EXCEPTION): Remove.
2498         (INVALID_EXCEPTION): Likewise.
2499         (DIVIDE_BY_ZERO_EXCEPTION): Likewise.
2500         (OVERFLOW_EXCEPTION): Likewise.
2501         (UNDERFLOW_EXCEPTION): Likewise.
2502         (INEXACT_EXCEPTION): Likewise.
2503         (INVALID_EXCEPTION_OK): Likewise.
2504         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
2505         (OVERFLOW_EXCEPTION_OK): Likewise.
2506         (UNDERFLOW_EXCEPTION_OK): Likewise.
2507         (NO_INEXACT_EXCEPTION): Likewise.
2508         (EXCEPTIONS_OK): Likewise.
2509         (IGNORE_ZERO_INF_SIGN): Likewise.
2510         (TEST_NAN_SIGN): Likewise.
2511         (TEST_NAN_PAYLOAD): Likewise.
2512         (NO_TEST_INLINE): Likewise.
2513         (XFAIL_TEST): Likewise.
2514         (ERRNO_UNCHANGED): Likewise.
2515         (ERRNO_EDOM): Likewise.
2516         (ERRNO_ERANGE): Likewise.
2517         (IGNORE_RESULT): Likewise.
2518         (NON_FINITE): Likewise.
2519         (TEST_SNAN): Likewise.
2520         (NO_TEST_MATHVEC): Likewise.
2521         (__CONCATX): Likewise.
2522         (TYPE_MIN): Likewise.
2523         (TYPE_TRUE_MIN): Likewise.
2524         (TYPE_MAX): Likewise.
2525         (MIN_EXP): Likewise.
2526         (MAX_EXP): Likewise.
2527         (MANT_DIG): Likewise.
2528         (FSTR_MAX): Likewise.
2529         (ulp_idx): Likewise.
2530         (qtype_str): Remove static.
2531         (TEST_COND_binary32): Remove.
2532         (TEST_COND_binary64): Likewise.
2533         (TEST_COND_binary128): Likewise.
2534         (TEST_COND_ibm128): Likewise.
2535         (TEST_COND_intel96): Likewise.
2536         (TEST_COND_m68k96): Likewise.
2537         (TEST_COND_ibm128_libgcc): Likewise.
2538         (XFAIL_IBM128_LIBGCC): Likewise.
2539         (PAYLOAD_DIG): Likewise.
2540         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
2541         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
2542         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
2543         (UNDERFLOW_EXCEPTION_OK_DOUBLE): Likewise.
2544         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
2545         (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): Likewise.
2546         (TEST_COND_long32): Likewise.
2547         (TEST_COND_long64): Likewise.
2548         (TEST_COND_before_rounding): Likewise.
2549         (TEST_COND_after_rounding): Likewise.
2550         (ulps_file_name): Likewise.
2551         (ulps_file): Likewise.
2552         (output_ulps): Likewise.
2553         (output_dir): Likewise.
2554         (noErrors): Likewise.
2555         (noTests): Likewise.
2556         (noExcTests): Likewise.
2557         (noErrnoTests): Likewise.
2558         (verbose): Likewise.
2559         (output_max_error): Likewise.
2560         (output_points): Likewise.
2561         (ignore_max_ulp): Likewise.
2562         (max_error): Likewise.
2563         (real_max_error): Likewise.
2564         (imag_max_error): Likewise.
2565         (prev_max_error): Likewise.
2566         (prev_real_max_error): Likewise.
2567         (prev_imag_max_error): Likewise.
2568         (max_valid_error): Likewise.
2569         (TYPE_DECIMAL_DIG): Likewise.
2570         (TYPE_HEX_DIG): Likewise.
2571         (fmt_ftostr): Likewise.
2572         (compare_ulp_data): Likewise.
2573         (find_ulps): Likewise.
2574         (init_max_error): Likewise.
2575         (set_max_error): Likewise.
2576         (print_float): Likewise.
2577         (print_screen): Likewise.
2578         (print_screen_max_error): Likewise.
2579         (update_stats): Likewise.
2580         (print_function_ulps): Likewise.
2581         (print_complex_function_ulps): Likewise.
2582         (fpstack_test): Likewise.
2583         (print_max_error): Likewise.
2584         (print_complex_max_error): Likewise.
2585         (test_single_exception): Likewise.
2586         (test_exceptions): Likewise.
2587         (test_single_errno): Likewise.
2588         (test_errno): Likewise.
2589         (ULPDIFF): Likewise.
2590         (ulp): Likewise.
2591         (check_float_internal): Likewise.
2592         (check_float): Likewise.
2593         (check_complex): Likewise.
2594         (check_int): Likewise.
2595         (check_long): Likewise.
2596         (check_bool): Likewise.
2597         (check_longlong): Likewise.
2598         (check_intmax_t): Likewise.
2599         (check_uintmax_t): Likewise.
2600         (enable_test): Likewise.
2601         (matherr): Likewise.
2602         (initialize): Likewise.
2603         (options): Likewise.
2604         (doc): Remove static.
2605         (argp): Likewise.
2606         (parse_opt): Remove.
2607         (check_ulp): Likewise.
2608         (libm_test_init): Likewise.
2609         (libm_test_finish): Likewise.
2610         * math/Makefile (libm-test-support): New variable.
2611         (test-extras): Add libm-test-support files.
2612         (extra-test-objs): Likewise.
2613         (CFLAGS-libm-test-support-float.c): New variable.
2614         (CFLAGS-libm-test-support-double.c): Likewise.
2615         (CFLAGS-libm-test-support-ldouble.c): Likewise.
2616         ($(addprefix $(objpfx),$(libm-tests)): Depend on appropriate
2617         libm-test-support objects.
2618
2619 2017-02-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2620
2621         * math/Makefile (libm-calls): Move w_exp...
2622         (libm-compat-calls-auto): Here.
2623
2624         * math/w_expl.c: Add suffix "_compat" to filename.
2625         * sysdeps/ia64/fpu/w_expl.c: Likewise.
2626         * sysdeps/ia64/fpu/w_expf.c: Likewise.
2627         * sysdeps/ia64/fpu/w_exp.c: Likewise.
2628         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
2629         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
2630         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
2631         * sysdeps/ieee754/ldbl-128ibm/w_expl.c: Likewise.
2632         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
2633
2634         * math/w_expl_compat.c: New file, copied from above.
2635         * sysdeps/ia64/fpu/w_exp_compat.c: Likewise.
2636         * sysdeps/ia64/fpu/w_expf_compat.c: Likewise.
2637         * sysdeps/ia64/fpu/w_expl_compat.c: Likewise.
2638         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
2639         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
2640         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
2641         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
2642         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
2643
2644         * sysdeps/ieee754/ldbl-64-128/w_expl.c: Add suffix "_compat"
2645         to filename.
2646         * sysdeps/ieee754/ldbl-opt/w_exp.c: Likewise.
2647
2648         * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: New file,
2649         copied from above and adjusted for the new filenames.
2650         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
2651
2652 2017-02-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2653
2654         * math/Makefile (libm-calls): Move w_lgammaF...
2655         (libm-compat-calls-auto): Here.
2656
2657         * math/w_lgamma.c: Add suffix "_compat2" to filename.
2658         * math/w_lgammaf.c: Likewise.
2659         * math/w_lgammal.c: Likewise.
2660
2661         * math/w_lgamma_compat2.c: New file, copied from above.
2662         * math/w_lgammaf_compat2.c: Likewise.
2663         * math/w_lgammal_compat2.c: Likewise.
2664
2665 2017-02-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2666
2667         * math/Makefile (libm-calls): Move w_lgammaF_r...
2668         (libm-compat-calls-auto): Here.
2669
2670         * math/w_lgamma_r.c: Add suffix "_compat" to filename.
2671         * math/w_lgammaf_r.c: Likewise.
2672         * math/w_lgammal_r.c: Likewise.
2673         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
2674         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
2675         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
2676
2677         * math/w_lgamma_r_compat.c: New file, copied from above.
2678         * math/w_lgammaf_r_compat.c: Likewise.
2679         * math/w_lgammal_r_compat.c: Likewise.
2680         * sysdeps/ia64/fpu/w_lgamma_r_compat.c: Likewise.
2681         * sysdeps/ia64/fpu/w_lgammaf_r_compat.c: Likewise.
2682         * sysdeps/ia64/fpu/w_lgammal_r_compat.c: Likewise.
2683
2684         * sysdeps/ieee754/ldbl-opt/w_lgamma_r.c: Add suffix "_compat"
2685         to filename.
2686         * sysdeps/ieee754/ldbl-opt/w_lgammal_r.c: Likewise.
2687
2688         * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: New file
2689         copied from above and adjusted for the new filenames.
2690         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
2691
2692 2017-02-08  Yury Norov  <ynorov@caviumnetworks.com>
2693
2694         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: use PTR_REG() for offset
2695         calculation in SYSCALL_ERROR_HANDLER().
2696
2697 2017-02-08  Rical Jasan  <ricaljasan@pacific.net>
2698
2699         * manual/contrib.texi: Fix typo.
2700
2701 2017-02-08  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2702
2703         [BZ #21109]
2704         * elf/dl-tunable-types.h (tunable_callback_t): Accept
2705         tunable_val_t as argument.
2706         * elf/dl-tunables.c (__tunable_set_val): Add comment.
2707         * malloc/arena.c (set_mallopt_check): Take tunable_val_t as
2708         argument.
2709         (DL_TUNABLE_CALLBACK_FNDECL): Likewise.
2710
2711 2017-02-08  Kir Kolyshkin  <kir@openvz.org>
2712
2713         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_eventcodes):
2714         Add PTRACE_EVENT_STOP.
2715         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
2716         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
2717         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
2718         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
2719         * sysdeps/unix/sysv/linux/sys/ptrace.h: Likewise.
2720         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
2721
2722 2017-02-07  Joseph Myers  <joseph@codesourcery.com>
2723
2724         * math/test-math-finite.h (TEST_EXCEPTIONS): New macro.
2725         * math/test-math-no-finite.h (TEST_EXCEPTIONS): Likewise.
2726         * math/test-math-vector.h (TEST_EXCEPTIONS): Likewise.
2727         * math/test-math-no-inline.h (TEST_EXCEPTIONS): Remove macro.
2728         * math/test-double-vlen2.h (EXCEPTION_TESTS_double): Likewise.
2729         * math/test-double-vlen4.h (EXCEPTION_TESTS_double): Likewise.
2730         * math/test-double-vlen8.h (EXCEPTION_TESTS_double): Likewise.
2731         * math/test-float-vlen4.h (EXCEPTION_TESTS_float): Likewise.
2732         * math/test-float-vlen8.h (EXCEPTION_TESTS_float): Likewise.
2733         * math/test-float-vlen16.h (EXCEPTION_TESTS_float): Likewise.
2734
2735         [BZ #21112]
2736         * sysdeps/ieee754/flt-32/e_powf.c (cp_h): Use value with trailing
2737         12 bits zero.
2738         (cp_l): Update for new value of cp_h.
2739         * math/auto-libm-test-in: Add another test of pow.
2740         * math/auto-libm-test-out-pow: Regenerated.
2741
2742 2017-02-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2743
2744         * manual/contrib.texi: Fix typo.
2745
2746 2017-02-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
2747
2748         [BZ #15998]
2749         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
2750         (arch_minimum_kernel): Set as 3.10.0 for ppc64le.
2751         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
2752
2753 2017-02-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
2754
2755         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Redefine
2756         STRCHR as __strchr_power8.
2757         * sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c: Redefine
2758         strlen as __strlen_power8.
2759
2760 2017-02-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
2761
2762         * sysdeps/powerpc/powerpc64/power8/strcmp.S: Adjust address for
2763         unaligned load for shorter strings.
2764         * sysdeps/powerpc/powerpc64/power9/strcmp.S: Likewise.
2765
2766 2017-02-06  Joseph Myers  <joseph@codesourcery.com>
2767
2768         * math/libm-test-driver.c (flag_test_errno): New variable.
2769         (flag_test_exceptions): Likewise.
2770         (flag_test_finite): Likewise.
2771         (flag_test_inline): Likewise.
2772         (flag_test_mathvec): Likewise.
2773         (test_msg): Likewise.
2774         (ulp_idx): Likewise.
2775         (qtype_str): Likewise.
2776         (ULP_IDX): Remove macro.
2777         (QTYPE_STR): Likewise.
2778         (find_ulps): Use ulp_idx not ULP_IDX.
2779         (print_function_ulps): Use qtype_str, printed with %s, not
2780         QTYPE_STR, printed with concatentation to format string.
2781         (print_complex_function_ulps): Likewise.
2782         (test_exceptions): Use flag_test_exceptions not TEST_EXCEPTIONS.
2783         (test_errno): Use flag_test_errno not TEST_ERRNO.
2784         (enable_test): Use flag_test_inline, flag_test_finite and
2785         flag_test_mathvec instead of TEST_INLINE, TEST_FINITE and
2786         TEST_MATHVEC.
2787         (libm_test_init): New function.  Factored out of main.
2788         (libm_test_finish): Likewise.
2789         (main): Call libm_test_init and libm_test_finish and move most
2790         code to those functions.
2791
2792         * math/libm-test-driver.c (STRX): New macro.
2793         (STR): Likewise.
2794         (STR_FLOAT): Likewise.
2795         (STR_VEC_LEN): Likewise.
2796         (TEST_MSG): Likewise.  Define here instead of expecting to be
2797         defined by including file.
2798         * math/test-double-finite.c (TEST_MSG): Remove macro.
2799         * math/test-double-vlen2.h (TEST_MSG): Likewise.
2800         * math/test-double-vlen4.h (TEST_MSG): Likewise.
2801         * math/test-double-vlen8.h (TEST_MSG): Likewise.
2802         * math/test-double.c (TEST_MSG): Likewise.
2803         * math/test-float-finite.c (TEST_MSG): Likewise.
2804         * math/test-float-vlen16.h (TEST_MSG): Likewise.
2805         * math/test-float-vlen4.h (TEST_MSG): Likewise.
2806         * math/test-float-vlen8.h (TEST_MSG): Likewise.
2807         * math/test-float.c (TEST_MSG): Likewise.
2808         * math/test-idouble.c (TEST_MSG): Likewise.
2809         * math/test-ifloat.c (TEST_MSG): Likewise.
2810         * math/test-ildouble.c (TEST_MSG): Likewise.
2811         * math/test-ldouble-finite.c (TEST_MSG): Likewise.
2812         * math/test-ldouble.c (TEST_MSG): Likewise.
2813
2814         * math/libm-test.inc: Move all tests of individual functions to
2815         libm-test-*.inc and #include libm-test-*.c files.
2816         (acos_test_data): Remove.
2817         (acos_test): Likewise.
2818         (acosh_test_data): Likewise.
2819         (acosh_test): Likewise.
2820         (asin_test_data): Likewise.
2821         (asin_test): Likewise.
2822         (asinh_test_data): Likewise.
2823         (asinh_test): Likewise.
2824         (atan_test_data): Likewise.
2825         (atan_test): Likewise.
2826         (atanh_test_data): Likewise.
2827         (atanh_test): Likewise.
2828         (atan2_test_data): Likewise.
2829         (atan2_test): Likewise.
2830         (cabs_test_data): Likewise.
2831         (cabs_test): Likewise.
2832         (cacos_test_data): Likewise.
2833         (cacos_test): Likewise.
2834         (cacosh_test_data): Likewise.
2835         (cacosh_test): Likewise.
2836         (canonicalize_test_data): Likewise.
2837         (canonicalize_test): Likewise.
2838         (carg_test_data): Likewise.
2839         (carg_test): Likewise.
2840         (casin_test_data): Likewise.
2841         (casin_test): Likewise.
2842         (casinh_test_data): Likewise.
2843         (casinh_test): Likewise.
2844         (catan_test_data): Likewise.
2845         (catan_test): Likewise.
2846         (catanh_test_data): Likewise.
2847         (catanh_test): Likewise.
2848         (cbrt_test_data): Likewise.
2849         (cbrt_test): Likewise.
2850         (ccos_test_data): Likewise.
2851         (ccos_test): Likewise.
2852         (ccosh_test_data): Likewise.
2853         (ccosh_test): Likewise.
2854         (ceil_test_data): Likewise.
2855         (ceil_test): Likewise.
2856         (cexp_test_data): Likewise.
2857         (cexp_test): Likewise.
2858         (cimag_test_data): Likewise.
2859         (cimag_test): Likewise.
2860         (clog_test_data): Likewise.
2861         (clog_test): Likewise.
2862         (clog10_test_data): Likewise.
2863         (clog10_test): Likewise.
2864         (conj_test_data): Likewise.
2865         (conj_test): Likewise.
2866         (copysign_test_data): Likewise.
2867         (copysign_test): Likewise.
2868         (cos_test_data): Likewise.
2869         (cos_test): Likewise.
2870         (cosh_test_data): Likewise.
2871         (cosh_test): Likewise.
2872         (cpow_test_data): Likewise.
2873         (cpow_test): Likewise.
2874         (cproj_test_data): Likewise.
2875         (cproj_test): Likewise.
2876         (creal_test_data): Likewise.
2877         (creal_test): Likewise.
2878         (csin_test_data): Likewise.
2879         (csin_test): Likewise.
2880         (csinh_test_data): Likewise.
2881         (csinh_test): Likewise.
2882         (csqrt_test_data): Likewise.
2883         (csqrt_test): Likewise.
2884         (ctan_test_data): Likewise.
2885         (ctan_test): Likewise.
2886         (ctanh_test_data): Likewise.
2887         (ctanh_test): Likewise.
2888         (erf_test_data): Likewise.
2889         (erf_test): Likewise.
2890         (erfc_test_data): Likewise.
2891         (erfc_test): Likewise.
2892         (exp_test_data): Likewise.
2893         (exp_test): Likewise.
2894         (exp10_test_data): Likewise.
2895         (exp10_test): Likewise.
2896         (pow10_test): Likewise.
2897         (exp2_test_data): Likewise.
2898         (exp2_test): Likewise.
2899         (expm1_test_data): Likewise.
2900         (expm1_test): Likewise.
2901         (fabs_test_data): Likewise.
2902         (fabs_test): Likewise.
2903         (fdim_test_data): Likewise.
2904         (fdim_test): Likewise.
2905         (floor_test_data): Likewise.
2906         (floor_test): Likewise.
2907         (fma_test_data): Likewise.
2908         (fma_test): Likewise.
2909         (fmax_test_data): Likewise.
2910         (fmax_test): Likewise.
2911         (fmaxmag_test_data): Likewise.
2912         (fmaxmag_test): Likewise.
2913         (fmin_test_data): Likewise.
2914         (fmin_test): Likewise.
2915         (fminmag_test_data): Likewise.
2916         (fminmag_test): Likewise.
2917         (fmod_test_data): Likewise.
2918         (fmod_test): Likewise.
2919         (fpclassify_test_data): Likewise.
2920         (fpclassify_test): Likewise.
2921         (frexp_test_data): Likewise.
2922         (frexp_test): Likewise.
2923         (fromfp_test_data): Likewise.
2924         (fromfp_test): Likewise.
2925         (fromfpx_test_data): Likewise.
2926         (fromfpx_test): Likewise.
2927         (getpayload_test_data): Likewise.
2928         (getpayload_test): Likewise.
2929         (hypot_test_data): Likewise.
2930         (hypot_test): Likewise.
2931         (ilogb_test_data): Likewise.
2932         (ilogb_test): Likewise.
2933         (iscanonical_test_data): Likewise.
2934         (iscanonical_test): Likewise.
2935         (iseqsig_test_data): Likewise.
2936         (iseqsig_test): Likewise.
2937         (isfinite_test_data): Likewise.
2938         (isfinite_test): Likewise.
2939         (finite_test): Likewise.
2940         (isgreater_test_data): Likewise.
2941         (isgreater_test): Likewise.
2942         (isgreaterequal_test_data): Likewise.
2943         (isgreaterequal_test): Likewise.
2944         (isinf_test_data): Likewise.
2945         (isinf_test): Likewise.
2946         (isless_test_data): Likewise.
2947         (isless_test): Likewise.
2948         (islessequal_test_data): Likewise.
2949         (islessequal_test): Likewise.
2950         (islessgreater_test_data): Likewise.
2951         (islessgreater_test): Likewise.
2952         (isnan_test_data): Likewise.
2953         (isnan_test): Likewise.
2954         (isnormal_test_data): Likewise.
2955         (isnormal_test): Likewise.
2956         (issignaling_test_data): Likewise.
2957         (issignaling_test): Likewise.
2958         (issubnormal_test_data): Likewise.
2959         (issubnormal_test): Likewise.
2960         (isunordered_test_data): Likewise.
2961         (isunordered_test): Likewise.
2962         (iszero_test_data): Likewise.
2963         (iszero_test): Likewise.
2964         (j0_test_data): Likewise.
2965         (j0_test): Likewise.
2966         (j1_test_data): Likewise.
2967         (j1_test): Likewise.
2968         (jn_test_data): Likewise.
2969         (jn_test): Likewise.
2970         (lgamma_test_data): Likewise.
2971         (lgamma_test): Likewise.
2972         (gamma_test): Likewise.
2973         (llogb_test_data): Likewise.
2974         (llogb_test): Likewise.
2975         (lrint_test_data): Likewise.
2976         (lrint_test): Likewise.
2977         (llrint_test_data): Likewise.
2978         (llrint_test): Likewise.
2979         (log_test_data): Likewise.
2980         (log_test): Likewise.
2981         (log10_test_data): Likewise.
2982         (log10_test): Likewise.
2983         (log1p_test_data): Likewise.
2984         (log1p_test): Likewise.
2985         (log2_test_data): Likewise.
2986         (log2_test): Likewise.
2987         (logb_test_data): Likewise.
2988         (logb_test): Likewise.
2989         (lround_test_data): Likewise.
2990         (lround_test): Likewise.
2991         (llround_test_data): Likewise.
2992         (llround_test): Likewise.
2993         (modf_test_data): Likewise.
2994         (modf_test): Likewise.
2995         (nearbyint_test_data): Likewise.
2996         (nearbyint_test): Likewise.
2997         (nextafter_test_data): Likewise.
2998         (nextafter_test): Likewise.
2999         (nextup_test_data): Likewise.
3000         (nextup_test): Likewise.
3001         (nextdown_test_data): Likewise.
3002         (nextdown_test): Likewise.
3003         (nexttoward_test_data): Likewise.
3004         (nexttoward_test): Likewise.
3005         (pow_test_data): Likewise.
3006         (pow_test): Likewise.
3007         (remainder_test_data): Likewise.
3008         (remainder_test): Likewise.
3009         (drem_test): Likewise.
3010         (remquo_test_data): Likewise.
3011         (remquo_test): Likewise.
3012         (rint_test_data): Likewise.
3013         (rint_test): Likewise.
3014         (round_test_data): Likewise.
3015         (round_test): Likewise.
3016         (roundeven_test_data): Likewise.
3017         (roundeven_test): Likewise.
3018         (scalb_test_data): Likewise.
3019         (scalb_test): Likewise.
3020         (scalbn_test_data): Likewise.
3021         (scalbn_test): Likewise.
3022         (ldexp_test): Likewise.
3023         (scalbln_test_data): Likewise.
3024         (scalbln_test): Likewise.
3025         (setpayload_test_data): Likewise.
3026         (setpayload_test): Likewise.
3027         (setpayloadsig_test_data): Likewise.
3028         (setpayloadsig_test): Likewise.
3029         (signbit_test_data): Likewise.
3030         (signbit_test): Likewise.
3031         (sin_test_data): Likewise.
3032         (sin_test): Likewise.
3033         (sincos_test_data): Likewise.
3034         (sincos_test): Likewise.
3035         (sinh_test_data): Likewise.
3036         (sinh_test): Likewise.
3037         (sqrt_test_data): Likewise.
3038         (sqrt_test): Likewise.
3039         (tan_test_data): Likewise.
3040         (tan_test): Likewise.
3041         (tanh_test_data): Likewise.
3042         (tanh_test): Likewise.
3043         (tgamma_test_data): Likewise.
3044         (tgamma_test): Likewise.
3045         (totalorder_test_data): Likewise.
3046         (totalorder_test): Likewise.
3047         (totalordermag_test_data): Likewise.
3048         (totalordermag_test): Likewise.
3049         (trunc_test_data): Likewise.
3050         (trunc_test): Likewise.
3051         (ufromfp_test_data): Likewise.
3052         (ufromfp_test): Likewise.
3053         (ufromfpx_test_data): Likewise.
3054         (ufromfpx_test): Likewise.
3055         (y0_test_data): Likewise.
3056         (y0_test): Likewise.
3057         (y1_test_data): Likewise.
3058         (y1_test): Likewise.
3059         (yn_test_data): Likewise.
3060         (yn_test): Likewise.
3061         (significand_test_data): Likewise.
3062         (significand_test): Likewise.
3063         * math/Makefile (auto-libm-test-out-files): Remove variable.
3064         (libm-test-funcs-noauto): New variable.
3065         (libm-test-funcs-all): Likewise.
3066         (libm-test-c-auto): Likewise.
3067         (libm-test-c-noauto): Likewise.
3068         (libm-tests-generated): Add $(libm-test-c-auto) and
3069         $(libm-test-c-noauto).
3070         (generated): Do not add auto-libm-test-out.
3071         (libm-test-c-auto-obj): New variable.
3072         (libm-test-c-noauto-obj): Likewise.
3073         ($(objpfx)libm-test.c): Do not generate or use auto-libm-test-out.
3074         ($(libm-test-c-noauto-obj)): New static pattern rule.
3075         ($(libm-test-c-auto-obj)): Likewise.
3076         (libm-test-incs): New variable.
3077         ($(objpfx)libm-have-vector-test.h): Depend on $(libm-test-incs)
3078         and pass it to gen-libm-have-vector-test.sh.
3079         * math/gen-libm-have-vector-test.sh: Expect list of .inc files to
3080         be passed on command line.
3081         * math/libm-test-acos.inc: New file.  Content from
3082         math/libm-test.inc.
3083         * math/libm-test-acosh.inc: Likewise.
3084         * math/libm-test-asin.inc: Likewise.
3085         * math/libm-test-asinh.inc: Likewise.
3086         * math/libm-test-atan.inc: Likewise.
3087         * math/libm-test-atan2.inc: Likewise.
3088         * math/libm-test-atanh.inc: Likewise.
3089         * math/libm-test-cabs.inc: Likewise.
3090         * math/libm-test-cacos.inc: Likewise.
3091         * math/libm-test-cacosh.inc: Likewise.
3092         * math/libm-test-canonicalize.inc: Likewise.
3093         * math/libm-test-carg.inc: Likewise.
3094         * math/libm-test-casin.inc: Likewise.
3095         * math/libm-test-casinh.inc: Likewise.
3096         * math/libm-test-catan.inc: Likewise.
3097         * math/libm-test-catanh.inc: Likewise.
3098         * math/libm-test-cbrt.inc: Likewise.
3099         * math/libm-test-ccos.inc: Likewise.
3100         * math/libm-test-ccosh.inc: Likewise.
3101         * math/libm-test-ceil.inc: Likewise.
3102         * math/libm-test-cexp.inc: Likewise.
3103         * math/libm-test-cimag.inc: Likewise.
3104         * math/libm-test-clog.inc: Likewise.
3105         * math/libm-test-clog10.inc: Likewise.
3106         * math/libm-test-conj.inc: Likewise.
3107         * math/libm-test-copysign.inc: Likewise.
3108         * math/libm-test-cos.inc: Likewise.
3109         * math/libm-test-cosh.inc: Likewise.
3110         * math/libm-test-cpow.inc: Likewise.
3111         * math/libm-test-cproj.inc: Likewise.
3112         * math/libm-test-creal.inc: Likewise.
3113         * math/libm-test-csin.inc: Likewise.
3114         * math/libm-test-csinh.inc: Likewise.
3115         * math/libm-test-csqrt.inc: Likewise.
3116         * math/libm-test-ctan.inc: Likewise.
3117         * math/libm-test-ctanh.inc: Likewise.
3118         * math/libm-test-erf.inc: Likewise.
3119         * math/libm-test-erfc.inc: Likewise.
3120         * math/libm-test-exp.inc: Likewise.
3121         * math/libm-test-exp10.inc: Likewise.
3122         * math/libm-test-exp2.inc: Likewise.
3123         * math/libm-test-expm1.inc: Likewise.
3124         * math/libm-test-fabs.inc: Likewise.
3125         * math/libm-test-fdim.inc: Likewise.
3126         * math/libm-test-floor.inc: Likewise.
3127         * math/libm-test-fma.inc: Likewise.
3128         * math/libm-test-fmax.inc: Likewise.
3129         * math/libm-test-fmaxmag.inc: Likewise.
3130         * math/libm-test-fmin.inc: Likewise.
3131         * math/libm-test-fminmag.inc: Likewise.
3132         * math/libm-test-fmod.inc: Likewise.
3133         * math/libm-test-fpclassify.inc: Likewise.
3134         * math/libm-test-frexp.inc: Likewise.
3135         * math/libm-test-fromfp.inc: Likewise.
3136         * math/libm-test-fromfpx.inc: Likewise.
3137         * math/libm-test-getpayload.inc: Likewise.
3138         * math/libm-test-hypot.inc: Likewise.
3139         * math/libm-test-ilogb.inc: Likewise.
3140         * math/libm-test-iscanonical.inc: Likewise.
3141         * math/libm-test-iseqsig.inc: Likewise.
3142         * math/libm-test-isfinite.inc: Likewise.
3143         * math/libm-test-isgreater.inc: Likewise.
3144         * math/libm-test-isgreaterequal.inc: Likewise.
3145         * math/libm-test-isinf.inc: Likewise.
3146         * math/libm-test-isless.inc: Likewise.
3147         * math/libm-test-islessequal.inc: Likewise.
3148         * math/libm-test-islessgreater.inc: Likewise.
3149         * math/libm-test-isnan.inc: Likewise.
3150         * math/libm-test-isnormal.inc: Likewise.
3151         * math/libm-test-issignaling.inc: Likewise.
3152         * math/libm-test-issubnormal.inc: Likewise.
3153         * math/libm-test-isunordered.inc: Likewise.
3154         * math/libm-test-iszero.inc: Likewise.
3155         * math/libm-test-j0.inc: Likewise.
3156         * math/libm-test-j1.inc: Likewise.
3157         * math/libm-test-jn.inc: Likewise.
3158         * math/libm-test-lgamma.inc: Likewise.
3159         * math/libm-test-llogb.inc: Likewise.
3160         * math/libm-test-llrint.inc: Likewise.
3161         * math/libm-test-llround.inc: Likewise.
3162         * math/libm-test-log.inc: Likewise.
3163         * math/libm-test-log10.inc: Likewise.
3164         * math/libm-test-log1p.inc: Likewise.
3165         * math/libm-test-log2.inc: Likewise.
3166         * math/libm-test-logb.inc: Likewise.
3167         * math/libm-test-lrint.inc: Likewise.
3168         * math/libm-test-lround.inc: Likewise.
3169         * math/libm-test-modf.inc: Likewise.
3170         * math/libm-test-nearbyint.inc: Likewise.
3171         * math/libm-test-nextafter.inc: Likewise.
3172         * math/libm-test-nextdown.inc: Likewise.
3173         * math/libm-test-nexttoward.inc: Likewise.
3174         * math/libm-test-nextup.inc: Likewise.
3175         * math/libm-test-pow.inc: Likewise.
3176         * math/libm-test-remainder.inc: Likewise.
3177         * math/libm-test-remquo.inc: Likewise.
3178         * math/libm-test-rint.inc: Likewise.
3179         * math/libm-test-round.inc: Likewise.
3180         * math/libm-test-roundeven.inc: Likewise.
3181         * math/libm-test-scalb.inc: Likewise.
3182         * math/libm-test-scalbln.inc: Likewise.
3183         * math/libm-test-scalbn.inc: Likewise.
3184         * math/libm-test-setpayload.inc: Likewise.
3185         * math/libm-test-setpayloadsig.inc: Likewise.
3186         * math/libm-test-signbit.inc: Likewise.
3187         * math/libm-test-significand.inc: Likewise.
3188         * math/libm-test-sin.inc: Likewise.
3189         * math/libm-test-sincos.inc: Likewise.
3190         * math/libm-test-sinh.inc: Likewise.
3191         * math/libm-test-sqrt.inc: Likewise.
3192         * math/libm-test-tan.inc: Likewise.
3193         * math/libm-test-tanh.inc: Likewise.
3194         * math/libm-test-tgamma.inc: Likewise.
3195         * math/libm-test-totalorder.inc: Likewise.
3196         * math/libm-test-totalordermag.inc: Likewise.
3197         * math/libm-test-trunc.inc: Likewise.
3198         * math/libm-test-ufromfp.inc: Likewise.
3199         * math/libm-test-ufromfpx.inc: Likewise.
3200         * math/libm-test-y0.inc: Likewise.
3201         * math/libm-test-y1.inc: Likewise.
3202         * math/libm-test-yn.inc: Likewise.
3203         * math/README.libm-test: Update.
3204
3205         * math/gen-auto-libm-tests.c: Update comment about use of program.
3206         (generate_output): Add argument FUNCTION.
3207         (main): Require extra argument.  Pass function name to
3208         generate_output.
3209         * math/Makefile (generated): Add auto-libm-test-out.
3210         (libm-test-funcs-auto): New variable.
3211         (auto-libm-test-out-files): New variable.
3212         ($(objpfx)libm-test.c): Depend on $(auto-libm-test-out-files).
3213         Concatenate those files to form $(objpfx)auto-libm-test-out and
3214         use it as input to gen-libm-test.pl.
3215         * math/README.libm-test: Update.
3216         * math/auto-libm-test-out: Remove.
3217         * math/auto-libm-test-out-acos: New generated file.
3218         * math/auto-libm-test-out-acosh: Likewise.
3219         * math/auto-libm-test-out-asin: Likewise.
3220         * math/auto-libm-test-out-asinh: Likewise.
3221         * math/auto-libm-test-out-atan: Likewise.
3222         * math/auto-libm-test-out-atan2: Likewise.
3223         * math/auto-libm-test-out-atanh: Likewise.
3224         * math/auto-libm-test-out-cabs: Likewise.
3225         * math/auto-libm-test-out-carg: Likewise.
3226         * math/auto-libm-test-out-cbrt: Likewise.
3227         * math/auto-libm-test-out-ccos: Likewise.
3228         * math/auto-libm-test-out-ccosh: Likewise.
3229         * math/auto-libm-test-out-cexp: Likewise.
3230         * math/auto-libm-test-out-clog: Likewise.
3231         * math/auto-libm-test-out-clog10: Likewise.
3232         * math/auto-libm-test-out-cos: Likewise.
3233         * math/auto-libm-test-out-cosh: Likewise.
3234         * math/auto-libm-test-out-cpow: Likewise.
3235         * math/auto-libm-test-out-csin: Likewise.
3236         * math/auto-libm-test-out-csinh: Likewise.
3237         * math/auto-libm-test-out-csqrt: Likewise.
3238         * math/auto-libm-test-out-ctan: Likewise.
3239         * math/auto-libm-test-out-ctanh: Likewise.
3240         * math/auto-libm-test-out-erf: Likewise.
3241         * math/auto-libm-test-out-erfc: Likewise.
3242         * math/auto-libm-test-out-exp: Likewise.
3243         * math/auto-libm-test-out-exp10: Likewise.
3244         * math/auto-libm-test-out-exp2: Likewise.
3245         * math/auto-libm-test-out-expm1: Likewise.
3246         * math/auto-libm-test-out-fma: Likewise.
3247         * math/auto-libm-test-out-hypot: Likewise.
3248         * math/auto-libm-test-out-j0: Likewise.
3249         * math/auto-libm-test-out-j1: Likewise.
3250         * math/auto-libm-test-out-jn: Likewise.
3251         * math/auto-libm-test-out-lgamma: Likewise.
3252         * math/auto-libm-test-out-log: Likewise.
3253         * math/auto-libm-test-out-log10: Likewise.
3254         * math/auto-libm-test-out-log1p: Likewise.
3255         * math/auto-libm-test-out-log2: Likewise.
3256         * math/auto-libm-test-out-pow: Likewise.
3257         * math/auto-libm-test-out-sin: Likewise.
3258         * math/auto-libm-test-out-sincos: Likewise.
3259         * math/auto-libm-test-out-sinh: Likewise.
3260         * math/auto-libm-test-out-sqrt: Likewise.
3261         * math/auto-libm-test-out-tan: Likewise.
3262         * math/auto-libm-test-out-tanh: Likewise.
3263         * math/auto-libm-test-out-tgamma: Likewise.
3264         * math/auto-libm-test-out-y0: Likewise.
3265         * math/auto-libm-test-out-y1: Likewise.
3266         * math/auto-libm-test-out-yn: Likewise.
3267
3268         * math/Makefile (generated): Do not include libm-test.stmp.
3269         ($(addprefix $(objpfx), $(libm-tests-generated))): Do not depend
3270         on $(objpfx)libm-test.stmp.
3271         ($(objpfx)libm-test.stmp): Remove rule.
3272         ($(objpfx)libm-test-ulps.h): New rule.
3273         ($(objpfx)libm-test.c): Likewise.
3274         ($(objpfx)libm-have-vector-test.h): Likewise.
3275         ($(addprefix $(objpfx), $(libm-tests.o)): Depend directly on
3276         individual generated files, not libm-test.stmp.
3277
3278         * math/gen-libm-test.pl ($output_dir): Remove variable.
3279         ($srcdir): Likewise.
3280         ($opt_a): New variable.
3281         ($opt_c): Likewise.
3282         ($opt_C): Likewise.
3283         ($opt_H): Likewise.
3284         (-n): Make option take argument and use it as NewUlps output.
3285         (-a): New option.  Use its argument for auto-libm-test-out input.
3286         (-c): New option.  Use its argument for libm-test.inc input.
3287         (-C): New option.  Use its argument for libm-test.c output.
3288         (-H): New option.  Use its argument for libm-test-ulps.h output.
3289         (top level): Only process inputs needed to generate outputs
3290         specified by command-line options.  Only generate outputs
3291         specified by command-line options.
3292         * math/README.libm-test: Update example gen-libm-test.pl command.
3293         * math/Makefile ($(objpfx)libm-test.stmp): Update gen-libm-test.pl
3294         commands.
3295         (regen-ulps): Likewise.
3296
3297 2017-02-06  Wilco Dijkstra  <wdijkstr@arm.com>
3298
3299         * hurd/path-lookup.c (file_name_path_scan): Rename index to strchr.
3300         * include/string.h (index): Remove define.
3301         (rindex): Likewise.
3302         * misc/getttyent.c (__getttyent): Rename index to strchr.
3303         * misc/ttyslot.c (ttyslot): Rename rindex to strrchr.
3304         * sunrpc/rpc_main.c (mkfile_output): Likewise.
3305
3306 2017-02-06  Joseph Myers  <joseph@codesourcery.com>
3307
3308         * math/libm-test-driver.c: New file.  Based on math/libm-test.inc.
3309         * math/libm-test.inc: Move all contents, other than tests of
3310         individual functions, to libm-test-driver.c.
3311         [!FE_TONEAREST] (FE_TONEAREST): Move to libm-test-driver.c.
3312         [!FE_TOWARDZERO] (FE_TOWARDZERO): Likewise.
3313         [!FE_UPWARD] (FE_UPWARD): Likewise.
3314         [!FE_DOWNWARD] (FE_DOWNWARD): Likewise.
3315         (NO_EXCEPTION): Likewise.
3316         (INVALID_EXCEPTION): Likewise.
3317         (DIVIDE_BY_ZERO_EXCEPTION): Likewise.
3318         (OVERFLOW_EXCEPTION): Likewise.
3319         (UNDERFLOW_EXCEPTION): Likewise.
3320         (INEXACT_EXCEPTION): Likewise.
3321         (INVALID_EXCEPTION_OK): Likewise.
3322         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
3323         (OVERFLOW_EXCEPTION_OK): Likewise.
3324         (UNDERFLOW_EXCEPTION_OK): Likewise.
3325         (NO_INEXACT_EXCEPTION): Likewise.
3326         (EXCEPTIONS_OK): Likewise.
3327         (IGNORE_ZERO_INF_SIGN): Likewise.
3328         (TEST_NAN_SIGN): Likewise.
3329         (TEST_NAN_PAYLOAD): Likewise.
3330         (NO_TEST_INLINE): Likewise.
3331         (XFAIL_TEST): Likewise.
3332         (ERRNO_UNCHANGED): Likewise.
3333         (ERRNO_EDOM): Likewise.
3334         (ERRNO_ERANGE): Likewise.
3335         (IGNORE_RESULT): Likewise.
3336         (NON_FINITE): Likewise.
3337         (TEST_SNAN): Likewise.
3338         (NO_TEST_MATHVEC): Likewise.
3339         (TEST_NAN_PAYLOAD_CANONICALIZE): Likewise.
3340         (__CONCATX): Likewise.
3341         (TYPE_MIN): Likewise.
3342         (TYPE_TRUE_MIN): Likewise.
3343         (TYPE_MAX): Likewise.
3344         (MIN_EXP): Likewise.
3345         (MAX_EXP): Likewise.
3346         (MANT_DIG): Likewise.
3347         (FSTR_MAX): Likewise.
3348         (ULP_IDX): Likewise.
3349         (QTYPE_STR): Likewise.
3350         (TEST_COND_binary32): Likewise.
3351         (TEST_COND_binary64): Likewise.
3352         (TEST_COND_binary128): Likewise.
3353         (TEST_COND_ibm128): Likewise.
3354         (TEST_COND_intel96): Likewise.
3355         (TEST_COND_m68k96): Likewise.
3356         (TEST_COND_ibm128_libgcc): Likewise.
3357         (XFAIL_IBM128_LIBGCC): Likewise.
3358         (PAYLOAD_DIG): Likewise.
3359         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
3360         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
3361         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
3362         (UNDERFLOW_EXCEPTION_OK_DOUBLE): Likewise.
3363         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
3364         (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): Likewise.
3365         (TEST_COND_long32): Likewise.
3366         (TEST_COND_long64): Likewise.
3367         (TEST_COND_before_rounding): Likewise.
3368         (TEST_COND_after_rounding): Likewise.
3369         (lit_pi_3_m_4_d): Likewise.
3370         (lit_pi_3_m_4_ln10_m_d): Likewise.
3371         (lit_pi_2_ln10_m_d): Likewise.
3372         (lit_pi_4_ln10_m_d): Likewise.
3373         (lit_pi_ln10_d): Likewise.
3374         (lit_pi_2_d): Likewise.
3375         (lit_pi_4_d): Likewise.
3376         (lit_pi): Likewise.
3377         (lit_e): Likewise.
3378         (ulps_file_name): Likewise.
3379         (ulps_file): Likewise.
3380         (output_ulps): Likewise.
3381         (output_dir): Likewise.
3382         (noErrors): Likewise.
3383         (noTests): Likewise.
3384         (noExcTests): Likewise.
3385         (noErrnoTests): Likewise.
3386         (verbose): Likewise.
3387         (output_max_error): Likewise.
3388         (output_points): Likewise.
3389         (ignore_max_ulp): Likewise.
3390         (plus_zero): Likewise.
3391         (minus_zero): Likewise.
3392         (plus_infty): Likewise.
3393         (minus_infty): Likewise.
3394         (qnan_value_pl): Likewise.
3395         (qnan_value): Likewise.
3396         (snan_value_pl): Likewise.
3397         (snan_value): Likewise.
3398         (max_value): Likewise.
3399         (min_value): Likewise.
3400         (min_subnorm_value): Likewise.
3401         (snan_value_ld): Likewise.
3402         (max_error): Likewise.
3403         (real_max_error): Likewise.
3404         (imag_max_error): Likewise.
3405         (prev_max_error): Likewise.
3406         (prev_real_max_error): Likewise.
3407         (prev_imag_max_error): Likewise.
3408         (max_valid_error): Likewise.
3409         (TYPE_DECIMAL_DIG): Likewise.
3410         (TYPE_HEX_DIG): Likewise.
3411         (fmt_ftostr): Likewise.
3412         (compare_ulp_data): Likewise.
3413         (find_ulps): Likewise.
3414         (init_max_error): Likewise.
3415         (set_max_error): Likewise.
3416         (print_float): Likewise.
3417         (print_screen): Likewise.
3418         (print_screen_max_error): Likewise.
3419         (update_stats): Likewise.
3420         (print_function_ulps): Likewise.
3421         (print_complex_function_ulps): Likewise.
3422         (fpstack_test): Likewise.
3423         (print_max_error): Likewise.
3424         (print_complex_max_error): Likewise.
3425         (test_single_exception): Likewise.
3426         (test_exceptions): Likewise.
3427         (test_single_errno): Likewise.
3428         (test_errno): Likewise.
3429         (ULPDIFF): Likewise.
3430         (ulp): Likewise.
3431         (check_float_internal): Likewise.
3432         (check_float): Likewise.
3433         (check_complex): Likewise.
3434         (check_int): Likewise.
3435         (check_long): Likewise.
3436         (check_bool): Likewise.
3437         (check_longlong): Likewise.
3438         (check_intmax_t): Likewise.
3439         (check_uintmax_t): Likewise.
3440         (enable_test): Likewise.
3441         (struct test_f_f_data): Likewise.
3442         (struct test_ff_f_data): Likewise.
3443         (struct test_fj_f_data): Likewise.
3444         (struct test_fi_f_data): Likewise.
3445         (struct test_fl_f_data): Likewise.
3446         (struct test_if_f_data): Likewise.
3447         (struct test_fff_f_data): Likewise.
3448         (struct test_fiu_M_data): Likewise.
3449         (struct test_fiu_U_data): Likewise.
3450         (struct test_c_f_data): Likewise.
3451         (struct test_f_f1_data): Likewise.
3452         (struct test_fF_f1_data): Likewise.
3453         (struct test_ffI_f1_data): Likewise.
3454         (struct test_c_c_data): Likewise.
3455         (struct test_cc_c_data): Likewise.
3456         (struct test_f_i_data): Likewise.
3457         (struct test_ff_i_data): Likewise.
3458         (struct test_f_l_data): Likewise.
3459         (struct test_f_L_data): Likewise.
3460         (struct test_fFF_11_data): Likewise.
3461         (struct test_Ff_b1_data): Likewise.
3462         (IF_ROUND_INIT_): Likewise.
3463         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
3464         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
3465         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
3466         (IF_ROUND_INIT_FE_UPWARD): Likewise.
3467         (ROUND_RESTORE_): Likewise.
3468         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
3469         (ROUND_RESTORE_FE_TONEAREST): Likewise.
3470         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
3471         (ROUND_RESTORE_FE_UPWARD): Likewise.
3472         (RM_): Likewise.
3473         (RM_FE_DOWNWARD): Likewise.
3474         (RM_FE_TONEAREST): Likewise.
3475         (RM_FE_TOWARDZERO): Likewise.
3476         (RM_FE_UPWARD): Likewise.
3477         (COMMON_TEST_SETUP): Likewise.
3478         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
3479         (COMMON_TEST_CLEANUP): Likewise.
3480         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
3481         (RUN_TEST_f_f): Likewise.
3482         (RUN_TEST_LOOP_f_f): Likewise.
3483         (RUN_TEST_fp_f): Likewise.
3484         (RUN_TEST_LOOP_fp_f): Likewise.
3485         (RUN_TEST_2_f): Likewise.
3486         (RUN_TEST_LOOP_2_f): Likewise.
3487         (RUN_TEST_ff_f): Likewise.
3488         (RUN_TEST_LOOP_ff_f): Likewise.
3489         (RUN_TEST_LOOP_fj_f): Likewise.
3490         (RUN_TEST_fi_f): Likewise.
3491         (RUN_TEST_LOOP_fi_f): Likewise.
3492         (RUN_TEST_fl_f): Likewise.
3493         (RUN_TEST_LOOP_fl_f): Likewise.
3494         (RUN_TEST_if_f): Likewise.
3495         (RUN_TEST_LOOP_if_f): Likewise.
3496         (RUN_TEST_fff_f): Likewise.
3497         (RUN_TEST_LOOP_fff_f): Likewise.
3498         (RUN_TEST_fiu_M): Likewise.
3499         (RUN_TEST_LOOP_fiu_M): Likewise.
3500         (RUN_TEST_fiu_U): Likewise.
3501         (RUN_TEST_LOOP_fiu_U): Likewise.
3502         (RUN_TEST_c_f): Likewise.
3503         (RUN_TEST_LOOP_c_f): Likewise.
3504         (RUN_TEST_f_f1): Likewise.
3505         (RUN_TEST_LOOP_f_f1): Likewise.
3506         (RUN_TEST_fF_f1): Likewise.
3507         (RUN_TEST_LOOP_fF_f1): Likewise.
3508         (RUN_TEST_fI_f1): Likewise.
3509         (RUN_TEST_LOOP_fI_f1): Likewise.
3510         (RUN_TEST_ffI_f1_mod8): Likewise.
3511         (RUN_TEST_LOOP_ffI_f1_mod8): Likewise.
3512         (RUN_TEST_Ff_b1): Likewise.
3513         (RUN_TEST_LOOP_Ff_b1): Likewise.
3514         (RUN_TEST_Ffp_b1): Likewise.
3515         (RUN_TEST_LOOP_Ffp_b1): Likewise.
3516         (RUN_TEST_c_c): Likewise.
3517         (RUN_TEST_LOOP_c_c): Likewise.
3518         (RUN_TEST_cc_c): Likewise.
3519         (RUN_TEST_LOOP_cc_c): Likewise.
3520         (RUN_TEST_f_i): Likewise.
3521         (RUN_TEST_LOOP_f_i): Likewise.
3522         (RUN_TEST_f_i_tg): Likewise.
3523         (RUN_TEST_LOOP_f_i_tg): Likewise.
3524         (RUN_TEST_ff_b): Likewise.
3525         (RUN_TEST_LOOP_ff_b): Likewise.
3526         (RUN_TEST_ff_i_tg): Likewise.
3527         (RUN_TEST_LOOP_ff_i_tg): Likewise.
3528         (RUN_TEST_f_b): Likewise.
3529         (RUN_TEST_LOOP_f_b): Likewise.
3530         (RUN_TEST_f_b_tg): Likewise.
3531         (RUN_TEST_LOOP_f_b_tg): Likewise.
3532         (RUN_TEST_f_l): Likewise.
3533         (RUN_TEST_LOOP_f_l): Likewise.
3534         (RUN_TEST_f_L): Likewise.
3535         (RUN_TEST_LOOP_f_L): Likewise.
3536         (RUN_TEST_fFF_11): Likewise.
3537         (RUN_TEST_LOOP_fFF_11): Likewise.
3538         (VEC_SUFF): Likewise.
3539         (STR_CONCAT): Likewise.
3540         (STR_CON3): Likewise.
3541         (HAVE_VECTOR): Likewise.
3542         (START): Likewise.
3543         (END): Likewise.
3544         (END_COMPLEX): Likewise.
3545         (ALL_RM_TEST): Likewise.
3546         (matherr): Likewise.
3547         (initialize): Likewise.
3548         (options): Likewise.
3549         (doc): Likewise.
3550         (parse_opt): Likewise.
3551         (argp): Likewise.
3552         (check_ulp): Likewise.
3553         (main): Likewise.
3554         (do_test): New function.  Call tests of individual functions
3555         previously called from main.
3556
3557         * math/libm-test.inc: Remove comment listing functions tested and
3558         not tested.
3559
3560 2016-02-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3561
3562         * nptl/allocatestack.c [COLORING_INCREMENT] (nptl_ncreated): Remove.
3563         (allocate_stack): Remove COLORING_INCREMENT usage.
3564         * nptl/stack-aliasing.h (COLORING_INCREMENT). Likewise.
3565         * sysdeps/i386/i686/stack-aliasing.h (COLORING_INCREMENT): Likewise.
3566
3567 2017-02-06  Joseph Myers  <joseph@codesourcery.com>
3568
3569         * manual/libm-err-tab.pl (@all_functions): Change to
3570         %all_functions.  Initialize as empty.
3571         (parse_ulps): Add to %all_functions based on functions found in
3572         ulps files.  Ignore results for non-default rounding modes and
3573         vector functions.
3574         (print_platforms): Use %all_platforms.
3575         * manual/math.texi (Errors in Math Functions): Document omissions
3576         from the table.
3577
3578         * math/Makefile (before-compile): Remove.
3579
3580 2017-02-06  Ivo Raisr <ivo.raisr@oracle.com>
3581
3582         [BZ #21075]
3583         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Remove
3584         unused assignment.
3585         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
3586
3587 2017-02-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
3588
3589         * sysdeps/nptl/lowlevellock.h (lll_trylock, lll_cond_trylock):
3590         Add __glibc_unlikely hint.
3591
3592 2017-02-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3593
3594         [BZ #16640]
3595         * sysdeps/i386/i686/strtok.S: Remove file.
3596         * sysdeps/i386/i686/strtok_r.S: Likewise.
3597         * sysdeps/i386/strtok.S: Likewise.
3598         * sysdeps/i386/strtok_r.S: Likewise.
3599         * sysdeps/powerpc/powerpc64/strtok.S: Likewise.
3600         * sysdeps/powerpc/powerpc64/strtok_r.S: Likewise.
3601         * sysdeps/x86_64/strtok.S: Likewise.
3602         * sysdeps/x86_64/strtok_r.S: Likewise.
3603
3604         * sysdeps/unix/sysv/linux/arm/posix_fadvise.c: Remove file.
3605         * sysdeps/unix/sysv/linux/mips/mips32/posix_fadvise.c: Likewise.
3606         * sysdeps/unix/sysv/linux/mips/kernel-features.h
3607         (__ASSUME_FADVISE64_AS_64_64): Define.
3608         * sysdeps/unix/sysv/linux/posix_fadvise.c [__NR_fadvise64]: Add
3609         !defined __ASSUME_FADVISE64_AS_64_64 to use syscall issue.
3610         [!__NR_fadvise64 && __ASSUME_FADVISE64_64_6ARG]: Remove
3611         __ALIGNMENT_ARG usage.
3612         [!__NR_fadvise64 && !__ASSUME_FADVISE64_64_6ARG]: Define
3613         __NR_fadvise64_64 if it is not defined.
3614
3615 2017-02-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3616
3617         * version.h (RELEASE): Set to "development"
3618         (VERSION): Set to 2.25.90.
3619         * NEWS: Add 2.26 section.
3620
3621         * version.h (RELEASE): Set to "stable"
3622         (VERSION): Set to 2.25.
3623         * include/features.h (__GLIBC_MINOR__): Set to 25.
3624
3625         * manual/contrib.texi: Add more contributors from this release
3626         and past releases.
3627
3628         * NEWS (2.25): Add list of bugs fixed.
3629
3630         * NEWS: Add missing news items.
3631
3632 2017-02-04  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3633
3634         * elf/tst-env-setuid.c (do_execve): Return EXIT_UNSUPPORTED in
3635         parent if child exited in that manner.  Print WEXITSTATUS
3636         instead of the raw status.
3637         (do_test_prep): Rename to do_test.
3638         (do_test): Return the result of run_executable_sgid.
3639         (TEST_FUNCTION_ARGV): Adjust.
3640
3641 2017-02-03  Alexandre Oliva  <aoliva@redhat.com>
3642             Florian Weimer  <fweimer@redhat.com>
3643             Carlos O'Donell  <carlos@redhat.com>
3644
3645         [BZ #20915]
3646         * elf/dl-reloc.c (_dl_nothread_init_static_tls):
3647         Do not initialize DTV.
3648         * nptl/allocatestack.c (init_one_static_tls): Likewise.
3649
3650 2017-02-03  David S. Miller  <davem@davemloft.net>
3651
3652         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax-vis3.S: Remove file.
3653         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
3654         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: Likewise.
3655         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
3656         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: Likewise.
3657         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
3658         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: Likewise.
3659         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
3660         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
3661         (libm-sysdep_routines): Update.
3662         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Remove file.
3663         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: Likewise.
3664         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
3665         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: Likewise.
3666         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
3667         * sysdeps/sparc/sparc64/fpu/s_fmax.S: Likewise.
3668         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: Likewise.
3669         * sysdeps/sparc/sparc64/fpu/s_fmin.S: Likewise.
3670         * sysdeps/sparc/sparc64/fpu/s_fminf.S: Likewise.
3671         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S:
3672         Likewise.
3673         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
3674         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S:
3675         Likewise.
3676         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
3677         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S:
3678         Likewise.
3679         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
3680         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S:
3681         Likewise.
3682         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
3683         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
3684         (libm-sysdep_routines): Update.
3685
3686 2017-02-02  H.J. Lu  <hongjiu.lu@intel.com>
3687
3688         * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
3689         _dl_fatal_printf with _dl_error_printf for IFUNC relocation
3690         against unrelocated shared library.
3691         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
3692
3693 2017-02-02  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3694
3695         * sysdeps/generic/unsecvars.h: Add GLIBC_TUNABLES.
3696         * elf/tst-env-setuid-tunables.c
3697         (test_child_tunables)[!HAVE_TUNABLES]: Verify that
3698         GLIBC_TUNABLES is removed in a setgid process.
3699
3700         [BZ #21073]
3701         * elf/dl-tunable-types.h (tunable_seclevel_t): New enum.
3702         * elf/dl-tunables.c (tunables_strdup): Remove.
3703         (get_next_env): Also return the previous envp.
3704         (parse_tunables): Erase tunables of category
3705         TUNABLES_SECLEVEL_SXID_ERASE.
3706         (maybe_enable_malloc_check): Make MALLOC_CHECK_
3707         TUNABLE_SECLEVEL_NONE if /etc/setuid-debug is accessible.
3708         (__tunables_init)[TUNABLES_FRONTEND ==
3709         TUNABLES_FRONTEND_valstring]: Update GLIBC_TUNABLES envvar
3710         after parsing.
3711         [TUNABLES_FRONTEND != TUNABLES_FRONTEND_valstring]: Erase
3712         tunable envvars of category TUNABLES_SECLEVEL_SXID_ERASE.
3713         * elf/dl-tunables.h (struct _tunable): Change member is_secure
3714         to security_level.
3715         * elf/dl-tunables.list: Add security_level annotations for all
3716         tunables.
3717         * scripts/gen-tunables.awk: Recognize and generate enum values
3718         for security_level.
3719         * elf/tst-env-setuid.c: New test case.
3720         * elf/tst-env-setuid-tunables: new test case.
3721         * elf/Makefile (tests-static): Add them.
3722
3723 2017-02-01  Richard Henderson  <rth@twiddle.net>
3724
3725         * sysdeps/alpha/memchr.c (__memchr): Use saturating arithmetic
3726         adjusting the byte count.
3727
3728 2017-02-01  Andreas Schwab  <schwab@linux-m68k.org>
3729
3730         * conform/Makefile (linknamespace-libs): Define.
3731
3732         * sysdeps/m68k/m680x0/m68020/atomic-machine.h
3733         (__arch_compare_and_exchange_val_64_acq, atomic_exchange_acq)
3734         (atomic_exchange_and_add, atomic_add): Add casts to 64 bit asm
3735         operands.
3736
3737 2017-01-31  Chung-Lin Tang  <cltang@codesourcery.com>
3738
3739         * sysdeps/unix/sysv/linux/nios2/ipc_priv.h: New file.
3740
3741 2017-01-30  H.J. Lu  <hongjiu.lu@intel.com>
3742
3743         [BZ #21081]
3744         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
3745         (L(stosb)): Add VZEROUPPER before ret.
3746
3747 2016-01-28  Carlos O'Donell  <carlos@redhat.com>
3748             Alexey Makhalov <amakhalov@vmware.com>
3749             Florian Weimer <fweimer@redhat.com>
3750
3751         [BZ #20116]
3752         * nptl/pthread_create.c: Document concurrency notes.
3753         Enhance thread creation notes.
3754         (create_thread): Use bool *stopped_start.
3755         (START_THREAD_DEFN): Comment ownership of PD.
3756         (__pthread_create_2_1): Add local bool stopped_start and use
3757         that instead of pd->stopped_start where appropriate.
3758         * nptl/createthread.c (create_thread): Use bool *stopped_start.
3759         * sysdeps/nacl/createthread.c (create_thread): Use bool *stopped_start.
3760         * sysdeps/unix/sysv/linux/createthread.c (create_thread): Likewise.
3761         * nptl/tst-create-detached.c: New file.
3762         * nptl/Makefile (tests): Add tst-create-detached.
3763         * nptl/pthread_getschedparam.c (__pthread_getschedparam):
3764         Reference the enhanced thread creation notes.
3765         * nptl/pthread_setschedparam.c (__pthread_setschedparam): Likewise.
3766         * nptl/pthread_setschedprio.c (pthread_setschedprio): Likewise.
3767         * nptl/tpp.c (__pthread_tpp_change_priority): Likewise.
3768         (__pthread_current_priority): Likewise.
3769         * support/Makefile (libsupport-routines): Add xpthread_attr_destroy
3770         xpthread_attr_init, xpthread_attr_setdetachstate, and
3771         xpthread_attr_setstacksize.
3772         * support/xpthread_attr_destroy.c: New file.
3773         * support/xpthread_attr_init.c: New file.
3774         * support/xpthread_attr_setdetachstate.c: New file.
3775         * support/xpthread_attr_setstacksize.c: New file.
3776         * support/xthread.h: Define prototypes for xpthread_attr_destroy
3777         xpthread_attr_init, xpthread_attr_setdetachstate, and
3778         xpthread_attr_setstacksize.
3779
3780 2017-01-27  Florian Weimer  <fweimer@redhat.com>
3781
3782         * nptl/Makefile (tests): Add tst-robust-fork.
3783         * nptl/tst-robust-fork.c: New file.
3784         * support/Makefile (libsupport-routines): Add xmmap, xmunmap,
3785         xpthread_mutex_consistent, xpthread_mutex_destroy,
3786         xpthread_mutex_init, xpthread_mutexattr_destroy,
3787         xpthread_mutexattr_init, xpthread_mutexattr_setprotocol,
3788         xpthread_mutexattr_setpshared, xpthread_mutexattr_setrobust,
3789         xpthread_mutexattr_settype.
3790         * support/xmmap.c: New file.
3791         * support/xmunmap.c: Likewise.
3792         * support/xpthread_mutex_consistent.c: Likewise.
3793         * support/xpthread_mutex_destroy.c: Likewise.
3794         * support/xpthread_mutex_init.c: Likewise.
3795         * support/xpthread_mutexattr_destroy.c: Likewise.
3796         * support/xpthread_mutexattr_init.c: Likewise.
3797         * support/xpthread_mutexattr_setprotocol.c: Likewise.
3798         * support/xpthread_mutexattr_setpshared.c: Likewise.
3799         * support/xpthread_mutexattr_setrobust.c: Likewise.
3800         * support/xpthread_mutexattr_settype.c: Likewise.
3801         * support/xthread.h (xpthread_mutexattr_destroy)
3802         (xpthread_mutexattr_init, xpthread_mutexattr_setprotocol)
3803         (xpthread_mutexattr_setpshared, xpthread_mutexattr_setrobust)
3804         (xpthread_mutexattr_settype, xpthread_mutex_init)
3805         (xpthread_mutex_destroy, xpthread_mutex_consistent): Declare.
3806         * support/xunistd.h (xmmap, xmunmap): Likewise.
3807
3808 2017-01-25  Florian Weimer  <fweimer@redhat.com>
3809
3810         * string/Makefile (xtests): Add comment.
3811         (LOCALES): Add en_GB.UTF-8.
3812         (tst-strcoll-overflow.out): Depend on generated locales.
3813         * string/tst-strcoll-overflow.c: Convert to support/test-driver.c.
3814         (SIZE, TIMEOUT): Update comments.
3815         (do_test): Define as static.  Fail test if setlocale fails.
3816         Return EXIT_UNSUPPORTED if insufficient memory.  Enhance output
3817         messages.
3818         (EXPECTED_SIGNAL, EXPECTED_STATUS, TEST_FUNCTION): Remove.
3819         TIMEOUT at 300 seconds should be enough to run this test
3820         successfully.
3821
3822 2017-01-24  Jakub Jelinek  <jakub@redhat.com>
3823
3824         * soft-fp/op-common.h (_FP_MUL, _FP_FMA, _FP_DIV): Add
3825         /* FALLTHRU */ comments.
3826
3827 2017-01-24  James Clarke  <jrtc27@jrtc27.com>
3828
3829         [BZ #21053]
3830         * sysdeps/unix/sysv/linux/sh/sh3/ucontext_i.sym: Use new REG_R*
3831         constants instead of the old R* ones.
3832         * sysdeps/unix/sysv/linux/sh/sh4/ucontext_i.sym: Likewise.
3833         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (NGPREG): Rename...
3834         (NGREG): ... to this, to fit in with other architectures.
3835         (gpregset_t): Use new NGREG macro.
3836         [__USE_GNU]: Remove condition; all architectures other than tile
3837         are unconditional.
3838         (R*): Rename to REG_R*.
3839
3840 2017-01-20  DJ Delorie  <dj@redhat.com>
3841
3842         * elf/dl-tunables.c (tunable_set_val_if_valid_range): Split into ...
3843         (tunable_set_val_if_valid_range_signed) ... this, and ...
3844         (tunable_set_val_if_valid_range_unsigned) ... this.
3845         (tunable_initialize): Call the correct one of the above based on type.
3846
3847 2017-01-20  Joseph Myers  <joseph@codesourcery.com>
3848
3849         * sysdeps/hppa/fpu/libm-test-ulps: Remove *_tonearest entries.
3850         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
3851         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
3852         * sysdeps/microblaze/libm-test-ulps: Likewise.
3853         * sysdeps/sh/libm-test-ulps: Likewise.
3854
3855         * math/README.libm-test: Update list of characters for input and
3856         output types.
3857
3858 2017-01-20  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3859
3860         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
3861         (__lll_unlock_elision): Fix adapt_count decrement.
3862
3863 2017-01-14  Martin Galvan  <martingalvan@sourceware.org>
3864
3865         * README.pretty-printers (Known issues): Warn about printers not
3866         always covering everything.
3867         * nptl/nptl-printers.py (MutexPrinter): Change output.
3868         * nptl/test-mutex-printers.py: Fix test and adapt to changed output.
3869
3870 2017-01-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
3871
3872         * sysdeps/unix/sysv/linux/s390/htm.h: Adjust comments.
3873         * sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
3874         * sysdeps/unix/sysv/linux/s390/elision-lock.c: Adjust comments.
3875         (__lll_lock_elision): Do not test futex before starting a
3876         transaction.  Use __glibc_likely instead of __builtin_expect.
3877         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: Adjust comments.
3878         (__lll_trylock_elision): Do not test futex before starting a
3879         transaction.  Use __glibc_likely instead of __builtin_expect.
3880
3881 2017-01-20  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3882
3883         * po/Makefile (update-translations): New target.
3884
3885 2017-01-19  Joseph Myers  <joseph@codesourcery.com>
3886
3887         [BZ #21061]
3888         * sysdeps/unix/sysv/linux/microblaze/clock-compat.c: New file.
3889
3890 2017-01-19  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3891
3892         * elf/dl-tunables (get_next_env): Always advance envp.
3893         * stdlib/tst-empty-env.c: New test case.
3894         * stdlib/Makefile (tests): Use it.
3895
3896 2017-01-19  Joseph Myers  <joseph@codesourcery.com>
3897
3898         [BZ #21047]
3899         * sysdeps/arm/fpu_control.h [!__SOFTFP__] (_FPU_GETCW): Use VFP
3900         name for instruction.
3901         [!__SOFTFP__] (_FPU_SETCW): Likewise.
3902
3903 2017-01-18  Joseph Myers  <joseph@codesourcery.com>
3904
3905         * scripts/build-many-glibcs.py (Config.build_cross_tool): Use -j1
3906         for make install.
3907
3908 2017-01-18  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3909
3910         * po/bg.po: Merge from Translation Project.
3911         * po/fr.po: Likewise.
3912         * po/ko.po: Likewise.
3913         * po/nl.po: Likewise.
3914         * po/sv.po: Likewise.
3915
3916 2017-01-18  Joseph Myers  <joseph@codesourcery.com>
3917
3918         * manual/install.texi (Tools for Compilation): Update GCC version
3919         known to work to build glibc.
3920         * INSTALL: Regenerated.
3921
3922 2017-01-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
3923
3924         [BZ #21006]
3925         * string/Makefile (LDFLAGS-tst-xbzero-opt): New variable.
3926
3927 2017-01-16  Joseph Myers  <joseph@codesourcery.com>
3928
3929         [BZ #21045]
3930         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
3931         (__CONTEXT_FUNC_NAME): Pass address of signal mask to be restored
3932         to __sigprocmask.
3933
3934 2017-01-16  Chris Metcalf  <cmetcalf@mellanox.com>
3935
3936         * sysdeps/tile/tilegx/memchr.c (__memchr): Handle pointer
3937         wrap-around.
3938         * sysdeps/tile/tilepro/memchr.c (__memchr): Likewise.
3939
3940         * sysdeps/unix/sysv/linux/tile/ipc_priv.h: New file.
3941
3942 2016-01-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3943
3944         * NEWS: Fix typo.
3945
3946 2016-01-13  Torvald Riegel  <triegel@redhat.com>
3947
3948         * nptl/descr.h (ENQUEUE_MUTEX_BOTH, DEQUEUE_MUTEX): Add compiler
3949         barriers and comments.
3950         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Likewise.
3951         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
3952         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
3953
3954 2016-01-13  Torvald Riegel  <triegel@redhat.com>
3955
3956         [BZ #19402]
3957         * sysdeps/nptl/fork.c (__libc_fork): Clear list of acquired robust
3958         mutexes.
3959
3960 2016-01-13  Torvald Riegel  <triegel@redhat.com>
3961
3962         [BZ #20985]
3963         * nptl/Makefile: Adapt.
3964         * nptl/pthread_mutex_cond_lock.c (LLL_ROBUST_MUTEX_LOCK): Remove.
3965         (LLL_ROBUST_MUTEX_LOCK_MODIFIER): New.
3966         * nptl/pthread_mutex_lock.c (LLL_ROBUST_MUTEX_LOCK): Remove.
3967         (LLL_ROBUST_MUTEX_LOCK_MODIFIER): New.
3968         (__pthread_mutex_lock_full): Inline lll_robust* functions and adapt.
3969         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Inline
3970         lll_robust* functions and adapt.
3971         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
3972         * sysdeps/nptl/lowlevellock.h (__lll_robust_lock_wait,
3973         __lll_robust_lock, lll_robust_cond_lock, __lll_robust_timedlock_wait,
3974         __lll_robust_timedlock, __lll_robust_unlock): Remove.
3975         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_robust_lock,
3976         lll_robust_cond_lock, lll_robust_timedlock, lll_robust_unlock): Remove.
3977         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_robust_lock,
3978         lll_robust_cond_lock, lll_robust_timedlock, lll_robust_unlock): Remove.
3979         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (__lll_robust_lock_wait,
3980         __lll_robust_lock, lll_robust_cond_lock, __lll_robust_timedlock_wait,
3981         __lll_robust_timedlock, __lll_robust_unlock): Remove.
3982         * nptl/lowlevelrobustlock.c: Remove file.
3983         * nptl/lowlevelrobustlock.sym: Likewise.
3984         * sysdeps/unix/sysv/linux/i386/lowlevelrobustlock.S: Likewise.
3985         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Likewise.
3986
3987 2017-01-13  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3988
3989         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
3990
3991 2017-01-12  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3992
3993         * po/cs.po: Merge translations from the Translation Project.
3994         * po/de.po: Likewise.
3995         * po/pl.po: Likewise.
3996         * po/ru.po: Likewise.
3997         * po/tr.po: Likewise.
3998         * po/uk.po: Likewise.
3999         * po/vi.po: Likewise.
4000         * po/zh_CN.po: Likewise.
4001
4002 2017-01-12  Joseph Myers  <joseph@codesourcery.com>
4003
4004         * sysdeps/unix/sysv/linux/mips/mips32/posix_fadvise.c: New file.
4005
4006         * math/fgetexcptflg.c (__fegetexceptflag): Store 0 in fexcept_t
4007         object.
4008
4009 2017-01-11  Joseph Myers  <joseph@codesourcery.com>
4010
4011         [BZ #16458]
4012         * bits/uintn-identity.h: New file.
4013         * inet/netinet/in.h: Include <bits/uintn-identity.h>.
4014         [__BYTE_ORDER == __BIG_ENDIAN] (ntohl): Use __uint32_identity.
4015         [__BYTE_ORDER == __BIG_ENDIAN] (ntohs): Use __uint16_identity.
4016         [__BYTE_ORDER == __BIG_ENDIAN] (htonl): Use __uint32_identity.
4017         [__BYTE_ORDER == __BIG_ENDIAN] (htohs): Use __uint16_identity.
4018         * string/endian.h: Include <bits/uintn-identity.h>.
4019         [__BYTE_ORDER == __LITTLE_ENDIAN] (htole16): Use
4020         __uint16_identity.
4021         [__BYTE_ORDER == __LITTLE_ENDIAN] (le16toh): Likewise.
4022         [__BYTE_ORDER == __LITTLE_ENDIAN] (htole32): Use
4023         __uint32_identity.
4024         [__BYTE_ORDER == __LITTLE_ENDIAN] (le32toh): Likewise.
4025         [__BYTE_ORDER == __LITTLE_ENDIAN] (htole64): Use
4026         __uint64_identity.
4027         [__BYTE_ORDER == __LITTLE_ENDIAN] (le64toh): Likewise.
4028         [__BYTE_ORDER != __LITTLE_ENDIAN] (htobe16): Use
4029         __uint16_identity.
4030         [__BYTE_ORDER != __LITTLE_ENDIAN] (be16toh): Likewise.
4031         [__BYTE_ORDER != __LITTLE_ENDIAN] (htobe32): Use
4032         __uint32_identity.
4033         [__BYTE_ORDER != __LITTLE_ENDIAN] (be32toh): Likewise.
4034         [__BYTE_ORDER != __LITTLE_ENDIAN] (htobe64): Use
4035         __uint64_identity.
4036         [__BYTE_ORDER != __LITTLE_ENDIAN] (be64toh): Likewise.
4037         * string/Makefile (headers): Add bits/uintn-identity.h.
4038         (tests): Add test-endian-types.
4039         * string/test-endian-types.c: New file.
4040         * inet/Makefile (tests): Add test-hnto-types.
4041         * inet/test-hnto-types.c: New file.
4042
4043 2016-01-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4044
4045         * po/be.po: Update from Translation Project.
4046         * po/bg.po: Likewise.
4047         * po/ca.po: Likewise.
4048         * po/cs.po: Likewise.
4049         * po/da.po: Likewise.
4050         * po/de.po: Likewise.
4051         * po/el.po: Likewise.
4052         * po/eo.po: Likewise.
4053         * po/es.po: Likewise.
4054         * po/fi.po: Likewise.
4055         * po/fr.po: Likewise.
4056         * po/gl.po: Likewise.
4057         * po/hr.po: Likewise.
4058         * po/hu.po: Likewise.
4059         * po/ia.po: Likewise.
4060         * po/id.po: Likewise.
4061         * po/it.po: Likewise.
4062         * po/ja.po: Likewise.
4063         * po/ko.po: Likewise.
4064         * po/lt.po: Likewise.
4065         * po/nb.po: Likewise.
4066         * po/nl.po: Likewise.
4067         * po/pl.po: Likewise.
4068         * po/pt_BR.po: Likewise.
4069         * po/ru.po: Likewise.
4070         * po/rw.po: Likewise.
4071         * po/sk.po: Likewise.
4072         * po/sl.po: Likewise.
4073         * po/sv.po: Likewise.
4074         * po/tr.po: Likewise.
4075         * po/uk.po: Likewise.
4076         * po/vi.po: Likewise.
4077         * po/zh_CN.po: Likewise.
4078         * po/zh_TW.po: Likewise.
4079
4080 2017-01-11  Joseph Myers  <joseph@codesourcery.com>
4081
4082         * stdio-common/tst-printf.c [__GNUC_PREREQ (7, 0)]: Ignore
4083         -Wformat-truncation instead of -Wformat-length.
4084         * time/tst-strptime2.c (mkbuf) [__GNUC_PREREQ (7, 0)]: Likewise.
4085         * stdio-common/tstdiomisc.c (F): Ignore -Wformat-truncation for
4086         GCC 7.
4087         * wcsmbs/tst-wcstof.c: Include <libc-internal.h>.
4088         (do_test): Ignore -Wformat-truncation for GCC 7.
4089
4090         * locale/programs/ld-address.c (INT_STR_ELEM): Increase size of
4091         buffer used to print long int value.
4092
4093         * elf/sotruss-lib.c (init): Increase space allocated for pid by
4094         one byte.  Print it with %ld, cast to long int.
4095
4096 2017-01-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4097
4098         * scripts/build-many-glibcs.py (os.cpu_count): Add compatibility definition.
4099         (re.fullmatch, subprocess.run): Likewise.
4100
4101 2016-01-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4102
4103         * po/libc.pot: Regenerate.
4104
4105 2016-01-10  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4106
4107         * elf/dl-tunables.c (tunables_unsetenv): Remove function.
4108         (min_strlen): Likewise.
4109         (disable_tunable): Likewise.
4110         (maybe_disable_malloc_check): Rename to
4111         maybe_enable_malloc_check.
4112         (maybe_enable_malloc_check): Enable glibc.malloc.check tunable
4113         if /etc/suid-debug file exists.
4114         (__tunables_init): Update caller.
4115         * elf/dl-tunables.list (glibc.malloc.check): Don't mark as
4116         secure.
4117
4118 2016-01-10  Torvald Riegel  <triegel@redhat.com>
4119
4120         * nptl/DESIGN-rwlock.txt: Remove.
4121         * nptl/lowlevelrwlock.sym: Remove.
4122         * nptl/Makefile: Add new tests.
4123         * nptl/pthread_rwlock_common.c: New file.  Contains the new rwlock.
4124         * nptl/pthreadP.h (PTHREAD_RWLOCK_PREFER_READER_P): Remove.
4125         (PTHREAD_RWLOCK_WRPHASE, PTHREAD_RWLOCK_WRLOCKED,
4126         PTHREAD_RWLOCK_RWAITING, PTHREAD_RWLOCK_READER_SHIFT,
4127         PTHREAD_RWLOCK_READER_OVERFLOW, PTHREAD_RWLOCK_WRHANDOVER,
4128         PTHREAD_RWLOCK_FUTEX_USED): New.
4129         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Adapt to new
4130         implementation.
4131         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock_slow): Remove.
4132         (__pthread_rwlock_rdlock): Adapt.
4133         * nptl/pthread_rwlock_timedrdlock.c
4134         (pthread_rwlock_timedrdlock): Adapt.
4135         * nptl/pthread_rwlock_timedwrlock.c
4136         (pthread_rwlock_timedwrlock): Adapt.
4137         * nptl/pthread_rwlock_trywrlock.c (pthread_rwlock_trywrlock): Adapt.
4138         * nptl/pthread_rwlock_tryrdlock.c (pthread_rwlock_tryrdlock): Adapt.
4139         * nptl/pthread_rwlock_unlock.c (pthread_rwlock_unlock): Adapt.
4140         * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock_slow): Remove.
4141         (__pthread_rwlock_wrlock): Adapt.
4142         * nptl/tst-rwlock10.c: Adapt.
4143         * nptl/tst-rwlock11.c: Adapt.
4144         * nptl/tst-rwlock17.c: New file.
4145         * nptl/tst-rwlock18.c: New file.
4146         * nptl/tst-rwlock19.c: New file.
4147         * nptl/tst-rwlock2b.c: New file.
4148         * nptl/tst-rwlock8.c: Adapt.
4149         * nptl/tst-rwlock9.c: Adapt.
4150         * sysdeps/aarch64/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
4151         * sysdeps/arm/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
4152         * sysdeps/hppa/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
4153         * sysdeps/ia64/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
4154         * sysdeps/m68k/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
4155         * sysdeps/microblaze/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
4156         * sysdeps/mips/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
4157         * sysdeps/nios2/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
4158         * sysdeps/s390/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
4159         * sysdeps/sh/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
4160         * sysdeps/sparc/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
4161         * sysdeps/tile/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
4162         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h
4163         (pthread_rwlock_t): Adapt.
4164         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
4165         (pthread_rwlock_t): Adapt.
4166         * sysdeps/x86/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
4167         * nptl/nptl-printers.py (): Adapt.
4168         * nptl/nptl_lock_constants.pysym: Adapt.
4169         * nptl/test-rwlock-printers.py: Adapt.
4170         * nptl/test-rwlockattr-printers.c: Adapt.
4171         * nptl/test-rwlockattr-printers.py: Adapt.
4172
4173 2017-01-10  Joseph Myers  <joseph@codesourcery.com>
4174
4175         * math/libm-test.inc (XFAIL_IBM128_LIBGCC): New macro.
4176         (fdim_test_data): Use XFAIL_ROUNDING_IBM128_LIBGCC for some tests.
4177         (fma_test_data): Likewise.
4178         (hypot_test_data): Likewise.
4179         (log1p_test_data): Likewise.
4180         (modf_test_data): Likewise.
4181         (pow_test_data): Likewise.
4182         (remainder_test_data): Likewise.
4183         (remquo_test_data): Likewise.
4184         (scalb_test_data): Likewise.
4185         (scalbn_test_data): Likewise.
4186         (scalbln_test_data): Likewise.
4187         * math/gen-libm-test.pl (parse_args): Transform
4188         XFAIL_ROUNDING_IBM128_LIBGCC to XFAIL_IBM128_LIBGCC or 0 depending
4189         on the rounding mode.
4190
4191 2017-01-09  Joseph Myers  <joseph@codesourcery.com>
4192
4193         * math/gen-auto-libm-tests.c (output_for_one_input_case): Apply
4194         xfail-rounding:ibm128-libgcc automatically to tests overflowing
4195         and those that can underflow to zero.
4196         * math/auto-libm-test-in: Remove most XFAILs for ibm128-libgcc and
4197         add others.
4198         * math/auto-libm-test-out: Regenerated.
4199
4200         * math/test-fenv.c (fe_tests): Skip most tests when exceptions not
4201         supported.
4202         (feholdexcept_tests): Skip tests requiring exceptions or rounding
4203         modes support if not supported.
4204
4205         * sysdeps/unix/sysv/linux/microblaze/localplt.data (__pread64):
4206         Add libc.so PLT entry.
4207         (__tls_get_addr): Make ld.so PLT entry optional.
4208
4209 2017-01-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4210
4211         * string/bits/strings_fortified.h (explicit_bzero): Move back to ..
4212         * string/bits/string3.h: ... here.
4213
4214 2017-01-05  Joseph Myers  <joseph@codesourcery.com>
4215
4216         [BZ #21028]
4217         * math/fsetexcptflg.c (__fesetexceptflag): Always return 0.
4218         * math/test-fexcept.c (test_set): Allow failure of feraiseexcept
4219         if EXCEPTION_TESTS returns false.
4220
4221 2017-01-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4222
4223         [BZ #20558]
4224         * string/bits/string3.h [__USE_MISC] (bcopy): Move to
4225         strings_fortified.h.
4226         [__USE_MISC] (bzero): Likewise.
4227         [__USE_MISC] (explicit_bzero): Likewise.
4228         * string/strings.h: Include strings_fortified.h.
4229         * string/Makefile (headers): Add strings_fortified.h.
4230         * string/bits/strings_fortified.h: New file.
4231         * include/bits/strings_fortified.h: Likewise.
4232
4233 2017-01-05  Joseph Myers  <joseph@codesourcery.com>
4234
4235         * elf/tst-tls13.c (TIMEOUT): Remove.
4236         * iconvdata/tst-loading.c (TIMEOUT): Likewise.
4237         * malloc/tst-malloc-thread-fail.c (TIMEOUT): Increase to 100.
4238         * malloc/tst-mallocfork2.c (TIMEOUT): Define to 100.
4239         * nss/tst-cancel-getpwuid_r.c (TIMEOUT): Define to 900.
4240         * nss/tst-nss-getpwent.c (TIMEOUT): Define to 300.
4241
4242         [BZ #21026]
4243         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list
4244         (readahead): New syscall entry.
4245
4246 2017-01-04  Joseph Myers  <joseph@codesourcery.com>
4247
4248         * string/tester.c (test_strncat): Disable -Wstringop-overflow=
4249         around tests of strncat with large sizes.
4250
4251         * malloc/tst-malloc.c: Include <libc-internal.h>.
4252         (do_test): Disable -Walloc-size-larger-than= around tests of
4253         malloc with negative sizes.
4254         * malloc/tst-mcheck.c: Include <libc-internal.h>.
4255         (do_test): Disable -Walloc-size-larger-than= around tests of
4256         malloc and realloc with negative sizes.
4257         * malloc/tst-realloc.c: Include <libc-internal.h>.
4258         (do_test): Disable -Walloc-size-larger-than= around tests of
4259         realloc with negative sizes.
4260
4261         * math/libm-test.inc (TEST_COND_ibm128_libgcc): New macro.
4262         (init_max_error) [TEST_COND_ibm128]: Increase maximum error
4263         allowed to 16 ulps.
4264         * math/auto-libm-test-in: Change most XFAILs for ibm128 to use
4265         ibm128-libgcc.  XFAIL more tests for ibm128-libgcc.
4266         * math/auto-libm-test-out: Regenerated.
4267
4268 2017-01-04  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
4269
4270         * math/Makefile (libm-calls): Move wrappers...
4271         (libm-compat-call-auto): Here.
4272         (libm-routines): Add items in libm-compat-calls-auto.
4273         * sysdeps/powerpc/nofpu/Makefile: Add suffix ("_compat") to
4274         the filenames of the wrappers that have been renamed.
4275         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Likewise.
4276         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
4277
4278         * math/w_acos.c: Add _compat suffix to filename.
4279         * math/w_acosf.c: Likewise.
4280         * math/w_acosh.c: Likewise.
4281         * math/w_acoshf.c: Likewise.
4282         * math/w_acoshl.c: Likewise.
4283         * math/w_acosl.c: Likewise.
4284         * math/w_asin.c: Likewise.
4285         * math/w_asinf.c: Likewise.
4286         * math/w_asinl.c: Likewise.
4287         * math/w_atan2.c: Likewise.
4288         * math/w_atan2f.c: Likewise.
4289         * math/w_atan2l.c: Likewise.
4290         * math/w_atanh.c: Likewise.
4291         * math/w_atanhf.c: Likewise.
4292         * math/w_atanhl.c: Likewise.
4293         * math/w_cosh.c: Likewise.
4294         * math/w_coshf.c: Likewise.
4295         * math/w_coshl.c: Likewise.
4296         * math/w_exp10.c: Likewise.
4297         * math/w_exp10f.c: Likewise.
4298         * math/w_exp10l.c: Likewise.
4299         * math/w_exp2.c: Likewise.
4300         * math/w_exp2f.c: Likewise.
4301         * math/w_exp2l.c: Likewise.
4302         * math/w_fmod.c: Likewise.
4303         * math/w_fmodf.c: Likewise.
4304         * math/w_fmodl.c: Likewise.
4305         * math/w_hypot.c: Likewise.
4306         * math/w_hypotf.c: Likewise.
4307         * math/w_hypotl.c: Likewise.
4308         * math/w_j0.c: Likewise.
4309         * math/w_j0f.c: Likewise.
4310         * math/w_j0l.c: Likewise.
4311         * math/w_j1.c: Likewise.
4312         * math/w_j1f.c: Likewise.
4313         * math/w_j1l.c: Likewise.
4314         * math/w_jn.c: Likewise.
4315         * math/w_jnf.c: Likewise.
4316         * math/w_jnl.c: Likewise.
4317         * math/w_log10.c: Likewise.
4318         * math/w_log10f.c: Likewise.
4319         * math/w_log10l.c: Likewise.
4320         * math/w_log2.c: Likewise.
4321         * math/w_log2f.c: Likewise.
4322         * math/w_log2l.c: Likewise.
4323         * math/w_log.c: Likewise.
4324         * math/w_logf.c: Likewise.
4325         * math/w_logl.c: Likewise.
4326         * math/w_pow.c: Likewise.
4327         * math/w_powf.c: Likewise.
4328         * math/w_powl.c: Likewise.
4329         * math/w_remainder.c: Likewise.
4330         * math/w_remainderf.c: Likewise.
4331         * math/w_remainderl.c: Likewise.
4332         * math/w_scalb.c: Likewise.
4333         * math/w_scalbf.c: Likewise.
4334         * math/w_scalbl.c: Likewise.
4335         * math/w_sinh.c: Likewise.
4336         * math/w_sinhf.c: Likewise.
4337         * math/w_sinhl.c: Likewise.
4338         * math/w_sqrt.c: Likewise.
4339         * math/w_sqrtf.c: Likewise.
4340         * math/w_sqrtl.c: Likewise.
4341         * math/w_tgamma.c: Likewise.
4342         * math/w_tgammaf.c: Likewise.
4343         * math/w_tgammal.c: Likewise.
4344
4345         * math/w_acos_compat.c: New file copied from above and
4346         adjusted for new #includes path
4347         * math/w_acosf_compat.c: Likewise.
4348         * math/w_acosh_compat.c: Likewise.
4349         * math/w_acoshf_compat.c: Likewise.
4350         * math/w_acoshl_compat.c: Likewise.
4351         * math/w_acosl_compat.c: Likewise.
4352         * math/w_asin_compat.c: Likewise.
4353         * math/w_asinf_compat.c: Likewise.
4354         * math/w_asinl_compat.c: Likewise.
4355         * math/w_atan2_compat.c: Likewise.
4356         * math/w_atan2f_compat.c: Likewise.
4357         * math/w_atan2l_compat.c: Likewise.
4358         * math/w_atanh_compat.c: Likewise.
4359         * math/w_atanhf_compat.c: Likewise.
4360         * math/w_atanhl_compat.c: Likewise.
4361         * math/w_cosh_compat.c: Likewise.
4362         * math/w_coshf_compat.c: Likewise.
4363         * math/w_coshl_compat.c: Likewise.
4364         * math/w_exp10_compat.c: Likewise.
4365         * math/w_exp10f_compat.c: Likewise.
4366         * math/w_exp10l_compat.c: Likewise.
4367         * math/w_exp2_compat.c: Likewise.
4368         * math/w_exp2f_compat.c: Likewise.
4369         * math/w_exp2l_compat.c: Likewise.
4370         * math/w_fmod_compat.c: Likewise.
4371         * math/w_fmodf_compat.c: Likewise.
4372         * math/w_fmodl_compat.c: Likewise.
4373         * math/w_hypot_compat.c: Likewise.
4374         * math/w_hypotf_compat.c: Likewise.
4375         * math/w_hypotl_compat.c: Likewise.
4376         * math/w_j0_compat.c: Likewise.
4377         * math/w_j0f_compat.c: Likewise.
4378         * math/w_j0l_compat.c: Likewise.
4379         * math/w_j1_compat.c: Likewise.
4380         * math/w_j1f_compat.c: Likewise.
4381         * math/w_j1l_compat.c: Likewise.
4382         * math/w_jn_compat.c: Likewise.
4383         * math/w_jnf_compat.c: Likewise.
4384         * math/w_jnl_compat.c: Likewise.
4385         * math/w_log10_compat.c: Likewise.
4386         * math/w_log10f_compat.c: Likewise.
4387         * math/w_log10l_compat.c: Likewise.
4388         * math/w_log2_compat.c: Likewise.
4389         * math/w_log2f_compat.c: Likewise.
4390         * math/w_log2l_compat.c: Likewise.
4391         * math/w_log_compat.c: Likewise.
4392         * math/w_logf_compat.c: Likewise.
4393         * math/w_logl_compat.c: Likewise.
4394         * math/w_pow_compat.c: Likewise.
4395         * math/w_powf_compat.c: Likewise.
4396         * math/w_powl_compat.c: Likewise.
4397         * math/w_remainder_compat.c: Likewise.
4398         * math/w_remainderf_compat.c: Likewise.
4399         * math/w_remainderl_compat.c: Likewise.
4400         * math/w_scalb_compat.c: Likewise.
4401         * math/w_scalbf_compat.c: Likewise.
4402         * math/w_scalbl_compat.c: Likewise.
4403         * math/w_sinh_compat.c: Likewise.
4404         * math/w_sinhf_compat.c: Likewise.
4405         * math/w_sinhl_compat.c: Likewise.
4406         * math/w_sqrt_compat.c: Likewise.
4407         * math/w_sqrtf_compat.c: Likewise.
4408         * math/w_sqrtl_compat.c: Likewise.
4409         * math/w_tgamma_compat.c: Likewise.
4410         * math/w_tgammaf_compat.c: Likewise.
4411         * math/w_tgammal_compat.c: Likewise.
4412
4413         * sysdeps/i386/fpu/w_sqrt.c: Add _compat suffix to filename.
4414         * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
4415         * sysdeps/ia64/fpu/w_acosl.c: Likewise.
4416         * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
4417         * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
4418         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
4419         * sysdeps/ia64/fpu/w_acosf.c: Likewise.
4420         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
4421         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
4422         * sysdeps/ia64/fpu/w_scalbl.c: Likewise.
4423         * sysdeps/ia64/fpu/w_scalbf.c: Likewise.
4424         * sysdeps/ia64/fpu/w_scalb.c: Likewise.
4425         * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
4426         * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
4427         * sysdeps/ia64/fpu/w_remainder.c: Likewise.
4428         * sysdeps/ia64/fpu/w_powl.c: Likewise.
4429         * sysdeps/ia64/fpu/w_powf.c: Likewise.
4430         * sysdeps/ia64/fpu/w_pow.c: Likewise.
4431         * sysdeps/ia64/fpu/w_logl.c: Likewise.
4432         * sysdeps/ia64/fpu/w_logf.c: Likewise.
4433         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
4434         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
4435         * sysdeps/ia64/fpu/w_log2.c: Likewise.
4436         * sysdeps/ia64/fpu/w_log10l.c: Likewise.
4437         * sysdeps/ia64/fpu/w_log10f.c: Likewise.
4438         * sysdeps/ia64/fpu/w_log10.c: Likewise.
4439         * sysdeps/ia64/fpu/w_log.c: Likewise.
4440         * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
4441         * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
4442         * sysdeps/ia64/fpu/w_hypot.c: Likewise.
4443         * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
4444         * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
4445         * sysdeps/ia64/fpu/w_fmod.c: Likewise.
4446         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
4447         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
4448         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
4449         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
4450         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
4451         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
4452         * sysdeps/ia64/fpu/w_coshl.c: Likewise.
4453         * sysdeps/ia64/fpu/w_coshf.c: Likewise.
4454         * sysdeps/ia64/fpu/w_cosh.c: Likewise.
4455         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
4456         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
4457         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
4458         * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
4459         * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
4460         * sysdeps/ia64/fpu/w_atan2.c: Likewise.
4461         * sysdeps/ia64/fpu/w_asinl.c: Likewise.
4462         * sysdeps/ia64/fpu/w_asinf.c: Likewise.
4463         * sysdeps/ia64/fpu/w_asin.c: Likewise.
4464         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
4465         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
4466         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
4467         * sysdeps/ia64/fpu/w_acos.c: Likewise.
4468         * sysdeps/ia64/fpu/w_tgamma.S: Likewise.
4469         * sysdeps/ia64/fpu/w_tgammaf.S: Likewise.
4470         * sysdeps/ia64/fpu/w_tgammal.S: Likewise.
4471         * sysdeps/ieee754/ldbl-opt/w_acos.c: Likewise.
4472         * sysdeps/ieee754/ldbl-opt/w_acosh.c: Likewise.
4473         * sysdeps/ieee754/ldbl-opt/w_acoshl.c: Likewise.
4474         * sysdeps/ieee754/ldbl-opt/w_acosl.c: Likewise.
4475         * sysdeps/ieee754/ldbl-opt/w_asin.c: Likewise.
4476         * sysdeps/ieee754/ldbl-opt/w_asinl.c: Likewise.
4477         * sysdeps/ieee754/ldbl-opt/w_atan2.c: Likewise.
4478         * sysdeps/ieee754/ldbl-opt/w_atan2l.c: Likewise.
4479         * sysdeps/ieee754/ldbl-opt/w_atanh.c: Likewise.
4480         * sysdeps/ieee754/ldbl-opt/w_atanhl.c: Likewise.
4481         * sysdeps/ieee754/ldbl-opt/w_cosh.c: Likewise.
4482         * sysdeps/ieee754/ldbl-opt/w_coshl.c: Likewise.
4483         * sysdeps/ieee754/ldbl-opt/w_exp10.c: Likewise.
4484         * sysdeps/ieee754/ldbl-opt/w_exp10l.c: Likewise.
4485         * sysdeps/ieee754/ldbl-opt/w_fmod.c: Likewise.
4486         * sysdeps/ieee754/ldbl-opt/w_fmodl.c: Likewise.
4487         * sysdeps/ieee754/ldbl-opt/w_hypot.c: Likewise.
4488         * sysdeps/ieee754/ldbl-opt/w_hypotl.c: Likewise.
4489         * sysdeps/ieee754/ldbl-opt/w_j0.c: Likewise.
4490         * sysdeps/ieee754/ldbl-opt/w_j0l.c: Likewise.
4491         * sysdeps/ieee754/ldbl-opt/w_j1.c: Likewise.
4492         * sysdeps/ieee754/ldbl-opt/w_j1l.c: Likewise.
4493         * sysdeps/ieee754/ldbl-opt/w_jn.c: Likewise.
4494         * sysdeps/ieee754/ldbl-opt/w_jnl.c: Likewise.
4495         * sysdeps/ieee754/ldbl-opt/w_log10.c: Likewise.
4496         * sysdeps/ieee754/ldbl-opt/w_log10l.c: Likewise.
4497         * sysdeps/ieee754/ldbl-opt/w_log2.c: Likewise.
4498         * sysdeps/ieee754/ldbl-opt/w_log2l.c: Likewise.
4499         * sysdeps/ieee754/ldbl-opt/w_log.c: Likewise.
4500         * sysdeps/ieee754/ldbl-opt/w_logl.c: Likewise.
4501         * sysdeps/ieee754/ldbl-opt/w_pow.c: Likewise.
4502         * sysdeps/ieee754/ldbl-opt/w_powl.c: Likewise.
4503         * sysdeps/ieee754/ldbl-opt/w_remainder.c: Likewise.
4504         * sysdeps/ieee754/ldbl-opt/w_remainderl.c: Likewise.
4505         * sysdeps/ieee754/ldbl-opt/w_scalb.c: Likewise.
4506         * sysdeps/ieee754/ldbl-opt/w_scalbl.c: Likewise.
4507         * sysdeps/ieee754/ldbl-opt/w_sinh.c: Likewise.
4508         * sysdeps/ieee754/ldbl-opt/w_sinhl.c: Likewise.
4509         * sysdeps/ieee754/ldbl-opt/w_sqrt.c: Likewise.
4510         * sysdeps/ieee754/ldbl-opt/w_sqrtl.c: Likewise.
4511         * sysdeps/ieee754/ldbl-opt/w_tgamma.c: Likewise.
4512         * sysdeps/ieee754/ldbl-opt/w_tgammal.c: Likewise.
4513         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S:
4514         Likewise.
4515         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S:
4516         Likewise.
4517         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: Likewise.
4518         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S:
4519         Likewise.
4520         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S:
4521         Likewise.
4522         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: Likewise.
4523         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
4524         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
4525         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
4526         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
4527         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
4528         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
4529         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: Likewise.
4530         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
4531         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: Likewise.
4532         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
4533         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
4534         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
4535         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
4536         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
4537
4538         * sysdeps/i386/fpu/w_sqrt_compat.c: New file copied from above
4539         and adjusted for new #includes path
4540         * sysdeps/ia64/fpu/w_acos_compat.c: Likewise.
4541         * sysdeps/ia64/fpu/w_acosf_compat.c: Likewise.
4542         * sysdeps/ia64/fpu/w_acosh_compat.c: Likewise.
4543         * sysdeps/ia64/fpu/w_acoshf_compat.c: Likewise.
4544         * sysdeps/ia64/fpu/w_acoshl_compat.c: Likewise.
4545         * sysdeps/ia64/fpu/w_acosl_compat.c: Likewise.
4546         * sysdeps/ia64/fpu/w_asin_compat.c: Likewise.
4547         * sysdeps/ia64/fpu/w_asinf_compat.c: Likewise.
4548         * sysdeps/ia64/fpu/w_asinl_compat.c: Likewise.
4549         * sysdeps/ia64/fpu/w_atan2_compat.c: Likewise.
4550         * sysdeps/ia64/fpu/w_atan2f_compat.c: Likewise.
4551         * sysdeps/ia64/fpu/w_atan2l_compat.c: Likewise.
4552         * sysdeps/ia64/fpu/w_atanh_compat.c: Likewise.
4553         * sysdeps/ia64/fpu/w_atanhf_compat.c: Likewise.
4554         * sysdeps/ia64/fpu/w_atanhl_compat.c: Likewise.
4555         * sysdeps/ia64/fpu/w_cosh_compat.c: Likewise.
4556         * sysdeps/ia64/fpu/w_coshf_compat.c: Likewise.
4557         * sysdeps/ia64/fpu/w_coshl_compat.c: Likewise.
4558         * sysdeps/ia64/fpu/w_exp10_compat.c: Likewise.
4559         * sysdeps/ia64/fpu/w_exp10f_compat.c: Likewise.
4560         * sysdeps/ia64/fpu/w_exp10l_compat.c: Likewise.
4561         * sysdeps/ia64/fpu/w_exp2_compat.c: Likewise.
4562         * sysdeps/ia64/fpu/w_exp2f_compat.c: Likewise.
4563         * sysdeps/ia64/fpu/w_exp2l_compat.c: Likewise.
4564         * sysdeps/ia64/fpu/w_fmod_compat.c: Likewise.
4565         * sysdeps/ia64/fpu/w_fmodf_compat.c: Likewise.
4566         * sysdeps/ia64/fpu/w_fmodl_compat.c: Likewise.
4567         * sysdeps/ia64/fpu/w_hypot_compat.c: Likewise.
4568         * sysdeps/ia64/fpu/w_hypotf_compat.c: Likewise.
4569         * sysdeps/ia64/fpu/w_hypotl_compat.c: Likewise.
4570         * sysdeps/ia64/fpu/w_log10_compat.c: Likewise.
4571         * sysdeps/ia64/fpu/w_log10f_compat.c: Likewise.
4572         * sysdeps/ia64/fpu/w_log10l_compat.c: Likewise.
4573         * sysdeps/ia64/fpu/w_log2_compat.c: Likewise.
4574         * sysdeps/ia64/fpu/w_log2f_compat.c: Likewise.
4575         * sysdeps/ia64/fpu/w_log2l_compat.c: Likewise.
4576         * sysdeps/ia64/fpu/w_log_compat.c: Likewise.
4577         * sysdeps/ia64/fpu/w_logf_compat.c: Likewise.
4578         * sysdeps/ia64/fpu/w_logl_compat.c: Likewise.
4579         * sysdeps/ia64/fpu/w_pow_compat.c: Likewise.
4580         * sysdeps/ia64/fpu/w_powf_compat.c: Likewise.
4581         * sysdeps/ia64/fpu/w_powl_compat.c: Likewise.
4582         * sysdeps/ia64/fpu/w_remainder_compat.c: Likewise.
4583         * sysdeps/ia64/fpu/w_remainderf_compat.c: Likewise.
4584         * sysdeps/ia64/fpu/w_remainderl_compat.c: Likewise.
4585         * sysdeps/ia64/fpu/w_scalb_compat.c: Likewise.
4586         * sysdeps/ia64/fpu/w_scalbf_compat.c: Likewise.
4587         * sysdeps/ia64/fpu/w_scalbl_compat.c: Likewise.
4588         * sysdeps/ia64/fpu/w_sinh_compat.c: Likewise.
4589         * sysdeps/ia64/fpu/w_sinhf_compat.c: Likewise.
4590         * sysdeps/ia64/fpu/w_sinhl_compat.c: Likewise.
4591         * sysdeps/ia64/fpu/w_sqrt_compat.c: Likewise.
4592         * sysdeps/ia64/fpu/w_sqrtf_compat.c: Likewise.
4593         * sysdeps/ia64/fpu/w_sqrtl_compat.c: Likewise.
4594         * sysdeps/ia64/fpu/w_tgamma_compat.S: Likewise.
4595         * sysdeps/ia64/fpu/w_tgammaf_compat.S: Likewise.
4596         * sysdeps/ia64/fpu/w_tgammal_compat.S: Likewise.
4597         * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Likewise.
4598         * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
4599         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
4600         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
4601         * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
4602         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
4603         * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
4604         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
4605         * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
4606         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
4607         * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
4608         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
4609         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c: Likewise.
4610         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Likewise.
4611         * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
4612         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
4613         * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
4614         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
4615         * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
4616         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
4617         * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
4618         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
4619         * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
4620         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
4621         * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
4622         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
4623         * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
4624         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
4625         * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
4626         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
4627         * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
4628         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
4629         * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c: Likewise.
4630         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
4631         * sysdeps/ieee754/ldbl-opt/w_scalb_compat.c: Likewise.
4632         * sysdeps/ieee754/ldbl-opt/w_scalbl_compat.c: Likewise.
4633         * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
4634         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
4635         * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
4636         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
4637         * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
4638         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
4639         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
4640         Likewise.
4641         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
4642         Likewise.
4643         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
4644         Likewise.
4645         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
4646         Likewise.
4647         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
4648         Likewise.
4649         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
4650         Likewise.
4651         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
4652         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
4653         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
4654         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
4655         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
4656         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
4657         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
4658         Likewise.
4659         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
4660         Likewise.
4661         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
4662         Likewise.
4663         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
4664         Likewise.
4665         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
4666         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
4667         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
4668         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
4669
4670 2017-01-04  Joseph Myers  <joseph@codesourcery.com>
4671
4672         * sysdeps/microblaze/bits/setjmp.h (__jmp_buf): Give struct tag
4673         __jmp_buf_internal_tag.
4674
4675         * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Always
4676         preserve NaN payload if [__mips_nan2008].
4677         * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
4678
4679         [BZ #21022]
4680         * sysdeps/microblaze/backtrace.c (get_frame_size): Make static.
4681
4682 2017-01-03  Joseph Myers  <joseph@codesourcery.com>
4683
4684         * sysdeps/i386/fpu/libm-test-ulps: Update.
4685
4686 2017-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4687
4688         * sysdeps/ia64/strcat.c: Remove file.
4689         * sysdeps/powerpc/strcat.c: Likewise.
4690         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: Use default
4691         C implementation.
4692         * sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c: Likewise.
4693         * sysdeps/powerpc/powerpc64/multiarch/strcat-ppc64.c: Likewise.
4694
4695 2017-01-03  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4696             Steven Munroe  <sjmunroe@us.ibm.com>
4697             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4698
4699         [BZ #20822]
4700         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
4701         (__lll_lock_elision): Access adapt_count via C11 atomics.
4702         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
4703         (__lll_trylock_elision): Likewise.
4704         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
4705         (__lll_unlock_elision):  Update adapt_count variable inside the
4706         critical section using C11 atomics.
4707
4708 2017-01-03  Joseph Myers  <joseph@codesourcery.com>
4709
4710         * math/test-fenvinline.c (do_test): Disable tests of raised
4711         exceptions if !EXCEPTION_TESTS (FLOAT).
4712
4713 2017-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4714
4715         [BZ #19390]
4716         * string/test-strncat.c (test_main): Add tests with SIZE_MAX as
4717         maximum string size.
4718         * sysdeps/i386/i686/multiarch/strcat-sse2.S (STRCAT): Avoid overflow
4719         in pointer addition.
4720         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S (STRCPY):
4721         Likewise.
4722
4723 2017-01-03  Joseph Myers  <joseph@codesourcery.com>
4724
4725         * elf/Makefile ($(objpfx)tst-ldconfig-X.out): Correct arguments
4726         passed to tst-ldconfig-X.sh.
4727
4728 2017-01-03  Martin Galvan  <martingalvan@sourceware.org>
4729
4730         * nptl/nptl-printers.py: Fix tabs/spaces mismatches.
4731
4732 2017-01-02  Joseph Myers  <joseph@codesourcery.com>
4733
4734         [BZ #21019]
4735         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (lseek64):
4736         New syscall entry.
4737         * sysdeps/unix/sysv/linux/mips/mips64/n32/lseek.c: New file.
4738         * io/test-lfs.c (do_test): Test offset returned from lseek64 and
4739         lseek.
4740
4741         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
4742         power4 glibc for powerpc-linux-gnu.
4743
4744 2017-01-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4745
4746         * sysvipc/test-sysvsem.c (do_test): Define and use union semun on
4747         semctl.
4748
4749 2017-01-02  Joseph Myers  <joseph@codesourcery.com>
4750
4751         * math/test-nearbyint-except.c: Include <stdbool.h>.
4752         (any_supported): New variable.
4753         (TEST_FUNC): Return early if !EXCEPTION_TESTS (FLOAT).  Otherwise
4754         set any_supported.
4755         (do_test): Return 77 if no floating-point type supported
4756         exceptions.
4757
4758         * sysdeps/mips/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD): Do not
4759         condition on [__mips_hard_float].
4760
4761 2017-01-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4762
4763         [BZ #21014]
4764         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S (MEMCHR): Avoid overflow
4765         in pointer addition.
4766         * sysdeps/i386/i686/multiarch/memchr-sse2.S (MEMCHR): Likewise.
4767
4768 2017-01-02  Torvald Riegel  <triegel@redhat.com>
4769
4770         * sysdeps/sparc/nptl/bits/pthreadtypes.h (pthread_cond_t): Adapt to
4771         new condvar.
4772
4773 2017-01-02  Joseph Myers  <joseph@codesourcery.com>
4774
4775         * scripts/build-many-glibcs.py (Context.checkout): Default
4776         binutils version to 2.28 branch.
4777
4778 2017-01-01  Florian Weimer  <fweimer@redhat.com>
4779
4780         * support/support_format_netent.c (support_format_netent): Work
4781         around alpha struct netent definition difference.
4782
4783 2017-01-01  Florian Weimer  <fweimer@redhat.com>
4784
4785         * support/xwrite.c (xwrite): Use %td for pointer difference.
4786
4787 2017-01-01  Florian Weimer  <fweimer@redhat.com>
4788
4789         * malloc/Makefile (tests): Add tst-malloc-usable-tunables for
4790         have-tunables only.
4791         (tests-static): Add tst-malloc-usable-static-tunables for
4792         have-tunables only.
4793
4794 2017-01-01  Joseph Myers  <joseph@codesourcery.com>
4795
4796         * scripts/config.guess: Update to version 2017-01-01.
4797         * scripts/config.sub: Update to version 2017-01-01.
4798
4799         * NEWS: Update copyright dates.
4800         * catgets/gencat.c (print_version): Likewise.
4801         * csu/version.c (banner): Likewise.
4802         * debug/catchsegv.sh: Likewise.
4803         * debug/pcprofiledump.c (print_version): Likewise.
4804         * debug/xtrace.sh (do_version): Likewise.
4805         * elf/ldconfig.c (print_version): Likewise.
4806         * elf/ldd.bash.in: Likewise.
4807         * elf/pldd.c (print_version): Likewise.
4808         * elf/sotruss.sh: Likewise.
4809         * elf/sprof.c (print_version): Likewise.
4810         * iconv/iconv_prog.c (print_version): Likewise.
4811         * iconv/iconvconfig.c (print_version): Likewise.
4812         * locale/programs/locale.c (print_version): Likewise.
4813         * locale/programs/localedef.c (print_version): Likewise.
4814         * login/programs/pt_chown.c (print_version): Likewise.
4815         * malloc/memusage.sh (do_version): Likewise.
4816         * malloc/memusagestat.c (print_version): Likewise.
4817         * malloc/mtrace.pl: Likewise.
4818         * manual/libc.texinfo: Likewise.
4819         * nptl/version.c (banner): Likewise.
4820         * nscd/nscd.c (print_version): Likewise.
4821         * nss/getent.c (print_version): Likewise.
4822         * nss/makedb.c (print_version): Likewise.
4823         * posix/getconf.c (main): Likewise.
4824         * scripts/test-installation.pl: Likewise.
4825         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
4826
4827         * All files with FSF copyright notices: Update copyright dates
4828         using scripts/update-copyrights.
4829         * intl/plural.c: Regenerated.
4830         * locale/programs/charmap-kw.h: Likewise.
4831         * locale/programs/locfile-kw.h: Likewise.
4832
4833 2016-12-31  Florian Weimer  <fweimer@redhat.com>
4834
4835         [BZ #20593]
4836         Update DNS RR type definitions.
4837         * scripts/gen-rrtypes.py: New file.
4838         * resolv/arpa/nameser.h (ns_type): Remove ns_t_zxfr, a
4839         BIND-internal RR type not used on the Internet.  Add ns_t_ds,
4840         ns_t_sshfp, ns_t_ipseckey, ns_t_rrsig, ns_t_nsec, ns_t_dnskey,
4841         ns_t_dhcid, ns_t_nsec3, ns_t_nsec3param, ns_t_tlsa, ns_t_smimea,
4842         ns_t_hip, ns_t_ninfo, ns_t_rkey, ns_t_talink, ns_t_cds,
4843         ns_t_cdnskey, ns_t_openpgpkey, ns_t_csync, ns_t_spf, ns_t_uinfo,
4844         ns_t_uid, ns_t_gid, ns_t_unspec, ns_t_nid, ns_t_l32, ns_t_l64,
4845         ns_t_lp, ns_t_eui48, ns_t_eui64, ns_t_uri, ns_t_caa, ns_t_avc,
4846         ns_t_ta, ns_t_dlv.
4847         * resolv/arpa/nameser_compat.h (T_KX, T_CERT, T_SINK, T_OPT)
4848         (T_APL, T_DS, T_SSHFP, T_IPSECKEY, T_RRSIG, T_NSEC, T_DNSKEY)
4849         (T_DHCID, T_NSEC3, T_NSEC3PARAM, T_TLSA, T_SMIMEA, T_HIP, T_NINFO)
4850         (T_RKEY, T_TALINK, T_CDS, T_CDNSKEY, T_OPENPGPKEY, T_CSYNC, T_SPF)
4851         (T_UINFO, T_UID, T_GID, T_UNSPEC, T_NID, T_L32, T_L64, T_LP)
4852         (T_EUI48, T_EUI64, T_TKEY, T_URI, T_CAA, T_AVC, T_TA, T_DLV):
4853         Define.
4854         * resolv/res_debug.c (__p_type_syms): Update comment.  Remove
4855         entry for ns_t_zxfr.
4856
4857 2016-12-31  Florian Weimer  <fweimer@redhat.com>
4858
4859         [BZ #18784]
4860         CVE-2015-5180
4861         * include/arpa/nameser_compat.h (T_QUERY_A_AND_AAAA): Rename from
4862         T_UNSPEC.  Adjust value.
4863         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Use it.
4864         * resolv/res_query.c (__libc_res_nquery): Likewise.
4865         * resolv/res_mkquery.c (res_nmkquery): Check for out-of-range
4866         QTYPEs.
4867         * resolv/tst-resolv-qtypes.c: New file.
4868         * resolv/Makefile (xtests): Add tst-resolv-qtypes.
4869         (tst-resolv-qtypes): Link against libresolv and libpthread.
4870
4871 2016-12-31  Florian Weimer  <fweimer@redhat.com>
4872
4873         * elf/dl-tunables.h (__tunables_init): Fix unused attribute.
4874
4875 2016-12-31  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4876
4877         * manual/tunables.texi: New chapter.
4878         * manual/Makefile (chapters): Add it.
4879         * manual/probes.texi (@node): Point to the Tunables chapter.
4880
4881         * Makeconfig (have-tunables): Check for non-negative instead
4882         of positive.
4883         * configure.ac: Add 'valstring' as a valid value for
4884         --enable-tunables.
4885         * configure: Regenerate.
4886         * elf/Makefile (have-tunables): Check for non-negative instead
4887         of positive.
4888         (CPPFLAGS-dl-tunables.c): Define TUNABLES_FRONTEND for
4889         dl-tunables.c.
4890         * elf/dl-tunables.c (GLIBC_TUNABLES): Define only when
4891         TUNABLES_FRONTEND == TUNABLES_FRONTEND_valstring.
4892         (tunables_strdup): Likewise.
4893         (disable_tunables): Likewise.
4894         (parse_tunables): Likewise.
4895         (__tunables_init): Process GLIBC_TUNABLES envvar only when.
4896         TUNABLES_FRONTEND == TUNABLES_FRONTEND_valstring.
4897         * elf/dl-tunables.h (TUNABLES_FRONTEND_valstring): New macro.
4898         (TUNABLES_FRONTEND_yes): New macro, define as
4899         TUNABLES_FRONTEND_valstring by default.
4900         * manual/install.texi: Document new acceptable values for
4901         --enable-tunables.
4902         * INSTALL: Regenerate.
4903
4904         * config.make.in (have-loop-to-function): Define.
4905         * elf/Makefile (CFLAGS-dl-tunables.c): Add
4906         -fno-tree-loop-distribute-patterns.
4907         * elf/dl-tunables.c: Include libc-internals.h.
4908         (GLIBC_TUNABLES): New macro.
4909         (tunables_strdup): New function.
4910         (parse_tunables): New function.
4911         (min_strlen): New function.
4912         (__tunables_init): Use the new functions and macro.
4913         (disable_tunable): Disable tunable from GLIBC_TUNABLES.
4914         * malloc/tst-malloc-usable-tunables.c: New test case.
4915         * malloc/tst-malloc-usable-static-tunables.c: New test case.
4916         * malloc/Makefile (tests, tests-static): Add tests.
4917
4918         * manual/install.texi: Add --enable-tunables option.
4919         * INSTALL: Regenerate.
4920         * README.tunables: New file.
4921         * Makeconfig (CPPFLAGS): Define TOP_NAMESPACE.
4922         (before-compile): Generate dl-tunable-list.h early.
4923         * config.h.in: Add HAVE_TUNABLES.
4924         * config.make.in: Add have-tunables.
4925         * configure.ac: Add --enable-tunables option.
4926         * configure: Regenerate.
4927         * csu/init-first.c (__libc_init_first): Move
4928         __libc_init_secure earlier...
4929         * csu/init-first.c (LIBC_START_MAIN):... to here.
4930         Include dl-tunables.h, libc-internal.h.
4931         (LIBC_START_MAIN) [!SHARED]: Initialize tunables for static
4932         binaries.
4933         * elf/Makefile (dl-routines): Add dl-tunables.
4934         * elf/Versions (ld): Add __tunable_set_val to GLIBC_PRIVATE
4935         namespace.
4936         * elf/dl-support (_dl_nondynamic_init): Unset MALLOC_CHECK_
4937         only when !HAVE_TUNABLES.
4938         * elf/rtld.c (process_envvars): Likewise.
4939         * elf/dl-sysdep.c [HAVE_TUNABLES]: Include dl-tunables.h
4940         (_dl_sysdep_start): Call __tunables_init.
4941         * elf/dl-tunable-types.h: New file.
4942         * elf/dl-tunables.c: New file.
4943         * elf/dl-tunables.h: New file.
4944         * elf/dl-tunables.list: New file.
4945         * malloc/tst-malloc-usable-static.c: New test case.
4946         * malloc/Makefile (tests-static): Add it.
4947         * malloc/arena.c [HAVE_TUNABLES]: Include dl-tunables.h.
4948         Define TUNABLE_NAMESPACE.
4949         (DL_TUNABLE_CALLBACK (set_mallopt_check)): New function.
4950         (DL_TUNABLE_CALLBACK_FNDECL): New macro.  Use it to define
4951         callback functions.
4952         (ptmalloc_init): Set tunable values.
4953         * scripts/gen-tunables.awk: New file.
4954         * sysdeps/mach/hurd/dl-sysdep.c: Include dl-tunables.h.
4955         (_dl_sysdep_start): Call __tunables_init.
4956
4957 2016-12-31  Florian Weimer  <fweimer@redhat.com>
4958
4959         * resolv/resolv.h (RES_BLAST): Deprecate.
4960         * resolv/res_debug.c (p_option): Remove RES_BLAST.
4961         * resolv/res_send.c (__libc_res_nsend): Remove vestigial reference
4962         to RES_BLAST.
4963
4964 2016-12-27  Florian Weimer  <fweimer@redhat.com>
4965
4966         [BZ #19582]
4967         Deprecate RES_USE_INET6.
4968         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostent_r)
4969         (_nss_nis_gethostbyname2_r, _nss_nis_gethostbyname_r)
4970         (_nss_nis_gethostbyaddr_r): Use res_use_inet6 instead of
4971         RES_USE_INET6.
4972         * nis/nss_nisplus/nisplus-hosts.c (internal_nisplus_gethostent_r)
4973         (_nss_nisplus_gethostbyname2_r, _nss_nisplus_gethostbyname_r)
4974         (_nss_nisplus_gethostbyaddr_r): Likewise.
4975         * nscd/aicache.c (addhstaiX): Use DEPRECATED_RES_USE_INET6 instead
4976         of res_use_inet6.
4977         * nscd/nscd_gethst_r.c (__nscd_gethostbyname_r): Use res_use_inet6
4978         instead of RES_USE_INET6.
4979         * nss/digits_dots.c (__nss_hostname_digits_dots): Likewise.
4980         * nss/nss_files/files-hosts.c (EXTRA_ARGS_VALUE)
4981         (_nss_files_gethostbyname3_r, _nss_files_gethostbyname_r):
4982         Likewise.
4983         * resolv/compat-gethnamaddr.c (getanswer, res_gethostbyname)
4984         (res_gethostbyname2, res_gethostbyaddr, _gethtent, _gethtbyname):
4985         Likewise.
4986         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r)
4987         (_nss_dns_gethostbyname_r): Likewise.
4988         (_nss_dns_gethostbyaddr2_r): Remove commented-out code for
4989         alternate RES_USE_INET6 handling.
4990         * resolv/res_debug.c (p_option): Use DEPRECATED_RES_USE_INET6
4991         instead of RES_USE_INET6.
4992         * resolv/res_init.c (res_setoptions): Likewise.
4993         * resolv/resolv.h (RES_USE_INET6): Mark as deprecated.
4994         * resolv/resolv-internal.h: New file.
4995         * resolv/Makefile (CFLAGS-tst-res_use_inet6.c): Use -Wno-error to
4996         make the deprecation warning non-fatal.
4997         * resolv/README (Using the resolver in multi-threaded code): Drop
4998         reference to RES_USE_INET6.
4999         * sysdeps/posix/getaddrinfo.c (gethosts, gaih_inet): Use
5000         DEPRECATED_RES_USE_INET6 instead of res_use_inet6.
5001
5002 2016-12-31  Florian Weimer  <fweimer@redhat.com>
5003
5004         * resolv/Makefile (tests): Add tst-bug18665, tst-bug18665-tcp,
5005         tst-res_use_inet6, tst-resolv-basic, tst-resolv-network,
5006         tst-resolv-search.
5007         (tst-bug18665, tst-bug18665-tcp, tst-res_use_inet6)
5008         (tst-resolv-basic, tst-resolv-network, tst-resolv-search): Link
5009         with libresolv and libpthread.
5010         * resolv/tst-bug18665.c: New file.
5011         * resolv/tst-bug18665-tcp: Likewise.
5012         * resolv/tst-res_use_inet6: Likewise.
5013         * resolv/tst-resolv-basic: Likewise.
5014         * resolv/tst-resolv-network: Likewise.
5015         * resolv/tst-resolv-search: Likewise.
5016         * support/Makefile (libsupport-routines): Add check_addrinfo,
5017         check_dns_packet, check_hostent, check_netent, resolv_test,
5018         support_format_address_family, support_format_addrinfo,
5019         support_format_dns_packet, support_format_herrno,
5020         support_format_hostent, support_format_netent, support_run_diff,
5021         xaccept, xbind, xconnect, xfclose, xfopen, xgetsockname, xlisten,
5022         xmemstream, xpoll, xpthread_once, xrecvfrom, xsendto, xsetsockopt,
5023         xstrdup, xwrite.
5024         * support/check_addrinfo.c: New file.
5025         * support/check_dns_packet.c: Likewise.
5026         * support/check_hostent.c: Likewise.
5027         * support/check_netent.c: Likewise.
5028         * support/check_nss.h: Likewise.
5029         * support/format_nss.h: Likewise.
5030         * support/resolv_test.c: Likewise.
5031         * support/resolv_test.h: Likewise.
5032         * support/run_diff.h: Likewise.
5033         * support/support_format_address_family.c: Likewise.
5034         * support/support_format_addrinfo.c: Likewise.
5035         * support/support_format_dns_packet.c: Likewise.
5036         * support/support_format_herrno.c: Likewise.
5037         * support/support_format_hostent.c: Likewise.
5038         * support/support_format_netent.c: Likewise.
5039         * support/support_run_diff.c: Likewise.
5040         * support/xaccept.c: Likewise.
5041         * support/xbind.c: Likewise.
5042         * support/xconnect.c: Likewise.
5043         * support/xfclose.c: Likewise.
5044         * support/xfopen.c: Likewise.
5045         * support/xgetsockname.c: Likewise.
5046         * support/xlisten.c: Likewise.
5047         * support/xmemstream.c: Likewise.
5048         * support/xmemstream.h: Likewise.
5049         * support/xpoll.c: Likewise.
5050         * support/xpthread_once.c: Likewise.
5051         * support/xrecvfrom.c: Likewise.
5052         * support/xsendto.c: Likewise.
5053         * support/xsetsockopt.c: Likewise.
5054         * support/xstdio.h: Likewise.
5055         * support/xstrdup.c: Likewise.
5056         * support/support.h (xstrdup): Declare.
5057         * support/xsocket.h (xsetsockopt, xgetsockname, xconnect, xbind)
5058         (xlisten, xaccept, xsendto, xrecvfrom, xpoll): Likewise.
5059         * support/xthread.h (xpthread_once): Likwise.
5060         * support/xunistd.h (xwrite): Declare.
5061
5062 2016-12-31  Florian Weimer  <fweimer@redhat.com>
5063
5064         * support/test-driver.h (TEST_DEFAULT_OPTIONS): Add --verbose.
5065         (test_verbose): Declare.
5066         * support/test-driver.c (main): Use TEST_DEFAULT_OPTIONS.
5067         * support/support_test_main.c (default_options): Likewise.
5068         (usage, support_test_main): Handle 'v'.
5069         (test_verbose): Define.
5070         * support/tst-support_record_failure.c (do_test): Use
5071         test_verbose.
5072         * support/tst-support_record_failure-2.sh (different_status): Add
5073         --verbose test.
5074
5075 2016-12-31  Florian Weimer  <fweimer@redhat.com>
5076
5077         * support/check.h (FAIL_RET, FAIL_EXIT, FAIL_EXIT1): Document that
5078         test failures are recorded.
5079         * support/check.c (support_print_failure_impl): Call
5080         support_record_failure.
5081         (support_exit_failure_impl): Call support_record_failure if status
5082         indicates failure.
5083         * support/delayed_exit.c (delayed_exit_thread): Use FAIL_EXIT1.
5084         * support/xasprintf.c (xasprintf): Likewise.
5085         * support/xfork.c (xfork): Likewise.
5086         * support/xpthread_check_return.c (xpthread_check_return):
5087         Likewise.
5088         * support/xsocket.c (xsocket): Likeweise.
5089         * support/xwaitpid.c (xwaitpid): Likewise.
5090         * support/support_record_failure.c (struct test_failures): Adjust
5091         to coding style.
5092         * support/support_test_verify_impl.c (support_test_verify_impl):
5093         Adjust error messages.
5094         * support/tst-support_record_failure-2.sh (different_status):
5095         Adjust error messages.
5096
5097 2016-12-31  Florian Weimer  <fweimer@redhat.com>
5098
5099         * support/namespace.h: New file.
5100         * support/support_become_root.c: Likewise.
5101         * support/support_enter_network_namespace.c: Likewise.
5102         * support/tst-support-namespace.c: Likewise.
5103         * support/xsocket.c: Likewise.
5104         * support/xsocket.h: Likewise.
5105         * support/Makefile (libsupport-routines): Add support_become_root,
5106         support_enter_network_namespace, xsocket.
5107         (tests): Add tst-support-namespace.
5108
5109 2016-12-31  Florian Weimer  <fweimer@redhat.com>
5110
5111         [BZ #17252]
5112         * posix/unistd.h (getentropy): Declare for __USE_MISC, not just
5113         __USE_GNU.
5114
5115 2016-12-31  Torvald Riegel  <triegel@redhat.com>
5116
5117         [BZ #13165]
5118         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast): Rewrite to
5119         use new algorithm.
5120         * nptl/pthread_cond_destroy.c (__pthread_cond_destroy): Likewise.
5121         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
5122         * nptl/pthread_cond_signal.c (__pthread_cond_signal): Likewise.
5123         * nptl/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
5124         (__pthread_cond_timedwait): Move here from pthread_cond_timedwait.c.
5125         (__condvar_confirm_wakeup, __condvar_cancel_waiting,
5126         __condvar_cleanup_waiting, __condvar_dec_grefs,
5127         __pthread_cond_wait_common): New.
5128         (__condvar_cleanup): Remove.
5129         * npt/pthread_condattr_getclock.c (pthread_condattr_getclock): Adapt.
5130         * npt/pthread_condattr_setclock.c (pthread_condattr_setclock):
5131         Likewise.
5132         * npt/pthread_condattr_getpshared.c (pthread_condattr_getpshared):
5133         Likewise.
5134         * npt/pthread_condattr_init.c (pthread_condattr_init): Likewise.
5135         * nptl/tst-cond1.c: Add comment.
5136         * nptl/tst-cond20.c (do_test): Adapt.
5137         * nptl/tst-cond22.c (do_test): Likewise.
5138         * sysdeps/aarch64/nptl/bits/pthreadtypes.h (pthread_cond_t): Adapt
5139         structure.
5140         * sysdeps/arm/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
5141         * sysdeps/ia64/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
5142         * sysdeps/m68k/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
5143         * sysdeps/microblaze/nptl/bits/pthreadtypes.h (pthread_cond_t):
5144         Likewise.
5145         * sysdeps/mips/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
5146         * sysdeps/nios2/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
5147         * sysdeps/s390/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
5148         * sysdeps/sh/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
5149         * sysdeps/tile/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
5150         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h (pthread_cond_t):
5151         Likewise.
5152         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h (pthread_cond_t):
5153         Likewise.
5154         * sysdeps/x86/bits/pthreadtypes.h (pthread_cond_t): Likewise.
5155         * sysdeps/nptl/internaltypes.h (COND_NWAITERS_SHIFT): Remove.
5156         (COND_CLOCK_BITS): Adapt.
5157         * sysdeps/nptl/pthread.h (PTHREAD_COND_INITIALIZER): Adapt.
5158         * nptl/pthreadP.h (__PTHREAD_COND_CLOCK_MONOTONIC_MASK,
5159         __PTHREAD_COND_SHARED_MASK): New.
5160         * nptl/nptl-printers.py (CLOCK_IDS): Remove.
5161         (ConditionVariablePrinter, ConditionVariableAttributesPrinter): Adapt.
5162         * nptl/nptl_lock_constants.pysym: Adapt.
5163         * nptl/test-cond-printers.py: Adapt.
5164         * sysdeps/unix/sysv/linux/hppa/internaltypes.h (cond_compat_clear,
5165         cond_compat_check_and_clear): Adapt.
5166         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c: Remove file ...
5167         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c
5168         (__pthread_cond_timedwait): ... and move here.
5169         * nptl/DESIGN-condvar.txt: Remove file.
5170         * nptl/lowlevelcond.sym: Likewise.
5171         * nptl/pthread_cond_timedwait.c: Likewise.
5172         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
5173         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
5174         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
5175         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
5176         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: Likewise.
5177         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: Likewise.
5178         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: Likewise.
5179         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Likewise.
5180         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: Likewise.
5181         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: Likewise.
5182         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: Likewise.
5183         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Likewise.
5184         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Likewise.
5185         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
5186         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
5187         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
5188
5189 2016-12-31  Joseph Myers  <joseph@codesourcery.com>
5190
5191         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
5192         (fromfp): New declaration.
5193         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fromfpx): Likewise.
5194         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ufromfp): Likewise.
5195         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ufromfpx): Likewise.
5196         * math/tgmath.h (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): New macro.
5197         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fromfp): Likewise.
5198         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ufromfp): Likewise.
5199         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fromfpx): Likewise.
5200         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ufromfpx): Likewise.
5201         * math/math.h: Include <bits/types.h>.
5202         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FP_INT_UPWARD): New enum
5203         constant and macro.
5204         (FP_INT_DOWNWARD): Likewise.
5205         (FP_INT_TOWARDZERO): Likewise.
5206         (FP_INT_TONEARESTFROMZERO): Likewise.
5207         (FP_INT_TONEAREST): Likewise.
5208         * math/Versions (fromfp): New libm symbol at version GLIBC_2.25.
5209         (fromfpf): Likewise.
5210         (fromfpl): Likewise.
5211         (ufromfp): Likewise.
5212         (ufromfpf): Likewise.
5213         (ufromfpl): Likewise.
5214         (fromfpx): Likewise.
5215         (fromfpxf): Likewise.
5216         (fromfpxl): Likewise.
5217         (ufromfpx): Likewise.
5218         (ufromfpxf): Likewise.
5219         (ufromfpxl): Likewise.
5220         * math/Makefile (libm-calls): Add s_fromfpF, s_ufromfpF,
5221         s_fromfpxF and s_ufromfpxF.
5222         * math/gen-fromfp-tests.py: New file.
5223         * math/gen-fromfp-tests-inputs: Likewise.
5224         * math/libm-test.inc: Include <stdint.h>
5225         (check_intmax_t): New function.
5226         (check_uintmax_t): Likewise.
5227         (struct test_fiu_M_data): New type.
5228         (struct test_fiu_U_data): Likewise.
5229         (RUN_TEST_fiu_M): New macro.
5230         (RUN_TEST_LOOP_fiu_M): Likewise.
5231         (RUN_TEST_fiu_U): Likewise.
5232         (RUN_TEST_LOOP_fiu_U): Likewise.
5233         (fromfp_test_data): New array.
5234         (fromfp_test): New function.
5235         (fromfpx_test_data): New array.
5236         (fromfpx_test): New function.
5237         (ufromfp_test_data): New array.
5238         (ufromfp_test): New function.
5239         (ufromfpx_test_data): New array.
5240         (ufromfpx_test): New function.
5241         (main): Call fromfp_test, fromfpx_test, ufromfp_test and
5242         ufromfpx_test.
5243         * math/gen-libm-test.pl (parse_args): Handle u, M and U descriptor
5244         characters.
5245         * math/test-tgmath-ret.c: Include <stdint.h>.
5246         (rm): New variable.
5247         (width): Likewise.
5248         (CHECK_RET_CONST_TYPE): Take extra arguments and pass them to
5249         called function.
5250         (CHECK_RET_CONST_FLOAT): Take extra arguments and pass them to
5251         CHECK_RET_CONST_TYPE.
5252         (CHECK_RET_CONST_DOUBLE): Likewise.
5253         (CHECK_RET_CONST_LDOUBLE): Likewise.
5254         (CHECK_RET_CONST): Take extra arguments and pass them to calls
5255         macros.
5256         (fromfp): New CHECK_RET_CONST call.
5257         (ufromfp): Likewise.
5258         (fromfpx): Likewise.
5259         (ufromfpx): Likewise.
5260         (do_test): Call check_return_fromfp, check_return_ufromfp,
5261         check_return_fromfpx and check_return_ufromfpx.
5262         * math/test-tgmath.c: Include <stdint.h>
5263         (NCALLS): Increase to 138.
5264         (F(compile_test)): Initialize i.  Call fromfp functions.
5265         (F(fromfp)): New function.
5266         (F(fromfpx)): Likewise.
5267         (F(ufromfp)): Likewise.
5268         (F(ufromfpx)): Likewise.
5269         * manual/arith.texi (Rounding Functions): Document FP_INT_UPWARD,
5270         FP_INT_DOWNWARD, FP_INT_TOWARDZERO, FP_INT_TONEARESTFROMZERO,
5271         FP_INT_TONEAREST, fromfp, fromfpf, fromfpl, ufromfp, ufromfpf,
5272         ufromfpl, fromfpx, fromfpxf, fromfpxl, ufromfpx, ufromfpxf and
5273         ufromfpxl.
5274         * manual/libm-err-tab.pl (@all_functions): Add fromfp, fromfpx,
5275         ufromfp and ufromfpx.
5276         * math/fromfp.h: New file.
5277         * sysdeps/ieee754/dbl-64/s_fromfp.c: Likewise.
5278         * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Likewise.
5279         * sysdeps/ieee754/dbl-64/s_fromfpx.c: Likewise.
5280         * sysdeps/ieee754/dbl-64/s_ufromfp.c: Likewise.
5281         * sysdeps/ieee754/dbl-64/s_ufromfpx.c: Likewise.
5282         * sysdeps/ieee754/flt-32/s_fromfpf.c: Likewise.
5283         * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Likewise.
5284         * sysdeps/ieee754/flt-32/s_fromfpxf.c: Likewise.
5285         * sysdeps/ieee754/flt-32/s_ufromfpf.c: Likewise.
5286         * sysdeps/ieee754/flt-32/s_ufromfpxf.c: Likewise.
5287         * sysdeps/ieee754/ldbl-128/s_fromfpl.c: Likewise.
5288         * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Likewise.
5289         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c: Likewise.
5290         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c: Likewise.
5291         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c: Likewise.
5292         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c: Likewise.
5293         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl_main.c: Likewise.
5294         * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c: Likewise.
5295         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c: Likewise.
5296         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c: Likewise.
5297         * sysdeps/ieee754/ldbl-96/s_fromfpl.c: Likewise.
5298         * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Likewise.
5299         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c: Likewise.
5300         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c: Likewise.
5301         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c: Likewise.
5302         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fromfp,
5303         ufromfp, fromfpx and ufromfpx.
5304         (CFLAGS-nldbl-fromfp.c): New variable.
5305         (CFLAGS-nldbl-fromfpx.c): Likewise.
5306         (CFLAGS-nldbl-ufromfp.c): Likewise.
5307         (CFLAGS-nldbl-ufromfpx.c): Likewise.
5308         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include <stdint.h>.
5309         * sysdeps/ieee754/ldbl-opt/nldbl-fromfp.c: New file.
5310         * sysdeps/ieee754/ldbl-opt/nldbl-fromfpx.c: Likewise.
5311         * sysdeps/ieee754/ldbl-opt/nldbl-ufromfp.c: Likewise.
5312         * sysdeps/ieee754/ldbl-opt/nldbl-ufromfpx.c: Likewise.
5313         * sysdeps/nacl/libm.abilist: Update.
5314         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
5315         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
5316         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
5317         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
5318         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
5319         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
5320         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
5321         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
5322         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
5323         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
5324         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
5325         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
5326         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
5327         Likewise.
5328         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
5329         Likewise.
5330         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
5331         Likewise.
5332         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
5333         Likewise.
5334         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
5335         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
5336         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
5337         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
5338         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
5339         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
5340         Likewise.
5341         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
5342         Likewise.
5343         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
5344         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
5345         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
5346
5347 2016-12-30  Florian Weimer  <fweimer@redhat.com>
5348
5349         * resolv/Makefile (libresolv-routines): Rename gethnamaddr to
5350         compat-gethnamaddr.
5351         (CPPFLAGS): Remove.
5352         * resolv/gethnamaddr.c: Rename ...
5353         * resolv/compat-gethnamaddr.c: ... to this file.
5354         (_endhtent): Make static.
5355         (res_gethostbyname): Renamed from gethostbyname.  Turn into compat
5356         symbol.
5357         (res_gethostbyname2): Renamed from gethostbyname2.  Turn into
5358         compat symbol.
5359         (res_gethostbyaddr): Renamed from gethostbyaddr.  Turn into compat
5360         symbol.
5361         (_sethtent, _gethtent, _gethtbyname, gethtbyname2, _gethtbyaddr):
5362         Turn into compat symbol.
5363         * include/resolv.h (_endhtent): Remove declaration.
5364
5365 2016-12-30  Joseph Myers  <joseph@codesourcery.com>
5366
5367         * bits/types.h (__intmax_t): New typedef.
5368         (__uintmax_t): Likewise.
5369         * sysdeps/generic/stdint.h: Include <bits/types.h>.
5370         (intmax_t): Define using __intmax_t.
5371         (uintmax_t): Define using __uintmax_t.
5372
5373         * support/Makefile (tests-special): Make definition conditional on
5374         [$(run-built-tests) = yes].
5375         ($(objpfx)tst-support_record_failure-2.out): Make rule conditional
5376         on [$(run-built-tests) = yes].
5377
5378 2016-12-30  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5379
5380         * Rules (tests): Add tests-printers-programs to tests to be
5381         built.
5382
5383 2016-12-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5384
5385         * sysvipc/Makefile (tests): Add test-sysvshm.
5386         * sysvipc/test-sysvshm.c: New file.
5387
5388         * sysdeps/unix/sysv/linux/alpha/syscalls.list (shmget): Remove.
5389         * sysdeps/unix/sysv/linux/arm/syscalls.list (shmget): Likewise.
5390         * sysdeps/unix/sysv/linux/generic/syscalls.list (shmget): Likewise.
5391         * sysdeps/unix/sysv/linux/hppa/syscalls.list (shmget): Likewise.
5392         * sysdeps/unix/sysv/linux/ia64/syscalls.list (shmget): Likewise.
5393         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (shmget): Likewise.
5394         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (shmget):
5395         Likewise.
5396         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (shmget):
5397         Likewise.
5398         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (shmget): Likewise.
5399         * sysdeps/unix/sysv/linux/shmget.c (shmget): Use shmget syscall if it
5400         is defined.
5401
5402         * sysdeps/unix/sysv/linux/alpha/syscalls.list (shmdt): Remove.
5403         * sysdeps/unix/sysv/linux/arm/syscalls.list (shmdt): Likewise.
5404         * sysdeps/unix/sysv/linux/generic/syscalls.list (shmdt): Likewise.
5405         * sysdeps/unix/sysv/linux/hppa/syscalls.list (shmdt): Likewise.
5406         * sysdeps/unix/sysv/linux/ia64/syscalls.list (shmdt): Likewise.
5407         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (shmdt): Likewise.
5408         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (shmdt):
5409         Likewise.
5410         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (shmdt):
5411         Likewise.
5412         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (shmdt): Likewise.
5413         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Use shmdt syscall if it is
5414         defined.
5415
5416         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdeps_routines): Remove
5417         oldshmctl.
5418         * sysdeps/unix/sysv/linux/alpha/syscalls.list (shmctl): Remove.
5419         * sysdeps/unix/sysv/linux/arm/syscalls.list (shmctl): Likewise.
5420         * sysdeps/unix/sysv/linux/generic/syscalls.list (shmctl): Likewise.
5421         * sysdeps/unix/sysv/linux/hppa/syscalls.list (shmctl): Likewise.
5422         * sysdeps/unix/sysv/linux/ia64/syscalls.list (shmctl): Likewise.
5423         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (shmctl): Likewise.
5424         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (shmctl):
5425         Likewise.
5426         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (shmctl):
5427         Likewise.
5428         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (shmctl): Likewise.
5429         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Remove file.
5430         * sysdeps/unix/sysv/linux/arm/shmctl.c: Likewise.
5431         * sysdeps/unix/sysv/linux/microblaze/shmctl.c: Likewise.
5432         * sysdeps/unix/sysv/linux/mips/mips64/shmctl.c: Use default
5433         implementation.
5434         * sysdeps/unix/sysv/linux/shmctl.c (__new_shmctl): Use shmctl syscall
5435         if it is defined.
5436
5437         * sysdeps/unix/sysv/linux/alpha/syscalls.list (shmat): Remove.
5438         * sysdeps/unix/sysv/linux/arm/syscalls.list (shmat): Likewise.
5439         * sysdeps/unix/sysv/linux/generic/syscalls.list (shmat): Likewise.
5440         * sysdeps/unix/sysv/linux/hppa/syscalls.list (shmat): Likewise.
5441         * sysdeps/unix/sysv/linux/ia64/syscalls.list (shmat): Likewise.
5442         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (shmat): Likewise.
5443         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (shmat):
5444         Likewise.
5445         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (shmat):
5446         Likewise.
5447         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (shmat): Likewise.
5448         * sysdeps/unix/sysv/linux/alpha/kernel-features.h (__NR_shmat):
5449         Define to __NR_osf_shmat.
5450         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use shmat syscall if it is
5451         defined.
5452
5453         * sysvipc/Makefile (tests): Add test-sysvsem.
5454         * sysvipc/test-sysvsem.c: New file.
5455
5456         * sysdeps/unix/sysv/linux/alpha/syscalls.list (semtimedop): Remove.
5457         * sysdeps/unix/sysv/linux/arm/syscalls.list (semtimedop): Likewise.
5458         * sysdeps/unix/sysv/linux/generic/syscalls.list (semtimedop):
5459         Likewise.
5460         * sysdeps/unix/sysv/linux/hppa/syscalls.list (semtimedop): Likewise.
5461         * sysdeps/unix/sysv/linux/ia64/syscalls.list (semtimedop): Likewise.
5462         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (semtimedop):
5463         Likewise.
5464         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (semtimedop):
5465         Likewise.
5466         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (semtimedop): Likewise.
5467         * sysdeps/unix/sysv/linux/m68k/semtimedop.S: Remove file.
5468         * sysdeps/unix/sysv/linux/s390/semtimedop.c: Reorganize headers and
5469         add a comment about s390 syscall difference from default one.
5470         * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Use semtimedop
5471         syscall if it is defined.
5472
5473         * sysdeps/unix/sysv/linux/alpha/syscalls.list (semop): Remove.
5474         * sysdeps/unix/sysv/linux/arm/syscalls.list (semop): Likewise.
5475         * sysdeps/unix/sysv/linux/generic/syscalls.list (semop): Likewise.
5476         * sysdeps/unix/sysv/linux/hppa/syscalls.list (semop): Likewise.
5477         * sysdeps/unix/sysv/linux/ia64/syscalls.list (semop): Likewise.
5478         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (semop): Likewise.
5479         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (semop):
5480         Likewise.
5481         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (semop):
5482         Likewise.
5483         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (semop): Likewise.
5484         * sysdeps/unix/sysv/linux/semop.c (semop): Use semop syscall if it is
5485         defined.
5486
5487         * sysdeps/unix/sysv/linux/alpha/syscalls.list (semget): Remove.
5488         * sysdeps/unix/sysv/linux/arm/syscalls.list (semget): Likewise.
5489         * sysdeps/unix/sysv/linux/generic/syscalls.list (semget): Likewise.
5490         * sysdeps/unix/sysv/linux/hppa/syscalls.list (semget): Likewise.
5491         * sysdeps/unix/sysv/linux/ia64/syscalls.list (semget): Likewise.
5492         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (semget): Likewise.
5493         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (semget):
5494         Likewise.
5495         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (semget):
5496         Likewise.
5497         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (semget): Likewise.
5498         * sysdeps/unix/sysv/linux/semget.c (semget): Use semget syscall
5499         if it is defined.
5500
5501         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdeps_routines): Remove
5502         oldsemctl.
5503         * sysdeps/unix/sysv/linux/alpha/semctl.c: Remove file.
5504         * sysdeps/unix/sysv/linux/arm/semctl.c: Likewise.
5505         * sysdeps/unix/sysv/linux/microblaze/semctl.c: Likewise.
5506         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Likewise.
5507         * sysdeps/unix/sysv/linux/mips/mips64/semctl.c: Use defaulf
5508         implementation.
5509         * sysdeps/unix/sysv/linux/semctl.c (__new_semctl): Use semctl
5510         syscall if it is defined.
5511         * sysdeps/unix/sysv/linux/generic/syscalls.list (semctl): Remove.
5512         * sysdeps/unix/sysv/linux/alpha/syscalls.list (semctl): Likewise.
5513         * sysdeps/unix/sysv/linux/hppa/syscalls.list (semctl): Likewise.
5514         * sysdeps/unix/sysv/linux/ia64/syscalls.list (semctl): Likewise.
5515         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (semctl):
5516         Likewise.
5517         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (semctl): Likewise.
5518
5519         * sysvipc/Makefile (tests): Add test-sysvmsg.
5520         * sysvipc/test-sysvmsg.c: New file.
5521         * support/check.h (FAIL_UNSUPPORTED): New define.
5522
5523         * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgget): Remove.
5524         * sysdeps/unix/sysv/linux/arm/syscalls.list (msgget): Likewise.
5525         * sysdeps/unix/sysv/linux/generic/syscalls.list (msgget): Likewise.
5526         * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgget): Likewise.
5527         * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgget): Likewise.
5528         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (msgget): Likewise.
5529         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (msgget):
5530         Likewise.
5531         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgget):
5532         Likewise.
5533         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgget): Likewise.
5534         * sysdeps/unix/sysv/linux/msgget.c (msgget): Use msgget syscall if
5535         define.
5536
5537         * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgsnd): Remove.
5538         * sysdeps/unix/sysv/linux/arm/syscalls.list (msgsnd): Likewise.
5539         * sysdeps/unix/sysv/linux/generic/syscalls.list (msgsnd): Likewise.
5540         * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgsnd): Likewise.
5541         * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgsnd): Likewise.
5542         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (msgsnd): Likewise.
5543         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (msgsnd):
5544         Likewise.
5545         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgsnd):
5546         Likewise.
5547         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgsnd): Likewise.
5548         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Use msgsnd syscall
5549         if defined.
5550
5551         * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgctl): Remove.
5552         * sysdeps/unix/sysv/linux/arm/syscalls.list (msgctl): Likewise.
5553         * sysdeps/unix/sysv/linux/generic/syscalls.list (msgctl): Likewise.
5554         * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgctl): Likewise.
5555         * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgctl): Likewise.
5556         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (msgctl): Likewise.
5557         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgctl):
5558         Likewise.
5559         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgctl): Likewise,
5560         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (msgctl):
5561         Likewise.
5562         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Use msgrcv syscall
5563         if defined.
5564         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Remove file.
5565
5566         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdeps_routines): Remove
5567         oldmsgctl.
5568         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Remove file.
5569         * sysdeps/unix/sysv/linux/arm/msgctl.c: Likewise.
5570         * sysdeps/unix/sysv/linux/microblaze/msgctl.c: Likewise.
5571         * sysdeps/unix/sysv/linux/alpha/syscalls.list (oldmsgctl): Remove.
5572         * sysdeps/unix/sysv/linux/generic/syscalls.list (msgctl): Likewise.
5573         * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgctl): Likewise.
5574         * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgctl): Likewise.
5575         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgctl):
5576         Likewise.
5577         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgctl): Likewise.
5578         * sysdeps/unix/sysv/linux/mips/mips64/msgctl.c: Use default
5579         implementation.
5580         * sysdeps/unix/sysv/linux/msgctl.c (__new_msgctl): Use msgctl syscall
5581         if defined.
5582
5583         * sysdeps/unix/sysv/linux/aarch64/ipc_priv.h: New file.
5584         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Avoid included other arch
5585         definition and define its own.
5586         * sysdeps/unix/sysv/linux/ipc_ops.h: New file.
5587         * sysdeps/unix/sysv/linux/x86_64/ipc_priv.h: Likewise.
5588         * sysdeps/unix/sysv/linux/mips/ipc_priv.h: Remove file.
5589         * sysdeps/unix/sysv/linux/mips/mips64/ipc_priv.h: New file.
5590         * sysdeps/unix/sysv/linux/ipc_priv.h: Move ipc syscall operation
5591         definitions to common header.
5592         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: Use common syscall
5593         operation from ipc_ops.h.
5594
5595         * sysdeps/unix/sysv/linux/kernel-features.h
5596         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): New define.
5597         * sysdeps/unix/sysv/linux/i386/kernel-features.h
5598         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): Undef.
5599         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
5600         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): Likewise.
5601         * sysdeps/unix/sysv/linux/mips/kernel-features.h
5602         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): Likewise.
5603         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
5604         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): Likewise.
5605         * sysdeps/unix/sysv/linux/s390/kernel-features.h
5606         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): Likewise.
5607         * sysdeps/unix/sysv/linux/sh/kernel-features.h
5608         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): Likewise.
5609         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
5610         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): Likewise.
5611
5612 2016-12-28  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5613
5614         * sysdeps/powerpc/powerpc32/power7/memchr.S (__memchr): Avoid an
5615         overflow in pointer addition.
5616
5617 2016-12-28  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
5618
5619         * sysdeps/powerpc/powerpc64/multiarch/Makefile
5620         (sysdep_routines): Add strchr-power8 and strchrnul_power8.
5621         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
5622         (strchr): Add __strchr_power8 to list of strchr functions.
5623         (strchrnul): Add __strchrnul_power8 to list of strchr functions.
5624         * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: New file.
5625         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: New file.
5626         * sysdeps/powerpc/powerpc64/multiarch/strchr.c
5627         (strchr): Add __strchr_power8 to ifunc list.
5628         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c
5629         (__strchrnul): Add __strchrnul_power8 to ifunc list.
5630         * sysdeps/powerpc/powerpc64/power8/strchr.S: New file.
5631         * sysdeps/powerpc/powerpc64/power8/strchrnul.S: New file.
5632
5633 2016-12-28  Florian Weimer  <fweimer@redhat.com>
5634
5635         * support/Makefile (libsupport-routines): Add
5636         support_test_verify_impl, support_record_failure, xfork, xwaitpid.
5637         (tests): Add tst-support_record_failure.
5638         (tests-special): tst-support_record_failure-2.
5639         (tst-support_record_failure-2.out): Depend on
5640         tst-support_record_failure-2.sh and tst-support_record_failure.
5641         * support/check.h (TEST_VERIFY, TEST_VERIFY_EXIT): Define.
5642         (support_test_verify_impl, support_record_failure)
5643         (support_report_failure, support_report_failure_reset): Declare.
5644         * support/support_test_main.c (adjust_exit_status): New function.
5645         (support_test_main): Call it to incorporate record test failures.
5646         * support/support_test_verify_impl.c: New file.
5647         * support/support_record_failure.c: Likewise.
5648         * support/tst-support_record_failure.c: Likewise.
5649         * support/tst-support_record_failure-2.sh: Likewise.
5650         * support/xunistd.h: Likewise.
5651         * support/xfork.c: Likewise.
5652         * support/xwaitpid.c: Likewise.
5653
5654 2016-12-27  Steve Ellcey  <sellcey@caviumnetworks.com>
5655
5656         * scripts/check-c++-types.sh: Add comments.
5657
5658 2016-12-27  Dmitry V. Levin  <ldv@altlinux.org>
5659
5660         [BZ #19514]
5661         * resolv/res_send.c: Fix typo in comment.
5662         * sysdeps/i386/i386-mcount.S: Likewise.
5663         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
5664         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
5665         * sysdeps/sparc/sparc-mcount.S: Likewise.
5666
5667 2016-12-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5668
5669         * sysdeps/powerpc/fpu/s_fmaxf.S: Remove file.
5670         * sysdeps/powerpc/fpu/s_fminf.S: Likewise.
5671         * sysdeps/powerpc/fpu/s_fmax.S: Likewise.
5672         * sysdeps/powerpc/fpu/s_fmin.S: Likewise.
5673         * sysdeps/powerpc/powerpc32/fpu/s_fmax.S: Likewise.
5674         * sysdeps/powerpc/powerpc32/fpu/s_fmin.S: Likewise.
5675         * sysdeps/powerpc/powerpc64/fpu/s_fmax.S: Likewise.
5676         * sysdeps/powerpc/powerpc64/fpu/s_fmin.S: Likewise.
5677
5678 2016-12-27  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
5679
5680         * manual/arith.texi (FP Comparison Functions): Fix typo in iseqsig.
5681
5682 2016-12-27  Florian Weimer  <fweimer@redhat.com>
5683
5684         [BZ #17252]
5685         * posix/unistd.h (getentropy): Declare.
5686
5687 2016-12-27  Florian Weimer  <fweimer@redhat.com>
5688
5689         * resolv/res_hconf.h (HCONF_FLAG_SPOOF, HCONF_FLAG_SPOOFALERT):
5690         Remove.
5691         * resolv/res_hconf.c (ENV_SPOOF, arg_spoof): Remove.
5692         (cmd): Remove spoof, nospoof, spoofalert.
5693         (parse_line): Ignore spoof-related lines.
5694         (do_init): Do not process RESOLV_SPOOF_CHECK.
5695
5696 2016-12-27  Florian Weimer  <fweimer@redhat.com>
5697
5698         [BZ #20964]
5699         sunrpc: Always obtain AF_INET addresses from NSS.
5700         * include/rpc/rpc.h (__libc_rpc_gethostbyname): Declare.
5701         * sunrpc/rpc_gethostbyname.c: New file.
5702         * sunrpc/Makefile (routines): Add it.
5703         * sunrpc/clnt_gen.c (clnt_create): Use __libc_rpc_gethostbyname.
5704         * sunrpc/clnt_simp.c (callrpc): Likewise.
5705         * sunrpc/getrpcport.c (getrpcport): Likewise.
5706
5707 2016-12-27  Florian Weimer  <fweimer@redhat.com>
5708
5709         * sunrpc/rpcinfo.c: Remove.
5710         * sunrpc/Makefile: Remove comments referring to rpcinfo.
5711
5712 2016-12-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5713
5714         [BZ #19387]
5715         * sysdeps/x86_64/memchr.S (memchr): Avoid overflow in pointer
5716         addition.
5717         * string/test-memchr.c (do_test): Remove alignment limitation.
5718         (test_main): Add test that trigger BZ #19387.
5719
5720 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
5721
5722         [BZ #7065]
5723         Enable stack protectore if requested by ./configure.
5724         * Makeconfig (+stack-protector): New variable.
5725         (+cflags): Use it.
5726
5727 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
5728
5729         [BZ #7065]
5730         * signal/Makefile (CFLAGS-sigreturn.c): Use $(no-stack-protector).
5731         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c:
5732         (__rt_sigreturn_stub): Use inhibit_stack_protector.
5733         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
5734         (__rt_sigreturn_stub, __sigreturn_stub): Likewise.
5735
5736 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
5737
5738         [BZ #7065]
5739         * login/Makefile (pt_chown-cflags): Remove.
5740         * nscd/Makefile (CFLAGS-nscd): Likewise.
5741         * resolv/Makefile (CFLAGS-libresolv): Likewise.
5742
5743 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
5744
5745         [BZ #7065]
5746         * elf/Makefile (CFLAGS-filtmod1.c): Use $(no-stack-protector) for
5747         non-libc-linking testcase.
5748
5749 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
5750             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5751             Florian Weimer  <fweimer@redhat.com>
5752
5753         [BZ #7065]
5754         PLT avoidance for __stack_chk_fail*.
5755         * debug/Makefile (CFLAGS-stack_chk_fail.c)
5756         (CFLAGS-stack_chk_fail_local.c): Build without stack protector.
5757         * debug/stack_chk_fail.c (__stack_chk_fail): Add
5758         __stack_chk_fail_local alias.
5759         * sysdeps/generic/symbol-hacks.h [IS_IN (libc)]
5760         (__stack_chk_fail): Turn into hidden reference to
5761         __stack_chk_fail_local.
5762
5763 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
5764
5765         [BZ #7065]
5766         * configure.ac: Add check for unsupported stack-protection level.
5767         (libc_cv_predef_stack_protector): Remove.
5768         (no_ssp): New variable.
5769         (STACK_PROTECTOR_LEVEL): Set to zero when --disable-stack-protector.
5770         (stack_protector): Set to -fno-stack-protector similarly.
5771         (libc_cv_ld_gnu_indirect_function): Use no_ssp.
5772         (libc_cv_asm_set_directive): Likewise.
5773         (libc_cv_protected_data): Likewise.
5774         (libc_cv_z_combreloc): Likewise.
5775         (libc_cv_hashstyle): Likewise.
5776         (libc_cv_has_glob_dat): Likewise.
5777         (libc_cv_output_format): Likewise.
5778         (libc_cv_output_format): Likewise.
5779         (libc_cv_ehdr_start): Likewise.
5780         * aclocal.m4 (LIBC_TRY_LINK_STATIC): Likewise.
5781         (LIBC_LINKER_FEATURE): Likewise.
5782         (LIBC_COMPILER_BUILTIN_INLINED): Likewise.
5783
5784 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
5785
5786         [BZ #7065]
5787         * elf/Makefile (dummy-stack-chk-fail): New.
5788         (librtld.map): Use it.
5789
5790 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
5791
5792         [BZ #7065]
5793         Compile the dynamic linker without stack protection.
5794         * elf/Makefile (elide-stack-protector): New.
5795         (CFLAGS-.os): Use it, eliding $(all-rtld-routines).
5796         (CFLAGS-.o, CFLAGS-.op): Likewise, but for $(elide-routines.os).
5797         * elf/rtld-Rules (rtld-CFLAGS): Add $(no-stack-protector).
5798         * sysdeps/i386/Makefile (rtld-CFLAGS): Use +=, not =.
5799
5800 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
5801
5802         [BZ #7065]
5803         * config.make.in (have-ssp, no-stack-protector): New.
5804         * csu/Makefile (CFLAGS-.o, CFLAGS-.op, CFLAGS-.os): Use it.
5805         * misc/Makefile (CFLAGS-sbrk.o): Likewise.
5806         (CFLAGS-sbrk.op): Likewise.
5807         (CFLAGS-brk.o): Likewise.
5808         (CFLAGS-brk.op): Likewise.
5809         * string/Makefile (CFLAGS-memcpy.c): Likewise.
5810         (CFLAGS-wordcopy.c): Likewise.
5811
5812 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
5813
5814         [BZ #7065]
5815         * configure.ac (HAVE_CC_NO_STACK_PROTECTOR): Define.
5816         * config.h.in (HAVE_CC_NO_STACK_PROTECTOR): New macro.
5817         * include/libc-symbols.h (inhibit_stack_protector): New macro.
5818         (__ifunc_resolver): Use it.
5819         * elf/ifuncdep2.c (foo1_ifunc, foo2_ifunc, foo3_ifunc): Apply
5820         inhibit_stack_protector.
5821         * elf/ifuncmain6pie.c (foo_ifunc): Likewise.
5822         * elf/ifuncmain7.c (foo_ifunc): Likewise.
5823         * elf/ifuncmod1.c (foo_ifunc, foo_hidden_ifunc)
5824         (foo_protected_ifunc): Likewise.
5825         * elf/ifuncmod5.c (foo_ifunc, foo_hidden_ifunc)
5826         (foo_protected_ifunc): Likewise.
5827         * sysdeps/generic/ifunc-sel.h (ifunc_sel, ifunc_one): Likewise.
5828         * sysdeps/nacl/nacl_interface_query.c
5829         (nacl_interface_query_ifunc): Likewise.
5830         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel, ifunc_one): Likewise.
5831         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c (getcpu_ifunc):
5832         Likewise.
5833         * sysdeps/x86_64/ifuncmod8.c (foo_ifunc): Likewise.
5834         * sysdeps/unix/make-syscalls.sh: Apply inhibit_stack_protector to
5835         the generated vDSO syscall resolver.
5836
5837 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
5838             Florian Weimer  <fweimer@redhat.com>
5839
5840         [BZ #7065]
5841         Initialize the stack guard earlier when linking statically.
5842         * sysdeps/generic/ldsodefs.h (__libc_setup_tls)
5843         (__pthread_initialize_minimal): Declare.
5844         * csu/libc-start.c (__pthread_initialize_minimal): Remove
5845         declaration.
5846         (LIBC_START_MAIN): Call __libc_setup_tls early and directly.  Move
5847         stack canary and apply_irel initialization up.  Call
5848         __pthread_initialize_minimal only if linked in.
5849         * csu/libc-tls.c (__libc_setup_tls): Replace arguments with their
5850         constant values.
5851         (__pthread_initialize_minimal): Remove.
5852         * nptl/nptl-init.c (__libc_setup_tls): Remove declaration.
5853         (__pthread_initialize_minimal_internal): Do not call
5854         __libc_setup_tls.
5855
5856 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
5857
5858         [BZ #7065]
5859         * configure.ac (libc_cv_ssp): Move up.
5860         (libc_cv_ssp_strong): Likewise.
5861         (libc_cv_ssp_all): New.
5862         (stack_protector): Augment, adding -fstack-protector-all.
5863         (no_stack_protector): New.
5864         (STACK_PROTECTOR_LEVEL): New.
5865         (AC_ARG_ENABLE(stack-protector)): New configure flag.
5866         * manual/install.texi (--enable-stack-protector): Document it.
5867         * config.h.in (STACK_PROTECTOR_LEVEL): New macro.
5868
5869 2016-12-24  Carlos O'Donell  <carlos@redhat.com>
5870
5871         * README.pretty-printers: Must specify CPPFLAGS-* also.
5872         * nptl/Makefile (CPPFLAGS-test-mutexattr-printers.c): Define.
5873         (CPPFLAGS-test-mutex-printers.c): Define.
5874         (CPPFLAGS-test-condattr-printers.c): Define.
5875         (CPPFLAGS-test-cond-printers.c): Define.
5876         (CPPFLAGS-test-rwlockattr-printers.c): Define.
5877         (CPPFLAGS-test-rwlock-printers.c): Define.
5878
5879         * nss/Makefile [ifeq (yes,$(have-thread-library))]
5880         (tests): Add tst-cancel-getpwuid_r.
5881         * nss/tst-cancel-getpwuid_r.c: New file.
5882
5883         [BZ #11941]
5884         * elf/dl-close.c (_dl_close): Take dl_load_lock to examine map.
5885         Remove assert (map->l_init_called); if DF_1_NODELETE is set.
5886         * elf/Makefile [ifeq (yes,$(build-shared))] (tests): Add
5887         tst-nodelete-dlclose.
5888         (modules-names): Add tst-nodelete-dlclose-dso and
5889         tst-nodelete-dlclose-plugin.
5890         ($(objpfx)tst-nodelete-dlclose-dso.so): Define.
5891         ($(objpfx)tst-nodelete-dlclose-plugin.so): Define.
5892         ($(objpfx)tst-nodelete-dlclose): Define.
5893         ($(objpfx)tst-nodelete-dlclose.out): Define.
5894
5895 2016-12-23  Florian Weimer  <fweimer@redhat.com>
5896
5897         * scripts/test_printers_common.py: Log GDB output in case of
5898         Python detection failure.
5899
5900 2016-12-22  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5901
5902         * configure.ac: Check for python3 or python.
5903         * configure: Regenerated.
5904         * config.make.in (PYTHON): New variable.
5905         * benchtests/Makefile: Don't define PYTHON.
5906         (bench): Define target only if PYTHON was defined.
5907         * Rules: Don't define PYTHON.
5908         Define pretty printer targets only if PYTHON was defined.
5909         (tests-printers): Add to tests-unsupported if PYTHON is not
5910         found.
5911         (python-flags, python-invoke): Remove.
5912         (tests-printers-out): Use PYTHON instead of python-invoke.
5913
5914 2016-12-21  Joseph Myers  <joseph@codesourcery.com>
5915
5916         [BZ #20978]
5917         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
5918         Compare name == NULL, not name != NULL.
5919
5920         * manual/texinfo.tex: Update to version 2016-09-18.18 with
5921         trailing whitespace removed.
5922         * scripts/config.guess: Update to version 2016-10-02.
5923         * scripts/config.sub: Update to version 2016-11-19.
5924         * scripts/install-sh: Update to version 2016-01-11.22.
5925         * scripts/mkinstalldirs: Update to version 2016-01-11.22.
5926         * scripts/move-if-change: Update to version 2016-01-11 22:04.
5927
5928 2015-12-21  Wilco Dijkstra  <wdijkstr@arm.com>
5929
5930         * benchtests/bench-strsep.c (oldstrsep): Add old implementation.
5931         (do_one_test) Restore original string so iteration works.
5932         * string/string-inlines.c (do_test): Create better input strings.
5933         (test_main) Reduce number of testruns.
5934         * string/string-inlines.c (__old_strsep_1c): New function.
5935         (__old_strsep_2c): Likewise.
5936         (__old_strsep_3c): Likewise.
5937         * string/strsep.c (__strsep): Remove case of small delim string.
5938         Call strcspn directly rather than strpbrk.
5939         * string/bits/string2.h (__strsep): Remove define.
5940         (__strsep_1c): Remove.
5941         (__strsep_2c): Remove.
5942         (__strsep_3c): Remove.
5943         (strsep): Remove.
5944         * sysdeps/unix/sysv/linux/internal_statvfs.c
5945         (__statvfs_getflags): Rename to __strsep.
5946
5947 2016-12-21  Florian Weimer  <fweimer@redhat.com>
5948
5949         * csu/libc-tls.c (_dl_tls_setup): Remove.
5950         * elf/dl-tls.c (_dl_tls_setup): Likewise.
5951         * elf/Versions (GLIBC_PRIVATE): Remove _dl_tls_setup.
5952         * sysdeps/generic/ldsodefs.h (_dl_tls_setup): Remove declaration.
5953
5954 2016-12-21  Nick Alcock <nick.alcock@oracle.com>
5955
5956         [BZ #7065]
5957         * sysdeps/x86_64/Makefile [$(subdir) = elf]
5958         (CFLAGS-tst-quad1pie.c, CFLAGS-tst-quad2pie.c): Add $(PIE-ccflag).
5959
5960 2016-12-21  Nick Alcock <nick.alcock@oracle.com>
5961             Florian Weimer  <fweimer@redhat.com>
5962
5963         [BZ #7065]
5964         * csu/Makefile (tests): Empty assignment and document it.
5965         (tests-static): Remove.
5966         * csu/tst-empty.c: Move to...
5967         * misc/tst-empty.c: ... here.  Switch to new test driver.
5968         * csu/tst-atomic.c: Move to...
5969         * misc/tst-atomic.c: ... here.  Switch to new test driver.
5970         * csu/tst-atomic-long.c: Move to...
5971         * misc/tst-atomic-long.c: ... here.
5972         * misc/Makefile (tests): Add tst-empty, tst-atomic,
5973         tst-atomic-long.
5974         (tests-static): Add tst-empty.
5975
5976 2016-12-21  Rical Jasan  <ricaljasan@pacific.net>
5977
5978         * manual/nss.texi: Change incorrect @vtable to @table.
5979         * manual/arith.texi: Convert @tables of variables to @vtables
5980         and remove unnecessary indexing.
5981         * manual/filesys.texi: Likewise.
5982         * manual/llio.texi: Likewise.
5983         * manual/memory.texi: Likewise.
5984         * manual/process.texi: Likewise.
5985         * manual/resource.texi: Likewise.
5986         * manual/search.texi: Likewise.
5987         * manual/signal.texi: Likewise.
5988         * manual/socket.texi: Likewise.
5989         * manual/stdio.texi: Likewise.
5990         * manual/sysinfo.texi: Likewise.
5991         * manual/syslog.texi: Likewise.
5992         * manual/terminal.texi: Likewise.
5993         * manual/time.texi: Likewise.
5994         * manual/users.texi: Likewise.
5995
5996 2016-12-21  Joseph Myers  <joseph@codesourcery.com>
5997
5998         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
5999         (roundeven): New declaration.
6000         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (roundeven): New
6001         macro.
6002         * math/Versions (roundeven): New libm symbol at version
6003         GLIBC_2.25.
6004         (roundevenf): Likewise.
6005         (roundevenl): Likewise.
6006         * math/Makefile (libm-calls): Add s_roundevenF.
6007         * math/libm-test.inc (roundeven_test_data): New array.
6008         (roundeven_test): New function.
6009         (main): Call roundeven_test.
6010         * math/test-tgmath.c (NCALLS): Increase to 134.
6011         (F(compile_test)): Call roundeven.
6012         (F(roundeven)): New function.
6013         * manual/arith.texi (Rounding Functions): Document roundeven,
6014         roundevenf and roundevenl.
6015         * manual/libm-err-tab.pl (@all_functions): Add roundeven.
6016         * include/math.h (roundeven): Use libm_hidden_proto.
6017         * sysdeps/ieee754/dbl-64/s_roundeven.c: New file.
6018         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Likewise.
6019         * sysdeps/ieee754/flt-32/s_roundevenf.c: Likewise.
6020         * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Likewise.
6021         * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c: Likewise.
6022         * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Likewise.
6023         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
6024         roundeven.
6025         (CFLAGS-nldbl-roundeven.c): New variable.
6026         * sysdeps/ieee754/ldbl-opt/nldbl-roundeven.c: New file.
6027         * sysdeps/nacl/libm.abilist: Update.
6028         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
6029         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
6030         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
6031         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
6032         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
6033         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
6034         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
6035         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
6036         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
6037         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
6038         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
6039         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
6040         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
6041         Likewise.
6042         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
6043         Likewise.
6044         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
6045         Likewise.
6046         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
6047         Likewise.
6048         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
6049         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
6050         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
6051         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
6052         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
6053         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
6054         Likewise.
6055         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6056         Likewise.
6057         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6058         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
6059         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
6060
6061 2016-12-20  Joseph Myers  <joseph@codesourcery.com>
6062
6063         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (llogb): Add
6064         preprocessor indentation inside #if.
6065
6066 2016-12-20  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
6067
6068         * math/libm-test.inc (fmt_ftostr): New function.
6069         (print_float, check_float_internal): Replace some uses of
6070         FTOSTR with uses of fmt_ftostr.
6071         (print_max_error, print_complex_max_error, print_function_ulps)
6072         (print_complex_function_ulps): Remove uses of the macros
6073         PRINTF_EXPR, PRINTF_NEXPR, and PRINTF_XEXPR.
6074         * math/test-double.h (FTOSTR): Define to strfromd.
6075         (PRINTF_EXPR): Delete.
6076         (PRINTF_XEXPR): Likewise.
6077         (PRINTF_NEXPR): Likewise.
6078         * math/test-float.h (FTOSTR): Define to strfromf.
6079         (PRINTF_EXPR): Delete.
6080         (PRINTF_XEXPR): Likewise.
6081         (PRINTF_NEXPR): Likewise.
6082         * math/test-ldouble.h (FTOSTR): Define to strfroml.
6083         (PRINTF_EXPR): Delete.
6084         (PRINTF_XEXPR): Likewise.
6085         (PRINTF_NEXPR): Likewise.
6086
6087 2016-12-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
6088
6089         * sysdeps/unix/sysv/linux/s390/lowlevellock.h
6090         (__lll_unlock_elision, lll_unlock_elision): Add adapt_count argument.
6091         * sysdeps/unix/sysv/linux/s390/elision-lock.c:
6092         (__lll_lock_elision): Decrement adapt_count while unlocking
6093         instead of before locking.
6094         * sysdeps/unix/sysv/linux/s390/elision-trylock.c
6095         (__lll_trylock_elision): Likewise.
6096         * sysdeps/unix/sysv/linux/s390/elision-unlock.c:
6097         (__lll_unlock_elision): Likewise.
6098
6099 2016-12-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
6100
6101         * sysdeps/unix/sysv/linux/s390/htm.h(__libc_tbegin_retry): New macro.
6102         * sysdeps/unix/sysv/linux/s390/elision-lock.c (__lll_lock_elision):
6103         Use __libc_tbegin_retry macro.
6104
6105 2016-12-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
6106
6107         * sysdeps/unix/sysv/linux/s390/Makefile (elision-CFLAGS):
6108         Add -msoft-float.
6109         * sysdeps/unix/sysv/linux/s390/htm.h: New File.
6110         * sysdeps/unix/sysv/linux/s390/elision-lock.c:
6111         Use __libc_t* transaction macros instead of __builtin_t*.
6112         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
6113         * sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
6114
6115 2016-12-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
6116
6117         * sysdeps/unix/sysv/linux/s390/elision-lock.c
6118         (__lll_lock_elision): Use atomics to load / store adapt_count.
6119         * sysdeps/unix/sysv/linux/s390/elision-trylock.c
6120         (__lll_trylock_elision): Likewise.
6121
6122 2016-12-20  Florian Weimer  <fweimer@redhat.com>
6123
6124         Do not require memset elimination in explicit_bzero test.
6125         * string/tst-xbzero-opt.c (prepare_test_buffer): Force inlining.
6126         (enum test_expectation): Add NO_EXPECTATIONS.
6127         (subtests): NO_EXPECTATIONS for ordinary clear.
6128         (check_test_buffer): Handle NO_EXPECTATIONS.
6129         * string/Makefile (CFLAGS-tst-xbzero-opt.c): Compile with -O3.
6130
6131 2016-12-20  Joseph Myers  <joseph@codesourcery.com>
6132
6133         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
6134         (fmaxmag): New declaration.
6135         (fminmag): Likewise.
6136         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (fmaxmag): New
6137         macro.
6138         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fminmag): Likewise.
6139         * math/Versions (fmaxmag): New libm symbol at version GLIBC_2.25.
6140         (fmaxmagf): Likewise.
6141         (fmaxmagl): Likewise.
6142         (fminmag): Likewise.
6143         (fminmagf): Likewise.
6144         (fminmagl): Likewise.
6145         * math/Makefile (gen-libm-calls): Add s_fmaxmagF and s_fminmagF.
6146         * math/s_fmaxmag_template.c: New file.
6147         * math/s_fminmag_template.c: Likewise.
6148         * math/libm-test.inc (fmaxmag_test_data): New array.
6149         (fmaxmag_test): New function.
6150         (fminmag_test_data): New array.
6151         (fminmag_test): New function.
6152         (main): Call fmaxmag_test and fminmag_test.
6153         * math/test-tgmath.c (NCALLS): Increase to 132.
6154         (F(compile_test)): Call fmaxmag and fminmag.
6155         (F(fminmag)): New function.
6156         (F(fmaxmag)): Likewise.
6157         * manual/arith.texi (Misc FP Arithmetic): Document fminmag,
6158         fminmagf, fminmagl, fmaxmag, fmaxmagf and fmaxmagl.
6159         * manual/libm-err-tab.pl (@all_functions): Add fmaxmag and
6160         fminmag.
6161         * sysdeps/ieee754/ldbl-opt/nldbl-fmaxmag.c: New file.
6162         * sysdeps/ieee754/ldbl-opt/nldbl-fminmag.c: Likewise.
6163         * sysdeps/ieee754/ldbl-opt/s_fmaxmagl.c: Likewise.
6164         * sysdeps/ieee754/ldbl-opt/s_fminmagl.c: Likewise.
6165         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmaxmag
6166         and fminmag.
6167         (CFLAGS-nldbl-fmaxmag.c): New variable.
6168         (CFLAGS-nldbl-fminmag.c): Likewise.
6169         * sysdeps/nacl/libm.abilist: Update.
6170         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
6171         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
6172         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
6173         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
6174         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
6175         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
6176         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
6177         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
6178         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
6179         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
6180         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
6181         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
6182         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
6183         Likewise.
6184         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
6185         Likewise.
6186         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
6187         Likewise.
6188         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
6189         Likewise.
6190         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
6191         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
6192         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
6193         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
6194         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
6195         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
6196         Likewise.
6197         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6198         Likewise.
6199         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6200         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
6201         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
6202
6203 2016-12-19  Torvald Riegel  <triegel@redhat.com>
6204
6205         [BZ #20973]
6206         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Fix lost
6207         wake-up in robust mutexes.
6208         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
6209
6210 2016-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6211
6212         * benchtests/Makefile (bench-math): Add fminf and fmaxf.
6213         (CFLAGS-bench-fmaxf.c): New rule.
6214         (CFLAGS-bench-fminf.c): Likewise.
6215         * benchtests/fmaxf-inputs: New file.
6216         * benchtests/fminf-inputs: Likewise.
6217
6218         * benchtests/Makefile (bench-math): Add fmin and fmax.
6219         (CFLAGS-bench-fmax.c): New rule.
6220         (CFLAGS-bench-fmin.c): Likewise.
6221         * benchtests/fmax-inputs: New file.
6222         * benchtests/fmin-inputs: Likewise.
6223
6224         * benchtests/bench-string.h (TEST_FUNCTION): Use name without
6225         parenthesis.
6226         (CMDLINE_PROCESS): Define using function instead of macro.
6227         * benchtests/bench-memccpy.c: Include <support/test-driver.c> instead
6228         of test-skeleton.
6229         * benchtests/bench-memchr.c: Likewise.
6230         * benchtests/bench-memcmp.c: Likewise.
6231         * benchtests/bench-memcpy-large.c: Likewise.
6232         * benchtests/bench-memcpy.c: Likewise.
6233         * benchtests/bench-memmem.c: Likewise.
6234         * benchtests/bench-memmove-large.c: Likewise.
6235         * benchtests/bench-memmove.c: Likewise.
6236         * benchtests/bench-memset-large.c: Likewise.
6237         * benchtests/bench-memset.c: Likewise.
6238         * benchtests/bench-rawmemchr.c: Likewise.
6239         * benchtests/bench-strcasecmp.c: Likewise.
6240         * benchtests/bench-strcasestr.c: Likewise.
6241         * benchtests/bench-strcat.c: Likewise.
6242         * benchtests/bench-strchr.c: Likewise.
6243         * benchtests/bench-strcmp.c: Likewise.
6244         * benchtests/bench-strcpy.c: Likewise.
6245         * benchtests/bench-strcpy_chk.c: Likewise.
6246         * benchtests/bench-strlen.c: Likewise.
6247         * benchtests/bench-strncasecmp.c: Likewise.
6248         * benchtests/bench-strncmp.c: Likewise.
6249         * benchtests/bench-strncpy.c: Likewise.
6250         * benchtests/bench-strnlen.c: Likewise.
6251         * benchtests/bench-strpbrk.c: Likewise.
6252         * benchtests/bench-strrchr.c: Likewise.
6253         * benchtests/bench-strsep.c: Likewise.
6254         * benchtests/bench-strspn.c: Likewise.
6255         * benchtests/bench-strstr.c: Likewise.
6256         * benchtests/bench-strtok.c: Likewise.
6257
6258 2016-12-19  Andrew Senkevich  <andrew.senkevich@intel.com>
6259
6260         * sysdeps/x86/cpu-features.c (get_common_indeces): Add
6261         stepping identification.
6262         (init_cpu_features): Add handle of Haswell.
6263
6264 2016-11-25  Jim Meyering  <meyering@fb.com>
6265
6266         [BZ #20386]
6267         Let gcc detect assert(a = 1) errors.
6268         * assert/assert.h (assert): Rewrite, retaining the old definintion
6269         when required, but otherwise putting the expression as-is in an "if"
6270         expression (hence, with no added parentheses) within a statement
6271         expression.
6272
6273 2016-12-17  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6274
6275         * benchtests/Makefile (binaries-benchset): Depend on libsupport
6276         DSO.
6277
6278 2016-12-17  Martin Galvan  <martingalvan@sourceware.org>
6279
6280         * Rules (python-flags, python-invoke): New.
6281         ($(test-printers-out)): Use $(python-flags).
6282
6283 2016-12-16  Joseph Myers  <joseph@codesourcery.com>
6284
6285         * manual/arith.texi (Math Error Reporting): Document that sNaN
6286         arguments are not considered domain errors.
6287
6288 2016-12-16  Zack Weinberg <zackw@panix.com>
6289             Florian Weimer <fweimer@redhat.com>
6290             Nick Mathewson <nickm@torproject.org>
6291
6292         * string/explicit_bzero.c: New routine.
6293         * string/test-explicit_bzero.c, string/tst-xbzero-opt.c: New tests.
6294         * string/Makefile (routines, strop-tests, tests): Add them.
6295         * string/test-memset.c: Add ifdeffage for testing explicit_bzero.
6296         * string/string.h [__USE_MISC]: Declare explicit_bzero.
6297
6298         * debug/explicit_bzero_chk.c: New routine.
6299         * debug/Makefile (routines): Add it.
6300         * debug/tst-chk1.c: Test fortification of explicit_bzero.
6301         * string/bits/string3.h: Fortify explicit_bzero.
6302
6303         * manual/string.texi: Document explicit_bzero.
6304         * NEWS: Mention addition of explicit_bzero.
6305
6306         * crypt/crypt-entry.c (__crypt_r): Clear key-dependent intermediate
6307         data before returning, using explicit_bzero.
6308         * crypt/md5-crypt.c (__md5_crypt_r): Likewise.
6309         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
6310         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
6311
6312         * include/string.h: Redirect internal uses of explicit_bzero
6313         to __explicit_bzero_chk[_internal].
6314         * string/Versions [GLIBC_2.25]: Add explicit_bzero.
6315         * debug/Versions [GLIBC_2.25]: Add __explicit_bzero_chk.
6316         * sysdeps/arm/nacl/libc.abilist
6317         * sysdeps/unix/sysv/linux/aarch64/libc.abilist
6318         * sysdeps/unix/sysv/linux/alpha/libc.abilist
6319         * sysdeps/unix/sysv/linux/arm/libc.abilist
6320         * sysdeps/unix/sysv/linux/hppa/libc.abilist
6321         * sysdeps/unix/sysv/linux/i386/libc.abilist
6322         * sysdeps/unix/sysv/linux/ia64/libc.abilist
6323         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
6324         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist
6325         * sysdeps/unix/sysv/linux/microblaze/libc.abilist
6326         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
6327         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
6328         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
6329         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
6330         * sysdeps/unix/sysv/linux/nios2/libc.abilist
6331         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
6332         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
6333         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
6334         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
6335         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist
6336         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
6337         * sysdeps/unix/sysv/linux/sh/libc.abilist
6338         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
6339         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
6340         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
6341         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
6342         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist
6343         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist
6344         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist:
6345         Add entries for explicit_bzero and __explicit_bzero_chk.
6346
6347 2016-12-16  Joseph Myers  <joseph@codesourcery.com>
6348
6349         * math/fenv.h
6350         [__GLIBC_USE (IEC_60559_BFP_EXT) && FE_INVALID && __SUPPORT_SNAN__]
6351         (FE_SNANS_ALWAYS_SIGNAL): New macro.
6352         * math/test-fe-snans-always-signal.c: New file.
6353         * math/Makefile (tests): Add test-fe-snans-always-signal.
6354         (CFLAGS-test-fe-snans-always-signal.c): New variable.
6355         * manual/arith.texi (Infinity and NaN): Document
6356         FE_SNANS_ALWAYS_SIGNAL.
6357
6358 2016-12-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6359
6360         * string/test-memchr.c (do_test): Typo on ‘byte’ and missing closing
6361         bracket.
6362
6363 2016-12-16  Joseph Myers  <joseph@codesourcery.com>
6364
6365         * scripts/build-many-glibcs.py (Context.exec_self): Flush stdout
6366         before calling execv.
6367
6368 2016-12-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6369
6370         [BZ #20971]
6371         * sysdeps/powerpc/powerpc64/power7/memchr.S (__memchr): Avoid
6372         overflow in pointer addition.
6373         * string/test-memchr.c (do_test): Add an argument to pass as
6374         the size on memchr.
6375         (test_main): Add check for SIZE_MAX.
6376
6377 2016-12-16  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
6378
6379         * math/Makefile (gen-libm-calls): Remove w_scalblnF.
6380         (libm-calls): Add w_scalblnF.
6381         * math/w_scalbln.c: Remove.
6382         * math/w_scalblnf.c: Likewise.
6383         * math/w_scalblnl.c: Likewise.
6384         * math/w_scalbln_template.c: New file with type-generic
6385         implementation based on math/w_scalbln.c.
6386         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: Remove.
6387         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Use new template.
6388
6389 2016-12-15  Joseph Myers  <joseph@codesourcery.com>
6390
6391         [BZ #20947]
6392         * sysdeps/i386/fpu/s_fmaxl.S (__fmaxl): Add the arguments when
6393         either is a signaling NaN.
6394         * sysdeps/i386/fpu/s_fminl.S (__fminl): Likewise.  Make code
6395         follow fmaxl more closely.
6396         * sysdeps/i386/i686/fpu/s_fmaxl.S (__fmaxl): Add the arguments
6397         when either is a signaling NaN.
6398         * sysdeps/i386/i686/fpu/s_fminl.S (__fminl): Likewise.
6399         * sysdeps/x86_64/fpu/s_fmax.S (__fmax): Likewise.
6400         * sysdeps/x86_64/fpu/s_fmaxf.S (__fmaxf): Likewise.
6401         * sysdeps/x86_64/fpu/s_fmaxl.S (__fmaxl): Likewise.
6402         * sysdeps/x86_64/fpu/s_fmin.S (__fmin): Likewise.
6403         * sysdeps/x86_64/fpu/s_fminf.S (__fminf): Likewise.
6404         * sysdeps/x86_64/fpu/s_fminl.S (__fminl): Likewise.
6405         * math/libm-test.inc (fmax_test_data): Add tests of sNaN inputs.
6406         (fmin_test_data): Likewise.
6407
6408 2016-12-15  Andreas Schwab  <schwab@suse.de>
6409
6410         * support/support_test_main.c (support_test_main): Don't shadow
6411         file-local variable test_pid.
6412
6413 2016-12-15  Joseph Myers  <joseph@codesourcery.com>
6414
6415         [BZ #20947]
6416         * sysdeps/powerpc/fpu/s_fmax.S (__fmax): Add the arguments when
6417         either is a signaling NaN.
6418         * sysdeps/powerpc/fpu/s_fmin.S (__fmin): Likewise.
6419
6420 2016-12-14  Joseph Myers  <joseph@codesourcery.com>
6421
6422         [BZ #20947]
6423         * math/s_fmax_template.c (M_DECL_FUNC (__fmax)): Add the arguments
6424         when either is a signaling NaN.
6425         * math/s_fmin_template.c (M_DECL_FUNC (__fmin)): Likewise.
6426
6427         * bits/long-double.h: New file.
6428         * sysdeps/ieee754/ldbl-128/bits/long-double.h: Likewise.
6429         * sysdeps/ieee754/ldbl-96/bits/long-double.h: Likewise.
6430         * sysdeps/ieee754/ldbl-opt/bits/long-double.h: Likewise.
6431         * sysdeps/mips/bits/long-double.h: Likewise.
6432         * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Likewise.
6433         * math/Makefile (headers): Add bits/long-double.h.
6434         * misc/sys/cdefs.h: Include <bits/long-double.h>.
6435         * stdlib/strtold.c: Include <bits/long-double.h> instead of
6436         <bits/wordsize.h>.
6437         * bits/mathdef.h [!_COMPLEX_H]: Do not allow inclusion.
6438         [!__NO_LONG_DOUBLE_MATH]: Remove conditional code.
6439         * math/math.h: Do not include <bits/mathdef.h>.
6440         * sysdeps/aarch64/bits/mathdef.h: Remove file.
6441         * sysdeps/alpha/bits/mathdef.h [!_COMPLEX_H]: Do not allow
6442         inclusion.
6443         * sysdeps/ia64/bits/mathdef.h: Remove file.
6444         * sysdeps/m68k/m680x0/bits/mathdef.h: Likewise.
6445         * sysdeps/mips/bits/mathdef.h: Likewise.
6446         * sysdeps/powerpc/bits/mathdef.h: Likewise.
6447         * sysdeps/s390/bits/mathdef.h: Likewise.
6448         * sysdeps/sparc/bits/mathdef.h: Likewise.
6449         * sysdeps/x86/bits/mathdef.h: Likewise.
6450         * sysdeps/s390/s390-32/bits/wordsize.h
6451         [!__NO_LONG_DOUBLE_MATH && !__LONG_DOUBLE_MATH_OPTIONAL]: Remove
6452         conditional code.
6453         * sysdeps/s390/s390-64/bits/wordsize.h
6454         [!__NO_LONG_DOUBLE_MATH && !__LONG_DOUBLE_MATH_OPTIONAL]:
6455         Likewise.
6456         * sysdeps/unix/sysv/linux/alpha/bits/wordsize.h
6457         [!__NO_LONG_DOUBLE_MATH && !__LONG_DOUBLE_MATH_OPTIONAL]:
6458         Likewise.
6459         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h
6460         [!__NO_LONG_DOUBLE_MATH && !__LONG_DOUBLE_MATH_OPTIONAL]:
6461         Likewise.
6462         * sysdeps/unix/sysv/linux/sparc/bits/wordsize.h
6463         [!__NO_LONG_DOUBLE_MATH && !__LONG_DOUBLE_MATH_OPTIONAL]:
6464         Likewise.
6465
6466         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]: Include
6467         <linux/falloc.h>.
6468         (FALLOC_FL_KEEP_SIZE): Remove.
6469         (FALLOC_FL_PUNCH_HOLE): Likewise.
6470         (FALLOC_FL_COLLAPSE_RANGE): Likewise.
6471         (FALLOC_FL_ZERO_RANGE): Likewise.
6472
6473 2016-12-14  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
6474
6475         * stdlib/tst-strfrom.h (ENTRY): Replace use of CSUF with LSUF.
6476
6477 2016-12-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6478
6479         * sysdeps/unix/sysv/linux/renameat.c: New file.
6480         * sysdeps/unix/sysv/linux/syscalls.list: Remove renameat.
6481
6482         * sysdeps/unix/sysv/linux/rename.c: New file.
6483         * sysdeps/unix/sysv/linux/generic/rename.c: Remove file.
6484
6485 2015-12-14  Wilco Dijkstra  <wdijkstr@arm.com>
6486
6487         * benchtests/bench-strtok.c (oldstrtok): Add old implementation.
6488         * string/strtok.c (strtok): Change to tailcall __strtok_r.
6489         * string/strtok_r.c (__strtok_r): Optimize for performance.
6490         * string/string-inlines.c (__old_strtok_r_1c): New function.
6491         * string/bits/string2.h (__strtok_r): Move to string-inlines.c.
6492
6493 2016-12-14  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
6494
6495         * math/Makefile (gen-libm-calls): Add w_log1pF.
6496         (libm-calls): Remove w_log1pF.
6497         * math/w_log1p.c: Remove.
6498         * math/w_log1pf.c: Likewise.
6499         * math/w_log1pl.c: Likewise.
6500         * math/w_log1p_template.c: New file with type-generic
6501         implementation based on math/w_log1p.c.
6502         * sysdeps/ieee754/ldbl-128ibm/w_log1pl.c: Remove.
6503         * sysdeps/ieee754/ldbl-64-128/w_log1pl.c: Likewise.
6504
6505 2015-12-14  Wilco Dijkstra  <wdijkstr@arm.com>
6506
6507         * string/rawmemchr.c (RAWMEMCHR): Use faster memchr/strlen.
6508
6509 2016-12-14  Joseph Myers  <joseph@codesourcery.com>
6510
6511         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
6512         kernel version to 4.9.
6513
6514 2016-12-12  Andrew Senkevich  <andrew.senkevich@intel.com>
6515
6516         * math/Makefile ($(inst_libdir)/libm-$(version).a): New target.
6517         ($(inst_libdir)/libm.a): Fix rule to create the target only.
6518
6519 2016-12-13  Andreas Schwab  <schwab@suse.de>
6520
6521         * sysdeps/powerpc/dl-procinfo.c: Don't define
6522         _dl_powerpc_platforms.
6523         * sysdeps/powerpc/dl-procinfo.h (_dl_string_platform): Use string
6524         constants instead of referencing _dl_powerpc_platforms.
6525         (_dl_platform_string): Remove.
6526
6527 2016-12-13  Florian Weimer  <fweimer@redhat.com>
6528
6529         * nptl/tst-cancel7.c (cmdline_process): Add missing case label.
6530
6531 2016-12-13  Florian Weimer  <fweimer@redhat.com>
6532
6533         * Rules (binaries-shared-tests, binaries-pie-tests)
6534         (binaries-static-tests): Link with $(link-extra-libs-tests).
6535         * Makeconfig (+link-pie-tests, +link-static-tests, +link-tests):
6536         Remove $(link-extra-libs-tests).
6537
6538 2016-12-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
6539
6540         * sysdeps/powerpc/powerpc64/multiarch/Makefile
6541         (sysdep_routines): Add strncmp_power9.
6542         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
6543         (strncmp): Add __strncmp_power9 to list of strncmp functions.
6544         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: New file.
6545         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
6546         (strncmp): Add __strncmp_power9 to ifunc list.
6547         * sysdeps/powerpc/powerpc64/power9/strncmp.S: New file.
6548
6549 2016-12-12  Florian Weimer  <fweimer@redhat.com>
6550
6551         [BZ #17252]
6552         Add getentropy, getrandom.
6553         * stdlib/sys/random.h: New file.
6554         (headers): Add it.
6555         * stdlib/Makefile (routines): Add getentropy, getrandom.
6556         (tests): Add tst-getrandom.
6557         * stdlib/Versions (GLIBC_2.25): Add getrandom, getentropy.
6558         * stdlib/getentropy.c: New file.
6559         * stdlib/getrandom.c: Likewise.
6560         * stdlib/tst-getrandom.c: Likewise.
6561         * sysdeps/unix/sysv/linux/getentropy.c: Likewise.
6562         * sysdeps/unix/sysv/linux/getrandom.c: Likewise.
6563         * manual/crypt.texi (Unpredictable Bytes): New section.
6564         * manual/math.texi (Pseudo-Random Numbers): Add cross-reference.
6565         * sysdeps/arm/nacl/libc.abilist: Add getrandom, getentropy.
6566         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
6567         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
6568         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
6569         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
6570         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
6571         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
6572         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
6573         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
6574         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
6575         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
6576         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
6577         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
6578         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
6579         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
6580         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
6581         Likewise.
6582         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
6583         Likewise.
6584         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
6585         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
6586         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
6587         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
6588         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
6589         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
6590         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
6591         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
6592         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
6593         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
6594         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
6595         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
6596
6597 2016-12-10  Florian Weimer  <fweimer@redhat.com>
6598
6599         [BZ #20956]
6600         * debug/tst-backtrace.h (NO_INLINE): Add noclone, weak attributes
6601         as additional compiler barriers.
6602         * debug/tst-backtrace2.c: Switch to <support/test-driver.c>.
6603         (fn2, do_test): Declare with external linkage.
6604         * debug/tst-backtrace3.c: Switch to <support/test-driver.c>.
6605         (do_test): Declare with external linkage.
6606         * debug/tst-backtrace4.c: Switch to <support/test-driver.c>.
6607         (do_test): Declare with external linkage.
6608         * debug/tst-backtrace5.c: Switch to <support/test-driver.c>.
6609         (do_test): Declare with external linkage.
6610
6611 2016-12-10  Andreas Schwab  <schwab@linux-m68k.org>
6612
6613         * support/support_test_main.c (support_test_main): Use correct
6614         timeout.
6615
6616 2016-12-09  Carlos O'Donell  <carlos@redhat.com>
6617             Florian Weimer  <fweimer@redhat.com>
6618
6619         [BZ #16421]
6620         * inet/netinet/in.h (struct in6_addr): Always define __u6_addr16
6621         and __u6_addr32 members.
6622         (IN6_IS_ADDR_UNSPECIFIED, IN6_IS_ADDR_LOOPBACK)
6623         (IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL)
6624         (IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, IN6_ARE_ADDR_EQUAL):
6625         Use __u6_addr32.
6626         * inet/tst-checks.c: Use <support/test-driver.c>
6627         * inet/tst-checks-posix.c: New file.
6628         * inet/Makefile (tests): Add it.
6629         (CFLAGS-tst-checks-posix.c): Compile in C99 mode.
6630
6631 2016-12-09  Florian Weimer  <fweimer@redhat.com>
6632
6633         New subdirectory support for build and test infrastructure.
6634         * extra-libs.mk (extra-libs-noinstall): Add variable.  Use it when
6635         setting install-lib.
6636         * Makeconfig (link-extra-libs-tests): Define.
6637         (+link-pie-tests, +link-static-tests, +link-tests): Use
6638         link-extra-libs-tests.
6639         (rpath-dirs, all-subdirs): Add support.
6640         (built-modules): Add libsupport.
6641         (libsupport): Define.
6642         * support: New directory.
6643         * support/Makefile: New file.
6644         * support/check.c: Likewise.
6645         * support/check.h: Likewise.
6646         * support/delayed_exit.c: Likewise.
6647         * support/ignore_stderr.c: Likewise.
6648         * support/oom_error.c: Likewise.
6649         * support/set_fortify_handler.c: Likewise.
6650         * support/support.h: Likewise.
6651         * support/temp_file-internal.h: Likewise.
6652         * support/temp_file.c: Likewise.
6653         * support/test-driver.c: Likewise.
6654         * support/test-driver.h: Likewise.
6655         * support/test_main.c: Likewise.
6656         * support/write_message.c: Likewise.
6657         * support/xasprintf.c: Likewise.
6658         * support/xcalloc.c: Likewise.
6659         * support/xmalloc.c: Likewise.
6660         * support/xpthread_barrier_destroy.c: Likewise.
6661         * support/xpthread_barrier_init.c: Likewise.
6662         * support/xpthread_barrier_wait.c: Likewise.
6663         * support/xpthread_cancel.c: Likewise.
6664         * support/xpthread_check_return.c: Likewise.
6665         * support/xpthread_cond_wait.c: Likewise.
6666         * support/xpthread_create.c: Likewise.
6667         * support/xpthread_detach.c: Likewise.
6668         * support/xpthread_join.c: Likewise.
6669         * support/xpthread_mutex_lock.c: Likewise.
6670         * support/xpthread_mutex_unlock.c: Likewise.
6671         * support/xpthread_sigmask.c: Likewise.
6672         * support/xpthread_spin_lock.c: Likewise.
6673         * support/xpthread_spin_unlock.c: Likewise.
6674         * support/xrealloc.c: Likewise.
6675         * support/xsignal.h: Likewise.
6676         * support/xthread.h: Likewise.
6677         * support_tempfile.h: Likewise.
6678         * test-skeleton.c: Include <support/support.h>, <support/xsignal.h>.
6679         (TEST_DATA_LIMIT): Remove unused macro.
6680         (_FAIL, FAIL_RET, FAIL_EXIT, FAIL_EXIT1): Remove.  Now in
6681         <support/check.h>.
6682         (oom_error, xmalloc, xcalloc, xrealloc, xasprintf, write_message)
6683         (ignore_stderr, set_fortify_handler): Remove.  Now in
6684         <support/support.h>.
6685         (xpthread_sigmask): Remove.  Now in <support/xsignal.h>.
6686         (xpthread_mutex_lock, xpthread_spin_lock, xpthread_cond_wait)
6687         (xpthread_barrier_wait, xpthread_create, xpthread_detach)
6688         (xpthread_join): Remove.  Now in <support/xthread.h>.
6689         (TEST_FUNCTION, PREPARE, CLEANUP_HANDLER, CMDLINE_PROCESS):
6690         Introduce legacy wrappers.
6691         * dlfcn/Makefile (bug-atexit3-lib.so): Link with $(libsupport).
6692         * dlfcn/bug-atexit3-lib.cc: Include <support/support.h>.
6693         (write_message): Remove.
6694         * dirent/opendir-tst1.c: Use <support/test-driver.h> instead of
6695         test-skeleton.c.
6696         * io/test-open-tmpfile: Likewise.
6697         * io/tst-posix_fallocate-common.c: Likewise.
6698         * libio/tst-fseek.c: Likewise.
6699         * malloc/tst-malloc-backtrace.c: Likewise.
6700         * malloc/tst-malloc-fork-deadlock.c: Likewise.
6701         * malloc/tst-malloc-thread-exit.c: Likewise.
6702         * nptl/tst-cancel7.c: Likewise.
6703         * nptl/tst-cleanup0.c: Likewise.
6704         * posix/tst-posix_fadvise-common.c: Likewise.
6705         * rt/tst-shm.c: Likewise.
6706         * time/bug-getdate1.c: Likewise.
6707         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Likewise.
6708         * sysdeps/unix/sysv/linux/tst-sync_file_range.c: Likewise.
6709         * elf/Makefile (tst-piemod1.so): Link against libsupport.
6710
6711 2016-12-08  Joseph Myers  <joseph@codesourcery.com>
6712
6713         * Rules [$(run-built-tests) != no] (tests-expected): Add
6714         $(tests-printers).
6715         (tests): Do not pass $(tests-printers) to merge-test-results.sh.
6716
6717 2016-12-08  Andrew Senkevich  <andrew.senkevich@intel.com>
6718
6719         [BZ #20539]
6720         * math/Makefile (install-lib-ldscripts): Add libm.a.
6721         (install_subdir): Remove.
6722         (install-others): Add.
6723         ($(inst_libdir)/libm.a): Add rule for installation as
6724         linker script.
6725         * Makerules (install-lib.a): Filter out install-lib-ldscripts.
6726
6727 2016-12-08  Martin Galvan  <martin.galvan@tallertechnologies.com>
6728
6729         * INSTALL: Regenerated.
6730         * Makeconfig: Add comments and whitespace to make the control flow
6731         clearer.
6732         (+link-printers-tests, +link-pie-printers-tests,
6733         CFLAGS-printers-tests, installed-rtld-LDFLAGS,
6734         built-rtld-LDFLAGS, link-libc-rpath,
6735         link-libc-tests-after-rpath-link,
6736         link-libc-printers-tests): New.
6737         (rtld-LDFLAGS, rtld-tests-LDFLAGS, link-libc-tests-rpath-link,
6738         link-libc-tests): Use the new variables as required.
6739         * Makerules ($(py-const)): New rule.
6740         generated: Add $(py-const).
6741         * README.pretty-printers: New file.
6742         * Rules (tests-printers-programs, tests-printers-out, py-env): New.
6743         (others): Depend on $(py-const).
6744         (tests): Depend on $(tests-printers-programs) or
6745         $(tests-printers-out),
6746         as required.  Pass $(tests-printers) to merge-test-results.sh.
6747         * manual/install.texi: Add requirements for testing the pretty
6748         printers.
6749         * nptl/Makefile (gen-py-const-headers, pretty-printers,
6750         tests-printers, CFLAGS-test-mutexattr-printers.c
6751         CFLAGS-test-mutex-printers.c, CFLAGS-test-condattr-printers.c,
6752         CFLAGS-test-cond-printers.c, CFLAGS-test-rwlockattr-printers.c
6753         CFLAGS-test-rwlock-printers.c, tests-printers-libs): Define.
6754         * nptl/nptl-printers.py: New file.
6755         * nptl/nptl_lock_constants.pysym: Likewise.
6756         * nptl/test-cond-printers.c: Likewise.
6757         * nptl/test-cond-printers.py: Likewise.
6758         * nptl/test-condattr-printers.c: Likewise.
6759         * nptl/test-condattr-printers.py: Likewise.
6760         * nptl/test-mutex-printers.c: Likewise.
6761         * nptl/test-mutex-printers.py: Likewise.
6762         * nptl/test-mutexattr-printers.c: Likewise.
6763         * nptl/test-mutexattr-printers.py: Likewise.
6764         * nptl/test-rwlock-printers.c: Likewise.
6765         * nptl/test-rwlock-printers.py: Likewise.
6766         * nptl/test-rwlockattr-printers.c: Likewise.
6767         * nptl/test-rwlockattr-printers.py: Likewise.
6768         * scripts/gen-py-const.awk: Likewise.
6769         * scripts/test_printers_common.py: Likewise.
6770         * scripts/test_printers_exceptions.py: Likewise.
6771
6772 2016-12-07  Joseph Myers  <joseph@codesourcery.com>
6773
6774         * scripts/build-many-glibcs.py (Context.__init__): Take strip
6775         argument.
6776         (Glibc.build_glibc): Strip installed shared libraries if
6777         requested.
6778         (get_parser): Add --strip option.
6779         (main): Update Context call.
6780
6781 2016-12-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6782             Dominik Vogt  <vogt@linux.vnet.ibm.com>
6783
6784         [BZ #20847]
6785         * posix/execvpe.c (maybe_script_execute): Remove write past allocated
6786         array bounds for else branch.
6787         (__execvpe): Style fixes.
6788         * posix/tst-vfork3.c (run_script): New function.
6789         (create_script): Likewise.
6790         (do_test): Use run_script internal function.
6791         (do_prepare): Use create_script internal function.
6792
6793 2016-12-07  Andreas Schwab  <schwab@suse.de>
6794
6795         * sysdeps/unix/sysv/linux/x86/elision-conf.h
6796         (__elision_available): Don't declare.
6797         * sysdeps/unix/sysv/linux/x86/elision-conf.c
6798         (__elision_available): Don't define.
6799         (elision_init): Don't set __elision_available.
6800
6801 2016-12-07  Joseph Myers  <joseph@codesourcery.com>
6802
6803         [BZ #20940]
6804         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Do not
6805         return Inf for arguments Inf and sNaN.
6806         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
6807         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
6808         Likewise.
6809         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
6810         Likewise.
6811         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
6812         * sysdeps/powerpc/fpu/e_hypot.c (TEST_INF_NAN): Do not return Inf
6813         for arguments Inf and sNaN.  When returning a NaN, compute it by
6814         arithmetic on the arguments.
6815         * sysdeps/powerpc/fpu/e_hypotf.c (TEST_INF_NAN): Likewise.
6816         * math/libm-test.inc (hypot_test_data): Add tests of sNaN
6817         arguments.
6818
6819 2016-12-06  Joseph Myers  <joseph@codesourcery.com>
6820
6821         [BZ #20916]
6822         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Do not return 1 for
6823         arguments (sNaN, 0) or (1, sNaN).  Do arithmetic on NaN arguments
6824         to compute result.
6825         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
6826         * math/libm-test.inc (pow_test_data): Add tests of sNaN arguments.
6827
6828 2016-12-05  Torvald Riegel  <triegel@redhat.com>
6829
6830         * include/atomic.h (__atomic_check_size_ls): New.
6831         (atomic_load_relaxed, atomic_load_acquire, atomic_store_relaxed,
6832         atomic_store_release): Use it.
6833         * sysdeps/x86/elide.h (ACCESS_ONCE): Remove.
6834         (elision_adapt, ELIDE_LOCK): Use atomics.
6835         * sysdeps/unix/sysv/linux/x86/elision-lock.c (__lll_lock_elision): Use
6836         atomics and improve code comments.
6837         * sysdeps/unix/sysv/linux/x86/elision-trylock.c
6838         (__lll_trylock_elision): Likewise.
6839
6840 2016-12-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6841
6842         * hurd/hurd.h: Cast errno constants to error_t to fix usage in C++
6843         programs.
6844
6845 2016-12-02  Joseph Myers  <joseph@codesourcery.com>
6846
6847         [BZ #20916]
6848         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Do not return 1
6849         for arguments (sNaN, 0) or (1, sNaN).  Do arithmetic on NaN
6850         arguments to compute result.
6851         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Do not return
6852         1 for arguments (sNaN, 0) or (1, sNaN).
6853         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
6854         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
6855
6856         [BZ #20919]
6857         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Do not return
6858         NaN first argument when raised to power 0.
6859         * math/w_pow.c (__pow): Do not check for NaN or zero results from
6860         raising to power zero.
6861         * math/w_powf.c (__powf): Likewise.
6862         * math/w_powl.c (__powl): Likewise.
6863         * sysdeps/ieee754/k_standard.c (__kernel_standard): Do not handle
6864         pow (0, 0) or pow (NaN, 0).
6865
6866 2016-12-02  Carlos O'Donell  <carlos@redhat.com>
6867
6868         [BZ #20918]
6869         * configure.ac: Test for static NSS cryptographic libraries and set
6870         libc_cv_static_nss_crypt.
6871         * configure: Regenerate.
6872         * config.make.in (static-nss-crypt): Define.
6873         * elf/Makefile (CFLAGS-tst-linkall-static.c): Define.
6874         [ifeq (yesno,$(nss-crypt)$(static-nss-crypt))]
6875         (CFLAGS-tst-linkall-static.c): Define.
6876         ($(objpfx)tst-linkall-static): Remove libcrypt.a.
6877         [ifeq (yesyes,$(nss-crypt)$(static-nss-crypt))]
6878         ($(objpfx)tst-linkall-static): Define.
6879         [ifeq (no,$(nss-crypt))] ($(objpfx)tst-linkall-static): Define.
6880         * elf/tst-linkall-static.c [USE_CRYPT](references): Reference crypt().
6881
6882 2016-12-02  Florian Weimer  <fweimer@redhat.com>
6883
6884         * elf/Makefile [build-shared] (tests): Add tst-latepthread.
6885         (one-hundred, tst-tls-many-dynamic-modules): Define.
6886         (modules-names): Add $(tst-tls-many-dynamic-modules).
6887         (tst-tls-manydynamic%mod.os): Build with special preprocessor
6888         macros.
6889         (tst-tls-manydynamic): Link against libdl, libpthread.
6890         (tst-tls-manydynamic.out): The test needs the test modules at run
6891         time.
6892         * elf/tst-tls-manydynamic.c: New file.
6893         * elf/tst-tls-manydynamic.h: Likewise.
6894         * elf/tst-tls-manydynamicmod.c: Likewise.
6895
6896 2016-12-02  Florian Weimer  <fweimer@redhat.com>
6897
6898         * sysdeps/aarch64/tlsdesc.sym (TCBHEAD_DTV, DTV_COUNTER)
6899         (TLS_DTV_UNALLOCATED): Add.
6900         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use explicit
6901         offsets.
6902
6903 2016-12-02  Stefan Liebler  <stli@linux.vnet.ibm.com>
6904
6905         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
6906
6907 2016-12-02  Stefan Liebler  <stli@linux.vnet.ibm.com>
6908
6909         * elf/Makefile (CFLAGS-tst-latepthreadmod.c):
6910         Add -fno-optimize-sibling-calls.
6911
6912 2016-12-02  Joseph Myers  <joseph@codesourcery.com>
6913
6914         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (llogb):
6915         New declaration.
6916         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (llogb): New
6917         macro.
6918         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (__FP_LONG_MAX):
6919         New macro.
6920         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FP_LLOGB0): Likewise.
6921         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FP_LLOGBNAN): Likewise.
6922         * math/Versions (llogb): New libm symbol at version GLIBC_2.25.
6923         (llogbf): Likewise.
6924         (llogbl): Likewise.
6925         * math/Makefile (gen-libm-calls): Add w_llogbF.
6926         (tests): Add test-fp-llogb-constants.
6927         * math/w_llogb_template.c: New file.  Based on
6928         math/w_ilogb_template.c.
6929         * math/libm-test.inc (llogb_test_data): New array.
6930         (llogb_test): New function.
6931         (main): Call llogb_test.
6932         * math/test-fp-llogb-constants.c: New file.  Based on
6933         math/test-fp-ilogb-constants.c.
6934         * math/test-tgmath-ret.c (llogb): New CHECK_RET_CONST call.
6935         (do_test): Call check_return_llogb.
6936         * math/test-tgmath.c (NCALLS): Increase to 126.
6937         (F(compile_test)): Call llogb.
6938         (F(llogb)): New function.
6939         * manual/math.texi (Exponents and Logarithms): Document llogb,
6940         llogbf, llogbl, FP_LLOGB0 and FP_LLOGBNAN.
6941         * manual/libm-err-tab.pl (@all_functions): Add llogb.
6942         * sysdeps/ieee754/ldbl-opt/nldbl-llogb.c: New file.
6943         * sysdeps/ieee754/ldbl-opt/w_llogbl.c: Likewise.
6944         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add llogb.
6945         (CFLAGS-nldbl-llogb.c): New variable.
6946         * sysdeps/nacl/libm.abilist: Update.
6947         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
6948         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
6949         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
6950         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
6951         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
6952         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
6953         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
6954         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
6955         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
6956         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
6957         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
6958         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
6959         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
6960         Likewise.
6961         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
6962         Likewise.
6963         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
6964         Likewise.
6965         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
6966         Likewise.
6967         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
6968         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
6969         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
6970         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
6971         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
6972         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
6973         Likewise.
6974         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6975         Likewise.
6976         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6977         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
6978         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
6979
6980 2016-12-01  Joseph Myers  <joseph@codesourcery.com>
6981
6982         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Use
6983         _Float128 instead of long double.
6984         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c (FUNC): Likewise.
6985
6986         * sysdeps/alpha/setjmp.S (__sigsetjmp): Use hidden_def.
6987         * sysdeps/hppa/setjmp.S (__sigsetjmp): Likewise.
6988         * sysdeps/mips/mips64/setjmp.S (__sigsetjmp): Likewise.
6989         * sysdeps/mips/setjmp.S (__sigsetjmp): Likewise.
6990         * sysdeps/sh/sh3/setjmp.S (__sigsetjmp): Likewise.
6991         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Likewise.
6992         * sysdeps/sparc/sparc32/setjmp.S (__sigsetjmp): Likewise.
6993         * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
6994         * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S (__sigsetjmp):
6995         Likewise.
6996
6997 2016-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6998
6999         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c (weak_alias):
7000         Remove redirection to __strrchr_ppc.
7001
7002 2016-12-01  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
7003
7004         * sysdeps/powerpc/powerpc64/multiarch/Makefile
7005         (sysdep_routines): Add strcmp_power9.
7006         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7007         (strcmp): Add __strcmp_power9 to list of strcmp functions.
7008         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: New file.
7009         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
7010         (strcmp): Add __strcmp_power9 to ifunc list.
7011         * sysdeps/powerpc/powerpc64/power9/strcmp.S: New file.
7012
7013 2016-12-01  Joseph Myers  <joseph@codesourcery.com>
7014
7015         * bits/fp-logb.h: New file.
7016         * sysdeps/ia64/bits/fp-logb.h: Likewise.
7017         * sysdeps/m68k/m680x0/bits/fp-logb.h: Likewise.
7018         * sysdeps/x86/bits/fp-logb.h: Likewise.
7019         * math/Makefile (headers): Add bits/fp-logb.h.
7020         * math/math.h: Include <bits/fp-logb.h>.
7021         [__USE_ISOC99] (FP_ILOGB0): Define based on __FP_LOGB0_IS_MIN.
7022         [__USE_ISOC99] (FP_ILOGBNAN): Define based on __FP_LOGBNAN_IS_MIN.
7023         * bits/mathdef.h (FP_ILOGB0): Remove.
7024         (FP_ILOGBNAN): Likewise.
7025         * sysdeps/aarch64/bits/mathdef.h (FP_ILOGB0): Likewise.
7026         (FP_ILOGBNAN): Likewise.
7027         * sysdeps/alpha/bits/mathdef.h (FP_ILOGB0): Likewise.
7028         (FP_ILOGBNAN): Likewise.
7029         * sysdeps/ia64/bits/mathdef.h (FP_ILOGB0): Likewise.
7030         (FP_ILOGBNAN): Likewise.
7031         * sysdeps/m68k/m680x0/bits/mathdef.h (FP_ILOGB0): Likewise.
7032         (FP_ILOGBNAN): Likewise.
7033         * sysdeps/mips/bits/mathdef.h (FP_ILOGB0): Likewise.
7034         (FP_ILOGBNAN): Likewise.
7035         * sysdeps/powerpc/bits/mathdef.h (FP_ILOGB0): Likewise.
7036         (FP_ILOGBNAN): Likewise.
7037         * sysdeps/s390/bits/mathdef.h (FP_ILOGB0): Likewise.
7038         (FP_ILOGBNAN): Likewise.
7039         * sysdeps/sparc/bits/mathdef.h (FP_ILOGB0): Likewise.
7040         (FP_ILOGBNAN): Likewise.
7041         * sysdeps/x86/bits/mathdef.h (FP_ILOGB0): Likewise.
7042         (FP_ILOGBNAN): Likewise.
7043
7044         * scripts/build-many-glibcs.py: Add bot to usage message.  Import
7045         time module.
7046         (Context.__init__): Initialize self.logsdir_old.
7047         (Context.run_builds): Handle bot action.
7048         (Context.bot_cycle): Copy logs directory before running builds.
7049         (Context.bot_run_self): Take argument for whether to check
7050         subprocess result.  Flush stdout before running subprocess.
7051         (Context.bot): New function.
7052         (get_parser): Allow bot action.
7053
7054 2016-11-30  Joseph Myers  <joseph@codesourcery.com>
7055
7056         * scripts/build-many-glibcs.py: Add bot-cycle to usage message.
7057         Import email.mime.text, email.utils and smtplib modules.
7058         (Context.__init__): Initialize self.bot_config_json.
7059         (Context.run_builds): Handle bot-cycle action.
7060         (Context.load_bot_config_json): New function.
7061         (Context.part_build_old): Likewise.
7062         (Context.bot_cycle): Likewise.
7063         (Context.bot_build_mail): Likewise.
7064         (Context.bot_run_self): Likewise.
7065         (get_parser): Allow bot-cycle action.
7066
7067 2016-11-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7068
7069         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c (weak_alias):
7070         Remove redirection to __stpcpy_ppc.
7071
7072 2016-11-30  Florian Weimer  <fweimer@redhat.com>
7073
7074         Remove __libc_memalign from ld.so because it is unused.
7075         * elf/dl-minimal.c: Update comment on the malloc implementation.
7076         (malloc): Renamed from __libc_memalign, replacing the original
7077         malloc implementation.  Replace the align parameter with
7078         MALLOC_ALIGNMENT.
7079         * elf/Versions (ld): Update comment and remove __libc_memalign.
7080         * sysdeps/nacl/ld.abilist: Likewise.
7081         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
7082         * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
7083         * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
7084         * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
7085         * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
7086         * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
7087         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
7088         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
7089         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
7090         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
7091         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
7092         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
7093         * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
7094         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
7095         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
7096         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
7097         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
7098         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
7099         * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
7100         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
7101         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
7102         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: Likewise.
7103         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: Likewise.
7104         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
7105         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
7106         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
7107         * sysdeps/generic/localplt.data (ld.so): Likewise.
7108         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
7109         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
7110         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
7111         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
7112         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
7113         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
7114         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
7115         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so): Likewise.
7116         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
7117         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
7118         (ld.so): Likewise.
7119         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
7120         (ld.so): Likewise.
7121         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
7122         Likewise.
7123         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
7124         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
7125         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so): Likewise.
7126         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so): Likewise.
7127         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
7128
7129 2016-11-30  Florian Weimer  <fweimer@redhat.com>
7130
7131         [BZ #16628]
7132         Implement _dl_catch_error, _dl_signal_error in libc.so.
7133         * elf/dl-error-skeleton.c: Rename from elf/dl-error.c.
7134         (catch_hook): Define as thread-local or regular variable,
7135         depending on DL_ERROR_BOOTSTRAP.
7136         (CATCH_HOOK): Remove.
7137         (dl_signal_error, _dl_catch_error): Use
7138         catch_hook.  Add hidden definition for libc.
7139         (_dl_receive_error, _dl_signal_cerror): Use catch_hook.  Compile
7140         for DL_ERROR_BOOTSTRAP only.
7141         * elf/dl-error.c: New file.
7142         * elf/dl-error-minimal.c: Likewise.
7143         * elf/tst-latepthread.c: Likewise.
7144         * elf/tst-latepthreadmod.c: Likewise.
7145         * elf/Makefile (routines): Add dl-error.
7146         (dl-routines): Remove dl-error.
7147         (rtld-routines): Add dl-error-minimal.
7148         [build-shared] (tests): Add tst-latepthread.
7149         (module-names): Add tst-latepthreadmod.
7150         (LDFLAGS-tst-latepthreadmod.so): Enable lazy binding to undefined
7151         symbol.
7152         (tst-latepthreadmod.so): Link against libpthread.
7153         (tst-latepthread): Link against libdbl.
7154         * elf/Versions [libc] (GLIBC_PRIVATE): Add _dl_signal_error,
7155         _dl_catch_error.
7156         [ld] (GLIBC_PRIVATE): Likewise.
7157         * elf/dl-close.c (_dl_cose): Call _dl_signal_error directly.
7158         * elf/dl-libc.c (dlerror_run): Call _dl_catch_error directly.
7159         * elf/dl-sym.c (do_sym): Call _dl_signal_error, _dl_catch_error
7160         directly.
7161         * elf/dl-tsd.c: Remove file.
7162         * elf/rtld.c (_rtld_global_ro): Remove initializers for
7163         _dl_catch_error, _dl_signal_error.
7164         (_dl_initial_error_catch_tsd): Remove definition.
7165         (do_preload): Remove initialization of dl_error_catch_tsd.
7166         * dlfcn/dlerror.c (_dlerror_run): Call _dl_catch_error directly.
7167         * dlfcn/dlinfo.c (dlinfo_doit): Call _dl_signal_error directly.
7168         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
7169         * dlfcn/dlopen.c (dlopen_doit): Likewise.
7170         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Do not
7171         set dl_error_catch_tsd.
7172         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
7173         _dl_error_catch_tsd member.
7174         (struct rtld_global_ro): Remove _dl_catch_error, _dl_signal_error
7175         members.
7176         (_dl_initial_error_catch_tsd): Remove declaration.
7177         (_dl_dprintf): Provide definition for use outside of ld.so.
7178         [!rtld] (_dl_signal_cerror): Redirect to _dl_signal_error.
7179         (_dl_signal_error, _dl_catch_error): Make public.  Add hidden
7180         prototype for libc.
7181         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_error,
7182         _dl_catch_error.
7183         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
7184         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
7185         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
7186         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
7187         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
7188         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
7189         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
7190         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
7191         Likewise.
7192         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
7193         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
7194         (ld.so): Likewise.
7195         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
7196         (ld.so): Likewise.
7197         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
7198         Likewise.
7199         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
7200         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
7201         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
7202         Likewise.
7203         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
7204         Likewise.
7205         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
7206
7207 2016-11-30  Florian Weimer  <fweimer@redhat.com>
7208
7209         [BZ #4099]
7210         * libio/filedoalloc.c (_IO_file_doallocate): Limit buffer size to
7211         _IO_BUFSIZ (8192).
7212
7213 2016-11-30  Carlos O'Donell  <carlos@redhat.com>
7214
7215         * PROJECTS: Remove file.
7216
7217 2016-11-29  Florian Weimer  <fweimer@redhat.com>
7218
7219         * iconvdata/gbk.c (BODY): Add Euro sign support (both directions).
7220
7221 2016-11-29  Yury Norov  <ynorov@caviumnetworks.com>
7222             Steve Ellcey  <sellcey@caviumnetworks.com>
7223
7224         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Do not define
7225         fxstat if XSTAT_IS_XSTAT64 is set to non-zero.
7226         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Ditto for
7227         fxstatat.
7228         * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Ditto for
7229         lxstat.
7230         * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Ditto for xstat.
7231         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat64.c: New file.
7232         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat64.c: New file.
7233         * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Make __lxstat
7234         an alias of __lxstat64 if XSTAT_IS_XSTAT64 is set to non-zero.
7235         * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Ditto for
7236         __xstat.
7237
7238 2016-11-29  Florian Weimer  <fweimer@redhat.com>
7239
7240         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI___sigsetjmp):
7241         Define.
7242         * sysdeps/powerpc/powerpc32/setjmp.S (__sigsetjmp): Add hidden
7243         definition.
7244
7245 2016-11-29  Florian Weimer  <fweimer@redhat.com>
7246
7247         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S (__longjmp): Remove
7248         version and turn into strong alias.  Remove compat symbol.
7249
7250         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
7251         (__longjmp): Remove.
7252
7253 2016-11-29  Joseph Myers  <joseph@codesourcery.com>
7254
7255         * bits/fp-fast.h: New file.
7256         * sysdeps/aarch64/bits/fp-fast.h: Likewise.
7257         * sysdeps/powerpc/bits/fp-fast.h: Likewise.
7258         * math/Makefile (headers): Add bits/fp-fast.h.
7259         * math/math.h: Include <bits/fp-fast.h>.
7260         * bits/mathdef.h (FP_FAST_FMA): Remove.
7261         (FP_FAST_FMAF): Likewise.
7262         (FP_FAST_FMAL): Likewise.
7263         * sysdeps/aarch64/bits/mathdef.h (FP_FAST_FMA): Likewise.
7264         (FP_FAST_FMAF): Likewise.
7265         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Likewise.
7266         (FP_FAST_FMAF): Likewise.
7267         * sysdeps/x86/bits/mathdef.h (FP_FAST_FMA): Likewise.
7268         (FP_FAST_FMAF): Likewise.
7269         (FP_FAST_FMAL): Likewise.
7270         * sysdeps/arm/bits/mathdef.h: Remove file.
7271         * sysdeps/hppa/fpu/bits/mathdef.h: Likewise.
7272         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
7273         * sysdeps/tile/bits/mathdef.h: Likewise.
7274
7275 2016-11-28  Joseph Myers  <joseph@codesourcery.com>
7276
7277         * math/w_ilogb_template.c: New file.  Based on math/w_ilogb.c.
7278         * math/w_ilogb.c: Remove.
7279         * math/w_ilogbf.c: Likewise.
7280         * math/w_ilogbl.c: Likewise.
7281         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: Likewise.
7282         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: Likewise.
7283         * math/Makefile (gen-libm-calls): Add w_ilogbF.
7284         (libm-calls): Remove w_ilogbF.
7285         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h
7286         (LDOUBLE_ilogbl_libm_version): New macro.
7287
7288         * sysdeps/unix/sysv/linux/ia64/tst-setcontext2.c: New file.
7289
7290         * sysdeps/ia64/fpu/libm-symbols.h: Make contents conditional on
7291         [!__STRICT_ANSI__ && !__cplusplus].
7292
7293 2016-11-28  H.J. Lu  <hongjiu.lu@intel.com>
7294
7295         [BZ #20750]
7296         * sysdeps/x86_64/sysdep.h (JUMPTARGET): Check SHARED instead
7297         of PIC.
7298
7299 2016-11-28  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
7300             Yury Norov  <ynorov@caviumnetworks.com>
7301             Steve Ellcey  <sellcey@caviumnetworks.com>
7302
7303         * sysdeps/aarch64/crti.S: Add include of sysdep.h.
7304         (call_weak_fn): Use PTR_REG to get correct reg name in ILP32.
7305         * sysdeps/aarch64/dl-irel.h: Add include of sysdep.h.
7306         (elf_irela): Use AARCH64_R macro to get correct relocation in ILP32.
7307         * sysdeps/aarch64/dl-machine.h: Add include of sysdep.h.
7308         (elf_machine_load_address, RTLD_START, RTLD_START_1, RTLD_START,
7309         elf_machine_type_class, ELF_MACHINE_JMP_SLOT, elf_machine_rela,
7310         elf_machine_lazy_rel): Add ifdef's for ILP32 support.
7311         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return,
7312         _dl_tlsdesc_return_lazy, _dl_tlsdesc_dynamic,
7313         _dl_tlsdesc_resolve_hold): Extend pointers in ILP32, use PTR_REG
7314         to get correct reg name for ILP32.
7315         * sysdeps/aarch64/dl-trampoline.S (ip01): New Macro.
7316         (RELA_SIZE): New Macro.
7317         (_dl_runtime_resolve, _dl_runtime_profile): Use new macros and PTR_REG
7318         to support ILP32.
7319         * sysdeps/aarch64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Add
7320         cast for ILP32 mode.
7321         * sysdeps/aarch64/memcmp.S (memcmp): Extend arg pointers for ILP32 mode.
7322         * sysdeps/aarch64/memcpy.S (memmove, memcpy): Ditto.
7323         * sysdeps/aarch64/memset.S (__memset): Ditto.
7324         * sysdeps/aarch64/strchr.S (strchr): Ditto.
7325         * sysdeps/aarch64/strchrnul.S (__strchrnul): Ditto.
7326         * sysdeps/aarch64/strcmp.S (strcmp): Ditto.
7327         * sysdeps/aarch64/strcpy.S (strcpy): Ditto.
7328         * sysdeps/aarch64/strlen.S (__strlen): Ditto.
7329         * sysdeps/aarch64/strncmp.S (strncmp): Ditto.
7330         * sysdeps/aarch64/strnlen.S (strnlen): Ditto.
7331         * sysdeps/aarch64/strrchr.S (strrchr): Ditto.
7332         * sysdeps/unix/sysv/linux/aarch64/clone.S: Ditto.
7333         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext): Ditto.
7334         * sysdeps/unix/sysv/linux/aarch64/swapcontext.S (__swapcontext): Ditto.
7335         * sysdeps/aarch64/__longjmp.S (__longjmp): Extend pointers in ILP32,
7336         change PTR_MANGLE call to use register numbers instead of names.
7337         * sysdeps/unix/sysv/linux/aarch64/getcontext.S (__getcontext): Ditto.
7338         * sysdeps/aarch64/setjmp.S (__sigsetjmp): Extend arg pointers for
7339         ILP32 mode, change PTR_MANGLE calls to use register numbers.
7340         * sysdeps/aarch64/start.S (_start): Ditto.
7341         * sysdeps/aarch64/nptl/bits/pthreadtypes.h
7342         (__PTHREAD_RWLOCK_INT_FLAGS_SHARED): New define.
7343         (__SIZEOF_PTHREAD_ATTR_T, __SIZEOF_PTHREAD_MUTEX_T,
7344         __SIZEOF_PTHREAD_MUTEXATTR_T, __SIZEOF_PTHREAD_COND_T,
7345         __SIZEOF_PTHREAD_COND_COMPAT_T, __SIZEOF_PTHREAD_CONDATTR_T,
7346         __SIZEOF_PTHREAD_RWLOCK_T, __SIZEOF_PTHREAD_RWLOCKATTR_T,
7347         __SIZEOF_PTHREAD_BARRIER_T, __SIZEOF_PTHREAD_BARRIERATTR_T):
7348         Make defined values dependent on __ILP32__.
7349         * sysdeps/aarch64/nptl/bits/semaphore.h (__SIZEOF_SEM_T): Change define.
7350         (sem_t): Change __align type.
7351         * sysdeps/aarch64/sysdep.h (AARCH64_R, PTR_REG, PTR_LOG_SIZE, DELOUSE,
7352         PTR_SIZE): New Macros.
7353         (LDST_PCREL, LDST_GLOBAL) Update to use PTR_REG.
7354         * sysdeps/unix/sysv/linux/aarch64/bits/fcntl.h (O_LARGEFILE):
7355         Set when in ILP32 mode.
7356         (F_GETLK64, F_SETLK64, F_SETLKW64): Only set in LP64 mode.
7357         * sysdeps/unix/sysv/linux/aarch64/dl-cache.h (DL_CACHE_DEFAULT_ID):
7358         Set elf flags for ILP32.
7359         (add_system_dir): Set ILP32 library directories.
7360         * sysdeps/unix/sysv/linux/aarch64/init-first.c
7361         (_libc_vdso_platform_setup): Set minimum kernel version for ILP32.
7362         * sysdeps/unix/sysv/linux/aarch64/ldconfig.h
7363         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add ILP32 names.
7364         * sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h (GET_PC, SET_PC):
7365         New Macros.
7366         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Handle ILP32 pointers.
7367
7368 2016-11-28  Steve Ellcey  <sellcey@caviumnetworks.com>
7369
7370         * sysdeps/unix/sysv/linux/fstatfs64.c: Reorder include files,
7371         only alias fstatfs and __fstatfs if STATFS_IS_STATFS64 is non-zero.
7372         * sysdeps/unix/sysv/linux/statfs64.c: Ditto for statfs and __statfs.
7373
7374 2016-11-28  Joseph Myers  <joseph@codesourcery.com>
7375
7376         * sysdeps/unix/sysv/linux/nios2/sys/cachectl.h: Do not include
7377         <asm/cachectl.h>.
7378
7379 2016-11-27  Zack Weinberg  <zackw@panix.com>
7380
7381         * libio/libio.h: Use __USE_GNU, not _GNU_SOURCE, in a conditional.
7382         * test-skeleton.c: Include stdint.h to ensure uintptr_t is available.
7383
7384 2016-11-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7385
7386         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Cast expressions results to
7387         error_t to fix usage in C++ programs.
7388
7389 2016-11-26  Joseph Myers  <joseph@codesourcery.com>
7390
7391         * scripts/build-many-glibcs.py: Import datetime module.
7392         (Context.__init__): Load JSON build state.  Initialize list of
7393         status logs.
7394         (Context.run_builds): Update saved build state.
7395         (Context.add_makefile_cmdlist): Update list of status logs.
7396         (Context.load_build_state_json): New function.
7397         (Context.store_build_state_json): Likewise.
7398         (Context.clear_last_build_state): Likewise.
7399         (Context.update_build_state): Likewise.
7400         (CommandList.status_logs): Likewise.
7401
7402 2016-11-25  Joseph Myers  <joseph@codesourcery.com>
7403
7404         * scripts/build-many-glibcs.py (Context.__init__): Save text of
7405         script being executed.
7406         (Context.get_script_text): New function.
7407         (Context.exec_self): Likewise.
7408         (Context.checkout): Re-exec script if changed by checkout process.
7409
7410 2016-11-24  Joseph Myers  <joseph@codesourcery.com>
7411
7412         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
7413         (setpayloadsig): New declaration.
7414         * math/Versions (setpayloadsig): New libm symbol at version
7415         GLIBC_2.25.
7416         (setpayloadsigf): Likewise.
7417         (setpayloadsigl): Likewise.
7418         * math/Makefile (libm-calls): Add s_setpayloadsigF.
7419         * math/libm-test.inc (RUN_TEST_Ff_b1): Call feclearexcept
7420         (FE_ALL_EXCEPT) after initializing EXTRA_VAR.
7421         (setpayloadsig_test_data): New array.
7422         (setpayloadsig_test): New function.
7423         (main): Call setpayloadsig_test.
7424         * manual/arith.texi (FP Bit Twiddling): Document setpayloadsig,
7425         setpayloadsigf and setpayloadsigl.
7426         * manual/libm-err-tab.pl: Update comment on interfaces without
7427         ulps tabulated.
7428         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c: New file.
7429         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c: Likewise.
7430         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c: Likewise.
7431         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c: Likewise.
7432         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Likewise.
7433         * sysdeps/ieee754/ldbl-opt/nldbl-setpayloadsig.c: Likewise.
7434         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
7435         setpayloadsig.
7436         (CFLAGS-nldbl-setpayloadsig.c): New variable.
7437         * sysdeps/nacl/libm.abilist: Update.
7438         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
7439         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
7440         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
7441         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
7442         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
7443         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
7444         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
7445         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
7446         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
7447         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
7448         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
7449         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
7450         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
7451         Likewise.
7452         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
7453         Likewise.
7454         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
7455         Likewise.
7456         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
7457         Likewise.
7458         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
7459         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
7460         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
7461         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
7462         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
7463         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
7464         Likewise.
7465         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
7466         Likewise.
7467         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
7468         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
7469         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
7470
7471         * scripts/build-many-glibcs.py: Import json module.
7472         (Context.__init__): Take replace_sources argument.  Load
7473         versions.json.
7474         (Context.load_versions_json): New function.
7475         (Context.store_json): Likewise.
7476         (Context.store_versions_json): Likewise.
7477         (Context.set_component_version): Likewise.
7478         (Context.checkout): Update versions.json.  Check for and handle
7479         changes of version.  Prefer previously explicitly specified
7480         version to default version.
7481         (Context.checkout_vcs): Return a revision identifier.
7482         (Context.git_checkout): Likewise.
7483         (Context.gcc_checkout): Likewise.
7484         (get_parser): Add --replace-sources option.
7485         (main): Pass replace_sources argument to Context call.
7486
7487 2016-11-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7488
7489         * sysdeps/nptl/fork.c (__libc_fork): Remove pid cache setting.
7490         * nptl/allocatestack.c (allocate_stack): Likewise.
7491         (__reclaim_stacks): Likewise.
7492         (setxid_signal_thread): Obtain pid through syscall.
7493         * nptl/nptl-init.c (sigcancel_handler): Likewise.
7494         (sighandle_setxid): Likewise.
7495         * nptl/pthread_cancel.c (pthread_cancel): Likewise.
7496         * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Likewise.
7497         * sysdeps/unix/sysv/linux/pthread_sigqueue.c (pthread_sigqueue):
7498         Likewise.
7499         * sysdeps/unix/sysv/linux/createthread.c (create_thread): Likewise.
7500         * sysdeps/unix/sysv/linux/raise.c (raise): Remove old behaviour
7501         comment.
7502         * sysdeps/unix/sysv/linux/getpid.c: Remove file.
7503         * nptl/descr.h (struct pthread): Change comment about pid value.
7504         * nptl/pthread_getattr_np.c (pthread_getattr_np): Remove thread
7505         pid assert.
7506         * sysdeps/unix/sysv/linux/pthread-pids.h (__pthread_initialize_pids):
7507         Do not set pid value.
7508         * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove thread
7509         pid cache check.
7510         * nptl_db/td_thr_validate.c (td_thr_validate): Likewise.
7511         * sysdeps/aarch64/nptl/tcb-offsets.sym: Remove pid offset.
7512         * sysdeps/alpha/nptl/tcb-offsets.sym: Likewise.
7513         * sysdeps/arm/nptl/tcb-offsets.sym: Likewise.
7514         * sysdeps/hppa/nptl/tcb-offsets.sym: Likewise.
7515         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
7516         * sysdeps/ia64/nptl/tcb-offsets.sym: Likewise.
7517         * sysdeps/m68k/nptl/tcb-offsets.sym: Likewise.
7518         * sysdeps/microblaze/nptl/tcb-offsets.sym: Likewise.
7519         * sysdeps/mips/nptl/tcb-offsets.sym: Likewise.
7520         * sysdeps/nios2/nptl/tcb-offsets.sym: Likewise.
7521         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
7522         * sysdeps/s390/nptl/tcb-offsets.sym: Likewise.
7523         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
7524         * sysdeps/sparc/nptl/tcb-offsets.sym: Likewise.
7525         * sysdeps/tile/nptl/tcb-offsets.sym: Likewise.
7526         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
7527         * sysdeps/unix/sysv/linux/aarch64/clone.S: Remove pid and tid caching.
7528         * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
7529         * sysdeps/unix/sysv/linux/arm/clone.S: Likewise.
7530         * sysdeps/unix/sysv/linux/hppa/clone.S: Likewise.
7531         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
7532         * sysdeps/unix/sysv/linux/ia64/clone2.S: Likewise.
7533         * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
7534         * sysdeps/unix/sysv/linux/nios2/clone.S: Likewise.
7535         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
7536         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
7537         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
7538         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
7539         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
7540         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Likewise.
7541         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Likewise.
7542         * sysdeps/unix/sysv/linux/tile/clone.S: Likewise.
7543         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
7544         * sysdeps/unix/sysv/linux/aarch64/vfork.S: Remove pid set and reset.
7545         * sysdeps/unix/sysv/linux/alpha/vfork.S: Likewise.
7546         * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
7547         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
7548         * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
7549         * sysdeps/unix/sysv/linux/m68k/clone.S: Likewise.
7550         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
7551         * sysdeps/unix/sysv/linux/mips/vfork.S: Likewise.
7552         * sysdeps/unix/sysv/linux/nios2/vfork.S: Likewise.
7553         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
7554         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
7555         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
7556         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
7557         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
7558         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
7559         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
7560         * sysdeps/unix/sysv/linux/tile/vfork.S: Likewise.
7561         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
7562         * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: Likewise.
7563         * sysdeps/unix/sysv/linux/tst-clone2.c (f): Remove direct pthread
7564         struct access.
7565         (clone_test): Remove function.
7566         (do_test): Rewrite to take in consideration pid is not cached anymore.
7567
7568 2016-11-24  Joseph Myers  <joseph@codesourcery.com>
7569
7570         * bits/flt-eval-method.h: New file.
7571         * sysdeps/m68k/m680x0/bits/flt-eval-method.h: Likewise.
7572         * sysdeps/s390/bits/flt-eval-method.h: Likewise.
7573         * sysdeps/x86/bits/flt-eval-method.h: Likewise.
7574         * math/Makefile (headers): Add bits/flt-eval-method.h.
7575         * math/math.h: Include <bits/flt-eval-method.h>.
7576         [__USE_ISOC99] (float_t): Define based on __GLIBC_FLT_EVAL_METHOD.
7577         [__USE_ISOC99] (double_t): Likewise.
7578         * bits/mathdef.h (float_t): Remove.
7579         (double_t): Likewise.
7580         * sysdeps/aarch64/bits/mathdef.h (float_t): Likewise.
7581         (double_t): Likewise.
7582         * sysdeps/alpha/bits/mathdef.h (float_t): Likewise.
7583         (double_t): Likewise.
7584         * sysdeps/arm/bits/mathdef.h (float_t): Likewise.
7585         (double_t): Likewise.
7586         * sysdeps/hppa/fpu/bits/mathdef.h (float_t): Likewise.
7587         (double_t): Likewise.
7588         * sysdeps/ia64/bits/mathdef.h (float_t): Likewise.
7589         (double_t): Likewise.
7590         * sysdeps/m68k/m680x0/bits/mathdef.h (float_t): Likewise.
7591         (double_t): Likewise.
7592         * sysdeps/mips/bits/mathdef.h (float_t): Likewise.
7593         (double_t): Likewise.
7594         * sysdeps/powerpc/bits/mathdef.h (float_t): Likewise.
7595         (double_t): Likewise.
7596         * sysdeps/s390/bits/mathdef.h (float_t): Likewise.
7597         (double_t): Likewise.
7598         * sysdeps/sh/sh4/bits/mathdef.h (float_t): Likewise.
7599         (double_t): Likewise.
7600         * sysdeps/sparc/bits/mathdef.h (float_t): Likewise.
7601         (double_t): Likewise.
7602         * sysdeps/tile/bits/mathdef.h (float_t): Likewise.
7603         (double_t): Likewise.
7604         * sysdeps/x86/bits/mathdef.h (float_t): Likewise.
7605         (double_t): Likewise.
7606
7607 2016-11-24  Aurelien Jarno  <aurelien@aurel32.net>
7608
7609         * sysdeps/x86_64/memcpy_chk.S (__memcpy_chk): Check for SHARED
7610         instead of PIC.
7611
7612 2016-11-23  Joseph Myers  <joseph@codesourcery.com>
7613
7614         [BZ #20859]
7615         * sysdeps/sh/sh4/bits/mathdef.h (FP_ILOGB0): Define to
7616         (-0x7fffffff) instead of 0x80000001.
7617         * math/test-fp-ilogb-constants.c: New file.
7618         * math/Makefile (tests): Add test-fp-ilogb-constants.
7619
7620 2016-11-23  Maciej W. Rozycki  <macro@imgtec.com>
7621
7622         * sysdeps/mips/mips32/crti.S (JALR_RELOC): New macro.
7623         (_init): Use it in place of hardcoded R_MIPS_JALR.
7624         * sysdeps/mips/mips64/n32/crti.S (JALR_RELOC): New macro.
7625         (_init): Use it in place of hardcoded R_MIPS_JALR.
7626         * sysdeps/mips/mips64/n64/crti.S (JALR_RELOC): New macro.
7627         (_init): Use it in place of hardcoded R_MIPS_JALR.
7628
7629 2016-11-23  Joseph Myers  <joseph@codesourcery.com>
7630
7631         [BZ #20787]
7632         * sysdeps/x86/bits/mathdef.h (float_t): Do not define to float if
7633         [__x86_64__] when __FLT_EVAL_METHOD__ is nonzero.
7634         (double_t): Do not define to double if [__x86_64__] when
7635         __FLT_EVAL_METHOD__ is nonzero.
7636         * sysdeps/x86/fpu/test-flt-eval-method-387.c: New file.
7637         * sysdeps/x86/fpu/test-flt-eval-method-sse.c: Likewise.
7638         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
7639         test-flt-eval-method-387 and test-flt-eval-method-sse.
7640         [$(subdir) = math] (CFLAGS-test-flt-eval-method-387.c): New
7641         variable.
7642         [$(subdir) = math] (CFLAGS-test-flt-eval-method-sse.c): Likewise.
7643
7644 2016-11-23  Chris Metcalf  <cmetcalf@mellanox.com>
7645
7646         * scripts/build-many-glibcs.py (Context.add_all_configs): Revert
7647         use of -fno-isolate-erroneous-paths options for tilepro.
7648
7649 2016-11-23  Florian Weimer  <fweimer@redhat.com>
7650
7651         * elf/dl-load.c (_dl_map_object_from_fd): Delayed TLS data
7652         structure initialization is no longer needed.
7653
7654 2016-11-23  Joseph Myers  <joseph@codesourcery.com>
7655
7656         [BZ #20855]
7657         * bits/mathdef.h (float_t): Define to float.
7658         * math/test-flt-eval-method.c: New file.
7659         * math/Makefile (tests): Add test-flt-eval-method.
7660         (CFLAGS-test-flt-eval-method.c): New variable.
7661
7662 2016-11-22  Steve Ellcey  <sellcey@caviumnetworks.com>
7663
7664         * sysdeps/unix/sysv/linux/fstatfs64.c: Hide prototypes for fstatfs
7665         and __fstatfs.  Make them aliases of __fstatfs64 if
7666         STATFS_IS_STATFS64 is set to non-zero.
7667         * sysdeps/unix/sysv/linux/statfs64.c: Ditto for __statfs, statfs,
7668         and __statfs64.
7669         * sysdeps/unix/sysv/linux/generic/wordsize-32/fstatfs.c: Do not
7670         define __fstatfs and fstatfs if STATFS_IS_STATFS64 is non-zero.
7671         * sysdeps/unix/sysv/linux/generic/wordsize-32/statfs.c: Ditto
7672         for __statfs and statfs.
7673         * sysdeps/unix/sysv/linux/alpha/kernel_stat.h: Set STATFS_IS_STATFS64
7674         to 0.
7675         * sysdeps/unix/sysv/linux/generic/kernel_stat.h: Ditto.
7676         * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Ditto.
7677         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: Ditto.
7678         * sysdeps/unix/sysv/linux/kernel_stat.h: Ditto.
7679         * sysdeps/unix/sysv/linux/microblaze/kernel_stat.h: Ditto.
7680         * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Ditto.
7681         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Ditto.
7682         * sysdeps/unix/sysv/linux/powerpc/powerpc64/kernel_stat.h: Ditto.
7683         * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Ditto.
7684         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Ditto.
7685         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Ditto.
7686         * sysdeps/unix/sysv/linux/x86_64/kernel_stat.h: Ditto.
7687
7688 2016-11-22  Andreas Schwab  <schwab@suse.de>
7689
7690         * misc/mkstemp.c: Include <fcntl.h>.
7691         * misc/mkstemps.c: Likewise.
7692         * misc/mkostemp.c: Likewise.
7693         * misc/mkostemps.c: Likewise.
7694
7695 2016-11-22  Adhemerval Zanella  <adhemerva.zanella@linaro.org>
7696
7697         [BZ #20847]
7698         * posix/execvpe.c (maybe_script_execute): Remove write past allocated
7699         array bounds.
7700         (__execvpe): Likewise.
7701
7702 2016-11-22  Joseph Myers  <joseph@codesourcery.com>
7703
7704         * scripts/build-many-glibcs.py (Context.add_all_configs): Also use
7705         -fno-isolate-erroneous-paths options for tilepro.
7706
7707 2016-11-21  Steve Ellcey  <sellcey@caviumnetworks.com>
7708
7709         * sysdeps/unix/sysv/linux/generic/kernel_stat.h: Set XSTAT_IS_XSTAT64
7710         to 0 when in 32 bit mode.
7711         * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Set XSTAT_IS_XSTAT64 to 0.
7712         * sysdeps/unix/sysv/linux/kernel_stat.h: Ditto.
7713         * sysdeps/unix/sysv/linux/microblaze/kernel_stat.h: Ditto.
7714         * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Ditto.
7715         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Ditto.
7716         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Ditto.
7717         * sysdeps/unix/sysv/linux/fxstat.c: Replace #ifdef with #if on
7718         XSTAT_IS_XSTAT64 test.
7719         * sysdeps/unix/sysv/linux/fxstatat.c: Ditto.
7720         * sysdeps/unix/sysv/linux/generic/lxstat.c: Ditto.
7721         * sysdeps/unix/sysv/linux/generic/xstat.c: Ditto.
7722         * sysdeps/unix/sysv/linux/i386/fxstat.c: Ditto.
7723         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Ditto.
7724         * sysdeps/unix/sysv/linux/i386/lxstat.c: Ditto.
7725         * sysdeps/unix/sysv/linux/i386/xstat.c: Ditto.
7726         * sysdeps/unix/sysv/linux/lxstat.c: Ditto.
7727         * sysdeps/unix/sysv/linux/mips/xstatconv.c: Ditto.
7728         * sysdeps/unix/sysv/linux/xstat.c: Ditto.
7729         * sysdeps/unix/sysv/linux/xstatconv.c: Ditto.
7730
7731 2016-11-19  Joseph Myers  <joseph@codesourcery.com>
7732
7733         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
7734         (setpayload): New declaration.
7735         * math/Versions (setpayload): New libm symbol at version
7736         GLIBC_2.25.
7737         (setpayloadf): Likewise.
7738         (setpayloadl): Likewise.
7739         * math/Makefile (libm-calls): Add s_setpayloadF.
7740         * math/libm-test.inc (struct test_Ffp_b1_data): Rename to struct
7741         test_Ff_b1_data.
7742         (RUN_TEST_Ff_b1): New macro.
7743         (RUN_TEST_LOOP_Ff_b1): Likewise.
7744         (canonicalize_test_data): Update type.
7745         (setpayload_test_data): New array.
7746         (setpayload_test): New function.
7747         (main): Call setpayload_test.
7748         * manual/arith.texi (FP Bit Twiddling): Document setpayload,
7749         setpayloadf and setpayloadl.
7750         * manual/libm-err-tab.pl: Update comment on interfaces without
7751         ulps tabulated.
7752         * sysdeps/ieee754/dbl-64/s_setpayload.c: New file.
7753         * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Likewise.
7754         * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c:
7755         Likewise.
7756         * sysdeps/ieee754/flt-32/s_setpayloadf.c: Likewise.
7757         * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Likewise.
7758         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c: Likewise.
7759         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Likewise.
7760         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c: Likewise.
7761         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl_main.c: Likewise.
7762         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c: Likewise.
7763         * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Likewise.
7764         * sysdeps/ieee754/ldbl-opt/nldbl-setpayload.c: Likewise.
7765         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
7766         setpayload.
7767         (CFLAGS-nldbl-setpayload.c): New variable.
7768         * sysdeps/nacl/libm.abilist: Update.
7769         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
7770         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
7771         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
7772         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
7773         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
7774         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
7775         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
7776         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
7777         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
7778         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
7779         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
7780         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
7781         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
7782         Likewise.
7783         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
7784         Likewise.
7785         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
7786         Likewise.
7787         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
7788         Likewise.
7789         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
7790         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
7791         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
7792         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
7793         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
7794         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
7795         Likewise.
7796         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
7797         Likewise.
7798         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
7799         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
7800         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
7801
7802 2016-11-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7803
7804         * hurd/hurd.h (__hurd_fail_noerrno): Remove function.
7805         * include/unistd.h: Extend comment about __access_noerrno return
7806         semantics.
7807         * sysdeps/match/hurd/access.c (__hurd_fail_noerrno): Return -1.
7808         (access_common): Correct typo for EACCES.
7809
7810 2016-11-18  Chris Metcalf  <cmetcalf@mellanox.com>
7811
7812         * sysdeps/tile/math-tests.h: New file.
7813
7814         * sysdeps/unix/sysv/linux/tile/set_dataplane.c
7815         (__old_set_dataplane): Rename from set_dataplane and make a
7816         compatibility symbol.
7817         * sysdeps/unix/sysv/linux/tile/sys/dataplane.h: Remove file.
7818         * sysdeps/unix/sysv/linux/tile/Makefile (sysdep_headers): Remove
7819         sys/dataplane.h.
7820
7821 2016-11-18  Joseph Myers  <joseph@codesourcery.com>
7822
7823         * scripts/build-many-glibcs.py (Context.write_files): Make wrapper
7824         script quote words in command output to log suitably for input to
7825         the shell.
7826
7827 2016-11-18  Matthew Fortune  <Matthew.Fortune@imgtec.com>
7828             Maciej W. Rozycki  <macro@imgtec.com>
7829
7830         * sysdeps/mips/mips32/crti.S (_init): Add `.insn' pseudo-op at
7831         `.Lno_weak_fn' label.
7832         * sysdeps/mips/mips64/n32/crti.S (_init): Likewise.
7833         * sysdeps/mips/mips64/n64/crti.S (_init): Likewise.
7834
7835 2016-11-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7836             Yury Norov  <ynorov@caviumnetworks.com>
7837
7838         * bits/typesizes.h (__RLIM_T_MATCHES_RLIM64_T): define.
7839         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h
7840         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
7841         * sysdeps/unix/sysv/linux/generic/bits/typesizes.h
7842         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
7843         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h [__s390x__]
7844         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
7845         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7846         [__arch64__ || __sparcv9] (__RLIM_T_MATCHES_RLIM64_T): Likewise.
7847         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h [__86_64__]
7848         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
7849         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = resource]
7850         (sysdep_routines): Remove oldgetrlimit64.
7851         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = resource]
7852         (sysdep_routines): Likewise.
7853         * sysdeps/unix/sysv/linux/m68k/Makefile [$(subdir) = resource]
7854         (sysdep_routines): Likewise.
7855         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
7856         [$(subdir) = resource] (sysdep_routines): Likewise.
7857         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile
7858         [$(subdir) = resource] (sysdep_routines): Likewise.
7859         * sysdeps/unix/sysv/linux/arm/getrlimit64.c: Remove file.
7860         * sysdeps/unix/sysv/linux/arm/oldgetrlimit64.c: Likewise.
7861         * sysdeps/unix/sysv/linux/arm/oldgetrlimit.c: Likewise.
7862         * sysdeps/unix/sysv/linux/arm/oldsetrlimit.c: Likewise.
7863         * sysdeps/unix/sysv/linux/hppa/getrlimit64.c: Likewise.
7864         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
7865         * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Likewise.
7866         * sysdeps/unix/sysv/linux/m68k/getrlimit64.c: Likewise.
7867         * sysdeps/unix/sysv/linux/m68k/oldgetrlimit64.c: Likewise.
7868         * sysdeps/unix/sysv/linux/powerpc/getrlimit64.c: Likewise.
7869         * sysdeps/unix/sysv/linux/powerpc/oldgetrlimit64.c: Likewise.
7870         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit64.c: Likewise.
7871         * sysdeps/unix/sysv/linux/s390/s390-32/oldgetrlimit64.c: Likewise.
7872         * sysdeps/unix/sysv/linux/sh/getrlimit64.c: Likewise.
7873         * sysdeps/unix/sysv/linux/wordsize-64/getrlimit64.c: Likewise.
7874         * sysdeps/unix/sysv/linux/wordsize-64/setrlimit64.c: Likewise.
7875         * sysdeps/sysv/linux/generic/wordsize-32/syscalls.list: Remove
7876         setrlimit and getrlimit.
7877         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
7878         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
7879         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list: Likewise.
7880         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
7881         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
7882         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
7883         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Likewise.
7884         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
7885         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
7886         * sysdeps/unix/sysv/linux/getrlimit.c: New file.
7887         * sysdeps/unix/sysv/linux/sparc/getrlimit64.c: Likewise.
7888         * sysdeps/unix/sysv/linux/setrlimit.c: Likewise.
7889         * sysdeps/unix/sysv/linux/getrlimit64.c (__getrlimit64): Handle
7890         __RLIM_T_MATCHES_RLIM64_T and add alias if defined.
7891         (__old_getrlimit64): Add compatibility symbol.
7892         * sysdeps/unix/sysv/linux/setrlimit64.c (__setrlimit): Likewise.
7893
7894 2016-11-17  Joseph Myers  <joseph@codesourcery.com>
7895
7896         * scripts/build-many-glibcs.py (Config.build_gcc): Configure with
7897         newly built gmp, mpfr and mpc.
7898
7899         * sysdeps/unix/sysv/linux/alpha/sys/user.h: Include <stddef.h>.
7900
7901 2016-11-16  Joseph Myers  <joseph@codesourcery.com>
7902
7903         * conform/Makefile (linknamespace-libs): Rename to
7904         linknamespace-libs-thr.
7905         (linknamespace-libs-posix): New variable.
7906         (linknamespace-libs-xsi): Likewise.
7907         (linknamespace-libs-XPG3): Include libcrypt.a.
7908         (linknamespace-libs-XPG4): Use $(linknamespace-libs-XPG3).
7909         (linknamespace-libs-POSIX): Use $(linknamespace-libs-thr).
7910         (linknamespace-libs-UNIX98): Use $(linknamespace-libs-xsi).
7911         (linknamespace-libs-XOPEN2K): Likewise.
7912         (linknamespace-libs-XOPEN2K8): Likewise.
7913         (linknamespace-libs-POSIX2008): Use $(linknamespace-libs-posix).
7914
7915         [BZ #20829]
7916         * stdio-common/Versions (__snprintf): Add to version
7917         GLIBC_PRIVATE.
7918         * include/stdio.h (__snprintf): Use libc_hidden_proto.
7919         * stdio-common/snprintf.c (__snprintf): Use libc_hidden_def.
7920         * crypt/sha256-crypt.c (__sha256_crypt_r): Use __snprintf instead
7921         of snprintf.
7922         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
7923
7924 2016-11-16  Zack Weinberg  <zackw@panix.com>
7925
7926         * string/string.h: Remove obsolete comment stating that
7927         strcoll_l and strxfrm_l have not yet been standardized.
7928
7929 2016-11-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7930
7931         * hurd/hurd.h (__hurd_fail_noerrno): New function.
7932         * include/unistd.h [IS_IN (rtld) || !defined SHARED]: Declare
7933         __access_noerrno.
7934         * io/access.c (__access_noerrno): New function.
7935         * sysdeps/mach/hurd/access.c (hurd_fail_seterrno): New function.
7936         (hurd_fail_seterrno): Likewise.
7937         (access_common): Likewise.
7938         (__access_noerrno): Likewise.
7939         * sysdeps/nacl/access.c (__access_noerrno): Likewise.
7940         * sysdeps/unix/sysv/linux/access.c (__access_noerrno): Likewise.
7941         * sysdeps/nacl/nacl-interfaces.h (NACL_CALL_NOERRNO): New
7942         macro.
7943
7944 2016-11-16  Joseph Myers  <joseph@codesourcery.com>
7945
7946         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h (register_dump):
7947         Only declare fpregs if [__SH_FPU_ANY__].
7948
7949 2016-11-15  Joseph Myers  <joseph@codesourcery.com>
7950
7951         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h [__SH4__ || __SH4A__]:
7952         Make code unconditional.
7953         [!(__SH4__ || __SH4A__)]: Remove conditional code.
7954
7955 2016-11-15  Rical Jasan  <ricaljasan@pacific.net>
7956
7957         * manual/sysinfo.texi (S_APPEND): Delete.
7958         (S_IMMUTABLE): Likewise.
7959
7960 2016-11-15  Denis Kaganovich  <mahatma@eu.by>
7961             Magnus Granberg  <zorry@gentoo.org>
7962             Mike Frysinger  <vapier@gentoo.org>
7963
7964         [BZ #20662]
7965         * configure.ac (libc_cv_predef_stack_protector): Also check for
7966         __stack_chk_fail_local symbols.
7967         * configure: Regenerated.
7968
7969 2016-11-15  Florian Weimer  <fweimer@redhat.com>
7970
7971         * sysdeps/s390/s390-64/setjmp.S (NEED_COMPAT_SYMBOLS): New macro.
7972         (libc_hidden_def): Remove redefinition.
7973         (__sigsetjmp): Add hidden definition.
7974         * sysdeps/s390/s390-32/setjmp.S (NEED_COMPAT_SYMBOLS): New macro.
7975         (libc_hidden_def): Remove redefinition.
7976         (__sigsetjmp): Add hidden definition.
7977
7978 2016-11-14  Joseph Myers  <joseph@codesourcery.com>
7979
7980         * scripts/build-many-glibcs.py (os.path): Do not import.
7981         (Context): Inherit explicitly from object.  Remove blank line
7982         between class and docstring.
7983         (Config): Likewise.
7984         (Glibc): Likewise.
7985         (Command): Likewise.
7986         (CommandList): Likewise.
7987         (Context.write_files): Store chmod mode in a variable.
7988
7989         * sysdeps/unix/sysv/linux/tile/tilegx/configure.ac: Use
7990         LIBC_SLIBDIR_RTLDDIR for tilegx32.
7991         * sysdeps/unix/sysv/linux/tile/tilegx/configure: Regenerated.
7992
7993 2016-11-14  Zack Weinberg  <zackw@panix.com>
7994
7995         * sunrpc/Makefile (rpcgen-tests): Delete the .out file before
7996         creating or re-creating it.
7997
7998         * string/bits/string2.h: Fix typo in comment.
7999
8000 2016-11-14  Zack Weinberg  <zackw@panix.com>
8001
8002         * misc/sys/sysmacros.h (__SYSMACROS_DM, __SYSMACROS_DM1): New macros.
8003         (__SYSMACROS_DEPRECATION_MSG, __SYSMACROS_FST_DECL_TEMPL)
8004         (__SYSMACROS_FST_IMPL_TEMPL): Delete.
8005         (major, minor, makedev): Use __SYSMACROS_DM in definition, instead
8006         of redirected function names.
8007
8008         * misc/sys/cdefs.h (__glibc_macro_warning): Activate for clang >= 3.5
8009         as well.  Document that MESSAGE must be a single string literal.
8010
8011 2016-11-11  Joseph Myers  <joseph@codesourcery.com>
8012
8013         * scripts/build-many-glibcs.py: New file.
8014
8015         * stdlib/bug-getcontext.c: Include <libc-internal.h>.
8016         (do_test): Disable -Wmaybe-uninitialized around uses of
8017         except_mask.
8018
8019         * sysdeps/unix/sysv/linux/sh/sys/user.h: Include <stddef.h>.
8020
8021 2016-11-10  Chris Metcalf  <cmetcalf@mellanox.com>
8022
8023         * sysdeps/tile/tilepro/atomic-machine.h (atomic_store_relaxed)
8024         (atomic_store_release): Provide tilepro-specific implementations.
8025
8026 2016-11-10  Joseph Myers  <joseph@codesourcery.com>
8027
8028         * math/math.h (__MATH_TG): New macro.
8029         [__USE_ISOC99] (fpclassify): Define using __MATH_TG.
8030         [__USE_ISOC99] (signbit): Likewise.
8031         [__USE_ISOC99] (isfinite): Likewise.
8032         [__USE_ISOC99] (isnan): Likewise.
8033         [__USE_ISOC99] (isinf): Likewise.
8034         [__GLIBC_USE (IEC_60559_BFP_EXT)] (issignaling): Likewise.
8035         [__GLIBC_USE (IEC_60559_BFP_EXT)] (__MATH_EVAL_FMT2): New macro.
8036         [__GLIBC_USE (IEC_60559_BFP_EXT)] (iseqsig): Define using
8037         __MATH_TG and __MATH_EVAL_FMT2.
8038         * sysdeps/generic/math_private.h (fabs_tg): Define using
8039         __MATH_TG.
8040         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h
8041         [!__NO_LONG_DOUBLE_MATH] (__iscanonicalf): New macro.
8042         [!__NO_LONG_DOUBLE_MATH] (__iscanonical): Likewise.
8043         [!__NO_LONG_DOUBLE_MATH] (iscanonical): Define using __MATH_TG.
8044         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (__iscanonicalf): New
8045         macro.
8046         (__iscanonical): Likewise.
8047         (iscanonical): Define using __MATH_TG.
8048
8049 2016-11-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8050
8051         * sysdeps/unix/sysv/linux/sh/kernel-features.h: Add include
8052         guards.
8053
8054         * sysdeps/unix/sysv/linux/access.c: New file.
8055         * sysdeps/unix/sysv/linux/generic/access.c: Remove file.
8056
8057 2016-11-10  Steve Ellcey  <sellcey@caviumnetworks.com>
8058
8059         * sysdeps/tile/tilepro/bits/wordsize.h: Define __WORDSIZE32_SIZE_ULONG
8060         and __WORDSIZE32_PTRDIFF_LONG.
8061
8062 2016-11-10  Siddhesh Poyarekar  <siddhesh@sourceware.org>
8063
8064         * sysdeps/aarch64/libm-test-ulps: Regenerated.
8065
8066 2016-11-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8067
8068         * sysdeps/unix/sysv/linux/arm/truncate64.c: Remove file.
8069         * sysdeps/unix/sysv/linux/generic/wordsize-32/truncate.c: Likewise.
8070         * sysdeps/sysv/linux/generic/wordsize-32/truncate64.c: Likewise.
8071         * sysdeps/unix/sysv/linux/mips/mips32/truncate64.c: Likewise.
8072         * sysdeps/unix/sysv/linux/mips/mips64/truncate64.c: Likewise.
8073         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Likewise.
8074         * sysdeps/unix/sysv/linux/wordsize-64/truncate64.c: Likewise.
8075         * sysdeps/unix/sysv/linux/truncate.c: New file.
8076         * sysdeps/unix/sysv/linux/truncate64.c (truncate64): Use
8077         INLINE_SYSCALL_CALL, __ALIGNMENT_ARG and SYSCALL_LL64 macros.
8078         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (truncate):
8079         Remove.
8080         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (truncate):
8081         Likewise.
8082
8083         * posix/tst-truncate-common.c: New file.
8084         * posix/tst-truncate.c: Use tst-truncate-common.c.
8085         * posix/tst-truncate64.c: Likewise and add LFS tests.
8086         * sysdeps/unix/sysv/linux/arm/ftruncate64.c: Remove file.
8087         * sysdeps/unix/sysv/linux/generic/wordsize-32/ftruncate.c: Likewise.
8088         * sysdeps/unix/sysv/linux/generic/wordsize-32/ftruncate64.c: Likewise.
8089         * sysdeps/unix/sysv/linux/mips/mips32/ftruncate64.c: Likewise.
8090         * sysdeps/unix/sysv/linux/mips/mips64/ftruncate64.c: Likewise.
8091         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Likewise.
8092         * sysdeps/unix/sysv/linux/wordsize-64/ftruncate64.c: Likewise.
8093         * sysdeps/unix/sysv/linux/ftruncate.c: New file.
8094         * sysdeps/unix/sysv/linux/ftruncate64.c (__ftruncate64): Use
8095         INLINE_SYSCALL_CALL, __ALIGNMENT_ARG and SYSCALL_LL64 macros.
8096         [__OFF_T_MATCHES_OFF64_T] (ftruncate): Add alias.
8097         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (ftruncate):
8098         Remove.
8099         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (ftruncate):
8100         Likewise.
8101
8102 2016-11-08  Joseph Myers  <joseph@codesourcery.com>
8103
8104         [BZ #20790]
8105         * sunrpc/rpc_parse.c (get_prog_declaration): Increase buffer size
8106         to MAXLINESIZE.
8107         * sunrpc/bug20790.x: New file.
8108         * sunrpc/Makefile [$(run-built-tests) = yes] (rpcgen-tests): New
8109         variable.
8110         [$(run-built-tests) = yes] (tests-special): Add $(rpcgen-tests).
8111         [$(run-built-tests) = yes] ($(rpcgen-tests)): New rule.
8112
8113         * sysdeps/unix/sysv/linux/sh/localplt.data: New file.
8114
8115         * sysdeps/unix/sysv/linux/hppa/localplt.data: New file.
8116
8117         * sysdeps/unix/sysv/linux/alpha/localplt.data: Make __tls_get_addr
8118         optional in ld.so.  Allow R_ALPHA_GLOB_DAT relocation for malloc,
8119         calloc, realloc, free, memalign and __libc_memalign rather than
8120         making them optional.
8121
8122         * sysdeps/unix/sysv/linux/nios2/localplt.data: Add __extendsfdf2
8123         for libc.so.
8124
8125 2016-11-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8126
8127         * nptl/Makefile (libpthread-routines): Remove ptw-llseek and add
8128         ptw-lseek64.
8129         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Remove llseek.
8130         * sysdeps/unix/sysv/linux/alpha/Makefile  (sysdeps_routines):
8131         Likewise.
8132         * sysdeps/unix/sysv/linux/generic/wordsize-32/llseek.c: Remove file.
8133         * sysdeps/unix/sysv/linux/generic/wordsize-32/lseek.c: Remove file.
8134         * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: Likewise.
8135         * sysdeps/unix/sysv/linux/llseek.c: Remove file.
8136         * sysdeps/unix/sysv/linux/lseek.c: New file.
8137         * sysdeps/unix/sysv/linux/lseek64.c: Add default Linux implementation.
8138         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: Remove lseek and
8139         __libc_lseek64 from auto-generation.
8140         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
8141         * sysdeps/unix/sysv/linux/x86_64/x32/lseek64.S: New file.
8142
8143 2016-11-07  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8144
8145         * nptl/tst-basic1.c (tf, do_test): Use write_message.
8146         * nptl/tst-cleanup1.c (do_test): Likewise.
8147         * nptl/tst-cleanup3.c (do_test): Likewise.
8148         * nptl/tst-key1.c (do_test): Likewise.
8149         * nptl/tst-key2.c (tf, do_test): Likewise.
8150         * nptl/tst-key3.c (tf, do_test): Likewise.
8151         * nptl/tst-stdio1.c (do_test): Likewise.
8152         * nptl/tst-stdio2.c (do_test): Likewise.
8153
8154         * nptl/tst-kill3.c (handler): Use write_message in place of write.
8155         * nptl/tst-kill6.c (handler): Likewise.
8156         * nptl/tst-tls2.c (CB): Likewise.
8157         * nptl/tst-tls3.c (CB): Likewise.
8158
8159 2016-11-07  Joseph Myers  <joseph@codesourcery.com>
8160
8161         * scripts/check-installed-headers.sh: Ignore sys/sysctl.h for x32.
8162
8163 2016-11-07  Yury Norov  <ynorov@caviumnetworks.com>
8164             Steve Ellcey  <sellcey@caviumnetworks.com>
8165
8166         * sysdeps/unix/sysv/linux/alpha/kernel-features.h: #define
8167           __ASSUME_ST_INO_64_BIT as 0
8168         * sysdeps/unix/sysv/linux/sh/kernel-features.h: Likewise.
8169         * sysdeps/unix/sysv/linux/fxstat64.c: Replace #ifdef with #if
8170           over the code where __ASSUME_ST_INO_64_BIT is used.
8171         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
8172         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
8173         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
8174
8175 2016-11-07  Florian Weimer  <fweimer@redhat.com>
8176
8177         * sysdeps/aarch64/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
8178         Document ABI exposure of the __kind offset.
8179         * sysdeps/arm/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
8180         Mention reason for the __kind offset exposure in the ABI.
8181         * sysdeps/hppa/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
8182         Likewise.
8183         * sysdeps/ia64/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
8184         Likewise.
8185         * sysdeps/m68k/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
8186         Likewise.
8187         * sysdeps/microblaze/nptl/bits/pthreadtypes.h
8188         (struct __pthread_mutex_s): Likewise.
8189         * sysdeps/mips/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
8190         Likewise.
8191         * sysdeps/nios2/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
8192         Likewise.
8193         * sysdeps/s390/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
8194         Likewise.
8195         * sysdeps/sh/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
8196         Likewise.
8197         * sysdeps/sparc/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
8198         Likewise.
8199         * sysdeps/tile/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
8200         Likewise.
8201         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h
8202         (struct __pthread_mutex_s): Likewise.
8203         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
8204         (struct __pthread_mutex_s): Likewise.
8205         * sysdeps/x86/bits/pthreadtypes.h (struct __pthread_mutex_s):
8206         Likewise.
8207
8208 2016-11-07  Steve Ellcey  <sellcey@caviumnetworks.com>
8209
8210         * test-skeleton.c: Document do_test usage.
8211
8212 2016-11-06  Aurelien Jarno  <aurelien@aurel32.net>
8213
8214         * iconv/gconv.h (__gconv_info): Define __data element using a
8215         zero-length array.
8216
8217 2016-11-04  Steve Ellcey  <sellcey@caviumnetworks.com>
8218
8219         * math/test-tgmath2.c: Split up test function.
8220
8221 2016-11-04  Joseph Myers  <joseph@codesourcery.com>
8222
8223         * Rules (tests-expected): New variable, depending on
8224         $(run-built-tests).
8225         (tests): Pass $(tests-expected) to merge-test-results.sh, not
8226         $(tests).
8227
8228         * Rules [$(run-built-tests) = no] (tests): Do not depend on
8229         $(tests-unsupported).
8230
8231 2016-11-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8232
8233         * sysdeps/unix/sysv/linux/sparc/bits/wordsize.h
8234         (__WORDSIZE_TIME64_COMPAT32): Define for both 32 and  64 bits.
8235
8236 2016-11-04  Joseph Myers  <joseph@codesourcery.com>
8237
8238         [BZ #20768]
8239         * sysdeps/alpha/fpu/feholdexcpt.c (__feholdexcept): Call
8240         __fegetenv instead of fegetenv.
8241
8242         [BZ #14139]
8243         * manual/libm-err-tab.pl (%pplatforms): Initialize to empty.
8244         (find_files): Obtain platform name from libm-test-ulps-name and
8245         store in %pplatforms.
8246         (canonicalize_platform): Remove.
8247         (print_platforms): Use $pplatforms directly.
8248         (by_platforms): Do not allow for platforms missing from
8249         %pplatforms.
8250         * sysdeps/aarch64/libm-test-ulps-name: New file.
8251         * sysdeps/alpha/fpu/libm-test-ulps-name: Likewise.
8252         * sysdeps/arm/libm-test-ulps-name: Likewise.
8253         * sysdeps/generic/libm-test-ulps-name: Likewise.
8254         * sysdeps/hppa/fpu/libm-test-ulps-name: Likewise.
8255         * sysdeps/i386/fpu/libm-test-ulps-name: Likewise.
8256         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps-name: Likewise.
8257         * sysdeps/ia64/fpu/libm-test-ulps-name: Likewise.
8258         * sysdeps/m68k/coldfire/fpu/libm-test-ulps-name: Likewise.
8259         * sysdeps/m68k/m680x0/fpu/libm-test-ulps-name: Likewise.
8260         * sysdeps/microblaze/libm-test-ulps-name: Likewise.
8261         * sysdeps/mips/mips32/libm-test-ulps-name: Likewise.
8262         * sysdeps/mips/mips64/libm-test-ulps-name: Likewise.
8263         * sysdeps/nios2/libm-test-ulps-name: Likewise.
8264         * sysdeps/powerpc/fpu/libm-test-ulps-name: Likewise.
8265         * sysdeps/powerpc/nofpu/libm-test-ulps-name: Likewise.
8266         * sysdeps/s390/fpu/libm-test-ulps-name: Likewise.
8267         * sysdeps/sh/libm-test-ulps-name: Likewise.
8268         * sysdeps/sparc/fpu/libm-test-ulps-name: Likewise.
8269         * sysdeps/tile/libm-test-ulps-name: Likewise.
8270         * sysdeps/x86_64/fpu/libm-test-ulps-name: Likewise.
8271
8272         * sysdeps/unix/sysv/linux/mips/sys/user.h: Include <stddef.h>.
8273
8274         * sysdeps/unix/sysv/linux/mips/Makefile [$(subdir) = elf]
8275         (test-xfail-check-execstack): New variable.
8276
8277         * sysdeps/mips/localplt.data: New file.
8278
8279 2016-11-04  Yury Norov  <ynorov@caviumnetworks.com>
8280             Steve Ellcey  <sellcey@caviumnetworks.com>
8281
8282         * bits/wordsize.h: Add documentation.
8283         * sysdeps/aarch64/bits/wordsize.h : New file
8284         * sysdeps/generic/stdint.h (PTRDIFF_MIN, PTRDIFF_MAX): Update
8285         definitions.
8286         (SIZE_MAX): Change ifdef to if in __WORDSIZE32_SIZE_ULONG check.
8287         * sysdeps/gnu/bits/utmp.h (__WORDSIZE_TIME64_COMPAT32): Check
8288         with #if instead of #ifdef.
8289         * sysdeps/gnu/bits/utmpx.h (__WORDSIZE_TIME64_COMPAT32): Ditto.
8290         * sysdeps/mips/bits/wordsize.h (__WORDSIZE32_SIZE_ULONG,
8291         __WORDSIZE32_PTRDIFF_LONG, __WORDSIZE_TIME64_COMPAT32):
8292         Add or change defines.
8293         * sysdeps/powerpc/powerpc32/bits/wordsize.h: Likewise.
8294         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
8295         * sysdeps/s390/s390-32/bits/wordsize.h: Likewise.
8296         * sysdeps/s390/s390-64/bits/wordsize.h: Likewise.
8297         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
8298         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
8299         * sysdeps/tile/tilegx/bits/wordsize.h: Likewise.
8300         * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
8301         * sysdeps/unix/sysv/linux/alpha/bits/wordsize.h: Likewise.
8302         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
8303         * sysdeps/unix/sysv/linux/sparc/bits/wordsize.h: Likewise.
8304         * sysdeps/wordsize-32/bits/wordsize.h: Likewise.
8305         * sysdeps/wordsize-64/bits/wordsize.h: Likewise.
8306         * sysdeps/x86/bits/wordsize.h: Likewise.
8307
8308 2016-11-04  Wilco Dijkstra  <wdijkstr@arm.com>
8309             Kevin Petit  <kevin.petit@arm.com>
8310
8311         * sysdeps/aarch64/memchr.S (__memchr): New file.
8312
8313 2016-11-04  Joseph Myers  <joseph@codesourcery.com>
8314
8315         * sysdeps/tile/preconfigure: Accept tilegx* instead of tilegx.
8316
8317 2016-11-03  Joseph Myers  <joseph@codesourcery.com>
8318
8319         [BZ #19398]
8320         * conform/Makefile ($(linknamespace-header-tests)): Also depend on
8321         $(linknamespace-symlists-tests).
8322
8323 2016-11-02  Steve Ellcey  <sellcey@caviumnetworks.com>
8324
8325         * time/tst-strptime2.c: Ignore -Wformat-length warning.
8326
8327 2016-11-02  Florian Weimer  <fweimer@redhat.com>
8328             Carlos O'Donell  <carlos@redhat.com>
8329
8330         [Bug #20729]
8331         * resolv/res_send.c (send_vc): Revert DIAG_IGNORE_Os_NEEDS_COMMENT
8332         change to non -Os related diagnostic.  Use DIAG_IGNORE_Os_NEEDS_COMMENT
8333         for -Os related change.
8334
8335 2016-11-01  Steve Ellcey  <sellcey@caviumnetworks.com>
8336
8337         * stdio-common/tst-printf.c: Ignore -Wformat-length warning.
8338
8339 2016-11-01  Joseph Myers  <joseph@codesourcery.com>
8340
8341         [BZ #19673]
8342         * manual/math.texi (Exponents and Logarithms): Correct description
8343         of clog10.
8344
8345 2016-10-31  Carlos O'Donell  <carlos@redhat.com>
8346
8347         [Bz #20729]
8348         * locale/weight.h: Include libc-internal.h.
8349         * locale/weightwc.h: Likewise.
8350         * nptl/nptl_dbP.h: Likewise.
8351
8352 2016-10-31  Brent W. Baccala  <cosine@freesoft.org>
8353
8354         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Do not deallocate memobj_wr
8355         when it is MACH_PORT_NULL.
8356
8357 2016-10-31  Andreas Schwab  <schwab@suse.de>
8358
8359         [BZ #20707]
8360         * posix/glob.c (glob): Initialize pglob before checking for
8361         GLOB_BRACE.  Don't call glob recursively if pattern contains no
8362         valid brace expression despite GLOB_BRACE.
8363         * posix/globtest.sh: Test it.
8364
8365 2016-10-28  Carlos O'Donell  <carlos@redhat.com>
8366
8367         [BZ #20729]
8368         * include/libc-internal.h (DIAG_IGNORE_Os_NEEDS_COMMENT):
8369         Define.
8370         * iconvdata/iso-2022-cn-ext.c: Include libc-internal.h and ignore
8371         -Wmaybe-uninitialized for BODY macro only for -Os compiles.
8372         * locale/weight.h (findix): Ignore -Wmaybe-uninitialized error
8373         for seq2.back_us and seq1.back_us only for -Os compiles.
8374         * locale/weightwc.h (findix): Likewise.
8375         * nptl_db/thread_dbP.h: Ignore -Wmaybe-uninitialized error for
8376         DB_GET_FIELD_ADDRESS only for -Os compiles.
8377         * resolv/res_send (reopen): Ignore -Wmaybe-uninitialized error
8378         for slen only for -Os compiles.
8379         * string/strcoll_l.c (get_next_seq): Ignore
8380         -Wmaybe-uninitialized for seq2.save_idx and seq1.save_idx only
8381         for -Os compiles.
8382
8383         * elf/Makefile (CFALGS-tst-linkall-static): Remove.
8384         * include/crypt.h: New file.
8385
8386 2016-10-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8387
8388         * dlfcn/bug-atexit3-lib.cc (write_message): New function, copied
8389         from test-skeleton.c.
8390         (statclass): Replace calls to write with calls to write_message.
8391
8392 2016-10-28  Joseph Myers  <joseph@codesourcery.com>
8393
8394         * math/math.h
8395         [__GLIBC_USE (IEC_60559_BFP_EXT) && __GNUC_PREREQ (3, 3)] (SNANF):
8396         New macro.
8397         [__GLIBC_USE (IEC_60559_BFP_EXT) && __GNUC_PREREQ (3, 3)] (SNAN):
8398         Likewise.
8399         [__GLIBC_USE (IEC_60559_BFP_EXT) && __GNUC_PREREQ (3, 3)] (SNANL):
8400         Likewise.
8401         * manual/arith.texi (Infinity and NaN): Document SNANF, SNAN and
8402         SNANL.
8403         * math/test-double.h (snan_value_MACRO): New macro.
8404         * math/test-float.h (snan_value_MACRO): Likewise.
8405         * math/test-ldouble.h (snan_value_MACRO): Likewise.
8406         * math/libm-test.inc (issignaling_test_data): Add tests of
8407         snan_value_MACRO.
8408
8409 2016-10-28  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8410
8411         * nptl/pthread_rwlock_unlock.c: Add a comment explaining its
8412         behavior when eliding a lock not held by the current thread.
8413         * sysdeps/powerpc/nptl/elide.h: Likewise.
8414
8415 2016-10-28  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8416
8417         [BZ #20728]
8418         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Replace a
8419         branch to _exit() by a function call.
8420
8421 2016-10-28  Florian Weimer  <fweimer@redhat.com>
8422
8423         * malloc/malloc.c: Update chunk layout comments.
8424         (chunk_main_arena): Update comment.
8425
8426 2016-10-28  Florian Weimer  <fweimer@redhat.com>
8427
8428         * crypt/sha256.c, crypt/sha256-block.c,
8429         sysdeps/sparc/sparc64/multiarch/sha256-block.c: Rename
8430         sha256_process_block to __sha256_process_block.
8431         * crypt/sha512.c, crypt/sha512-block.c,
8432         sysdeps/sparc/sparc64/multiarch/sha512-block.c: Rename
8433         sha512_process_block to __sha512_process_block.
8434
8435 2016-10-28  Carlos O'Donell  <carlos@redhat.com>
8436
8437         * elf/Makefile (CFLAGS-tst-linkall-static): Define.
8438
8439         * math/test-nan-overflow.c: Include stdlib.h for malloc.
8440
8441 2016-10-28  H.J. Lu  <hongjiu.lu@intel.com>
8442
8443         [BZ #20019]
8444         * sysdeps/i386/dl-machine.h (elf_machine_rel): Check IFUNC
8445         definition in unrelocated shared library.
8446         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
8447
8448 2016-10-28  Florian Weimer  <fweimer@redhat.com>
8449
8450         [BZ #20729]
8451         Support i386 builds with CFLAGS which imply -fno-omit-frame-pointer.
8452         * sysdeps/unix/sysv/linux/i386/Makefile
8453         (uses-6-syscall-arguments): Define.
8454         [subdir == misc] (CFLAGS-epoll_pwait.o, CFLAGS-epoll_pwait.os)
8455         (CFLAGS-mmap.o, CFLAGS-mmap.os, CFLAGS-mmap64.o, CFLAGS-mmap64.os)
8456         (CFLAGS-pselect.o, CFLAGS-pselect.os, CFLAGS-rtld-mmap.os): Use it.
8457         [subdir = sysvipc] (CFLAGS-semtimedop.o, CFLAGS-semtimedop.os):
8458         Likewise.
8459         [subdir = io] (CFLAGS-posix_fadvise64.o, CFLAGS-posix_fadvise64.os)
8460         (CFLAGS-posix_fallocate.o, CFLAGS-posix_fallocate.os)
8461         (CFLAGS-posix_fallocate64.o, CFLAGS-posix_fallocate64.os)
8462         (CFLAGS-sync_file_range.o, CFLAGS-sync_file_range.os)
8463         (CFLAGS-fallocate.o, CFLAGS-fallocate.os, CFLAGS-fallocate64.o)
8464         (CFLAGS-fallocate64.os): Likewise.
8465         [subdir = nptl] (CFLAGS-pthread_rwlock_timedrdlock.o)
8466         (CFLAGS-pthread_rwlock_timedrdlock.os)
8467         (CFLAGS-pthread_rwlock_timedwrlock.o)
8468         (CFLAGS-pthread_rwlock_timedwrlock.os, CFLAGS-sem_wait.o)
8469         (CFLAGS-sem_wait.os, CFLAGS-sem_timedwait.o)
8470         (CFLAGS-sem_timedwait.os): Likewise.
8471
8472 2016-10-28  Florian Weimer  <fweimer@redhat.com>
8473
8474         * elf/tst-linkall-static.c: New file.
8475         * elf/Makefile (tests-static): Add tst-linkall-static.
8476         (tst-linkall-static): Link against static libraries.
8477
8478 2016-10-27  Florian Weimer  <fweimer@redhat.com>
8479
8480         * malloc/malloc.c (sysmalloc): Initialize previous size field of
8481         mmaped chunks.
8482
8483 2016-10-28  Florian Weimer  <fweimer@redhat.com>
8484
8485         * malloc/malloc.c (struct malloc_chunk): Rename prev_size, size
8486         members to mchunk_prev_size, mchunk_size.
8487         (chunk_main_arena): Reverse sense and rename from
8488         chunk_non_main_arena.
8489         (prev_inuse, chunk_is_mmapped, chunk_main_arena): Use
8490         mchunk_size instead of size.
8491         (set_non_main_arena): Define.
8492         (chunksize): Use chunksize_nomask instead of direct member access.
8493         (chunksize_nomask): Define.
8494         (next_chunk): Use chunksize instead of direct member access.
8495         (prev_size, set_prev_size): Define.
8496         (prev_chunk): Use prev_size instead of direct member access.
8497         (inuse, set_inuse, clear_inuse): Use chunksize and mchunk_size member.
8498         (inuse_bit_at_offset, set_inuse_bit_at_offset)
8499         (clear_inuse_bit_at_offset): Use mchunk_size member instead of size.
8500         (mchunk_prev_size, mchunk_size): Poison tokens.
8501         (unlink): Use chunksize_nomask, prev_size accessors.
8502         (do_check_remalloced_chunk): Use chunk_main_arena accessor.
8503         (do_check_free_chunk): Use prev_size accessor.
8504         (sysmalloc): Use set_prev_size, set_head accessors.
8505         (munmap_chunk, mremap_chunk): Use prev_size accessor.
8506         (__libc_free): Use chunksize_nomask accessor.
8507         (_int_malloc): Use set_non_main_arena, chunksize_nomask,
8508         chunk_main_arena accessors.
8509         (_int_free): Use chunksize_nomask, prev_size accessors.
8510         (malloc_consolidate): Use chunksize, prev_size accessors.
8511         (_int_realloc): Use chunksize_nomask accessor.
8512         (_int_memalign): Use set_prev_size accessor.
8513         (__malloc_info): Use chunksize_nomask accessor.
8514         * malloc/hooks.c (mem2chunk_check): Use prev_size, prev_inuse
8515         accessors.
8516         * malloc/arena.c (arena_for_chunk): Use chunk_main_arena accessor.
8517         (heap_trim): Use chunksize_nomask, prev_size accessors.
8518
8519 2016-10-28  Joseph Myers  <joseph@codesourcery.com>
8520
8521         [BZ #19380]
8522         * stdlib/strtod_l.c (round_and_return): Force "inexact" exception
8523         for inexact results.
8524         * stdlib/gen-tst-strtod-round.c (string_to_fp): Return indication
8525         of inexact result where mpfr_subnormalize is the only inexact
8526         step.
8527         * stdlib/tst-strtod-round-data.h: Regenerated.
8528         * stdlib/tst-strtod-round-skeleton.c [!FE_INEXACT] (FE_INEXACT):
8529         Define to 0.
8530         (GEN_ONE_TEST): Test inexact exceptions raised are as expected.
8531
8532 2016-10-27  David S. Miller  <davem@davemloft.net>
8533
8534         * sysdeps/unix/sysv/linux/sparc/sys/user.h: Include stddef.h
8535
8536 2016-10-27  Siddhesh Poyarekar  <siddhesh@sourceware.org>
8537
8538         * malloc/malloc.c (do_set_mallopt_check): New function.
8539         (do_set_mmap_threshold): Likewise.
8540         (do_set_mmaps_max): Likewise.
8541         (do_set_top_pad): Likewise.
8542         (do_set_perturb_byte): Likewise.
8543         (do_set_trim_threshold): Likewise.
8544         (do_set_arena_max): Likewise.
8545         (do_set_arena_test): Likewise.
8546         (__libc_mallopt): Use them.
8547
8548 2016-10-26  Joseph Myers  <joseph@codesourcery.com>
8549
8550         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
8551         (canonicalize): New declaration.
8552         * math/Versions (canonicalize): New libm symbol at version
8553         GLIBC_2.25.
8554         (canonicalizef): Likewise.
8555         (canonicalizel): Likewise.
8556         * math/Makefile (gen-libm-calls): Add s_canonicalizeF.
8557         * math/s_canonicalize_template.c: New file.
8558         * math/libm-test.inc: Update comment on functions tested and
8559         testing of NaN payloads.
8560         (TEST_NAN_PAYLOAD): New macro.
8561         (NO_TEST_INLINE): Update value.
8562         (XFAIL_TEST): Likewise.
8563         (ERRNO_UNCHANGED): Likewise.
8564         (ERRNO_EDOM): Likewise.
8565         (ERRNO_ERANGE): Likewise.
8566         (IGNORE_RESULT): Likewise.
8567         (NON_FINITE): Likewise.
8568         (TEST_SNAN): Likewise.
8569         (NO_TEST_MATHVEC): Likewise.
8570         (TEST_NAN_PAYLOAD_CANONICALIZE): New macro.
8571         (check_float_internal): Check NaN payloads if TEST_NAN_PAYLOAD.
8572         (struct test_Ffp_b1_data): New type.
8573         (RUN_TEST_Ffp_b1): New macro.
8574         (RUN_TEST_LOOP_Ffp_b1): Likewise.
8575         (canonicalize_test_data): New array.
8576         (canonicalize_test): New function.
8577         (main): Call canonicalize_test.
8578         * manual/arith.texi (FP Bit Twiddling): Document canonicalize,
8579         canonicalizef and canonicalizel.
8580         * manual/libm-err-tab.pl: Update comment on interfaces without
8581         ulps tabulated.
8582         * sysdeps/ieee754/ldbl-opt/nldbl-canonicalize.c: New file.
8583         * sysdeps/ieee754/ldbl-opt/s_canonicalizel.c: Likewise.
8584         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
8585         canonicalize.
8586         (CFLAGS-nldbl-canonicalize.c): New variable.
8587         * sysdeps/ieee754/ldbl-128ibm/test-iscanonical-ldbl-128ibm.c: Move
8588         to ...
8589         * sysdeps/ieee754/ldbl-128ibm/test-canonical-ldbl-128ibm.c:
8590         ... here.
8591         (do_test): Also test canonicalizel.
8592         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Change
8593         test-iscanonical-ldbl-128ibm to test-canonical-ldbl-128ibm.
8594         * sysdeps/ieee754/ldbl-128ibm/include/bits/iscanonical.h: New
8595         file.
8596         * sysdeps/ieee754/ldbl-128ibm/s_iscanonicall.c (__iscanonicall):
8597         Use libm_hidden_def.
8598         * sysdeps/ieee754/ldbl-96/test-iscanonical-ldbl-96.c: Move to ...
8599         * sysdeps/ieee754/ldbl-96/test-canonical-ldbl-96.c: ... here.
8600         (do_test): Also test canonicalizel.
8601         * sysdeps/ieee754/ldbl-96/Makefile (tests): Change
8602         test-iscanonical-ldbl-96 to test-canonical-ldbl-96.
8603         * sysdeps/ieee754/ldbl-96/include/bits/iscanonical.h: New file.
8604         * sysdeps/ieee754/ldbl-96/s_iscanonicall.c (__iscanonicall): Use
8605         libm_hidden_def.
8606         * sysdeps/generic/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD): New
8607         macro.
8608         * sysdeps/mips/math-tests.h [__mips_hard_float && !__mips_nan2008]
8609         (SNAN_TESTS_PRESERVE_PAYLOAD): Likewise.
8610         * sysdeps/nacl/libm.abilist: Update.
8611         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
8612         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
8613         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
8614         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
8615         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
8616         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
8617         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
8618         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
8619         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
8620         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
8621         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
8622         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
8623         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
8624         Likewise.
8625         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
8626         Likewise.
8627         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
8628         Likewise.
8629         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
8630         Likewise.
8631         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
8632         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
8633         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
8634         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
8635         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
8636         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
8637         Likewise.
8638         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
8639         Likewise.
8640         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
8641         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
8642         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
8643
8644         * sysdeps/ieee754/ldbl-opt/nldbl-getpayload.c: New file.
8645         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
8646         getpayload.
8647         (CFLAGS-nldbl-getpayload.c): New variable.
8648
8649 2016-10-26  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8650
8651         * stdio-common/vfscanf.c (_IO_vfwscanf): Use read_int to parse
8652         integer from the format string.
8653
8654 2016-10-26  Florian Weimer  <fweimer@redhat.com>
8655
8656         [BZ #19473]
8657         * malloc/malloc.h (malloc_get_state, malloc_set_state): Remove
8658         declarations.
8659         * malloc/malloc.c (malloc_get_state, malloc_set_state): Remove
8660         weak aliases.
8661         * malloc/hooks.c (__malloc_get_state): Remove definition.
8662         (malloc_get_state): New stub implementation as
8663         compatibility symbol.
8664         (malloc_set_state): Rename from __malloc_set_state.  Turn into
8665         compat symbol.
8666         * malloc/tst-mallocstate.c: Rewrite to approximate how Emacs uses
8667         malloc_set_state.
8668         * malloc/Makefile (LDFLAGS-tst-mallocstate): Link with -rdynamic.
8669
8670 2016-10-26  Florian Weimer  <fweimer@redhat.com>
8671
8672         * iconvdata/iso646.c (enum variant): Drop illegal_var.
8673         (names): Turn into concatenation of strings.
8674         (gconv_init): Adapt iteration over names.
8675
8676 2016-10-26  Florian Weimer  <fweimer@redhat.com>
8677
8678         * iconvdata/ibm930.h (__ucs4_to_ibm930sb): Remove indirection and
8679         make const.
8680         * iconvdata/ibm933.h (__ucs4_to_ibm933sb): Likewise.
8681         * iconvdata/ibm935.h (__ucs4_to_ibm935sb): Likewise.
8682         * iconvdata/ibm939.h (__ucs4_to_ibm939sb): Likewise.
8683         * iconvdata/ibm930.c [TO_LOOP] (BODY): Store converted single-byte
8684         character in sbconv.
8685         * iconvdata/ibm933.c [TO_LOOP] (BODY): Likewise.
8686         * iconvdata/ibm935.c [TO_LOOP] (BODY): Likewise.
8687         * iconvdata/ibm939.c [TO_LOOP] (BODY): Likewise.
8688
8689 2016-10-26  Siddhesh Poyarekar  <siddhesh@sourceware.org>
8690
8691         * malloc/malloc.c (M_ARENA_TEST, M_ARENA_MAX): Remove.
8692
8693         * manual/memory.texi (M_TOP_PAD): Remove reference to sbrk.
8694         (M_TRIM_THRESHOLD): Likewise.
8695
8696         * manual/memory.texi (M_ARENA_TEST): Add documentation.
8697         (M_ARENA_MAX): Likewise.
8698         * malloc/malloc.c: Remove obsolete comment.
8699
8700         * manual/memory.texi: Add environment variable alternatives to
8701         setting mallopt parameters.
8702
8703 2016-10-26  Carlos O'Donell  <carlos@redhat.com>
8704
8705         * include/atomic.h
8706         [USE_COMPILER_ATOMIC_BUILTINS && !atomic_fetch_xor_release]
8707         (atomic_fetch_xor_release): Use atomic_compare_exchange_weak_release.
8708
8709 2016-10-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
8710
8711         * stdlib/Makefile (tests): Add tst-strfrom and tst-strfrom-locale.
8712         * stdlib/tst-strfrom.h: New file.
8713         * stdlib/tst-strfrom.c: New file.
8714         * stdlib/tst-strfrom-locale.c: New file.
8715
8716         * stdlib/bug-strtod.c: Refactor based on GEN_TEST_STRTOD_FOREACH.
8717         * stdlib/bug-strtod2.c: Likewise.
8718         * stdlib/tst-strtod-round-skeleton.c: Likewise.
8719         * stdlib/tst-strtod6.c: Likewise.
8720         * stdlib/tst-strtod.h (GEN_TEST_STRTOD_FOREACH): Use strfrom.
8721
8722 2016-10-25  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8723
8724         * NEWS: Mention the addition of strfromd, strfromf, and strfroml.
8725         * manual/arith.texi: Document strfromd, strfromf, strfroml.
8726         * stdlib/Makefile: Add strfromd, strfromf, and strfroml.
8727         * stdlib/Versions (GLIBC_2.25): Add strfromd, strfromf, and strfroml.
8728         * stdlib/stdlib.h (strfromd): New declaration.
8729         (strfromf): Likewise.
8730         (strfroml): Likewise.
8731         * stdlib/strfrom-skeleton.c: New file.  Generic implementation for
8732         strfrom.
8733         * stdlib/strfromd.c: New file.
8734         * stdlib/strfromf.c: Likewise.
8735         * stdlib/strfroml.c: Likewise.
8736         * stdlib/bits/stdlib-ldbl.h: Add redirection from strfroml to strfromd.
8737         * sysdeps/ieee754/ldbl-opt/Makefile: Add rule for nldbl-strfroml.c.
8738         * sysdeps/ieee754/ldbl-opt/nldbl-strfroml.c: New file;
8739         * sysdeps/arm/nacl/libc.abilist: Update.
8740         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
8741         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
8742         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
8743         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
8744         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
8745         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
8746         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
8747         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
8748         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
8749         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
8750         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
8751         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
8752         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
8753         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
8754         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
8755         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
8756         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
8757         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
8758         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
8759         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
8760         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
8761         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
8762         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
8763         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
8764         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
8765         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
8766         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
8767         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
8768
8769 2016-10-25  Joseph Myers  <joseph@codesourcery.com>
8770
8771         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Use cmplwi
8772         instead of cmpli.
8773         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Use cmpldi
8774         instead of cmpli.
8775
8776 2016-10-24  Yury Norov  <ynorov@caviumnetworks.com>
8777
8778         * sysdeps/unix/sysv/linux/fxstat.c: Remove useless cast.
8779         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
8780         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
8781         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
8782         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
8783         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
8784
8785 2016-10-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8786
8787         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Use SYSCALL_LL_PRW.
8788         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
8789         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Use
8790         SYSCALL_LL64_PRW.
8791         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
8792         * sysdeps/unix/sysv/linux/sh/kernel-features.h: Define
8793         __ASSUME_PRW_DUMMY_ARG.
8794         * sysdeps/unix/sysv/linux/sh/pread.c: Remove file.
8795         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
8796         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
8797         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
8798         * sysdeps/unix/sysv/linux/sysdep.h: Define SYSCALL_LL_PRW and
8799         SYSCALL_LL_PRW64 based on __ASSUME_PRW_DUMMY_ARG.
8800
8801 2016-10-24  Steve Ellcey  <sellcey@caviumnetworks.com>
8802
8803         * sysdeps/unix/sysv/linux/tst-setgetname.c: Increase buffer size.
8804
8805 2016-10-22  Florian Weimer  <fweimer@redhat.com>
8806
8807         * math/math.h [__cplusplus] (iszero): Wrap C++ bits in extern
8808         "C++", to override a potential extern "C" directive around the
8809         header file inclusion.
8810
8811 2016-10-21  Joseph Myers  <joseph@codesourcery.com>
8812
8813         * benchtests/Makefile (CFLAGS-bench-sqrt.c): New variable.
8814
8815 2016-10-21  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8816
8817         * sysdeps/powerpc/fpu/fenv_private.h:
8818         (_FPU_MASK_ALL): Rename to...
8819         (_FPU_ALL_TRAPS): New macro representing ISA VE OE UE ZE and
8820         XE FPSCR bits.
8821
8822         (_FPU_MASK_RN): New macro to mask out ISA RN bits in FPSCR.
8823
8824         (_FPU_MASK_ROUNDING): Rename to...
8825         (_FPU_MASK_NOT_RN_NI): New macro to mask out all but ISA RN and
8826         NI bits.
8827
8828         (_FPU_MASK_EXCEPT_ROUND): Rename to...
8829         (_FPU_MASK_TRAPS_RN): New macro to mask out exception enable
8830         bits and rounding bits.
8831
8832         (__libc_feholdbits_ppc): New inline function to mask, set,
8833         and pontentially clear FSPCR bits, and change MSR[FE] bits.
8834         (libc_feholdexcept_ppc): Redefine using __libc_feholdbits_ppc.
8835         (libc_feholdexcept_setround_ppc): Likewise.
8836
8837         (__libc_femergeenv_ppc): New function to dynamically mask both
8838         old and new FP environments and merge.
8839         (libc_fesetenv_ppc): Redefine in terms of __libc_femergeenv_ppc.
8840         (libc_feresetround_ppc): Likewise.
8841         (libc_feupdateenv_test_ppc): Likewise.
8842         (libc_feupdateenv_ppc): Likewise.
8843
8844         (libc_feholdsetround_ppc_ctx): Fix usage to include masking
8845         of ISA RN bits, and update macro names.
8846         (libc_feholdexcept_setround_ppc_ctx): Remove as it is
8847         effectively the same as the previously mentioned function.
8848
8849         (libc_feupdateenv_ppc_ctx): Replace libc_feupdatedenv_test_ppc
8850         usage with fe_resetround_ppc.
8851
8852         (libc_feholdexcept_setround_ctx): Remove, this doesn't appear
8853         to be used.
8854         (libc_feholdexcept_setround_ctxf): Likewise.
8855         (libc_feholdexcept_setround_ctxl): Likewise.
8856
8857 2016-10-21  Florian Weimer  <fweimer@redhat.com>
8858
8859         [BZ #20715]
8860         * math/math.h [__cplusplus] (iszero): Define as function template.
8861         * math/Makefile [CXX] (tests): Add test-math-iszero.
8862         (CFLAGS-test-math-iszero.cc): Set.
8863         * math/test-math-iszero.cc: New file.
8864
8865 2016-10-20  Joseph Myers  <joseph@codesourcery.com>
8866
8867         [BZ #20660]
8868         * sysdeps/arm/e_sqrt.c: New file.
8869         * sysdeps/arm/e_sqrtf.c: Likewise.
8870
8871 2016-10-19  Joseph Myers  <joseph@codesourcery.com>
8872
8873         [BZ #20718]
8874         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S (__copysignl): Do
8875         not use floating-point comparisons to test sign.
8876         * sysdeps/powerpc/powerpc64/fpu/s_copysignl.S (__copysignl):
8877         Likewise.
8878
8879         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
8880         (getpayload): New declaration.
8881         * math/Versions (getpayload): New libm symbol at version
8882         GLIBC_2.25.
8883         (getpayloadf): Likewise.
8884         (getpayloadl): Likewise.
8885         * math/Makefile (libm-calls): Add s_getpayloadF.
8886         * math/libm-test.inc: Include <nan-high-order-bit.h>.
8887         (struct test_f_f_data): Add comment.
8888         (RUN_TEST_fp_f): New macro.
8889         (RUN_TEST_LOOP_fp_f): Likewise.
8890         (getpayload_test_data): New array.
8891         (getpayload_test): New function.
8892         (main): Call getpayload_test.
8893         * math/gen-libm-test.pl (parse_args): Handle 'p' in argument
8894         descriptor.
8895         * manual/arith.texi (FP Bit Twiddling): Document getpayload,
8896         getpayloadf and getpayloadl.
8897         * manual/libm-err-tab.pl: Update comment on interfaces without
8898         ulps tabulated.
8899         * sysdeps/ieee754/dbl-64/s_getpayload.c: New file.
8900         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Likewise.
8901         * sysdeps/ieee754/flt-32/s_getpayloadf.c: Likewise.
8902         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Likewise.
8903         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c: Likewise.
8904         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Likewise.
8905         * sysdeps/nacl/libm.abilist: Update.
8906         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
8907         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
8908         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
8909         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
8910         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
8911         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
8912         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
8913         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
8914         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
8915         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
8916         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
8917         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
8918         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
8919         Likewise.
8920         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
8921         Likewise.
8922         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
8923         Likewise.
8924         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
8925         Likewise.
8926         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
8927         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
8928         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
8929         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
8930         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
8931         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
8932         Likewise.
8933         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
8934         Likewise.
8935         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
8936         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
8937         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
8938
8939 2016-10-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8940
8941         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = math] (tests): Move
8942         tst-fallocate{64}.
8943         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Check for EOPNOTSUPP
8944         on syscall return.
8945
8946 2016-10-17  Carlos O'Donell  <carlos@redhat.com>
8947
8948         [BZ #20689]
8949         * sysdeps/x86/cpu-features.c: Only enable FMA and AVX2 if AVX is
8950         usable.
8951
8952 2016-10-17  Joseph Myers  <joseph@codesourcery.com>
8953
8954         * sysdeps/generic/nan-high-order-bit.h: New file.
8955         * sysdeps/hppa/nan-high-order-bit.h: Likewise.
8956         * sysdeps/mips/nan-high-order-bit.h: Likewise.
8957         * sysdeps/hppa/math_private.h: Remove file.
8958         * sysdeps/mips/math_private.h (HIGH_ORDER_BIT_IS_SET_FOR_SNAN): Do
8959         not define here.
8960         * sysdeps/ieee754/dbl-64/s_issignaling.c: Include
8961         <nan-high-order-bit.h>.
8962         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
8963         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
8964         <nan-high-order-bit.h>.
8965         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
8966         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
8967         <nan-high-order-bit.h>.
8968         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
8969         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Include
8970         <nan-high-order-bit.h>.
8971         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
8972         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
8973         <nan-high-order-bit.h>.
8974         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
8975         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
8976         <nan-high-order-bit.h>.
8977         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
8978         * sysdeps/ieee754/flt-32/s_issignalingf.c: Include
8979         <nan-high-order-bit.h>.
8980         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
8981         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
8982         <nan-high-order-bit.h>.
8983         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
8984         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
8985         <nan-high-order-bit.h>.
8986         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
8987         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Include
8988         <nan-high-order-bit.h>.
8989         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
8990         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
8991         <nan-high-order-bit.h>.
8992         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
8993         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
8994         <nan-high-order-bit.h>.
8995         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
8996         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Include
8997         <nan-high-order-bit.h>.
8998         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
8999         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c: Include
9000         <nan-high-order-bit.h>.
9001         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9002         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c: Include
9003         <nan-high-order-bit.h>.
9004         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9005         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Include
9006         <nan-high-order-bit.h>.
9007         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9008         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
9009         <nan-high-order-bit.h>.
9010         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9011         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
9012         <nan-high-order-bit.h>.
9013         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9014
9015 2016-10-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
9016
9017         * sysdeps/s390/fpu/fix-fp-int-compare-invalid.h: New file.
9018
9019 2016-09-22  John David Anglin  <dave.anglin@bell.net>
9020
9021         * sysdeps/unix/sysv/linux/hppa/atomic-machine.h: Don't include
9022         abort-instr.h.
9023         (EFAULT): Remove conditional define.
9024         (ENOSYS): Likewise.
9025         (atomic_compare_and_exchange_val_acq): Use instruction nullification
9026         instead of conditional branch instructions.
9027
9028 2016-10-15  Joseph Myers  <joseph@codesourcery.com>
9029
9030         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
9031         (totalordermag): New declaration.
9032         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalordermag):
9033         New macro.
9034         * math/Versions (totalordermag): New libm symbol at version
9035         GLIBC_2.25.
9036         (totalordermagf): Likewise.
9037         (totalordermagl): Likewise.
9038         * math/Makefile (libm-calls): Add s_totalordermagF.
9039         * math/libm-test.inc (totalordermag_test_data): New array.
9040         (totalordermag_test): New function.
9041         (main): Call totalordermag_test.
9042         * math/test-tgmath.c (NCALLS): Increase to 125.
9043         (F(compile_test)): Call totalordermag.
9044         (F(totalordermag)): New function.
9045         * manual/arith.texi (FP Comparison Functions): Document
9046         totalordermag, totalordermagf and totalordermagl.
9047         * manual/libm-err-tab.pl: Update comment on interfaces without
9048         ulps tabulated.
9049         * sysdeps/ieee754/dbl-64/s_totalordermag.c: New file.
9050         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Likewise.
9051         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Likewise.
9052         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Likewise.
9053         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c: Likewise.
9054         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Likewise.
9055         * sysdeps/ieee754/ldbl-opt/nldbl-totalordermag.c: Likewise.
9056         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
9057         totalordermag.
9058         (CFLAGS-nldbl-totalordermag.c): New variable.
9059         * sysdeps/ieee754/ldbl-128ibm/test-totalorderl-ldbl-128ibm.c
9060         (do_test): Also test totalordermagl.
9061         * sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c (do_test):
9062         Likewise.
9063         * sysdeps/nacl/libm.abilist: Update.
9064         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
9065         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
9066         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
9067         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
9068         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
9069         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
9070         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
9071         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
9072         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
9073         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
9074         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
9075         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
9076         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
9077         Likewise.
9078         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
9079         Likewise.
9080         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
9081         Likewise.
9082         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
9083         Likewise.
9084         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
9085         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
9086         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
9087         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
9088         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
9089         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
9090         Likewise.
9091         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
9092         Likewise.
9093         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
9094         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
9095         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
9096
9097 2016-10-14  Steve Ellcey  <sellcey@caviumnetworks.com>
9098
9099         * sysdeps/ieee754/dbl-64/e_pow.c (checkint) Make conditions explicitly
9100         boolean.
9101
9102 2016-10-13  Joseph Myers  <joseph@codesourcery.com>
9103
9104         * math/s_ccosh_template.c (M_DECL_FUNC (__ccosh)): Instead of
9105         raising FE_INVALID with feraisexcept in case where part of
9106         argument is infinite, subtract that part of argument from itself.
9107         * math/s_cexp_template.c (M_DECL_FUNC (__cexp)): Likewise.
9108         * math/s_csin_template.c (M_DECL_FUNC (__csin)): Likewise.
9109         * math/s_csinh_template.c (M_DECL_FUNC (__csinh)): Likewise.
9110
9111 2016-10-12  Joseph Myers  <joseph@codesourcery.com>
9112
9113         * math/libm-test.inc (totalorder_test_data): Add more tests.
9114
9115 2016-10-12  Adhemerval Zanela  <adhemerval.zanella@linaro.org>
9116
9117         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise64.c:
9118         Undefine weak_alias and add a comment why mips64 require
9119         versioning.
9120
9121 2016-10-12  H.J. Lu  <hongjiu.lu@intel.com>
9122
9123         [BZ #20647]
9124         * sysdeps/x86/cacheinfo.c (handle_intel): Return -1 if the
9125         maximum CPUID level is less than 2.
9126
9127 2016-10-12  Joseph Myers  <joseph@codesourcery.com>
9128
9129         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
9130         (totalorder): New declaration.
9131         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalorder):
9132         New macro.
9133         * math/Versions (totalorder): New libm symbol at version
9134         GLIBC_2.25.
9135         (totalorderf): Likewise.
9136         (totalorderl): Likewise.
9137         * math/Makefile (libm-calls): Add s_totalorderF.
9138         * math/gen-libm-test.pl (parse_args): Escape quotes in test name
9139         string.
9140         * math/libm-test.inc (PAYLOAD_DIG): New macro.
9141         (qnan_value_pl): Likewise.
9142         (snan_value_pl): Likewise.
9143         (qnan_value): Define using qnan_value_pl.
9144         (snan_value): Define using snan_value_pl.
9145         (struct test_ff_i_data): Add comment about which tests use this
9146         structure.
9147         (RUN_TEST_ff_b): New macro.
9148         (RUN_TEST_LOOP_ff_b): Likewise.
9149         (totalorder_test_data): New array.
9150         (totalorder_test): New function.
9151         (main): Call totalorder_test.
9152         * math/test-tgmath.c (NCALLS): Increase to 122.
9153         (F(compile_test)): Call totalorder.
9154         (F(totalorder)): New function.
9155         * manual/arith.texi (FP Comparison Functions): Document
9156         totalorder, totalorderf and totalorderl.
9157         * manual/libm-err-tab.pl: Update comment on interfaces without
9158         ulps tabulated.
9159         * sysdeps/ieee754/dbl-64/s_totalorder.c: New file.
9160         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Likewise.
9161         * sysdeps/ieee754/flt-32/s_totalorderf.c: Likewise.
9162         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Likewise.
9163         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c: Likewise.
9164         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Likewise.
9165         * sysdeps/ieee754/ldbl-opt/nldbl-totalorder.c: Likewise.
9166         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
9167         totalorder.
9168         (CFLAGS-nldbl-totalorder.c): New variable.
9169         * sysdeps/ieee754/ldbl-128ibm/test-totalorderl-ldbl-128ibm.c: New
9170         file.
9171         * sysdeps/ieee754/ldbl-128ibm/Makefile [$(subdir) = math] (tests):
9172         Add test-totalorderl-ldbl-128ibm.
9173         * sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c: New file.
9174         * sysdeps/ieee754/ldbl-96/Makefile [$(subdir) = math] (tests): Add
9175         test-totalorderl-ldbl-96.
9176         * sysdeps/nacl/libm.abilist: Update.
9177         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
9178         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
9179         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
9180         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
9181         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
9182         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
9183         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
9184         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
9185         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
9186         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
9187         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
9188         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
9189         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
9190         Likewise.
9191         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
9192         Likewise.
9193         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
9194         Likewise.
9195         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
9196         Likewise.
9197         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
9198         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
9199         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
9200         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
9201         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
9202         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
9203         Likewise.
9204         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
9205         Likewise.
9206         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
9207         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
9208         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
9209
9210 2016-10-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9211
9212         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sync_file_range.
9213         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c: Remove file.
9214         * sysdeps/sysv/linux/powerpc/powerpc64/sync_file_range.c: Likewise.
9215         * sysdeps/unix/sysv/linux/sync_file_range.c: Use SYSCALL_LL64 and
9216         remove ENOSYS implementation.
9217         * sysdeps/unix/sysv/linux/tst-sync_file_range.c (sync_file_range):
9218         Consolidate all Linux implementations.
9219
9220 2016-10-11  Florian Weimer  <fweimer@redhat.com>
9221
9222         * resolv/Makefile (+cflags): Do not set -Wno-write-strings.
9223         * resolv/herror.c (herror): Cast away const-ness.
9224         * resolv/res_debug.c (__p_class_syms, __p_default_section_syms)
9225         (__p_update_section_syms, __p_type_syms, __p_rcode_syms): Likewise.
9226
9227 2016-10-11  Joseph Myers  <joseph@codesourcery.com>
9228
9229         * math/s_ccosh_template.c (M_DECL_FUNC (__ccosh)): Use M_NAN
9230         instead of M_NAN + M_NAN.
9231         * math/s_csinh_template.c (M_DECL_FUNC (__csinh)): Likewise.
9232
9233 2016-10-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9234
9235         * misc/getauxval.c [!HAVE_AUX_VECTOR] (__getauxval): Do not define
9236         unused variable 'p'.
9237
9238 2016-10-09  Alan Modra  <amodra@gmail.com>
9239             Andreas Schwab  <schwab@linux-m68k.org>
9240
9241         [BZ #20554]
9242         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount)
9243         [PIC && !SHARED]: Set up PIC register for PLT call.
9244
9245 2016-10-07  Joseph Myers  <joseph@codesourcery.com>
9246
9247         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (iseqsig): Define
9248         conditional on value of [__FLT_EVAL_METHOD__].
9249         * math/test-iseqsig-excess-precision.c: New file.
9250         * math/Makefile (tests): Add test-iseqsig-excess-precision.
9251
9252 2016-10-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9253
9254         * math/s_iseqsig_template.c: Include math-private.h.
9255
9256         * posix/Makefile (tests): Add tst-posix_fadvise and tst-posix_fadvise64.
9257         * posix/tst-posix_fadvise.c: New file.
9258         * posix/tst-posix_fadvise64.c: Likewise.
9259         * posix/tst-posix_fadvise-common.c: Likewise.
9260         * sysdeps/unix/sysv/linux/arm/kernel-features.h
9261         (__ASSUME_FADVISE64_64_6ARG): Define.
9262         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
9263         [!__powerpc64__] (__ASSUME_FADVISE64_64_6ARG): Define.
9264         * sysdeps/unix/sysv/linux/tile/kernel-features.h
9265         [!LP64] (__ASSUME_FADVISE64_64_NO_ALIGN): Define.
9266         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c: Remove file.
9267         * sysdeps/unix/sysv/linux/generic/wordsize-32/posix_fadvise.c: Likewise.
9268         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Likewise.
9269         * sysdeps/unix/sysv/linux/mips/mips32/posix_fadvise.c: Likewise.
9270         * sysdeps/unix/sysv/linux/mips/mips32/posix_fadvise64.c: Likewise.
9271         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fadvise.c: Likewise.
9272         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fadvise64.c: Likewise.
9273         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c: Likewise.
9274         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise.c: Likewise.
9275         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c:
9276         Likewise.
9277         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise.c: Likewise.
9278         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise64.c: Likewise.
9279         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise64.c
9280         (SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3) [__posix_fadvise64_l64]:
9281         Alias to __posix_fadvise64_l32.
9282         (SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3) [__posix_fadvise64_l32]:
9283         Add compat definition to posix_fadvise64.
9284         (SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3) [__posix_fadvise64_l64]:
9285         Add versioned definition to posix_fadvise64.
9286         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Build iff
9287         __OFF_T_MATCHES_OFF64_T is defined, use INTERNAL_SYSCALL_CALL, add
9288         __ASSUME_FADVISE64_64_6ARG/__ASSUME_FADVISE64_64_NO_ALIGN support.
9289         * sysdeps/unix/sysv/linux/posix_fadvise64.c (posix_fadvise64): Add
9290         __ASSUME_FADVISE64_64_NO_ALIGN support and use INTERNAL_SYSCALL_CALL.
9291
9292         * io/Makefile (tests): Add tst-posix_fallocate and
9293         tst-posix_fallocate64.
9294         * io/tst-posix_fallocate-common.c: New file.
9295         * io/tst-posix_fallocate.c: Likewise.
9296         * io/tst-posix_fallocate64.c: Likewise.
9297         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate.c: Remove
9298         file.
9299         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate64.c:
9300         Likewise.
9301         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fallocate.c: Likewise.
9302         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fallocate64.c:
9303         Likewise.
9304         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: Likewise.
9305         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: Likewise.
9306         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Use
9307         SYSCALL_LL to pass both offset and len arguments.
9308         * sysdeps/unix/sysv/linux/posix_fallocate64.c (posix_fallocate64):
9309         Likewise.
9310         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pwrite64): Add
9311         __libc_pwrite64 alias used by posix_fallocate64.
9312
9313         * sysdeps/unix/sysv/linux/Makefile (test): Add tst-fallocate and
9314         tst-fallocate64.
9315         * sysdeps/unix/sysv/linux/tst-fallocate.c: New file.
9316         * sysdeps/unix/sysv/linux/tst-fallocate64.c: Likewise.
9317         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Likewise.
9318         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c: Remove file.
9319         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c: Likewise.
9320         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate.c: Likewise.
9321         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate64.c: Likewise.
9322         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
9323         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: Likewise.
9324         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Use SYSCALL_LL
9325         macro on offset argument.
9326         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Use
9327         SYSCALL_LL64 on offset argument.
9328
9329         * sysdeps/unix/sysv/linux/Makefile (test): Add tst-fallocate and
9330         tst-fallocate64.
9331         * sysdeps/unix/sysv/linux/tst-fallocate.c: New file.
9332         * sysdeps/unix/sysv/linux/tst-fallocate64.c: Likewise.
9333         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Likewise.
9334         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c: Remove file.
9335         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c: Likewise.
9336         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate.c: Likewise.
9337         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate64.c: Likewise.
9338         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
9339         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: Likewise.
9340         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Use SYSCALL_LL
9341         macro on offset argument.
9342         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Use
9343         SYSCALL_LL64 on offset argument.
9344         * test-skeleton.c (FAIL_RET): Add macro.
9345         (FAIL_EXIT): Likewise.
9346         (FAIL_EXIT1): Likewise.
9347         (_FAIL): Likewise.
9348
9349 2016-10-07  Florian Weimer  <fweimer@redhat.com>
9350
9351         [BZ #20629]
9352         resolv: Remove RES_USEBSTRING and its implementation.
9353         * resolv/resolv.h (RES_USEBSTRING): Remove.
9354         * resolv/ns_name.c (NS_TYPE_ELT, DNS_LABELTYPE_BITSTRING)
9355         (digitvalue, encode_bitstring, decode_bitstring): Remove.
9356         (ns_name_ntop, ns_name_pton, ns_name_unpack, ns_name_skip)
9357         (labellen): Remove extended label types support.
9358         * resolv/res_debug.c (p_option): Remove RES_USEBSTRING handling.
9359         * resolv/res_init.c (res_setoptions): Likewise.
9360         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Likewise.
9361
9362 2016-10-07  Florian Weimer  <fweimer@redhat.com>
9363
9364         resolv: Remove RES_NOIP6DOTINT and its implementation.
9365         * resolv/resolv.h (RES_DEFAULT): Remove RES_NOIP6DOTINT.
9366         (RES_NOIP6DOTINT): Remove.
9367         * resolv/gethnamaddr.c (gethostbyaddr): Remove RES_NOIP6DOTINT
9368         handling.
9369         * resolv/res_debug.c (p_option): Likewise.
9370         * resolv/res_init.c (res_setoptions): Likewise.
9371         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Likewise.
9372
9373 2016-10-07  Florian Weimer  <fweimer@redhat.com>
9374
9375         resolv: Deprecate unimplemented flags.
9376         * misc/sys/cdefs.h (__glibc_macro_warning1)
9377         (__glibc_macro_warning): Define.
9378         * resolv/resolv.h (RES_AAONLY, RES_PRIMARY, RES_NOCHECKNAME)
9379         (RES_KEEPTSIG): Mark as deprecated.
9380         * resolv/res_debug.c (p_option): Remove RES_AAONLY, RES_PRIMARY,
9381         RES_NOCHECKNAME, RES_KEEPTSIG.
9382         * resolv/res_init.c (res_setoptions): Remove RES_NOCHECKNAME handling.
9383
9384 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
9385
9386         * nptl/pt-longjmp.c (DEFINE_LONGJMP): Use libc_ifunc macro.
9387         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c (longjmp, siglongjmp):
9388         Use strong_alias to create symbols for glibc verison 2.19.
9389
9390 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
9391
9392         * nptl/pt-vfork.c (DEFINE_VFORK): Use libc_ifunc macro.
9393
9394 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
9395
9396         * nptl/pt-system.c (system_ifunc): Use libc_ifunc macro.
9397
9398 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
9399
9400         * rt/clock-compat.c (COMPAT_REDIRECT): Use libc_ifunc macro.
9401
9402 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
9403
9404         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
9405         Use libc_ifunc_hidden and libc_hidden_def macro. Redirect ifunced function
9406         in header for using it as type for ifunc function because __GI_* symbols
9407         for ppc32 do not target the ifunc symbols.
9408         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
9409
9410 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
9411
9412         * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday):
9413         Use libc_ifunc_hidden macro. Use libc_hidden_def instead of
9414         libc_ifunc_hidden_def.
9415         * sysdeps/unix/sysv/linux/x86/time.c (time): Likewise.
9416         * sysdeps/unix/sysv/linux/i386/gettimeofday.c (__gettimeofday):
9417         Redirect ifunced function in header for using it as type of ifunc'ed
9418         function. Redefine libc_hidden_def to use fallback non ifunc'ed
9419         function for __GI_* symbol.
9420         * sysdeps/unix/sysv/linux/i386/time.c (time): Likewise.
9421         * include/libc-symbols.h
9422         (libc_ifunc_hidden_def, libc_ifunc_hidden_def1): Delete macro.
9423
9424 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
9425
9426         [BZ #20478]
9427         * sysdeps/s390/multiarch/ifunc-resolve.h
9428         (s390_vx_libc_ifunc2, s390_libc_ifunc): Use __ifunc from libc-symbols.h
9429         to create ifunc symbols.
9430         (s390_vx_libc_ifunc_init, s390_vx_libc_ifunc_redirected
9431         , s390_vx_libc_ifunc2_redirected, s390_libc_ifunc_init): New define.
9432         * sysdeps/s390/multiarch/memchr.c: Redirect ifunced function in header
9433         for using it as type for ifunc function.
9434         * sysdeps/s390/multiarch/mempcpy.c: Likewise.
9435         * sysdeps/s390/multiarch/rawmemchr.c: Likewise.
9436         * sysdeps/s390/multiarch/stpcpy.c: Likewise.
9437         * sysdeps/s390/multiarch/stpncpy.c: Likewise.
9438         * sysdeps/s390/multiarch/strcat.c: Likewise.
9439         * sysdeps/s390/multiarch/strchr.c: Likewise.
9440         * sysdeps/s390/multiarch/strcmp.c: Likewise.
9441         * sysdeps/s390/multiarch/strcpy.c: Likewise.
9442         * sysdeps/s390/multiarch/strcspn.c: Likewise.
9443         * sysdeps/s390/multiarch/strlen.c: Likewise.
9444         * sysdeps/s390/multiarch/strncmp.c: Likewise.
9445         * sysdeps/s390/multiarch/strncpy.c: Likewise.
9446         * sysdeps/s390/multiarch/strnlen.c: Likewise.
9447         * sysdeps/s390/multiarch/strpbrk.c: Likewise.
9448         * sysdeps/s390/multiarch/strrchr.c: Likewise.
9449         * sysdeps/s390/multiarch/strspn.c: Likewise.
9450         * sysdeps/s390/multiarch/wcschr.c: Likewise.
9451         * sysdeps/s390/multiarch/wcscmp.c: Likewise.
9452         * sysdeps/s390/multiarch/wcspbrk.c: Likewise.
9453         * sysdeps/s390/multiarch/wcsspn.c: Likewise.
9454         * sysdeps/s390/multiarch/wmemchr.c: Likewise.
9455         * sysdeps/s390/multiarch/wmemset.c: Likewise.
9456         * sysdeps/s390/s390-32/multiarch/memcmp.c: Likewise.
9457         * sysdeps/s390/s390-32/multiarch/memcpy.c: Likewise.
9458         * sysdeps/s390/s390-32/multiarch/memset.c: Likewise.
9459         * sysdeps/s390/s390-64/multiarch/memcmp.c: Likewise.
9460         * sysdeps/s390/s390-64/multiarch/memcpy.c: Likewise.
9461         * sysdeps/s390/s390-64/multiarch/memset.c: Likewise.
9462
9463 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
9464
9465         * include/libc-symbols.h (__ifunc_resolver):
9466         New macro is used by __ifunc* macros.
9467         (__ifunc): New macro uses gcc attribute ifunc or inline assembly
9468         depending on HAVE_GCC_IFUNC.
9469         (libc_ifunc, libm_ifunc): Use __ifunc as base macro.
9470         (libc_ifunc_redirected, libc_ifunc_hidden, libm_ifunc_init): New macro.
9471         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c:
9472         Redirect ifunced function in header for using as type for ifunc function.
9473         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: Likewise.
9474         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: Likewise.
9475         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: Likewise.
9476         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: Likewise.
9477         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: Likewise.
9478         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: Likewise.
9479         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: Likewise.
9480         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: Likewise.
9481         * sysdeps/powerpc/powerpc32/power4/multiarch/memset.c: Likewise.
9482         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: Likewise.
9483         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr.c: Likewise.
9484         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: Likewise.
9485         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: Likewise.
9486         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: Likewise.
9487         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
9488         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: Likewise.
9489         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
9490         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: Likewise.
9491         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
9492         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: Likewise.
9493         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: Likewise.
9494         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: Likewise.
9495         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: Likewise.
9496         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: Likewise.
9497         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: Likewise.
9498         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: Likewise.
9499         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c: Likewise.
9500         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Likewise.
9501         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: Likewise.
9502         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: Likewise.
9503         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: Likewise.
9504         * sysdeps/powerpc/powerpc64/multiarch/strstr.c: Likewise.
9505         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
9506         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c:
9507         Add libc_hidden_def() and use libc_ifunc_hidden() macro
9508         instead of libc_ifunc() macro.
9509         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: Likewise.
9510         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Likewise.
9511
9512 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
9513
9514         * config.h.in (HAVE_GCC_IFUNC): New undef.
9515         * configure.ac: Add check if gcc supports attribute ifunc feature.
9516         * configure: Regenerated.
9517         * manual/install.texi: Add recommendation for gcc with
9518         indirect-function support.
9519         * INSTALL: Regenerated.
9520
9521 2016-10-06  Joseph Myers  <joseph@codesourcery.com>
9522
9523         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (iseqsig): New
9524         macro.
9525         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
9526         (__iseqsig): New declaration.
9527         * math/s_iseqsig_template.c: New file.
9528         * math/Versions (__iseqsigf): New libm symbol at version
9529         GLIBC_2.25.
9530         (__iseqsig): Likewise.
9531         (__iseqsigl): Likewise.
9532         * math/libm-test.inc (iseqsig_test_data): New array.
9533         (iseqsig_test): New function.
9534         (main): Call iseqsig_test.
9535         * math/Makefile (gen-libm-calls): Add s_iseqsigF.
9536         * manual/arith.texi (FP Comparison Functions): Document iseqsig.
9537         * manual/libm-err-tab.pl: Update comment on interfaces without
9538         ulps tabulated.
9539         * sysdeps/generic/fix-fp-int-compare-invalid.h: New file.
9540         * sysdeps/powerpc/fpu/fix-fp-int-compare-invalid.h: Likewise.
9541         * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h: Likewise.
9542         * sysdeps/nacl/libm.abilist: Update.
9543         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
9544         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
9545         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
9546         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
9547         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
9548         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
9549         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
9550         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
9551         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
9552         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
9553         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
9554         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
9555         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
9556         Likewise.
9557         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
9558         Likewise.
9559         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
9560         Likewise.
9561         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
9562         Likewise.
9563         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
9564         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
9565         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
9566         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
9567         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
9568         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
9569         Likewise.
9570         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
9571         Likewise.
9572         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
9573         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
9574         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
9575
9576 2016-10-06  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9577
9578         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute, do_sincos_1,
9579         do_sincos_2, sloww, sloww1): Update comments.
9580
9581         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Adjust calls to
9582         do_sincos_1 and do_sincos_2 to pass a boolean shift_quadrant.
9583
9584         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Make
9585         K boolean and rename it.
9586         (__sin): Adjust.
9587         (__cos): Adjust.
9588
9589 2016-10-06  Rical Jasan  <ricaljasan@pacific.net>
9590             Siddhesh Poyarekar  <siddhesh@sourceware.org>
9591
9592         * manual/nss.texi: Fix typos in the manual.
9593
9594 2016-10-06  Rical Jasan  <ricaljasan@pacific.net>
9595
9596         * manual/contrib.texi: Fix typos in the manual.
9597
9598         * manual/maint.texi: Fix typos in the manual.
9599
9600         * manual/install.texi: Fix typos in the manual.
9601         * INSTALL: Regenerated.
9602
9603         * manual/lang.texi: Fix typos in the manual.
9604
9605         * manual/probes.texi: Fix typos in the manual.
9606
9607         * manual/threads.texi: Fix typos in the manual.
9608
9609         * manual/debug.texi: Fix typos in the manual.
9610
9611         * manual/crypt.texi: Fix typos in the manual.
9612
9613         * manual/conf.texi: Fix typos in the manual.
9614
9615         * manual/sysinfo.texi: Fix typos in the manual.
9616
9617         * manual/users.texi: Fix typos in the manual.
9618
9619         * manual/job.texi: Fix typos in the manual.
9620
9621         * manual/process.texi: Fix typos in the manual.
9622
9623         * manual/argp.texi: Fix typos in the manual.
9624         * manual/getopt.texi: Likewise.
9625         * manual/startup.texi: Likewise.
9626
9627         * manual/signal.texi: Fix typos in the manual.
9628
9629         * manual/setjmp.texi: Fix typos in the manual.
9630
9631         * manual/resource.texi: Fix typos in the manual.
9632
9633         * manual/time.texi: Fix typos in the manual.
9634
9635         * manual/arith.texi: Fix typos in the manual.
9636
9637         * manual/math.texi: Fix typos in the manual.
9638
9639         * manual/syslog.texi: Fix typos in the manual.
9640
9641         * manual/terminal.texi: Fix typos in the manual.
9642
9643         * manual/socket.texi: Fix typos in the manual.
9644
9645         * manual/filesys.texi: Fix typos in the manual.
9646
9647         * manual/llio.texi: Fix typos in the manual.
9648
9649         * manual/stdio.text: Fix typos in the manual.
9650
9651 2016-10-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9652
9653         * sysdeps/ieee754/dbl-64/s_sin.c (do_sincos_1): Check N
9654         instead of K1.
9655
9656         * sysdeps/ieee754/dbl-64/s_sin.c (do_sincos_1): Rename K to
9657         SHIFT_QUADRANT and make it bool.
9658         (do_sincos_2): Likewise.
9659         (sloww): Likewise.
9660         (sloww1): Likewise.
9661         (__sin): Adjust calls to do_sincos_1 and do_sincos_2.
9662         (__cos): Likewise.
9663
9664 2016-10-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9665
9666         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
9667
9668 2016-10-04  Joseph Myers  <joseph@codesourcery.com>
9669
9670         * include/limits.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (LONG_WIDTH):
9671         Define to __WORDSIZE, not conditional on [LONG_MAX ==
9672         0x7fffffffL].
9673         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ULONG_WIDTH): Likewise.
9674
9675 2016-10-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9676
9677         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Replace
9678         inline by __inline__.
9679         (__ppc_yield, __ppc_mdoio, __ppc_mdoom, __ppc_set_ppr_med): Likewise.
9680         (__ppc_set_ppr_med_low, __ppc_set_ppr_low): Likewise.
9681         (__ppc_set_ppr_very_low, __ppc_set_ppr_med_high): Likewise.
9682         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Require
9683         sigset_t from signal.h.
9684         * sysdeps/unix/sysv/linux/powerpc/sys/user.h: Include stddef.h,
9685         which is already required.
9686
9687 2016-10-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
9688
9689         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
9690
9691 2016-10-03  Joseph Myers  <joseph@codesourcery.com>
9692
9693         * sysdeps/gnu/netinet/tcp.h (TCP_REPAIR_WINDOW): New macro.
9694         (struct tcp_repair_window): New type.
9695
9696 2016-10-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9697
9698         * libio/tst-memstream3.c: Include string.h.
9699
9700 2016-09-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9701
9702         [BZ #18241]
9703         [BZ #20181]
9704         * libio/Makefile (test): Add tst-memstream3 and tst-wmemstream3.
9705         * libio/memstream.c (_IO_mem_sync): Only append a null byte if
9706         write position is at the end the buffer.
9707         * libio/wmemstream.c (_IO_wmem_sync): Likewise.
9708         * libio/strops.c (_IO_str_switch_to_get_mode): New function.
9709         (_IO_str_seekoff): Set correct offset from negative displacement and
9710         set EINVAL for invalid ones.
9711         * libio/wstrops.c (enlarge_userbuf): Use correct function to calculate
9712         buffer length.
9713         (_IO_wstr_switch_to_get_mode): New function.
9714         (_IO_wstr_seekoff): Set correct offset from negative displacement and
9715         set EINVAL for invalid ones.
9716         * libio/tst-memstream3.c: New file.
9717         * libio/tst-wmemstream3.c: Likewise.
9718         * manual/examples/memstrm.c: Remove warning when priting size_t.
9719
9720 2016-09-30  Joseph Myers  <joseph@codesourcery.com>
9721
9722         * sysdeps/ieee754/dbl-64/dla.h [__FP_FAST_FMA] (DLA_FMS): Define
9723         macro to use __builtin_fma.
9724         * sysdeps/x86_64/fpu/dla.h: Remove file.
9725
9726         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h
9727         [__NO_LONG_DOUBLE_MATH] (__iscanonicall): Do not declare.
9728         [__NO_LONG_DOUBLE_MATH] (iscanonical): Define to evaluate to 1.
9729
9730 2016-09-30  Carlos O'Donell  <carlos@redhat.com>
9731
9732         [BZ #20292]
9733         * elf/Makefile (routines): Add dl-addr-obj.
9734         [ifeq (yesyes,$(have-fpie)$(build-shared))] (tests): Add
9735         tst-_dl_addr_inside_object.
9736         [ifeq (yesyes,$(have-fpie)$(build-shared))] (tests-pie): Likewise.
9737         [ifeq (yesyes,$(have-fpie)$(build-shared))]
9738         ($(objpfx)tst-_dl_addr_inside_object): Add $(objpfx)dl-addr-obj.os.
9739         [ifeq (yesyes,$(have-fpie)$(build-shared))]
9740         (CFLAGS-tst-_dl_addr_inside_object.c): Add $(PIE-ccflag).
9741         * elf/dl-addr.c: Remove _dl_addr_inside_object function.
9742         * elf/dl-open.c: Likewise.
9743         * elf/dl-addr-obj.c: New file.
9744         * elf/tst-_dl_addr_inside_object.c: New file.
9745
9746 2016-09-30  Joseph Myers  <joseph@codesourcery.com>
9747
9748         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Include
9749         <bits/iscanonical.h>.
9750         * bits/iscanonical.h: New file.
9751         * math/s_iscanonicall.c: Likewise.
9752         * math/Versions (__iscanonicall): New libm symbol at version
9753         GLIBC_2.25.
9754         * math/libm-test.inc (iscanonical_test_data): New array.
9755         (iscanonical_test): New function.
9756         (main): Call iscanonical_test.
9757         * math/Makefile (headers): Add bits/iscanonical.h.
9758         (type-ldouble-routines): Add s_iscanonicall.
9759         * manual/arith.texi (Floating Point Classes): Document
9760         iscanonical.
9761         * manual/libm-err-tab.pl: Update comment on interfaces without
9762         ulps tabulated.
9763         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h: New file.
9764         * sysdeps/ieee754/ldbl-128ibm/s_iscanonicall.c: Likewise.
9765         * sysdeps/ieee754/ldbl-128ibm/test-iscanonical-ldbl-128ibm.c:
9766         Likewise.
9767         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Add
9768         test-iscanonical-ldbl-128ibm.
9769         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h: New file.
9770         * sysdeps/ieee754/ldbl-96/s_iscanonicall.c: Likewise.
9771         * sysdeps/ieee754/ldbl-96/test-iscanonical-ldbl-96.c: Likewise.
9772         * sysdeps/ieee754/ldbl-96/Makefile: Likewise.
9773         * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
9774         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
9775         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
9776         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
9777         Likewise.
9778         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
9779         Likewise.
9780         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
9781         Likewise.
9782         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
9783         Likewise.
9784         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
9785         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
9786
9787 2016-09-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9788
9789         * string/bits/string3.h: Remove C++ style comments.
9790
9791 2016-09-29  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9792
9793         * sysdeps/ieee754/dbl-64/s_sin.c (do_sincos_1): Use copysign
9794         instead of ternary condition.
9795         (do_sincos_2): Likewise.
9796         (__sin): Likewise.
9797         (__cos): Likewise.
9798         (slow): Likewise.
9799         (sloww): Likewise.
9800         (sloww1): Likewise.
9801         (bsloww): Likewise.
9802         (bsloww1): Likewise.
9803
9804         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos_slow): use copysign
9805         instead of ternary condition.
9806         (do_sin_slow): Likewise.
9807         (do_sincos_1): Likewise.
9808         (do_sincos_2): Likewise.
9809         (__cos): Likewise.
9810         (sloww): Likewise.
9811         (sloww1): Likewise.
9812         (sloww2): Likewise.
9813         (bsloww): Likewise.
9814         (bsloww1): Likewise.
9815         (bsloww2): Likewise.
9816
9817         * sysdeps/ieee754/dbl-64/s_sin.c (slow1): Consolidate sign
9818         check from here...
9819         (slow2): ... and here...
9820         (__sin): ... to here.
9821
9822 2016-09-28  Joseph Myers  <joseph@codesourcery.com>
9823
9824         * math/math.h
9825         [__GLIBC_USE (IEC_60559_BFP_EXT) && !__SUPPORT_SNAN__] (iszero):
9826         Cast argument to its own type.
9827         * math/test-iszero-excess-precision.c: New file.
9828         * math/Makefile (tests): Add test-iszero-excess-precision.
9829         (CFLAGS-test-iszero-excess-precision.c): New variable.
9830
9831 2016-09-28  Rasmus Villemoes <rv@rasmusvillemoes.dk>
9832
9833         * sysdeps/unix/sysv/linux/spawni.c (posix_spawn_args): Remove pipe
9834         field, add err field.
9835         (__spawni_child): Report error through err member instead of pipe.
9836         (__spawnix): Likewise.
9837
9838 2016-09-28  Zack Weinberg  <zackw@panix.com>
9839
9840         * scripts/check-installed-headers.sh: Generalize treatment of
9841         sys/elf.h to all target architectures.
9842
9843         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Restore accidentally-
9844         deleted typedef ucontext_t.
9845
9846 2016-09-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9847
9848         * sysdeps/unix/sysdep.h (__INTERNAL_SYSCALL0): New macro.
9849         (__INTERNAL_SYSCALL1): Likewise.
9850         (__INTERNAL_SYSCALL2): Likewise.
9851         (__INTERNAL_SYSCALL3): Likewise.
9852         (__INTERNAL_SYSCALL4): Likewise.
9853         (__INTERNAL_SYSCALL5): Likewise.
9854         (__INTERNAL_SYSCALL6): Likewise.
9855         (__INTERNAL_SYSCALL7): Likewise.
9856         (__INTERNAL_SYSCALL_NARGS_X): Likewise.
9857         (__INTERNAL_SYSCALL_NARGS): Likewise.
9858         (__INTERNAL_SYSCALL_DISP): Likewise.
9859         (INTERNAL_SYSCALL_CALL): Likewise.
9860         (__SYSCALL0): Rename to __INLINE_SYSCALL0.
9861         (__SYSCALL1): Rename to __INLINE_SYSCALL1.
9862         (__SYSCALL2): Rename to __INLINE_SYSCALL2.
9863         (__SYSCALL3): Rename to __INLINE_SYSCALL3.
9864         (__SYSCALL4): Rename to __INLINE_SYSCALL4.
9865         (__SYSCALL5): Rename to __INLINE_SYSCALL5.
9866         (__SYSCALL6): Rename to __INLINE_SYSCALL6.
9867         (__SYSCALL7): Rename to __INLINE_SYSCALL7.
9868         (__SYSCALL_NARGS_X): Rename to __INLINE_SYSCALL_NARGS_X.
9869         (__SYSCALL_NARGS): Rename to __INLINE_SYSCALL_NARGS.
9870         (__SYSCALL_DISP): Rename to __INLINE_SYSCALL_DISP.
9871         (__SYSCALL_CALL): Rename to INLINE_SYSCALL_CALL.
9872         (SYSCALL_CANCEL): Replace __SYSCALL_CALL with INLINE_SYSCALL_CALL.
9873
9874 2016-09-23  Joseph Myers  <joseph@codesourcery.com>
9875
9876         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (iszero): New
9877         macro.
9878         * math/libm-test.inc (iszero_test_data): New array.
9879         (iszero_test): New function.
9880         (main): Call iszero_test.
9881         * manual/arith.texi (Floating Point Classes): Document iszero.
9882         * manual/libm-err-tab.pl: Update comment on interfaces without
9883         ulps tabulated.
9884
9885 2016-09-23  Zack Weinberg  <zackw@panix.com>
9886
9887         * scripts/check-installed-headers.sh: New script.
9888         * Rules: In each directory that defines header files to be installed,
9889         run check-installed-headers.sh on them as a special test.
9890         * Makefile: Likewise for the headers installed at top level.
9891
9892         * include/aliases.h, include/alloca.h, include/argz.h
9893         * include/arpa/nameser.h, include/arpa/nameser_compat.h
9894         * include/elf.h, include/envz.h, include/err.h
9895         * include/execinfo.h, include/fpu_control.h, include/getopt.h
9896         * include/gshadow.h, include/ifaddrs.h, include/libintl.h
9897         * include/link.h, include/malloc.h, include/mcheck.h
9898         * include/mntent.h, include/netinet/ether.h
9899         * include/nss.h, include/obstack.h, include/printf.h
9900         * include/pty.h, include/resolv.h, include/rpc/auth.h
9901         * include/rpc/auth_des.h, include/rpc/auth_unix.h
9902         * include/rpc/clnt.h, include/rpc/des_crypt.h
9903         * include/rpc/key_prot.h, include/rpc/netdb.h
9904         * include/rpc/pmap_clnt.h, include/rpc/pmap_prot.h
9905         * include/rpc/pmap_rmt.h, include/rpc/rpc.h
9906         * include/rpc/rpc_msg.h, include/rpc/svc.h
9907         * include/rpc/svc_auth.h, include/rpc/xdr.h
9908         * include/rpcsvc/nis_callback.h, include/rpcsvc/nislib.h
9909         * include/rpcsvc/yp.h, include/rpcsvc/ypclnt.h
9910         * include/rpcsvc/ypupd.h, include/shadow.h
9911         * include/stdio_ext.h, include/sys/epoll.h
9912         * include/sys/file.h, include/sys/gmon.h, include/sys/ioctl.h
9913         * include/sys/prctl.h, include/sys/profil.h
9914         * include/sys/statfs.h, include/sys/sysctl.h
9915         * include/sys/sysinfo.h, include/ttyent.h, include/utmp.h
9916         * sysdeps/arm/nacl/include/bits/setjmp.h
9917         * sysdeps/mips/include/sys/asm.h
9918         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h
9919         * sysdeps/unix/sysv/linux/include/sys/timex.h
9920         * sysdeps/x86/fpu/include/bits/fenv.h:
9921         Add #ifndef _ISOMAC guard around internal declarations.
9922         Add multiple-inclusion guard if not already present.
9923
9924 2016-09-23  Zack Weinberg  <zackw@panix.com>
9925
9926         * sysdeps/generic/sys/ucontext.h
9927         * sysdeps/arm/sys/ucontext.h
9928         * sysdeps/i386/sys/ucontext.h
9929         * sysdeps/m68k/sys/ucontext.h
9930         * sysdeps/mips/sys/ucontext.h
9931         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h
9932         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h
9933         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h
9934         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h
9935         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h
9936         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h
9937         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h
9938         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h
9939         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h
9940         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h
9941         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h
9942         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h
9943         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h
9944         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h:
9945         Include both bits/sigcontext.h and bits/sigstack.h.
9946         Fix grammar error in comment, if present.
9947
9948         * bits/sigstack.h
9949         * sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h
9950         * sysdeps/unix/sysv/linux/alpha/bits/sigstack.h
9951         * sysdeps/unix/sysv/linux/bits/sigstack.h
9952         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h
9953         * sysdeps/unix/sysv/linux/mips/bits/sigstack.h
9954         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h
9955         * sysdeps/unix/sysv/linux/sparc/bits/sigstack.h
9956         * bits/sigcontext.h
9957         * sysdeps/mach/hurd/i386/bits/sigcontext.h
9958         * sysdeps/unix/sysv/linux/bits/sigcontext.h
9959         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h
9960         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h:
9961         Add multiple inclusion guard.  Permit inclusion by sys/ucontext.h
9962         as well as signal.h, if this was not already allowed.  Request
9963         definition of size_t if necessary.  Minimize semantically-null
9964         differences across files.
9965
9966 2016-09-23  Zack Weinberg  <zackw@panix.com>
9967
9968         * time/time.h, bits/time.h, sysdeps/unix/sysv/linux/bits/time.h:
9969         Remove all logic conditional on __need macros.  Move all the
9970         conditionally defined types to their own headers...
9971         * time/bits/types/clock_t.h: Define clock_t here.
9972         * time/bits/types/clockid_t.h: Define clockid_t here.
9973         * time/bits/types/struct_itimerspec.h: Define struct itimerspec here.
9974         * time/bits/types/struct_timespec.h: Define struct timespec here.
9975         * time/bits/types/struct_timeval.h: Define struct timeval here.
9976         * time/bits/types/struct_tm.h: Define struct tm here.
9977         * time/bits/types/time_t.h: Define time_t here.
9978         * time/bits/types/timer_t.h: Define timer_t here.
9979         * time/Makefile: Install the new headers.
9980
9981         * bits/resource.h, io/fcntl.h, io/sys/poll.h, io/sys/stat.h
9982         * io/utime.h, misc/sys/select.h, posix/sched.h, posix/sys/times.h
9983         * posix/sys/types.h, resolv/netdb.h, rt/aio.h, rt/mqueue.h
9984         * signal/signal.h, pthread/semaphore.h, sysdeps/nptl/pthread.h
9985         * sysdeps/unix/sysv/linux/alpha/bits/resource.h
9986         * sysdeps/unix/sysv/linux/alpha/sys/acct.h
9987         * sysdeps/unix/sysv/linux/bits/resource.h
9988         * sysdeps/unix/sysv/linux/bits/timex.h
9989         * sysdeps/unix/sysv/linux/mips/bits/resource.h
9990         * sysdeps/unix/sysv/linux/net/ppp_defs.h
9991         * sysdeps/unix/sysv/linux/sparc/bits/resource.h
9992         * sysdeps/unix/sysv/linux/sys/acct.h
9993         * sysdeps/unix/sysv/linux/sys/timerfd.h
9994         * sysvipc/sys/msg.h, sysvipc/sys/sem.h, sysvipc/sys/shm.h
9995         * time/sys/time.h, time/sys/timeb.h
9996         Use the new bits/types headers.
9997
9998         * include/time.h: Remove __need logic.
9999         * include/bits/time.h
10000         * include/bits/types/clock_t.h, include/bits/types/clockid_t.h
10001         * include/bits/types/time_t.h, include/bits/types/timer_t.h
10002         * include/bits/types/struct_itimerspec.h
10003         * include/bits/types/struct_timespec.h
10004         * include/bits/types/struct_timeval.h
10005         * include/bits/types/struct_tm.h:
10006         New wrapper headers.
10007
10008 2016-09-23  Zack Weinberg  <zackw@panix.com>
10009
10010         * sysdeps/mach/hurd/net/if_ppp.h
10011         * sysdeps/unix/sysv/linux/net/if_ppp.h:
10012         Only define struct ifpppstatsreq and struct ifpppcstatsreq
10013         if __USE_MISC is defined, to ensure struct ifreq is declared.
10014
10015         * inet/netinet/ether.h: Condition all function prototypes
10016         on __USE_MISC, to ensure struct ether_addr is declared.
10017
10018         * socket/bits/types/struct_osockaddr.h: New header.
10019         * include/bits/types/struct_osockaddr.h: New wrapper.
10020         * socket/Makefile: Install the new header.
10021         * socket/sys/socket.h, inet/protocols/talkd.h:
10022         Refer to bits/types/struct_osockaddr.h for the definition of
10023         struct osockaddr.
10024
10025 2016-09-23  Zack Weinberg  <zackw@panix.com>
10026
10027         * bits/in.h, gmon/sys/gmon.h, inet/netinet/igmp.h
10028         * inet/protocols/routed.h, inet/protocols/talkd.h
10029         * inet/protocols/timed.h, io/fts.h, nptl_db/thread_db.h
10030         * resolv/arpa/nameser.h, resolv/resolv.h, sunrpc/rpc/rpc_des.h
10031         * sysdeps/generic/netinet/if_ether.h
10032         * sysdeps/generic/netinet/in_systm.h
10033         * sysdeps/generic/netinet/ip.h, sysdeps/generic/netinet/tcp.h
10034         * sysdeps/gnu/netinet/ip_icmp.h, sysdeps/gnu/netinet/tcp.h
10035         * sysdeps/gnu/netinet/udp.h, sysdeps/mach/hurd/net/ethernet.h
10036         * sysdeps/mach/hurd/net/if_arp.h
10037         * sysdeps/mach/hurd/net/if_ppp.h
10038         * sysdeps/mach/hurd/net/route.h, sysdeps/mach/sys/reboot.h
10039         * sysdeps/unix/sysv/linux/bits/in.h
10040         * sysdeps/unix/sysv/linux/net/ethernet.h
10041         * sysdeps/unix/sysv/linux/net/if_arp.h
10042         * sysdeps/unix/sysv/linux/net/if_ppp.h
10043         * sysdeps/unix/sysv/linux/net/if_shaper.h
10044         * sysdeps/unix/sysv/linux/net/route.h
10045         * sysdeps/unix/sysv/linux/netinet/if_ether.h
10046         * sysdeps/unix/sysv/linux/netinet/if_fddi.h
10047         * sysdeps/unix/sysv/linux/netinet/if_tr.h
10048         * sysdeps/unix/sysv/linux/netipx/ipx.h
10049         * sysdeps/unix/sysv/linux/sys/acct.h
10050         * include/arpa/nameser.h, include/resolv.h:
10051         Change all uses of u_char to unsigned char,
10052         u_short and ushort to unsigned short, u_int and uint to unsigned int,
10053         u_long and ulong to unsigned long, u_int8_t to uint8_t,
10054         u_int16_t to uint16_t, u_int32_t to uint32_t, quad_t to int64_t,
10055         and u_int64_t and u_quad_t to uint64_t.
10056
10057         * mach/sys/reboot.h: Remove two casts of integer literals
10058         to the types they already have.
10059
10060         * bits/in.h: Correct error in description of IP_MULTICAST_LOOP.
10061         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
10062         * sysdeps/unix/sysv/linux/netinet/if_ether.h: Change a comment
10063         from referring to 'unsigned char' to 'uint8_t' for consistency with
10064         the macro definition below.
10065
10066         * gmon/sys/gmon.h, inet/netinet/igmp.h, inet/protocols/talkd.h
10067         * io/fts.h, resolv/arpa/nameser.h, resolv/resolv.h
10068         * sunrpc/rpc/rpc_des.h, sysdeps/generic/netinet/ip.h
10069         * sysdeps/gnu/netinet/tcp.h, sysdeps/gnu/netinet/udp.h
10070         * sysdeps/mach/hurd/net/if_ppp.h, sysdeps/unix/sysv/linux/net/if_ppp.h
10071         * sysdeps/unix/sysv/linux/sys/acct.h
10072         * include/arpa/nameser.h, include/resolv.h:
10073         Fix indentation disrupted by mechanical edits.
10074
10075         * inet/protocols/talkd.h, resolv/arpa/nameser.h
10076         * sysdeps/generic/netinet/in_systm.h
10077         * sysdeps/gnu/netinet/ip_icmp.h, sysdeps/gnu/netinet/tcp.h
10078         * sysdeps/gnu/netinet/udp.h
10079         * sysdeps/unix/sysv/linux/net/ethernet.h
10080         * sysdeps/unix/sysv/linux/net/if_arp.h
10081         * sysdeps/unix/sysv/linux/net/if_ppp.h
10082         * sysdeps/unix/sysv/linux/net/if_shaper.h
10083         * sysdeps/unix/sysv/linux/netinet/if_fddi.h
10084         * sysdeps/unix/sysv/linux/netinet/if_tr.h
10085         * sysdeps/unix/sysv/linux/netipx/ipx.h
10086         * sysdeps/unix/sysv/linux/sys/acct.h
10087         Include stdint.h for uintNN_t definitions.
10088         Don't include sys/cdefs.h, features.h, or asm/types.h directly.
10089
10090 2016-09-23  Zack Weinberg  <zackw@panix.com>
10091
10092         * rpcsvc/nislib.h: Include rpcsvc/nis.h.
10093         * sysdeps/unix/sysv/linux/netrose/rose.h:
10094         Include sys/socket.h and netax25/ax25.h.
10095
10096         * inet/netinet/icmp6.h, inet/netinet/ip6.h
10097         * resolv/arpa/nameser_compat.h:
10098         Use __BYTE_ORDER etc. instead of BYTE_ORDER etc.
10099
10100         * sysdeps/unix/sysv/linux/sys/quota.h:
10101         Use __caddr_t instead of caddr_t.
10102         * sysdeps/unix/sysv/linux/sys/timerfd.h:
10103         Use __clockid_t instead of clockid_t.
10104
10105         * sysvipc/sys/ipc.h: Remove unnecessary #warning.
10106
10107         * argp/argp.h: Check whether _LIBC is defined before expanding it.
10108         * posix/glob.h: Check whether __USE_XOPEN2K8 is defined instead of
10109         expanding it.
10110
10111         * misc/sys/cdefs.h: Tidy up conditional nest defining __flexarr.
10112         Define __glibc_c99_flexarr_available to 1 when the compiler
10113         supports C99-compatible flexible array members, 0 otherwise.
10114         * sysdeps/unix/sysv/linux/bits/socket.h
10115         * sysdeps/mach/hurd/bits/socket.h
10116         * bits/socket.h: Use __glibc_c99_flexarr_available in
10117         definitions of struct cmsghdr and CMSG_DATA.
10118
10119 2016-09-23  Florian Weimer  <fweimer@redhat.com>
10120
10121         * manual/nss.texi (NSS Modules Interface): Adjust function return
10122         type to enum nss_status.  Document errnop argument.  Clarify
10123         h_errnop semantics.  Fix cross-reference formatting.
10124         (NSS Module Function Internals): Mention that *errnop needs to be
10125         set on failure, but not to zero.
10126
10127 2016-09-23  Florian Weimer  <fweimer@redhat.com>
10128
10129         * io/tst-open-tmpfile.c (wrap_open64, wrap_openat64)
10130         (get_random_name): New functions.
10131         (check_wrapper_flags_mode): Use linkat to give the new file a name
10132         determined by get_random_name.
10133         (do_test): Add calls to test open64 and openat64.
10134
10135 2016-09-23  Florian Weimer  <fweimer@redhat.com>
10136
10137         * test-skeleton.c: Remove #include <stdarg.h>.
10138
10139 2016-09-21  Alexandre Oliva <aoliva@redhat.com>
10140
10141         [BZ #19826]
10142         * elf/dl-tls.c (_dl_allocate_tls_init): Restore DTV early
10143         initialization of static TLS entries.
10144         * elf/dl-reloc.c (_dl_nothread_init_static_tls): Likewise.
10145         * nptl/allocatestack.c (init_one_static_tls): Likewise.
10146
10147 2016-09-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10148
10149         * hurd/hurdmalloc.c (malloc_fork_prepare): Rename to
10150         _hurd_malloc_fork_prepare.
10151         (malloc_fork_parent): Rename to _hurd_malloc_fork_parent.
10152         (malloc_fork_child): Rename to _hurd_malloc_fork_child.
10153         (_hurd_fork_prepare_hook): Drop malloc_fork_prepare.
10154         (_hurd_fork_parent_hook): Drop malloc_fork_parent.
10155         (_hurd_fork_child_hook): Drop malloc_fork_child.
10156         * hurd/hurdmalloc.h (_hurd_malloc_fork_prepare,
10157         _hurd_malloc_fork_parent, _hurd_malloc_fork_child): Add declarations.
10158         * sysdeps/mach/hurd/fork.c (__fork): Call __malloc_fork_lock_parent
10159         after locking locks (notably hurd_dtable_lock). Call
10160         _hurd_malloc_fork_prepare after that. Call _hurd_malloc_fork_parent
10161         before __malloc_fork_unlock_parent and _hurd_malloc_fork_child before
10162         __malloc_fork_unlock_child.
10163         * sysdeps/mach/i386/syscall.S (syscall): Push back syscall number.
10164
10165 2016-09-21  James Greenhalgh  <james.greenhalgh@arm.com>
10166
10167         * soft-fp/extendhftf2.c: New.
10168         * soft-fp/fixhfti.c: Likewise.
10169         * soft-fp/fixunshfti.c: Likewise.
10170         * soft-fp/floattihf.c: Likewise.
10171         * soft-fp/floatuntihf.c: Likewise.
10172         * soft-fp/half.h: Likewise.
10173         * soft-fp/trunctfhf2.c: Likewise.
10174
10175 2016-09-21  Joseph Myers  <joseph@codesourcery.com>
10176
10177         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (issubnormal): New
10178         macro.
10179         * math/libm-test.inc (issubnormal_test_data): New array.
10180         (issubnormal_test): New function.
10181         * manual/arith.texi (Floating Point Classes): Document
10182         issubnormal.
10183         * manual/libm-err-tab.pl: Update comment on interfaces without
10184         ulps tabulated.
10185
10186         * sysdeps/generic/stdint.h: Define
10187         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
10188         <bits/libc-header-start.h> instead of including <features.h>.
10189         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT8_WIDTH): New macro.
10190         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT8_WIDTH): Likewise.
10191         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT16_WIDTH): Likewise.
10192         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT16_WIDTH): Likewise.
10193         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT32_WIDTH): Likewise.
10194         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT32_WIDTH): Likewise.
10195         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT64_WIDTH): Likewise.
10196         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT64_WIDTH): Likewise.
10197         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST8_WIDTH): Likewise.
10198         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST8_WIDTH): Likewise.
10199         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST16_WIDTH): Likewise.
10200         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST16_WIDTH): Likewise.
10201         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST32_WIDTH): Likewise.
10202         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST32_WIDTH): Likewise.
10203         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST64_WIDTH): Likewise.
10204         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST64_WIDTH): Likewise.
10205         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST8_WIDTH): Likewise.
10206         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST8_WIDTH): Likewise.
10207         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST16_WIDTH): Likewise.
10208         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST16_WIDTH): Likewise.
10209         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST32_WIDTH): Likewise.
10210         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST32_WIDTH): Likewise.
10211         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST64_WIDTH): Likewise.
10212         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST64_WIDTH): Likewise.
10213         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INTPTR_WIDTH): Likewise.
10214         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINTPTR_WIDTH): Likewise.
10215         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INTMAX_WIDTH): Likewise.
10216         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINTMAX_WIDTH): Likewise.
10217         [__GLIBC_USE (IEC_60559_BFP_EXT)] (PTRDIFF_WIDTH): Likewise.
10218         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SIG_ATOMIC_WIDTH): Likewise.
10219         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SIZE_WIDTH): Likewise.
10220         [__GLIBC_USE (IEC_60559_BFP_EXT)] (WCHAR_WIDTH): Likewise.
10221         [__GLIBC_USE (IEC_60559_BFP_EXT)] (WINT_WIDTH): Likewise.
10222         * manual/arith.texi (Integers): Document these macros for types
10223         specified by width properties.
10224         * manual/lang.texi (Width of Type): Document these macros for
10225         other standard typedefs.
10226         * stdlib/tst-width-stdint.c: New file.
10227         * stdlib/Makefile (tests): Add tst-width-stdint.
10228
10229 2016-09-21  Florian Weimer  <fweimer@redhat.com>
10230
10231         [BZ #20016]
10232         * resolv/res_send.c (__libc_res_nsend): Remove USE_HOOK code.
10233         * resolv/res_data.c (res_send_setqhook, res_send_setrhook):
10234         Move ...
10235         * resolv/compat-hooks.c (res_send_setqhook, res_send_setrhook):
10236         ... here, as compatibility symbols in a new file.
10237         * resolv/Makefile (libresolv-routines): Add compat-hooks.
10238         * resolv/res_init.c (__res_vinit): Adjust member names.
10239         * include/resolv.h (res_send_setqhook, res_send_setrhook): Remove.
10240         * resolv/resolv.h (res_sendhookact, res_send_qhook)
10241         (res_send_rhook): Remove.
10242         (struct __res_state): Rename qhook, rhook members.
10243
10244 2016-09-21  Florian Weimer  <fweimer@redhat.com>
10245
10246         malloc: Use __libc_lock wrappers.
10247         * malloc/arena.c (list_lock, free_list_lock): Define using
10248         __libc_lock_define_initialized.
10249         (arena_lock): Adjust formatting.
10250         * malloc/malloc.c (struct malloc_state): Define mutex using
10251         __libc_lock_define.
10252         * sysdeps/generic/malloc-machine.h (mutex_t, mutex_init)
10253         (mutex_lock, mutex_trylock, mutex_unlock): Remove.
10254         * sysdeps/mach/hurd/malloc-machine.h (mutex_t, mutex_lock)
10255         (mutex_unlock, mutex_trylock): Remove.
10256         (__pthread_initialize): Remove unused macro.
10257         * sysdeps/nptl/malloc-machine.h (mutex_t, mutex_lock)
10258         (mutex_unlock, mutex_trylock): Remove.
10259
10260 2016-09-21  Florian Weimer  <fweimer@redhat.com>
10261
10262         [BZ #20592]
10263         Remove RR type classification macros.
10264         * resolv/arpa/nameser.h (ns_t_qt_p, ns_t_mrr_p, ns_t_rr_p)
10265         (ns_t_udp_p, ns_t_xfr_p): Remove.
10266
10267 2016-09-21  Florian Weimer  <fweimer@redhat.com>
10268
10269         Remove misleading version information.
10270         * resolv/arpa/nameser.h (__NAMESER): Remove.
10271         * resolv/arpa/nameser_compat.h (__BIND): Remove.
10272
10273 2016-09-21  Florian Weimer  <fweimer@redhat.com>
10274
10275         Remove the always-defined BIND_4_COMPAT macro.
10276         * resolv/arpa/nameser.h: Unconditionally include
10277         <arpa/nameser_compat.h>.
10278         (BIND_4_COMPAT): Remove.
10279         * resolv/res_comp.c: Do not check BIND_4_COMPAT.
10280
10281 2016-09-21  Florian Weimer  <fweimer@redhat.com>
10282
10283         [BZ #20591]
10284         Remove obsolete DNSSEC support.
10285         * resolv/arpa/nameser.h (ns_key_types, NS_KEY_*, NS_ALG_*)
10286         (NS_MD5_RSA_*, NS_DSA_*, NS_NXT_*, ns_sign, ns_sign2, ns_sign_tcp)
10287         (ns_sign_tcp2, ns_sign_tcp_init, ns_find_tsig, ns_verify)
10288         (ns_verify_tcp, ns_verify_tcp_init): Remove.
10289         (ns_cert_types): Add comment.
10290         * resolv/ns_print.c (ns_sprintrrf): Do not handle DNSSEC records
10291         separately.
10292         (KEY_RSA, KEY_HMAC_MD5, dst_s_id_calc, dst_s_get_int16)
10293         (dst_s_dns_key_id): Remove.
10294         * resolv/res_debug.c (__p_key_syms, __p_cert_syms): Remove unused
10295         variables.
10296
10297 2016-09-21  Florian Weimer  <fweimer@redhat.com>
10298
10299         [BZ #20524]
10300         * manual/string.texi (String/Array Comparison): Clarify the
10301         strverscmp behavior.
10302
10303 2016-09-21  Florian Weimer  <fweimer@redhat.com>
10304
10305         * test-skeleton.c (xasprintf): Add function.
10306         * io/tst-open-tmpfile.c: New test.
10307         * io/Makefile (tests): Add it.
10308
10309 2016-09-21  Florian Weimer  <fweimer@redhat.com>
10310
10311         Avoid running $(CXX) during build to obtain header file paths.
10312         * configure.ac (CXX_SYSINCLUDES, CXX_CMATH_HEADER): Set.
10313         * config.make.in (c++-cstdlib-header, c++-cmath-header): Define.
10314         * Makerules (cstdlib, cmath): Remove variables.  Use
10315         $(c++-cstdlib-header), $(c++-cmath-header) instead.
10316         * configure: Regenerate.
10317
10318 2016-09-21  Florian Weimer  <fweimer@redhat.com>
10319
10320         * Makeconfig (all-object-suffixes): Include .op only if
10321         $(build-profile).
10322
10323 2016-09-21  Florian Weimer  <fweimer@redhat.com>
10324
10325         * elf/sln.c: Remove HAVE_CONFIG_H, S_ISDIR, S_ISLNK preprocessor
10326         conditionals.  Do not define PATH_MAX.
10327
10328 2016-09-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10329
10330         * posix/Makefile (tests): Add tst-spawn3.
10331         * posix/tst-spawn3.c: New file.
10332         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Close file descriptor
10333         if it is already opened for open action.
10334
10335         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Correctly block and unblock
10336         all signals when executing the clone vfork child.
10337         (SIGALL_SET): Remove macro.
10338
10339         * nptl/Makefile (tests): Add tst-exec5.
10340         * nptl/tst-exec5.c: New file.
10341         * sysdeps/unix/sysv/linux/spawni.c (__spawni): Correctly enable and disable
10342         asynchronous cancellation.
10343
10344 2016-09-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10345
10346         * hurd/exc2signal.c: #include <hurd/signal.h>
10347         (_hurd_exception2signal): Replace 'exception', 'code', 'subcode',
10348         'sigcode', 'error' parameters with 'detail' parameter.  Fix code
10349         accordingly.
10350         * mach/mach_error.c (mach_error): Fix old-style function definition.
10351         * mach/errstring.c (mach_error_type, mach_error_string): Likewise.
10352
10353 2016-09-20  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
10354
10355         * math/Makefile (libm-calls): Remove s_nanF.
10356         (gen-libm-calls): Add s_nanF.
10357
10358         * math/s_nan.c: Refactor into ...
10359         * math/s_nan_template.c: New file.
10360
10361         * math/s_nanf.c: Removed.
10362         * math/s_nanl.c: Removed.
10363         * sysdeps/ieee754/ldbl-opt/s_nan.c: Removed.
10364         * sysdeps/ieee754/ldbl-opt/s_nanl.c: Removed.
10365
10366         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
10367         (LDOUBLE_nanl_libm_version): New macro.
10368
10369         * sysdeps/generic/math-type-macros-double.h:
10370         (M_STRTO_NAN): New macro.
10371         * sysdeps/generic/math-type-macros-float.h: Likewise.
10372         * sysdeps/generic/math-type-macros-ldouble.h: Likewise.
10373
10374         * sysdeps/generic/math-type-macros.h: Document
10375         M_STRTO_NAN.
10376
10377 2016-09-20  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
10378
10379         * math/s_nanf.c: Remove __nanf undef.
10380         * math/s_nan.c: Remove __nan undef.
10381         * math/s_nanl.c: Remove __nanl undef.
10382
10383         * sysdeps/generic/math_private.h (__nan): Remove macro
10384         override.
10385         (__nanf): Likewise.
10386         (__nanl): Likewise.
10387
10388 2016-09-20  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
10389
10390         * math/Makefile (gen-all-calls): New variable.
10391         (generated): Replace gen-libm-calls with gen-all-calls.
10392         (gen-libm-templates.stmp): Likewise.  Also, ensure
10393         the output directory exists or is created and add
10394         dependency on the Makefile.
10395         (calls): Move s_ldexpF into gen-calls.
10396         (gen-calls): New variable.
10397
10398         * math/s_ldexpf.c: Removed.
10399         * math/s_ldexpl.c: Removed.
10400         * math/s_ldexp.c: Refactored into ...
10401         * math/s_ldexp_template.c: New file.
10402
10403         * sysdeps/generic/math-type-macros-double.h: Remove
10404         redundant fall-through definition of declare_mgen_alias.
10405         (declare_mgen_alias_2): New macro.
10406
10407         * sysdeps/generc/math-type-macros.h (declare_mgen_alias_2):
10408         New macro for function aliased to two exported symbols.
10409
10410         * sysdeps/ieee754/ldbl-opt/s_ldexp.c: Update to use
10411         new template file.
10412         sysdeps/ieee754/ldbl-opt/s_ldexpl.c: Likewise.
10413
10414 2016-09-20  Florian Weimer  <fweimer@redhat.com>
10415
10416         * Makeconfig (all-object-suffixes): Remove .og.
10417         * Makerules (elide-routines.og): Remove.
10418         * sysdeps/i386/i686/Makefile (CFLAGS-.og, ASFLAGS-.og): Remove.
10419         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.og): Remove.
10420         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.op): Remove.
10421
10422 2016-09-20  Florian Weimer  <fweimer@redhat.com>
10423
10424         * scripts/sysd-rules.awk (BEGIN): Only generate rtld patterns for
10425         .os objects.
10426
10427 2016-09-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
10428
10429         [BZ #20615]
10430         * sysdeps/powerpc/powerpc32/power9/multiarch/Implies: Replace
10431         fpu directory by non-fpu.
10432         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Remove dependency
10433         on non-fpu directory from a fpu directory.
10434
10435 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
10436
10437         * include/limits.h: Define
10438         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
10439         <bits/libc-header-start.h> instead of including <features.h>.
10440         [__GLIBC_USE (IEC_60559_BFP_EXT)] (CHAR_WIDTH): New macro.
10441         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SCHAR_WIDTH): Likewise.
10442         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UCHAR_WIDTH): Likewise.
10443         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SHRT_WIDTH): Likewise.
10444         [__GLIBC_USE (IEC_60559_BFP_EXT)] (USHRT_WIDTH): Likewise.
10445         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_WIDTH): Likewise.
10446         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_WIDTH): Likewise.
10447         [__GLIBC_USE (IEC_60559_BFP_EXT)] (LONG_WIDTH): Likewise.
10448         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ULONG_WIDTH): Likewise.
10449         [__GLIBC_USE (IEC_60559_BFP_EXT)] (LLONG_WIDTH): Likewise.
10450         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ULLONG_WIDTH): Likewise.
10451         * manual/lang.texi (Width of Type): Document these macros.
10452         * stdlib/tst-width.c: New file.
10453         * stdlib/Makefile (tests): Add tst-width.
10454
10455 2016-09-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10456
10457         * intl/dcigettext.c (PATH_MAX): Call __pathconf instead of pathconf.
10458         * sysdeps/posix/dup.c (__dup): Call __fcntl instead of fcntl.
10459
10460 2016-09-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10461
10462         * nptl/sem_init.c (__new_sem_init): Init pad value to 0.
10463         * sysdeps/sparc/sparc32/sem_open.c: Remove file.
10464         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: Likewise.
10465
10466 2016-09-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10467
10468         [BZ #18243]
10469         * rt/Makefile (test): Add tst-shm-cancel.
10470         * rt/tst-shm-cancel.c: New file.
10471         * sysdeps/posix/shm_open.c: Disable asynchronous cancellation.
10472
10473         [BZ #18243]
10474         * nptl/pthreadP.h (__pthread_testcancel): Add prototype and hidden_proto.
10475         * nptl/pthread_testcancel.c (pthread_cancel): Add internal aliais
10476         definition.
10477         * nptl/sem_timedwait.c (sem_timedwait): Add cancellation check for
10478         uncontended case.
10479         * nptl/sem_wait.c (__new_sem_wait): Likewise.
10480         * nptl/tst-cancel12.c (cleanup): Remove wrong cancellation point.
10481         (tf): Fix check for uncontended case.
10482         (do_test): Likewise.
10483         * nptl/tst-cancel13.c (cleanup): Remove wrong cancellation point.
10484         (tf): Fix check for uncontended case.
10485         (do_test): Likewise.
10486         * nptl/tst-cancel14.c (cleanup): Remove wrong cancellation point.
10487         (tf): Fix check for uncontended case.
10488         (do_test): Likewise.
10489         * nptl/tst-cancel15.c (cleanup): Remove wrong cancellation point.
10490         (tf): Fix check for uncontended case.
10491         (do_test): Likewise.
10492
10493         * sysdeps/sparc/sparc32/sem_wait.c: Remove file.
10494         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: Likewise.
10495
10496         [BZ #15765]
10497         * nptl/Makefile (tests): Add tst-sem16.
10498         * nptl/tst-sem16.c: New file.
10499         * nptl/sem_open.c (sem_open): Disable asynchronous cancellation.
10500
10501         * nptl/sem_open.c (sem_open): Init pad value to 0.
10502         * sysdeps/sparc/sparc32/sem_open.c: Remove file.
10503         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: Likewise.
10504
10505 2016-09-15  Florian Weimer  <fweimer@redhat.com>
10506
10507         [BZ #20611]
10508         * inet/Makefile (routines): Add inet6_scopeid_pton.
10509         (tests): Add tst-inet6_scopeid_pton.
10510         * inet/inet6_scopeid_pton.c: New file.
10511         * inet/net-internal.h: Likewise.
10512         * inet/tst-inet6_scopeid_pton.c: New test.
10513         * inet/Versions (GLIBC_PRIVATE): Add __inet6_scopeid_pton.
10514         * resolv/res_init.c (__res_vinit): Use __inet6_scopeid_pton.
10515         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
10516
10517 2016-09-14  Florian Weimer  <fweimer@redhat.com>
10518
10519         Remove support for compiling wrappers with PTW.
10520         * sysdeps/nptl/Makeconfig: Drop ptw- support.
10521         * nptl/Makefile (pthread-compat-wrappers): Define.
10522         (libpthread-routines): Use pthread-compat-wrappers.
10523         * sysdeps/unix/sysv/linux/alpha/Makefile
10524         (libpthread-routines, libpthread-shared-only-routines): Remove
10525         ptw- prefix.
10526         * sysdeps/s390/nptl/Makefile
10527         (libpthread-routines, libpthread-shared-only-routines): Likewise.
10528         * sysdeps/ia64/nptl/Makefile
10529         (libpthread-routines, libpthread-shared-only-routines): Likewise.
10530         * sysdeps/nacl/Makefile (libpthread-routines): Use
10531         pthread-compat-wrappers to filter the routines list instead of the
10532         ptw- prefix.
10533
10534 2016-09-13  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
10535
10536         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Wrap long double literals
10537         with L() and remove explicit suffix, convert real literals
10538         which can be equivalentally substituted with integers, and
10539         transform -L(x) to L(-x).
10540
10541         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
10542         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
10543         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
10544         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
10545         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
10546         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
10547         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
10548         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
10549         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
10550         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
10551         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
10552         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
10553         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
10554         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
10555         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
10556         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
10557         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
10558         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
10559         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
10560         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
10561         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
10562         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
10563         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
10564         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
10565         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
10566         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
10567         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
10568         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
10569         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
10570         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
10571         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
10572         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
10573         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
10574         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
10575         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
10576         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
10577         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
10578         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
10579         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
10580         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
10581         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
10582         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
10583         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
10584         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
10585         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
10586         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
10587         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
10588         * sysdeps/ieee754/ldbl-128/t_expl.h: Likewise.
10589         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
10590         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
10591
10592 2016-09-13  Florian Weimer  <fweimer@redhat.com>
10593
10594         * resolv/res_init.c: Remove _LIBC_REENTRANT; it is always defined.
10595
10596 2016-09-10  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10597
10598         * malloc/Makefile (tests): Remove individual static test names
10599         and just add all of tests-static.
10600
10601         * csu/libc-start.c (__libc_csu_irel): Remove declaration.
10602
10603 2016-09-07  Joseph Myers  <joseph@codesourcery.com>
10604
10605         * sysdeps/powerpc/powerpc32/e500/nofpu/fetestexceptflag.c: New
10606         file.
10607
10608         * sysdeps/sparc/fpu/fegetmode.c: New file.
10609         * sysdeps/sparc/fpu/fesetmode.c: Likewise.
10610
10611         * sysdeps/sh/sh4/fpu/fegetmode.c: New file.
10612         * sysdeps/sh/sh4/fpu/fesetmode.c: Likewise.
10613
10614         * sysdeps/s390/fpu/fegetmode.c: New file.
10615         * sysdeps/s390/fpu/fesetmode.c: Likewise.
10616
10617         * sysdeps/powerpc/fpu/fegetmode.c: New file.
10618         * sysdeps/powerpc/fpu/fesetmode.c: Likewise.
10619         * sysdeps/powerpc/nofpu/fegetmode.c: Likewise.
10620         * sysdeps/powerpc/nofpu/fesetmode.c: Likewise.
10621         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetmode.c: Likewise.
10622         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetmode.c: Likewise.
10623
10624         * sysdeps/mips/fpu/fegetmode.c: New file.
10625         * sysdeps/mips/fpu/fesetmode.c: Likewise.
10626
10627         * sysdeps/m68k/fpu/fegetmode.c: New file.
10628         * sysdeps/m69k/fpu/fesetmode.c: Likewise.
10629
10630         * sysdeps/ia64/fpu/fegetmode.c: New file.
10631         * sysdeps/ia64/fpu/fesetmode.c: Likewise.
10632
10633         * sysdeps/hppa/fpu/fegetmode.c: New file.
10634         * sysdeps/hppa/fpu/fesetmode.c: Likewise.
10635
10636         * sysdeps/arm/fegetmode.c: New file.
10637         * sysdeps/arm/fesetmode.c: Likewise.
10638
10639         * sysdeps/alpha/fpu/fegetmode.c: New file.
10640         * sysdeps/alpha/fpu/fesetmode.c: Likewise.
10641
10642         * sysdeps/aarch64/fpu/fegetmode.c: New file.
10643         * sysdeps/aarch64/fpu/fesetmode.c: Likewise.
10644
10645         * math/fegetmode.c: New file.
10646         * math/fesetmode.c: Likewise.
10647         * sysdeps/i386/fpu/fegetmode.c: Likewise.
10648         * sysdeps/i386/fpu/fesetmode.c: Likewise.
10649         * sysdeps/x86_64/fpu/fegetmode.c: Likewise.
10650         * sysdeps/x86_64/fpu/fesetmode.c: Likewise.
10651         * math/fenv.h: Update comment on inclusion of <bits/fenv.h>.
10652         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fegetmode): New function
10653         declaration.
10654         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fesetmode): Likewise.
10655         * bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (femode_t): New
10656         typedef.
10657         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
10658         * sysdeps/aarch64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
10659         (femode_t): New typedef.
10660         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
10661         * sysdeps/alpha/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
10662         (femode_t): New typedef.
10663         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
10664         * sysdeps/arm/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
10665         (femode_t): New typedef.
10666         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
10667         * sysdeps/hppa/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
10668         (femode_t): New typedef.
10669         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
10670         * sysdeps/ia64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
10671         (femode_t): New typedef.
10672         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
10673         * sysdeps/m68k/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
10674         (femode_t): New typedef.
10675         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
10676         * sysdeps/microblaze/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
10677         (femode_t): New typedef.
10678         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
10679         * sysdeps/mips/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
10680         (femode_t): New typedef.
10681         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
10682         * sysdeps/nios2/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
10683         (femode_t): New typedef.
10684         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
10685         * sysdeps/powerpc/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
10686         (femode_t): New typedef.
10687         [__GLIBC_USE (IEC_60559_BFP_EXT)] (__fe_dfl_mode): New variable
10688         declaration.
10689         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
10690         * sysdeps/s390/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
10691         (femode_t): New typedef.
10692         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
10693         * sysdeps/sh/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
10694         (femode_t): New typedef.
10695         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
10696         * sysdeps/sparc/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
10697         (femode_t): New typedef.
10698         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
10699         * sysdeps/tile/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
10700         (femode_t): New typedef.
10701         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
10702         * sysdeps/x86/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
10703         (femode_t): New typedef.
10704         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
10705         * manual/arith.texi (FE_DFL_MODE): Document macro.
10706         (fegetmode): Document function.
10707         (fesetmode): Likewise.
10708         * math/Versions (fegetmode): New libm symbol at version
10709         GLIBC_2.25.
10710         (fesetmode): Likewise.
10711         * math/Makefile (libm-support): Add fegetmode and fesetmode.
10712         (tests): Add test-femode and test-femode-traps.
10713         * math/test-femode-traps.c: New file.
10714         * math/test-femode.c: Likewise.
10715         * sysdeps/powerpc/fpu/fenv_const.c (__fe_dfl_mode): Declare as
10716         alias for __fe_dfl_env.
10717         * sysdeps/powerpc/nofpu/fenv_const.c (__fe_dfl_mode): Likewise.
10718         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c
10719         (__fe_dfl_mode): Likewise.
10720         * sysdeps/powerpc/Versions (__fe_dfl_mode): New libm symbol at
10721         version GLIBC_2.25.
10722         * sysdeps/nacl/libm.abilist: Update.
10723         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
10724         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
10725         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
10726         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
10727         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
10728         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
10729         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
10730         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
10731         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
10732         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
10733         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
10734         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
10735         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
10736         Likewise.
10737         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
10738         Likewise.
10739         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
10740         Likewise.
10741         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
10742         Likewise.
10743         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
10744         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
10745         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
10746         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
10747         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
10748         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
10749         Likewise.
10750         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
10751         Likewise.
10752         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
10753         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
10754         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
10755
10756 2016-09-06  H.J. Lu  <hongjiu.lu@intel.com>
10757
10758         [BZ #20495]
10759         [BZ #20508]
10760         * sysdeps/x86/cpu-features.c (init_cpu_features): For Intel
10761         processors, set Use_dl_runtime_resolve_slow and set
10762         Use_dl_runtime_resolve_opt if XGETBV suports ECX == 1.
10763         * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
10764         New.
10765         (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
10766         (index_arch_Use_dl_runtime_resolve_opt): Likewise.
10767         (index_arch_Use_dl_runtime_resolve_slow): Likewise.
10768         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Use
10769         _dl_runtime_resolve_avx512_opt and _dl_runtime_resolve_avx_opt
10770         if Use_dl_runtime_resolve_opt is set.  Use
10771         _dl_runtime_resolve_slow if Use_dl_runtime_resolve_slow is set.
10772         * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features.h>.
10773         (_dl_runtime_resolve_opt): New.  Defined for AVX and AVX512.
10774         (_dl_runtime_resolve): Add one for _dl_runtime_resolve_sse_vex.
10775         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx_slow):
10776         New.
10777         (_dl_runtime_resolve_opt): Likewise.
10778         (_dl_runtime_profile): Define only if _dl_runtime_profile is
10779         defined.
10780
10781 2016-09-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
10782
10783         * sysdeps/unix/sysv/linux/s390/localplt.data: Mark ld.so:
10784         __libc_memalign with "+ RELA R_390_GLOB_DAT".
10785
10786 2016-09-06  Florian Weimer  <fweimer@redhat.com>
10787
10788         Convert malloc to __libc_lock.  Automated part, using this Perl
10789         s/// command:
10790           s/(?:\(void\)\s*)?mutex_((?:|un|try)lock|init)
10791             \s*\(\&([^\)]+)\)/__libc_lock_$1\ ($2)/gx;
10792         * malloc/malloc.c, malloc/arena.c, malloc/hooks.c: Perform
10793         conversion.
10794
10795 2016-09-05  Aurelien Jarno  <aurelien@aurel32.net>
10796
10797         * conform/Makefile (conformtest-header-tests): Pass -I. to $(PERL).
10798         (linknamespace-symlists-tests): Likewise.
10799         (linknamespace-header-tests): Likewise.
10800
10801 2016-09-03  Aurelien Jarno  <aurelien@aurel32.net>
10802
10803         [BZ #19810]
10804         * elf/dl-open.c (dl_open_worker): Set DF_1_NODELETE flag later.
10805         * elf/tst-noload.c: New test case.
10806         * elf/Makefile (tests): Add tst-noload.
10807
10808 2016-09-02  Roland McGrath  <roland@hack.frob.com>
10809
10810         * sysdeps/nacl/dup.c: Add libc_hidden_def.
10811
10812         * sysdeps/posix/wait3.c: Don't treat STAT_LOC as a union, since it's
10813         not any more.
10814
10815         * sysdeps/nacl/clock.c (clock): nacl_abi_clock_t -> nacl_irt_clock_t
10816
10817 2016-09-02  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10818
10819         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Mark as inline.
10820         (do_cos_slow): Likewise.
10821         (do_sin): Likewise.
10822         (do_sin_slow): Likewise.
10823         (slow): Likewise.
10824         (slow1): Likewise.
10825         (slow2): Likewise.
10826         (sloww): Likewise.
10827         (sloww1): Likewise.
10828         (sloww2): Likewise.
10829         (bsloww): Likewise.
10830         (bsloww1): Likewise.
10831         (bsloww2): Likewise.
10832         (cslow2): Likewise.
10833
10834         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use do_sin.
10835
10836         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Accept X and DX as input
10837         arguments.  Consolidate input partitioning from callers here.
10838         (do_cos_slow): Likewise.
10839         (do_sin): Likewise.
10840         (do_sin_slow): Likewise.
10841         (do_sincos_1): Remove the no longer necessary input partitioning.
10842         (do_sincos_2): Likewise.
10843         (__sin): Likewise.
10844         (__cos): Likewise.
10845         (slow1): Likewise.
10846         (slow2): Likewise.
10847         (sloww1): Likewise.
10848         (sloww2): Likewise.
10849         (bsloww1): Likewise.
10850         (bsloww2): Likewise.
10851         (cslow2): Likewise.
10852
10853 2016-09-02  Florian Weimer  <fweimer@redhat.com>
10854
10855         * stdio-common/vfscanf.c (_IO_vfwscanf): Use MB_LEN_MAX instead of
10856         MB_CUR_MAX to avoid race condition.  Avoid pointer arithmetic
10857         outside of allocated array.
10858
10859 2016-09-02  Florian Weimer  <fweimer@redhat.com>
10860
10861         * stdio-common/vfprintf.c (process_string_arg): Use MB_LEN_MAX
10862         instead of MB_CUR_MAX to avoid variable-length array.
10863
10864 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
10865
10866         * math/Makefile (libm-calls): Remove k_rem_pio2F.
10867         (type-double-routines): Add k_rem_pio2.
10868         (type-float-routines): Add k_rem_pio2f.
10869
10870         * sysdeps/generic/math_private.h:
10871         (__kernel_rem_pio2l): Removed.
10872
10873         * math/k_rem_pio2l.c: Removed.
10874         * sysdeps/i386/fpu/k_rem_pio2l.c: Removed.
10875         * sysdeps/ia64/fpu/k_rem_pio2l.c: Removed.
10876         * sysdeps/m68k/m680x0/fpu/k_rem_pio2l.c: Removed.
10877         * sysdeps/x86_64/fpu/k_rem_pio2l.c: Removed.
10878
10879 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
10880
10881         * math/Makefile (gen-libm-calls): Add s_fmin
10882         (libm-calls): Remove above.
10883
10884         * math/s_fmin.c: Refactor into ...
10885         * math/s_fmin_template.c: New file.
10886
10887         * math/s_fminf.c: Removed.
10888         * math/s_fminl.c: Removed.
10889         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
10890         (LDOUBLE_fmin_libm_version): New macro.
10891
10892         * sysdeps/ieee754/ldbl-opt/s_fmin.c: Removed.
10893         * sysdeps/ieee754/ldbl-opt/s_fminl.c: Removed.
10894
10895 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
10896
10897         * math/Makefile: (gen-libm-calls): Add s_fmax.
10898         (libm-calls): Remove above.
10899
10900         * math/s_fmax.c: Refactor into ...
10901         * math/s_fmax_template.c: New file.
10902         * math/s_fmaxf.c: Removed.
10903         * math/s_fmaxl.c: Removed.
10904
10905         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
10906         (LDOUBLE_fmaxl_libm_version): New macro.
10907
10908         * sysdeps/ieee754/ldbl-opt/s_fmax.c: Removed.
10909         * sysdeps/ieee754/ldbl-opt/s_fmaxl.c: Removed.
10910
10911         * sysdeps/aarch64/fpu/s_fmax.c: Append fpu/ to include of
10912         s_fmin.c to pick the aarch64 version of the file.
10913         * sysdeps/aarch64/fpu/s_fmaxf.c: Likewise.
10914         * sysdeps/aarch64/fpu/s_fminf.c: Likewise.
10915
10916 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
10917
10918         * math/Makefile: (gen-libm-calls): Add s_nextdown.
10919         (libm-calls): Remove above.
10920
10921         * math/s_nextdown.c: Refactor into ...
10922         * math/s_nextdown_template.c: New file.
10923         * math/s_nextdownf.c: Removed.
10924         * math/s_nextdownl.c: Removed.
10925
10926         * sysdeps/ieee754/ldbl-opt/s_nextdownl.c: New file.
10927
10928 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
10929
10930         * math/Makefile (gen-libm-calls): Add s_fdim.
10931         (libm-calls): Move to above.
10932
10933         * math/s_fdim.c: Renamed and refactored into to ...
10934         * math/s_fdim_template.c: New file.
10935         * math/s_fdiml.c: Removed.
10936         * sysdeps/ieee754/ldbl-opt/s_fdim.c: Removed.
10937         * sysdeps/ieee754/ldbl-opt/s_fdiml.c: Removed.
10938
10939         * sysdeps/generic/math-type-macros-double.h:
10940         (declare_mgen_alias): Don't declare if already declared.
10941         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h:
10942         Likewise.
10943
10944         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
10945         (declare_mgen_alias): Don't declare if already declared.
10946         (M_LIBM_NEED_COMPAT): Likewise.
10947         (declare_mgen_libm_compat): Likewise.
10948         (LDOUBLE_fdiml_libm_version): New macro.
10949
10950         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c:
10951         Include math/s_fdim.c now that ldbl-opt version is not needed.
10952         (declare_mgen_alias): New macro to disable aliasing.
10953
10954         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.c:
10955         (declare_mgen_alias): Likewise.
10956         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c:
10957         (declare_mgen_alias): Likewise.
10958         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c:
10959         (declare_mgen_alias): Likewise.
10960         (M_LIBM_NEED_COMPAT): Likewise.
10961
10962 2016-09-01  Florian Weimer  <fweimer@redhat.com>
10963
10964         [BZ #20525]
10965         * sysdeps/unix/sysv/linux/sys/quota.h: Update copyright.
10966         Include <linux/quota.h>.
10967         (fs_to_dq_blocks): Hard-code BLOCK_SIZE as 1024, to match dbtob
10968         and btodb.
10969         (_LINUX_QUOTA_VERSION, MAXQUOTAS, USRQUOTA, GRPQUOTA, INITQFNAMES)
10970         (SUBCMDMASK, SUBCMDSHIFT, QCMD, Q_QUOTAON, Q_QUOTAOFF, Q_GETQUOTA)
10971         (Q_SETQUOTA, Q_SETUSE, Q_SYNC, Q_SETQLIM, Q_GETSTATS, Q_RSQUASH)
10972         (Q_GETFMT, Q_GETINFO, Q_SETINFO, Q_GETNEXTQUOTA, QIF_BLIMITS)
10973         (QIF_SPACE, QIF_ILIMITS, QIF_INODES, QIF_BTIME, QIF_ITIME)
10974         (QIF_LIMITS, QIF_USAGE, QIF_TIMES, QIF_ALL, IIF_BGRACE)
10975         (IIF_IGRACE, IIF_FLAGS, IIF_ALL): Remove.
10976         (struct dqblock, struct dqinfo): Use __uint64_t and __uint32_t
10977         types.
10978         * sysdeps/unix/sysv/linux/tst-quota.c: New test.
10979         * sysdeps/unix/sysv/linux/Makefile (tests): Add it.
10980
10981 2016-08-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
10982
10983         * sysdeps/ieee754/ldbl-128/e_gammal_r.c:
10984         (gammal_positive): Fix spacing.
10985         (__ieee754_gammal_r): Likewise.
10986
10987 2016-08-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
10988
10989         * sysdeps/ieee754/ldbl-128/math_ldbl.h:
10990         (_Float128): Define as long double, always.
10991         (L): Apply long double type suffix, always.
10992
10993         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Rename long double
10994         _Float128, excepting comments.
10995
10996         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
10997         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
10998         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
10999         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
11000         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
11001         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11002         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
11003         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
11004         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11005         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: Likewise.
11006         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
11007         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11008         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11009         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
11010         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11011         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
11012         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
11013         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11014         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
11015         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
11016         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11017         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
11018         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
11019         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
11020         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
11021         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11022         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
11023         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
11024         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11025         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
11026         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
11027         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
11028         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
11029         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
11030         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11031         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
11032         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
11033         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
11034         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
11035         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
11036         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
11037         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
11038         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
11039         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
11040         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
11041         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
11042         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
11043         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
11044         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
11045         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
11046         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
11047         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
11048         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11049         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11050         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
11051         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
11052         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
11053         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
11054         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
11055         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
11056         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
11057         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
11058         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11059         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
11060         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
11061         * sysdeps/ieee754/ldbl-128/t_expl.h: Likewise.
11062         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
11063         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11064
11065         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Rename long double
11066         _Float128, and include math_private.h.
11067         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
11068
11069         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (L): Define using
11070         long double semantics.
11071         (_Float128): Likewise.
11072         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Likewise.
11073         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
11074         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
11075         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
11076
11077 2016-08-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
11078
11079         * config.h.in (HAVE_S390_MIN_Z196_ZARCH_ASM_SUPPORT): New undefine.
11080         * sysdeps/s390/configure.ac: Add test for z196 zarch support.
11081         * sysdeps/s390/configure: Regenerated.
11082         * sysdeps/s390/fpu/fraiseexcpt.c (__feraiseexcept): Use ledbra
11083         instruction for raising over-/underflow if z196 zarch is supported
11084         by default.
11085         * sysdeps/s390/fpu/fsetexcptflg.c (fesetexceptflag): Correct comment.
11086
11087 2016-08-30  Svante Signell  <svante.signell@gmail.com>
11088
11089         * sysdeps/mach/hurd/adjtime.c (__adjtime): When OLDDELTA is NULL, make
11090         it point to a dumb buffer for RPC to fill it.
11091
11092 2016-08-30  Siddhesh Poyarekar  <siddhesh@sourceware.org>
11093
11094         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos_slow): Use ternary
11095         instead of if/else.
11096         (do_sin_slow): Likewise.
11097         (do_sincos_1): Use fabs instead of if/else.
11098         (do_sincos_2): Likewise.
11099         (__sin): Likewise.
11100         (__cos): Likewise.
11101         (slow2): Likewise.
11102         (sloww): Likewise.
11103         (sloww1): Likewise.  Drop argument M.
11104         (sloww2): Use fabs instead of if/else.
11105         (bsloww): Likewise.
11106         (bsloww1): Likewise.
11107         (bsloww2): Likewise.
11108
11109         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Add
11110         fall through comment.
11111         (do_sincos_1): Likewise.
11112
11113         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute):
11114         Consolidate switch cases 0 and 2.
11115
11116 2016-08-29  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11117
11118         * math/Makefile (libm-gen-calls): Add cpow, clog, clog10, cexp, cproj.
11119         (libm-calls): Remove the above.
11120
11121         * math/s_cexp_template.c: Update using type-generic macros.
11122         * math/s_clog10_template.c: Likewise.
11123         * math/s_cpow_template.c: Likewise.
11124         * math/s_clog_template.c: Likewise.
11125         * math/s_cproj_template.c: Likewise.
11126         * math/s_csqrt_template.c: Likewise.
11127
11128         * math/s_cexp.c: Removed.
11129         * math/s_cexpf.c: Removed.
11130         * math/s_cexpl.c: Removed.
11131         * math/s_clog10.c: Removed.
11132         * math/s_clog10f.c: Removed.
11133         * math/s_clog10l.c: Removed.
11134         * math/s_cpow.c: Removed.
11135         * math/s_cpowf.c: Removed.
11136         * math/s_cpowl.c: Removed.
11137         * math/s_clog.c: Removed.
11138         * math/s_clogf.c: Removed.
11139         * math/s_clogl.c: Removed.
11140         * math/s_cproj.c: Removed.
11141         * math/s_cprojf.c: Removed.
11142         * math/s_cprojl.c: Removed.
11143         * math/s_csqrt.c: Removed.
11144         * math/s_csqrtf.c: Removed.
11145         * math/s_csqrtl.c: Removed.
11146
11147         * sysdeps/alpha/fpu/s_cexpf.c: Update using templated version.
11148         * sysdeps/alpha/fpu/s_clog10f.c: Update using templated version.
11149         * sysdeps/alpha/fpu/s_clogf.c: Update using templated version.
11150         * sysdeps/alpha/fpu/s_cpowf.c: Update using templated version.
11151         * sysdeps/alpha/fpu/s_cprojf.c: Update using templated version.
11152         * sysdeps/alpha/fpu/s_csqrtf.c: Update using templated version.
11153
11154         * sysdeps/ieee754/ldbl-opt/s_cexp.c: Removed.
11155         * sysdeps/ieee754/ldbl-opt/s_cexpl.c: Removed.
11156         * sysdeps/ieee754/ldbl-opt/s_clog.c: Removed.
11157         * sysdeps/ieee754/ldbl-opt/s_clog10.c: Removed.
11158         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Removed.
11159         * sysdeps/ieee754/ldbl-opt/s_cpow.c: Removed.
11160         * sysdeps/ieee754/ldbl-opt/s_cpowl.c: Removed.
11161         * sysdeps/ieee754/ldbl-opt/s_cproj.c: Removed.
11162         * sysdeps/ieee754/ldbl-opt/s_cprojl.c: Removed.
11163         * sysdeps/ieee754/ldbl-opt/s_csqrt.c: Removed.
11164         * sysdeps/ieee754/ldbl-opt/s_csqrtl.c: Removed.
11165
11166         * sysdeps/ieee754/ldbl-opt/s_clogl.c: Update using templated
11167         version.
11168
11169         * sysdeps/m68k/m680x0/fpu/s_cexp.c: Refactor into.
11170         * sysdeps/m68k/m680x0/fpu/s_cexp_template.c: New file.
11171         * sysdeps/m68k/m680x0/fpu/s_cexpf.c: Removed.
11172         * sysdeps/m68k/m680x0/fpu/s_cexpl.c: Removed.
11173
11174 2016-08-29  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11175
11176         * s_cexp_template.c: Copy of s_cexp.c.
11177         * s_clog_template.c: Copy of s_clog.c.
11178         * s_clog10_template.c: Copy of s_clog10.c.
11179         * s_cpow_template.c: Copy of s_cpow.c.
11180         * s_cproj_template.c: Copy of s_cproj.c.
11181         * s_csqrt_template.c: Copy of s_csqrt.c.
11182
11183 2016-08-29  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11184
11185         [BZ #20517]
11186         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c:
11187         Include ldbl-opt/s_fdim.c to ensure fdiml@GLIBC_2.1 is
11188         exported.
11189
11190 2016-08-29  Joseph Myers  <joseph@codesourcery.com>
11191
11192         * math/fetestexceptflag.c: New file.
11193         * sysdeps/s390/fpu/fetestexceptflag.c: Likewise.  Comment by
11194         Stefan Liebler.
11195         * math/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11196         (fetestexceptflag): New function declaration.
11197         * manual/arith.texi (fetestexceptflag): Document function.
11198         * math/Versions (fetestexceptflag): New libm symbol at version
11199         GLIBC_2.25.
11200         * math/Makefile (libm-support): Add fetestexceptflag.
11201         (tests): Add test-fetestexceptflag.
11202         * math/test-fetestexceptflag.c: New file.
11203         * sysdeps/nacl/libm.abilist: Update.
11204         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11205         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11206         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11207         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11208         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11209         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11210         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11211         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11212         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11213         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11214         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11215         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11216         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
11217         Likewise.
11218         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
11219         Likewise.
11220         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
11221         Likewise.
11222         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
11223         Likewise.
11224         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11225         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11226         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11227         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11228         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11229         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
11230         Likewise.
11231         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
11232         Likewise.
11233         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
11234         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11235         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11236
11237 2016-08-26  Florian Weimer  <fweimer@redhat.com>
11238
11239         [BZ #20432]
11240         Avoid strong references to malloc-internal symbols when linking
11241         statically, to support statically interposed mallocs.
11242         * include/libc-symbols.h (call_function_static_weak): New macro.
11243         * malloc/Makefile (tests): Add tst-interpose-nothread,
11244         tst-interpose-thread, tst-interpose-static-nothread,
11245         tst-interpose-static-thread.
11246         (tests-static): Add tst-interpose-static-nothread,
11247         tst-interpose-static-thread.
11248         (extra-tests-objs): Add tst-interpose-aux-nothread.o,
11249         tst-interpose-aux-thread.o.
11250         (test-extras): Add tst-interpose-aux-nothread,
11251         tst-interpose-aux-thread.
11252         (tst-interpose-nothread, tst-interpose-static-nothread): Link with
11253         tst-interpose-aux-nothread.o.
11254         (tst-interpose-thread, tst-interpose-static-thread): Link with
11255         tst-interpose-aux-thread.o and libthread.
11256         * malloc/tst-interpose-aux-nothread.c: New file.
11257         * malloc/tst-interpose-aux-thread.c: Likewise.
11258         * malloc/tst-interpose-aux.c: Likewise.
11259         * malloc/tst-interpose-aux.h: Likewise.
11260         * malloc/tst-interpose-nothread.c: Likewise.
11261         * malloc/tst-interpose-skeleton.c: Likewise.
11262         * malloc/tst-interpose-static-nothread.c: Likewise.
11263         * malloc/tst-interpose-static-thread.c: Likewise.
11264         * malloc/tst-interpose-thread.c: Likewise.
11265         * nptl/tst-tls3-malloc.c: Use new interposed malloc.
11266         * sysdeps/mach/hurd/fork.c (__fork): Only call
11267         __malloc_fork_lock_parent, __malloc_fork_unlock_parent,
11268         __malloc_fork_unlock_child if defined.
11269         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
11270
11271 2016-08-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11272
11273         * test-skeleton.c (delayed_exit_thread): Add initializer on struct
11274         timespec C99 designated initialization.
11275
11276 2016-08-26  Florian Weimer  <fweimer@redhat.com>
11277
11278         [BZ #19946]
11279         Avoid expected SIGALRM signals.
11280         * test-skeleton.c (xpthread_sigmask, xpthread_mutex_lock)
11281         (xpthread_spin_lock, xpthread_cond_wait, xpthread_barrier_wait)
11282         (xpthread_create, xpthread_detach, xpthread_join)
11283         (delayed_exit_thread, delayed_exit): New functions.
11284         * nptl/tst-cond3 (EXPECTED_SIGNAL): Remove.
11285         (tf): Use xpthread_cond_wait.
11286         (do_test): Likewise.  Replace alarm with delayed_exit.
11287         * nptl/tst-eintr1.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
11288         (do_test): Call delayed_exit.  Report failure.
11289         * nptl/tst-eintr2.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
11290         (do_test): Call delayed_exit.
11291         * nptl/tst-eintr3.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
11292         (do_test): Call delayed_exit.  Use xpthread_join.  Report error.
11293         * nptl/tst-eintr4.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
11294         (do_test): Call delayed_exit.  Use xpthread_barrier_wait.  Report
11295         error.
11296         * nptl/tst-eintr5.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
11297         (do_test): Call delayed_exit.  Use xpthread_cond_wait.  Report
11298         error.
11299         * nptl/tst-exit2.c (EXPECTED_SIGNAL): Remove.
11300         (do_test): Call delayed_exit.
11301         * nptl/tst-exit3.c (EXPECTED_SIGNAL): Remove.
11302         (do_test): Call delayed_exit.
11303         * nptl/tst-mutex6.c (EXPECTED_SIGNAL): Remove.
11304         (do_test): Call delayed_exit instead of alarm.  Use
11305         xpthread_mutex_lock.
11306         * nptl/tst-rwlock5.c (EXPECTED_SIGNAL): Remove.
11307         (do_test): Call delayed_exit instead of alarm.  Use
11308         xpthread_mutex_lock.
11309         * nptl/tst-sem2.c (EXPECTED_SIGNAL): Remove.
11310         (do_test): Call delayed_exit instead of alarm.
11311         * nptl/tst-spin3.c (EXPECTED_SIGNAL): Remove.
11312         (do_test): Call delayed_exit instead of alarm.  Use
11313         xpthread_spin_lock.
11314         * nptl/tst-stdio1.c (EXPECTED_SIGNAL): Remove.
11315         (do_test): Call delayed_exit instead of alarm.  Use
11316         xpthread_join.
11317
11318 2016-08-26  H.J. Lu  <hongjiu.lu@intel.com>
11319
11320         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Don't
11321         adjust CFA when allocating register save area on re-aligned
11322         stack.
11323
11324 2016-08-26  Florian Weimer  <fweimer@redhat.com>
11325
11326         * string/tst-cmp.c: New test.
11327         * string/Makefile (tests): Add it.
11328
11329 2016-08-25  Mark Wielaard  <mark@klomp.org>
11330
11331         * misc/tsearch.c (struct node_t): Reduce to 3 pointers if
11332         USE_MALLOC_LOW_BIT.  Define pointer/value accessors.
11333         (check_tree_recurse): Use newly defined accessors.
11334         (check_tree): Likewise.
11335         (maybe_split_for_insert): Likewise.
11336         (__tfind): Likewise.
11337         (__tdelete): Likewise.
11338         (trecurse): Likewise.
11339         (tdestroy_recurse): Likewise.
11340         (__tsearch): Likewise. And add asserts for malloc alignment.
11341         (__twalk): Cast root to node in case CHECK_TREE is defined.
11342
11343 2016-08-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11344
11345         * scripts/check-local-headers.sh (exclude): Add mach_debug/.
11346
11347 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11348
11349         * math/Makefile (libm-gen-calls): Add
11350         catan, catanh, ctan, ctanh.
11351         (libm-calls): Remove the above.
11352
11353         * math/s_catan_template.c: Update using type-generic macros.
11354         * math/s_catanh_template.c: Likewise.
11355         * math/s_ctan_template.c: Likewise.
11356         * math/s_ctanh_template.c: Likewise.
11357
11358         * math/s_catanf.c: Removed.
11359         * math/s_catan.c: Removed.
11360         * math/s_catanl.c: Removed.
11361         * math/s_catanhf.c: Removed.
11362         * math/s_catanh.c: Removed.
11363         * math/s_catanhl.c: Removed.
11364         * math/s_ctanf.c: Removed.
11365         * math/s_ctan.c: Removed.
11366         * math/s_ctanl.c: Removed.
11367         * math/s_ctanhf.c: Removed.
11368         * math/s_ctanh.c: Removed.
11369         * math/s_ctanhl.c: Removed.
11370
11371         * sysdeps/ieee754/ldbl-opt/s_catanhl.c: Removed.
11372         * sysdeps/ieee754/ldbl-opt/s_catanl.c: Removed.
11373         * sysdeps/ieee754/ldbl-opt/s_ctan.c: Removed.
11374         * sysdeps/ieee754/ldbl-opt/s_ctanh.c: Removed.
11375         * sysdeps/ieee754/ldbl-opt/s_ctanhl.c: Removed.
11376         * sysdeps/ieee754/ldbl-opt/s_ctanl.c: Removed.
11377
11378         * sysdeps/alpha/fpu/s_catanf.c: Update to use template file.
11379         * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
11380         * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
11381         * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
11382
11383 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11384
11385         * s_catan_template.c: Copy of s_catan.c.
11386         * s_catanh_template.c: Copy of s_catanh.c.
11387         * s_ctan_template.c: Copy of s_ctan.c.
11388         * s_ctanh_template.c: Copy of s_ctanh.c.
11389
11390 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11391
11392         * math/Makefile (gen-libm-calls): Move
11393         casin, casinh, csin, csinh here.
11394         (libm-calls): Remove the above.
11395
11396         * math/s_casin_template.c: Update using type-generic macros.
11397         * math/s_casinh_template.c: Likewise.
11398         * math/s_csin_template.c: Likewise.
11399         * math/s_csinh_template.c: Likewise.
11400         * math/k_casinh_template.c: Likewise.
11401
11402         * math/s_casinf.c: Removed.
11403         * math/s_casin.c: Removed.
11404         * math/s_casinl.c: Removed.
11405         * math/s_casinh.c: Removed.
11406         * math/s_casinhf.c: Removed.
11407         * math/s_casinhl.c: Removed.
11408         * math/s_csin.c: Removed.
11409         * math/s_csinf.c: Removed.
11410         * math/s_csinl.c: Removed.
11411         * math/s_csinh.c: Removed.
11412         * math/s_csinhf.c: Removed.
11413         * math/s_csinhl.c: Removed.
11414         * math/k_casinh.c: Removed.
11415         * math/k_casinhf.c: Removed.
11416         * math/k_casinhl.c: Removed.
11417
11418         * sysdeps/alpha/fpu/s_casinf.c: Refactor using templated version.
11419         * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
11420         * sysdeps/alpha/fpu/s_csinf.c: Likewise.
11421         * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
11422
11423         * sysdeps/ieee754/ldbl-opt/s_casin.c: Removed.
11424         * sysdeps/ieee754/ldbl-opt/s_casinh.c: Removed.
11425         * sysdeps/ieee754/ldbl-opt/s_casinhl.c: Removed.
11426         * sysdeps/ieee754/ldbl-opt/s_casinl.c: Removed.
11427         * sysdeps/ieee754/ldbl-opt/s_csin.c: Removed.
11428         * sysdeps/ieee754/ldbl-opt/s_csinh.c: Removed.
11429         * sysdeps/ieee754/ldbl-opt/s_csinhl.c: Removed.
11430         * sysdeps/ieee754/ldbl-opt/s_csinl.c: Removed.
11431
11432         * sysdeps/m68k/m680x0/fpu/s_csin.c: Refactor into ...
11433         * sysdeps/m68k/m680x0/fpu/s_csin_template.c: New file.
11434         * sysdeps/m68k/m680x0/fpu/s_csinf.c: Removed.
11435         * sysdeps/m68k/m680x0/fpu/s_csinl.c: Removed.
11436
11437         * sysdeps/m68k/m680x0/fpu/s_csinh.c: Refactor into.
11438         * sysdeps/m68k/m680x0/fpu/s_csinh_template.c: New file.
11439         * sysdeps/m68k/m680x0/fpu/s_csinhf.c: Removed.
11440         * sysdeps/m68k/m680x0/fpu/s_csinhl.c: Removed.
11441
11442 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11443
11444         * s_casin_template.c: Copy of s_casin.c.
11445         * s_casinh_template.c: Copy of s_casinh.c.
11446         * s_csin_template.c: Copy of s_csin.c.
11447         * s_csinh_template.c: Copy of s_csinh.c.
11448         * k_casinh_template.c: Copy of k_casinh.c.
11449
11450 2016-08-19  H.J. Lu  <hongjiu.lu@intel.com>
11451
11452         * sysdeps/x86/cpu-features.h (bit_YMM_state): Set to (1 << 2).
11453
11454 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11455
11456         * sysdeps/ieee754/ldbl-128/gamma_productl.c:
11457         (mul_split) Remove, rename as mul_splitl, remove
11458         redundant float.h include, and include via mul_splitl.h
11459
11460         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
11461         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
11462         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
11463         * sysdeps/ieee754/ldbl-96/lgamma_product.c: Likewise.
11464         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
11465
11466         * math/mul_splitl.h: New file.
11467
11468         * sysdeps/ieee754/dbl-64/gamma_product.c (mul_split):
11469         Move into mul_split.h, and remove redundant float.h include.
11470
11471         * sysdeps/ieee754/dbl-64/lgamma_product.c: Likewise.
11472         * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
11473         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
11474         * sysdeps/ieee754/ldbl-128ibm/x2y2m1.c: Likewise.
11475
11476         * math/mul_split.h: New file.
11477
11478 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11479
11480         * math/Makefile (libm-gen-calls): Move
11481         s_cacos, s_cacosh, s_ccos, s_ccosh from ...
11482         (libm-calls): Remove above.
11483
11484         * math/s_cacos_template.c: Update using type-generic macros.
11485         * math/s_cacosh_template.c: Likewise.
11486         * math/s_ccos_template.c: Likewise.
11487         * math/s_ccosh_template.c: Likewise.
11488
11489         * math/s_cacosf.c: Removed.
11490         * math/s_cacos.c: Removed.
11491         * math/s_cacosl.c: Removed.
11492         * math/s_cacoshf.c: Removed.
11493         * math/s_cacosh.c: Removed.
11494         * math/s_cacoshl.c: Removed.
11495         * math/s_ccosf.c: Removed.
11496         * math/s_ccos.c: Removed.
11497         * math/s_ccosl.c: Removed.
11498         * math/s_ccoshf.c: Removed.
11499         * math/s_ccosh.c: Removed.
11500         * math/s_ccoshl.c: Removed.
11501
11502         * sysdeps/ieee754/ldbl-opt/s_cacoshl.c: Removed.
11503         * sysdeps/ieee754/ldbl-opt/s_cacosl.c: Removed.
11504         * sysdeps/ieee754/ldbl-opt/s_ccos.c: Removed.
11505         * sysdeps/ieee754/ldbl-opt/s_ccosh.c: Removed.
11506         * sysdeps/ieee754/ldbl-opt/s_ccoshl.c: Removed.
11507         * sysdeps/ieee754/ldbl-opt/s_ccosl.c: Removed.
11508
11509         * sysdeps/m68k/m680x0/fpu/s_ccosh.c: Refactor into.
11510         * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c: New file.
11511         * sysdeps/m68k/m680x0/fpu/s_ccoshf.c: Removed.
11512         * sysdeps/m68k/m680x0/fpu/s_ccoshl.c: Removed.
11513
11514         * sysdeps/alpha/fpu/s_cacosf.c: Update to use template file.
11515         * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
11516         * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
11517         * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
11518
11519 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11520
11521         * s_cacos_template.c: Copy of s_cacos.c.
11522         * s_cacosh_template.c: Copy of s_cacosh.c.
11523         * s_ccos_template.c: Copy of s_ccos.c.
11524         * s_ccosh_template.c: Copy of s_ccosh.c.
11525
11526 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11527
11528         * stdlib/tst-strtod-round-skeleton.c:
11529         Refactored from tst-strtod-round.c.
11530
11531         (L_): New macro to apply literal modifier.
11532         (FNPFX): New macro to select str or wcs prefix.
11533         (CHAR): New macro to choose wchar_t or char.
11534         (STRM): New macro to choose printf for tested character type.
11535
11536         (STRTO): New macro to choose appropriate string -> real function.
11537         (FNPFXS): Stringitized version of FNPFX.
11538         (STR): Support for above macro.
11539         (STRX): Likewise.
11540
11541         (TEST): Update with above macros.
11542         (test): Likewise.
11543         (GEN_ONE_TEST): Likewise.
11544         (test_in_one_mode): Likewise.
11545
11546         * stdlib/tst-strtod-round.c: New file.
11547         * wcsmbs/tst-wcstod-round.c: New file.
11548
11549         * wcsmbs/Makefile: (tests): Add tst-wcstod-round
11550         (tst-wcstod-round): Add libm depencency for fesetround.
11551
11552 2016-08-19  Zack Weinberg  <zackw@panix.com>
11553
11554         * debug/tst-chk1.c: Add tests for fortification of bcopy and bzero.
11555
11556 2016-08-18  Torvald Riegel  <triegel@redhat.com>
11557
11558         [BZ #20477]
11559         * resolv/res_hconf.c (do_init): Use atomic access.
11560         * resolv/res_hconf.h: Add comments.
11561         * nscd/aicache.c (addhstaiX): Call _res_hconf_init unconditionally.
11562         * nss/getXXbyYY_r.c (REENTRANT_NAME): Likewise.
11563         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
11564
11565 2016-08-18  Stefan Liebler  <stli@linux.vnet.ibm.com>
11566
11567         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
11568         Use DIAG_*_NEEDS_COMMENT macro to get rid of array-bounds warning.
11569         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
11570         Likewise.
11571
11572 2016-08-18  Florian Weimer  <fweimer@redhat.com>
11573
11574         [BZ #16907]
11575         * argp/argp.h: Switch to __BEGIN_DECLS and __END_DECLS.
11576         (__THROW, __NTH, __attribute__, __restrict): Remove definitions.
11577         * argp/argp-fmtstream.h: Add __BEGIN_DECLS and __END_DECLS.
11578         (__attribute__): Remove definition.
11579
11580 2016-08-17  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11581
11582         * sysdeps/ieee754/ldbl-128/e_asinl.c:
11583         Remove unused sqrtl declaration.
11584
11585 2016-08-17  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11586
11587         * math/Makefile: (gen-libm-templates.stmp): New rule.
11588         (libm-calls): Move carg conj cimag and cabs into ...
11589         (gen-libm-calls): New variable.
11590         (generated): Inform Make objects from gen-libm-calls
11591         may be generated.
11592
11593         * sysdeps/generic/math-type-macros.h: New file.
11594         * sysdeps/generic/math-type-macros-float.h: Likewise.
11595         * sysdeps/generic/math-type-macros-double.h: Likewise.
11596         * sysdeps/generic/math-type-macros-ldouble.h: Likewise.
11597         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Likewise.
11598         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Likewise.
11599
11600         * math/cabs.c: Refactor into
11601         * math/cabs_template.c: new file.
11602         * math/cabsf.c: Removed.
11603         * math/cabsl.c: Removed.
11604         * sysdeps/ieee754/ldbl-opt/cabsf.c: Removed.
11605         * sysdeps/ieee754/ldbl-opt/cabsl.c: Removed.
11606
11607         * math/carg.c: Refactor into
11608         * math/carg_template.c: new file.
11609         * math/cargf.c: Removed.
11610         * math/cargl.c: Removed.
11611         * sysdeps/ieee754/ldbl-opt/cargf.c: Removed.
11612         * sysdeps/ieee754/ldbl-opt/cargl.c: Removed.
11613
11614         * math/conj.c: Refactor into
11615         * math/conj_template.c: new file.
11616         * math/conjf.c: Removed.
11617         * math/conjl.c: Removed.
11618         * sysdeps/ieee754/ldbl-opt/conjf.c: Removed.
11619         * sysdeps/ieee754/ldbl-opt/conjl.c: Removed.
11620
11621         * math/cimag.c: Refactor into
11622         * math/cimag_template.c: new file.
11623         * math/cimagf.c: Removed.
11624         * math/cimagl.c: Removed.
11625         * sysdeps/ieee754/ldbl-opt/cimagf.c: Removed.
11626         * sysdeps/ieee754/ldbl-opt/cimagl.c: Removed.
11627
11628         * math/cimag.c: Refactor into
11629         * math/cimag_template.c: new file.
11630         * math/cimagf.c: Removed.
11631         * math/cimagl.c: Removed.
11632         * sysdeps/ieee754/ldbl-opt/cimagf.c: Removed.
11633         * sysdeps/ieee754/ldbl-opt/cimagl.c: Removed.
11634
11635 2016-08-17  Florian Weimer  <fweimer@redhat.com>
11636
11637         Reduce time to expected nptl/tst-once5 failure.
11638         * nptl/tst-once5.cc (TIMEOUT): Define.
11639
11640 2016-08-17  Florian Weimer  <fweimer@redhat.com>
11641
11642         [BZ #20452]
11643         Avoid additional copies of objects in libc.a in static libraries.
11644         * sysdeps/ia64/nptl/Makefile (libpthread-shared-only-routines):
11645         Add ptw-sysdep, ptw-sigblock, ptw-sigprocmask.
11646         * sysdeps/mips/Makefile (librt-shared-only-routines): Add
11647         rt-sysdep.
11648         * sysdeps/mips/nptl/Makefile (libpthread-shared-only-routines):
11649         Add nptl-sysdep.
11650         * sysdeps/s390/nptl/Makefile (libpthread-shared-only-routines):
11651         Add ptw-sysdep.
11652         * sysdeps/unix/alpha/Makefile (librt-shared-only-routines): Add
11653         rt-sysdep.
11654         * sysdeps/unix/sysv/linux/alpha/Makefile
11655         (libpthread-shared-only-routines): Add ptw-sysdep,
11656         ptw-sigprocmask, ptw-rt_sigaction.
11657         * sysdeps/unix/sysv/linux/ia64/Makefile
11658         (librt-shared-only-routines): Add rt-sysdep.
11659         * sysdeps/unix/sysv/linux/i386/Makefile
11660         (libpthread-shared-only-routines): Add libc-do-syscall.
11661         * sysdeps/unix/sysv/linux/microblaze/Makefile
11662         (libpthread-shared-only-routines): Add sysdep.
11663         * sysdeps/unix/sysv/linux/powerpc/Makefile
11664         (librt-shared-only-routines): Add rt-sysdep.
11665         (libpthread-shared-only-routines): Add sysdep.
11666         * sysdeps/unix/sysv/linux/s390/Makefile
11667         (librt-shared-only-routines): Add rt-sysdep.
11668         * sysdeps/unix/sysv/linux/sparc/Makefile
11669         (librt-shared-only-routines): Add rt-sysdep.
11670         (libpthread-shared-only-routines): Add sysdep.
11671         * sysdeps/unix/sysv/linux/tile/Makefile
11672         (libpthread-shared-only-routines): Likewise.
11673
11674 2016-08-16  Joseph Myers  <joseph@codesourcery.com>
11675
11676         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_E):
11677         Mask implicit bit out of unpacked value.
11678         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_EP): Likewise.
11679         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_E): Likewise.
11680         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_EP): Likewise.
11681
11682         * sysdeps/sparc/fpu/fesetexcept.c: New file.
11683
11684         * sysdeps/sh/sh4/fpu/fesetexcept.c: New file.
11685
11686         * sysdeps/s390/fpu/fesetexcept.c: New file.
11687
11688         * sysdeps/powerpc/fpu/fesetexcept.c: New file.
11689         * sysdeps/powerpc/nofpu/fesetexcept.c: Likewise.
11690         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetexcept.c: Likewise.
11691
11692         * sysdeps/mips/fpu/fesetexcept.c: New file.
11693
11694         * sysdeps/m68k/fpu/fesetexcept.c: New file.
11695
11696         * sysdeps/ia64/fpu/fesetexcept.c: New file.
11697
11698         * sysdeps/hppa/fpu/fesetexcept.c: New file.
11699
11700         * sysdeps/arm/fesetexcept.c: New file.
11701
11702         * sysdeps/alpha/fpu/fesetexcept.c: New file.
11703
11704         * sysdeps/aarch64/fpu/fesetexcept.c: New file.
11705
11706         * math/fesetexcept.c: New file.
11707         * sysdeps/i386/fpu/fesetexcept.c: Likewise.
11708         * sysdeps/x86_64/fpu/fesetexcept.c: Likewise.
11709         * math/fenv.h: Define
11710         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
11711         <bits/libc-header-start.h> instead of including <features.h>.
11712         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fesetexcept): New function
11713         declaration.
11714         * manual/arith.texi (fesetexcept): Document function.
11715         * math/Versions (fesetexcept): New libm symbol at version
11716         GLIBC_2.25.
11717         * math/Makefile (libm-support): Add fesetexcept.
11718         (tests): Add test-fesetexcept and test-fesetexcept-traps.
11719         * math/test-fesetexcept.c: New file.
11720         * math/test-fesetexcept-traps.c: Likewise.
11721         * sysdeps/nacl/libm.abilist: Update.
11722         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11723         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11724         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11725         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11726         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11727         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11728         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11729         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11730         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11731         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11732         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11733         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11734         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
11735         Likewise.
11736         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
11737         Likewise.
11738         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
11739         Likewise.
11740         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
11741         Likewise.
11742         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11743         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11744         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11745         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11746         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11747         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
11748         Likewise.
11749         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
11750         Likewise.
11751         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
11752         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11753         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11754
11755 2016-08-16  Florian Weimer  <fweimer@redhat.com>
11756
11757         * nptl/tst-tls3.c (default_stack_size_in_mb, stack_size_in_mb):
11758         New.
11759         (do_test): Apply default_stack_size_in_mb if not set.
11760         * nptl/tst-tls3-malloc.c (stack_size_in_mb): Override default.
11761
11762 2016-08-15  Andreas Schwab  <schwab@suse.de>
11763
11764         [BZ #20435]
11765         CVE-2016-6323
11766         * sysdeps/unix/sysv/linux/arm/setcontext.S (__startcontext): Mark
11767         as .cantunwind.
11768
11769 2016-08-12  Joseph Myers  <joseph@codesourcery.com>
11770
11771         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Add
11772         comment from fraiseexcpt.c.
11773
11774         * math/test-fexcept.c (feraiseexcept_exact): New function.
11775         (test_set): Call feraiseexcept_exact instead of feraiseexcept.
11776         (test_except): Likewise.
11777
11778 2016-08-10  Joseph Myers  <joseph@codesourcery.com>
11779
11780         [BZ #20455]
11781         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Mask out
11782         all FE_INVALID sub-exceptions from FPSCR when FE_INVALID specified
11783         to be restored.
11784
11785         * math/test-fexcept-traps.c: New file.
11786         * math/test-fexcept.c: Likewise.
11787         * math/Makefile (tests): Add test-fexcept and test-fexcept-traps.
11788         * sysdeps/generic/math-tests.h (EXCEPTION_SET_FORCES_TRAP): New
11789         macro.
11790         * sysdeps/powerpc/math-tests.h [!__NO_FPRS__]
11791         (EXCEPTION_SET_FORCES_TRAP): Likewise.
11792
11793 2016-08-09  Torvald Riegel  <triegel@redhat.com>
11794
11795         * include/atomic.h (atomic_fetch_and_relaxed,
11796         atomic_fetch_and_release, atomic_fetch_or_release,
11797         atomic_fetch_xor_release): New.
11798
11799 2016-08-06  Christian Seiler  <christian@iwakd.de>
11800
11801         [BZ #20444]
11802         * sysdeps/mach/hurd/recvmsg.c (__libc_recvmsg): Cope with aport being
11803         MACH_PORT_NULL.
11804
11805 2016-08-05  Aurelien Jarno  <aurelien@aurel32.net>
11806
11807         * math/s_fdim.c: Avoid alias renamed.
11808         * math/s_fdimf.c: Likewise.
11809         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
11810         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
11811         Add s_fdimf-vis3, s_fdim-vis3.
11812         (CFLAGS-s_fdimf-vis3.c): New. Set to -Wa,-Av9d -mvis3.
11813         (CFLAGS-s_fdim-vis3.c): Likewise.
11814         sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c: New file.
11815         sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
11816
11817 2016-08-05  Aurelien Jarno  <aurelien@aurel32.net>
11818
11819         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
11820         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
11821         Remove s_fdimf-vis3, s_fdim-vis3.
11822         * sysdeps/sparc/sparc32/fpu/s_fdim.S: Delete file.
11823         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: Likewise.
11824         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: Likewise.
11825         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: Likewise.
11826         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: Likewise.
11827         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: Likewise.
11828         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: Likewise.
11829         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: Likewise.
11830         * sysdeps/sparc/sparc64/fpu/s_fdim.S: Likewise.
11831         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: Likewise.
11832
11833 2016-08-05  Aurelien Jarno  <aurelien@aurel32.net>
11834
11835         * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Add -mvis.
11836         * sysdeps/sparc/sparc64/Makefile (sysdep-CFLAGS): New. Define to
11837         -Wa,-Av9a -mvis.
11838
11839 2016-08-05  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11840
11841         * math/gen-libm-test.pl (apply_lit): Rewrite to apply
11842         LIT() to individual constants in simple expressions
11843         after splitting on spaces.
11844         (_apply_lit): Rename replaced version, and use it to
11845         apply to what appears to be a token.
11846
11847         * math/libm-test.inc: Fix many, many issues with
11848         spacing.
11849
11850 2016-08-05  Joseph Myers  <joseph@codesourcery.com>
11851
11852         * math/math.h: Move comment about <bits/mathdef.h> definitions
11853         above inclusion of <bits/mathdef.h>.  Do not mention
11854         FLT_EVAL_METHOD, INFINITY or DECIMAL_DIG in that comment.
11855
11856 2016-08-05  Torvald Riegel  <triegel@redhat.com>
11857
11858         * include/atomic.h (atomic_exchange_relaxed): New.
11859
11860 2016-08-04  Joseph Myers  <joseph@codesourcery.com>
11861
11862         * math/e_scalb.c: Do not include <fenv.h>.
11863         (invalid_fn): Do calculation resulting in NaN instead of raising
11864         FE_INVALID and returning a NaN explicitly.
11865         * math/e_scalbf.c: Do not include <fenv.h>.
11866         (invalid_fn): Do calculation resulting in NaN instead of raising
11867         FE_INVALID and returning a NaN explicitly.
11868         * math/e_scalbl.c: Do not include <fenv.h>.
11869         (invalid_fn): Do calculation resulting in NaN instead of raising
11870         FE_INVALID and returning a NaN explicitly.
11871
11872 2016-08-04  Carlos O'Donell  <carlos@redhat.com>
11873
11874         * po/de.po: Updated from Translation Project.
11875         * po/fi.po: Likewise.
11876         * po/sv.po: Likewise.
11877
11878 2016-08-04  Florian Weimer  <fweimer@redhat.com>
11879
11880         [BZ #20452]
11881         Use sysdep.o from libc.a in static libraries.
11882         * sysdeps/unix/sysv/linux/i386/Makefile
11883         (libpthread-shared-only-routines): Add sysdep.
11884         (librt-shared-only-routines): Likewise.
11885
11886 2016-08-03  Joseph Myers  <joseph@codesourcery.com>
11887
11888         * math/tgmath.h (nextdown): Define if
11889         [__GLIBC_USE (IEC_60559_BFP_EXT)], not if [__USE_GNU].
11890         (nextup): Likewise.
11891
11892         * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_FUNCS_EXT): New
11893         macro.
11894         * include/features.h (__STDC_WANT_IEC_60559_FUNCS_EXT__):
11895         Document.
11896         * manual/creature.texi (__STDC_WANT_IEC_60559_FUNCS_EXT__):
11897         Document macro.
11898         * manual/math.texi (exp10): Document as ISO from TS 18661-4:2015.
11899         (exp10f): Likewise.
11900         (exp10l): Likewise.
11901         * math/bits/mathcalls.h (exp10): Declare if
11902         [__GLIBC_USE (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
11903
11904         * manual/arith.texi (nextup): Fix typo in last change.
11905
11906 2016-08-03  Zack Weinberg  <zackw@panix.com>
11907
11908         [BZ #19239]
11909         * NEWS: Inclusion of <sys/sysmacros.h> by <sys/types.h> is deprecated.
11910         * misc/sys/sysmacros.h: If __SYSMACROS_DEPRECATED_INCLUSION is defined,
11911         define major, minor, and makedev to issue deprecation warnings on use.
11912         If __SYSMACROS_DEPRECATED_INCLUSION is *not* defined, suppress
11913         previously-activated deprecation warnings for these macros and prevent
11914         subsequent inclusions of this header from having any effect.
11915         * posix/sys/types.h: Define __SYSMACROS_DEPRECATED_INCLUSION before
11916         including <sys/sysmacros.h>, and undefine it again afterward.
11917
11918 2016-08-03  Zack Weinberg  <zackw@panix.com>
11919
11920         * sysdeps/generic/sys/sysmacros.h: Delete file.
11921         * sysdeps/unix/sysv/linux/makedev.c: Delete file.
11922         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Move file ...
11923         * bits/sysmacros.h: ... here; this encoding is now the generic
11924         encoding.  Now defines only the following macros:
11925         __SYSMACROS_DECLARE_MAJOR, __SYSMACROS_DEFINE_MAJOR,
11926         __SYSMACROS_DECLARE_MINOR, __SYSMACROS_DEFINE_MINOR,
11927         __SYSMACROS_DECLARE_MAKEDEV, __SYSMACROS_DEFINE_MAKEDEV.
11928
11929         * misc/sys/sysmacros.h, misc/makedev.c: New files that use
11930         bits/sysmacros.h and the above new macros to generate the
11931         public implementations of major, minor, and makedev.
11932         * misc/tst-makedev.c: New test.
11933         * include/sys/sysmacros.h: New wrapper.
11934
11935         * misc/Makefile (headers): Add sys/sysmacros.h, bits/sysmacros.h.
11936         (routines): Add makedev.
11937         (tests): Add tst-makedev.
11938         * misc/Versions [GLIBC_2.25]: Add gnu_dev_major, gnu_dev_minor,
11939         gnu_dev_makedev.
11940         * posix/Makefile (headers): Remove sys/sysmacros.h.
11941         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove makedev.
11942
11943         * sysdeps/arm/nacl/libc.abilist: Add GLIBC_2.25,
11944         gnu_dev_major, gnu_dev_makedev, gnu_dev_minor.
11945         * sysdeps/unix/sysv/linux/aarch64/libc.abilist
11946         * sysdeps/unix/sysv/linux/alpha/libc.abilist
11947         * sysdeps/unix/sysv/linux/arm/libc.abilist
11948         * sysdeps/unix/sysv/linux/hppa/libc.abilist
11949         * sysdeps/unix/sysv/linux/i386/libc.abilist
11950         * sysdeps/unix/sysv/linux/ia64/libc.abilist
11951         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
11952         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist
11953         * sysdeps/unix/sysv/linux/microblaze/libc.abilist
11954         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
11955         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
11956         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
11957         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
11958         * sysdeps/unix/sysv/linux/nios2/libc.abilist
11959         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
11960         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
11961         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
11962         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
11963         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist
11964         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
11965         * sysdeps/unix/sysv/linux/sh/libc.abilist
11966         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
11967         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
11968         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
11969         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
11970         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist
11971         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist
11972         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist:
11973         Add GLIBC_2.25.
11974
11975         * include/features.h (__glibc_clang_prereq): New macro.
11976         * misc/sys/cdefs.h (__glibc_clang_has_extension)
11977         (__attribute_deprecated_msg__): New macros.
11978
11979 2016-08-03  Joseph Myers  <joseph@codesourcery.com>
11980
11981         * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_BFP_EXT): New
11982         macro.
11983         * include/features.h (__STDC_WANT_IEC_60559_BFP_EXT__): Document.
11984         * manual/arith.texi (issignaling): Document as ISO from TS
11985         18661-1:2014.
11986         (nextup): Likewise.
11987         (nextupf): Likewise.
11988         (nextupl): Likewise.
11989         (nextdown): Likewise.
11990         (nextdownf): Likewise.
11991         (nextdownl): Likewise.
11992         * manual/creature.texi (__STDC_WANT_IEC_60559_BFP_EXT__): Document
11993         macro.
11994         * math/math.h: Define
11995         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
11996         <bits/libc-header-start.h> instead of including <features.h>.
11997         (issignaling): Define if [__GLIBC_USE (IEC_60559_BFP_EXT)], not
11998         [__USE_GNU].
11999         * math/bits/mathcalls.h (nextdown): Declare if
12000         [__GLIBC_USE (IEC_60559_BFP_EXT)], not [__USE_GNU].
12001         (nextup): Likewise.
12002         (__issignaling): Likewise.
12003
12004 2016-08-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12005
12006         * s_ccoshf.c (__ccoshf): Remove FE_INVALID
12007         check, and remove __glibc_likely hint
12008         from FP_INFINITE check.
12009         * s_csinhf.c (__csinhf): Likewise.
12010
12011         * s_ccoshl.c (__ccoshl): Remove __glibc_likely
12012         hint from FP_INFINITE check.
12013         * s_csinhl.c (__csinhl): Likewise.
12014
12015 2016-08-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12016
12017         * math/Makefile (libm-calls): Insert F placeholder into
12018         object names.  Move w_lgamma_compat* routines into
12019         (libm-compat-calls): New variable.
12020         (libm-compat-calls-ldouble-yes): New variable.
12021         (calls): Insert F placeholder.
12022         (generated): Redefine using new type-foreach macro call.
12023         (routines): Likewise.
12024
12025         (types): New variable to hold a list of symbolic names
12026         for each type supported by the target machine.
12027         (libm-routines): Redefine using new types variable.
12028         (type-foreach): macro to replace fooF with the
12029         appropriately suffixed foo for each types.
12030
12031         (type-ldouble-suffix): New variable.
12032         (type-ldouble-routines): Likewise.
12033         (type-ldouble-yes): Likewise.
12034         (type-double-suffix): Likewise.
12035         (type-double-routines): Likewise.
12036         (type-float-suffix): Likewise.
12037         (type-float-routines): Likewise.
12038
12039         (dbl-only-routines): Remove.
12040         (long-c-yes): Likewise.
12041         (long-m-routines): Likewise.
12042         (long-m-support): Likewise.
12043         (long-m-yes): Likewise.
12044         (test-longdouble-yes): Likewise.
12045
12046         (test-float.o): Simplify by increasing the scope of the
12047         recipe which adds libm-test.stmp to the vector types.
12048         (test-ifloat.o): Likewise.
12049         (test-float-finite.o): Likewise.
12050         (test-double.o): Likewise
12051         (test-idouble.o): Likewise.
12052         (test-double-finite.o): Likewise.
12053         (test-ldouble.o): Likewise
12054         (test-ildoubl.o): Likewise.
12055         (test-ldouble-finite.o): Likewise.
12056
12057         (libm-tests): Redefine type tests using foreach and the
12058         list of types in types.
12059
12060         (CPPFLAGS-test-ildoubl.c): Rename to
12061         (CPPFLAGS-test-ildouble.c): New variable
12062
12063         * math/test-ildoubl.c: Rename to
12064         * math/test-ildouble.c: New file.
12065
12066 2016-08-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12067
12068         * sysdeps/ieee754/ldbl-128/k_tanl.c (__kernal_tanl):
12069         Use fabsl instead of fabs.
12070         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl):
12071         Likewise.
12072         * sysdeps/ieee754/ldbl-128/s_atanl.c (__kernel_tanl):
12073         Add long double suffix to constant to ensure proper
12074         promotion to long double.
12075
12076 2016-08-03  Tom Tromey  <tom@tromey.com>
12077
12078         [BZ #20311]
12079         * nptl_db/Makefile (headers): Add proc_service.h.
12080         * nptl_db/proc_service.h: Add include guard.  Use
12081         __BEGIN/__END_DECLS.
12082         (ps_get_thread_area, ps_pstop, ps_pcontinue, ps_lstop)
12083         (ps_lcontinue): Remove "const" from "struct ps_prochandle *"
12084         arguments.
12085
12086
12087 2016-08-03  Florian Weimer  <fweimer@redhat.com>
12088
12089         [BZ #17730]
12090         Avoid using memalign for TCB allocations.
12091         * elf/dl-tls.c (tcb_to_pointer_to_free_location): New.
12092         (_dl_allocate_tls_storage): Use malloc and manual alignment.
12093         Avoid alignment gap in the TLS_DTV_AT_TP case.
12094         (_dl_deallocate_tls): Use tcb_to_pointer_to_free_location to
12095         determine the pointer to free.
12096         * nptl/tst-tls3-malloc.c: New test.
12097         * nptl/Makefile (tests): Add it.
12098         (tst-tls3-malloc): Link with libdl, libpthread.
12099         (LDFLAGS-tst-tls3-malloc): Set.
12100         (tst-tls3-malloc.out): Depend on DSO used in test.
12101
12102 2016-08-03  Florian Weimer  <fweimer@redhat.com>
12103
12104         [BZ #17730]
12105         Avoid using memalign for TLS allocations.
12106         * sysdeps/generic/dl-dtv.h (struct dtv_pointer): New.  Replaces
12107         is_static member with to_free member.
12108         (union dtv): Use struct dtv_pointer.
12109         * csu/libc-tls.c (__libc_setup_tls): Set to_free member of struct
12110         dtv_pointer instead of is_static.
12111         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
12112         (_dl_deallocate_tls): Free to_free member of struct dtv_pointer
12113         instead of val.
12114         (allocate_dtv_entry): New function.
12115         (allocate_and_init): Return struct dtv_pointer.  Call
12116         allocate_dtv_entry instead of __libc_memalign.
12117         (_dl_update_slotinfo): Free to_free member of struct dtv_pointer
12118         instead of val.
12119         (tls_get_addr_tail): Set to_free member of struct dtv_pointer
12120         instead of is_static.  Adjust call to allocate_and_init.
12121         * nptl/allocatestack.c (get_cached_stack): Free to_free member of
12122         struct dtv_pointer instead of val.
12123
12124 2016-08-03  Florian Weimer  <fweimer@redhat.com>
12125
12126         * malloc/malloc.c (INTERNAL_SIZE_T, SIZE_SZ, MALLOC_ALIGNMENT)
12127         (MALLOC_ALIGN_MASK): Move ...
12128         * malloc/malloc-internal.h: ... to here.
12129         * elf/dl-minimal.c (malloc): Allocate with MALLOC_ALIGNMENT.
12130
12131 2016-08-03  Joseph Myers  <joseph@codesourcery.com>
12132
12133         * sysdeps/gnu/netinet/udp.h (UDP_ENCAP_GTP0): New macro.
12134         (UDP_ENCAP_GTP1U): Likewise.
12135
12136         * sysdeps/unix/sysv/linux/bits/socket.h (PF_QIPCRTR): New macro.
12137         (PF_MAX): Update value.
12138         (AF_QIPCRTR): New macro.
12139
12140 2016-08-03  Aurelien Jarno  <aurelien@aurel32.net>
12141
12142         * sysdeps/ieee754/dbl-64/s_trunc.c: Avoid alias renamed.
12143         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
12144         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
12145         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
12146         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
12147         Add s_ceilf-vis3, s_ceil-vis3, s_floorf-vis3, s_floor-vis3,
12148         s_truncf-vis3, s_trunc-vis3.
12149         (CFLAGS-s_ceilf-vis3.c): New. Set to -Wa,-Av9d -mvis3.
12150         (CFLAGS-s_ceil-vis3.c): Likewise.
12151         (CFLAGS-s_floorf-vis3.c): Likewise.
12152         (CFLAGS-s_floor-vis3.c): Likewise.
12153         (CFLAGS-s_truncf-vis3.c): Likewise.
12154         (CFLAGS-s_trunc-vis3.c): Likewise.
12155         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.c: New file.
12156         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
12157         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.c: Likewise.
12158         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
12159         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.c: Likewise.
12160         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
12161         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.c: Likewise.
12162         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
12163         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.c: Likewise.
12164         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
12165         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.c: Likewise.
12166         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
12167
12168 2016-08-02  David S. Miller  <davem@davemloft.net>
12169
12170         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S
12171         (__nearbyint_vis3): Don't check for sNaN before float register is
12172         loaded with the incoming argument.
12173         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S
12174         (__nearbyintf_vis3): Likewise.
12175         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S (__nearbyint):
12176         Likewise.
12177         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S (__nearbyintf):
12178         Likewise.
12179
12180         * string/test-strncmp.c (do_test_limit): Make sure the test data
12181         stream is aligned as required for the type "CHAR".
12182         (do_test): Likewise.
12183
12184 2016-08-03  Aurelien Jarno  <aurelien@aurel32.net>
12185
12186         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Replace beqlr instructions
12187         by beq instructions jumping to the end of the function.
12188         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Add "11", "12", "cr0" to the
12189         clobber list. Use "i" constraint instead of "X".
12190         (ifunc_one): Add "12" to the clobber list. Use "i" constraint instead
12191         of "X".
12192
12193 2016-08-02  Joseph Myers  <joseph@codesourcery.com>
12194
12195         * bits/libc-header-start.h: New file.
12196         * Makefile (headers): Add bits/libc-header-start.h.
12197         * include/features.h (__STDC_WANT_LIB_EXT2__): Document.
12198         (__GLIBC_USE): New macro.
12199         * libio/stdio.h: Define
12200         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
12201         <bits/libc-header-start.h> instead of including <features.h>.
12202         (fmemopen): Declare also if [__GLIBC_USE (LIB_EXT2)].
12203         (open_memstream): Likewise.
12204         (vasprintf): Declare if [__GLIBC_USE (LIB_EXT2)], not [__USE_GNU].
12205         (__asprintf): Likewise.
12206         (asprintf): Likewise.
12207         (__getdelim): Declare also if [__GLIBC_USE (LIB_EXT2)].
12208         (getdelim): Likewise.
12209         (getline): Likewise.
12210         * string/string.h: Define
12211         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
12212         <bits/libc-header-start.h> instead of including <features.h>.
12213         (strdup): Declare also if [__GLIBC_USE (LIB_EXT2)]
12214         (strndup): Likewise.
12215         * wcsmbs/wchar.h: Define
12216         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
12217         <bits/libc-header-start.h> instead of including <features.h>.
12218         (open_wmemstream): Declare also if [__GLIBC_USE (LIB_EXT2)].
12219         * manual/creature.texi (__STDC_WANT_LIB_EXT2__): Document macro.
12220
12221 2016-08-02  Florian Weimer  <fweimer@redhat.com>
12222
12223         Support linking against compatibility symbols, for use in tests.
12224         * include/libc-symbols.h (symbol_version_reference): New macro.
12225         (symbol_version): Use it.
12226         * include/shlib-compat.h: Unconditionally include <abi-versions.h>.
12227         (compat_symbol): Use compat_symbol_reference.
12228         (compat_symbol_1, compat_symbol_2): Remove.
12229         (compat_symbol_reference, compat_symbol_reference_1)
12230         (compat_symbol_reference_2): New macro.  Use
12231         symbol_version_reference.
12232
12233 2016-08-02  Florian Weimer  <fweimer@redhat.com>
12234
12235         [BZ #19469]
12236         * malloc/Makefile (CPPFLAGS): Compile tests with
12237         -DTEST_NO_MALLOPT.
12238         * test-skeleton.c (main): Only call mallopt if !TEST_NO_MALLOPT.
12239
12240 2016-08-02  Andrew Senkevich  <andrew.senkevich@intel.com>
12241
12242         [BZ #20033]
12243         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S: Call
12244         finite version.
12245         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S: Likewise.
12246         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S: Likewise.
12247         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S: Likewise.
12248         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S: Likewise.
12249         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S: Likewise.
12250         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S: Likewise.
12251         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S: Likewise.
12252         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S: Likewise.
12253         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: Likewise.
12254         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S: Likewise.
12255         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S: Likewise.
12256         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S: Likewise.
12257         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S: Likewise.
12258         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S: Likewise.
12259         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S: Likewise.
12260         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S: Likewise.
12261         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S: Likewise.
12262         * sysdeps/x86_64/fpu/svml_d_exp2_core.S: Likewise.
12263         * sysdeps/x86_64/fpu/svml_d_log2_core.S: Likewise.
12264         * sysdeps/x86_64/fpu/svml_d_pow2_core.S: Likewise.
12265         * sysdeps/x86_64/fpu/svml_s_expf4_core.S: Likewise.
12266         * sysdeps/x86_64/fpu/svml_s_logf4_core.S: Likewise.
12267         * sysdeps/x86_64/fpu/svml_s_powf4_core.S: Likewise.
12268         * math/libm-test.inc (pow_test_data): Exclude tests for qNaN
12269         in zero power.
12270
12271 2016-08-02  Florian Weimer  <fweimer@redhat.com>
12272
12273         [BZ #20370]
12274         * malloc/arena.c (get_free_list): Update comment.  Assert that
12275         arenas on the free list have no attached threads.
12276         (remove_from_free_list): New function.
12277         (reused_arena): Call it.
12278
12279 2016-08-02  Aurelien Jarno  <aurelien@aurel32.net>
12280
12281         * sysdeps/alpha/fpu/s_ceil.c (__ceil): Add argument with itself
12282         when it is a NaN.
12283         [_IEEE_FP_INEXACT] Remove.
12284         * sysdeps/alpha/fpu/s_ceilf.c (__ceilf): Likewise.
12285         * sysdeps/alpha/fpu/s_floor.c (__floor): Add argument with itself
12286         when it is a NaN.
12287         [_IEEE_FP_INEXACT] Remove.
12288         * sysdeps/alpha/fpu/s_floorf.c (__floorf): Likewise.
12289         * sysdeps/alpha/fpu/s_rint.c (__rint): Add argument with itself
12290         when it is a NaN.
12291         * sysdeps/alpha/fpu/s_rintf.c (__rintf): Likewise.
12292         * sysdeps/alpha/fpu/s_trunc.c (__trunc): Return the input value
12293         when its absolute value is greater than 0x1.0p52.
12294         [_IEEE_FP_INEXACT] Remove.
12295         * sysdeps/alpha/fpu/s_truncf.c (__truncf): Return the input value
12296         when its absolute value is greater than 0x1.0p23.
12297         [_IEEE_FP_INEXACT] Remove.
12298
12299 2016-08-01  Carlos O'Donell  <carlos@redhat.com>
12300
12301         * version.h (RELEASE): Set to "development"
12302         (VERSION): Set to 2.24.90.
12303         * NEWS: Add 2.25 section.
12304
12305         * version.h (RELEASE): Set to "stable"
12306         (VERSION): Set to 2.24.
12307         * include/features.h (__GLIBC_MINOR__): Set to 24.
12308
12309         * NEWS: Add 2.24 fixed bugs.
12310         * po/libc.pot: Regenerate.
12311
12312 2016-08-01  Aurelien Jarno  <aurelien@aurel32.net>
12313
12314         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
12315         [$(subdir) = math] (libm-sysdep_routines): Remove.
12316         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
12317         Remove s_ceilf-vis3, s_ceil-vis3, s_floorf-vis3, s_floor-vis3,
12318         s_truncf-vis3, s_trunc-vis3.
12319         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
12320         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: Delete
12321         file.
12322         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Likewise.
12323         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Likewise.
12324         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: Likewise.
12325         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: Likewise.
12326         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
12327         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: Likewise.
12328         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Likewise.
12329         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
12330         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: Likewise.
12331         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: Likewise.
12332         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: Likewise.
12333         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: Likewise.
12334         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: Likewise.
12335         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: Likewise.
12336         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: Likewise.
12337         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
12338         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
12339         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
12340         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: Likewise.
12341         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: Likewise.
12342         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: Likewise.
12343         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: Likewise.
12344         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
12345         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
12346         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: Likewise.
12347         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
12348         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
12349         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: Likewise.
12350         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
12351         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
12352         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: Likewise.
12353         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
12354         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
12355         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: Likewise.
12356         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: Likewise.
12357         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: Likewise.
12358         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: Likewise.
12359         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
12360         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
12361         * sysdeps/sparc/sparc64/fpu/s_floor.S: Likewise.
12362         * sysdeps/sparc/sparc64/fpu/s_floorf.S: Likewise.
12363         * sysdeps/sparc/sparc64/fpu/s_trunc.S: Likewise.
12364         * sysdeps/sparc/sparc64/fpu/s_truncf.S: Likewise.
12365
12366 2016-07-27  H.J. Lu  <hongjiu.lu@intel.com>
12367
12368         [BZ #20384]
12369         * sysdeps/x86_64/fpu/Makefile (extra-test-objs): Add
12370         test-double-libmvec-sincos-avx-main.o,
12371         test-double-libmvec-sincos-avx2-main.o,
12372         test-double-libmvec-sincos-main.o,
12373         test-float-libmvec-sincosf-avx-main.o,
12374         test-float-libmvec-sincosf-avx2-main.o and
12375         test-float-libmvec-sincosf-main.o.
12376         test-float-libmvec-sincosf-avx512-main.o.
12377         ($(objpfx)test-double-libmvec-sincos): Also link with
12378         $(objpfx)test-double-libmvec-sincos-main.o.
12379         ($(objpfx)test-double-libmvec-sincos-avx): Also link with
12380         $(objpfx)test-double-libmvec-sincos-avx-main.o.
12381         ($(objpfx)test-double-libmvec-sincos-avx2): Also link with
12382         $(objpfx)test-double-libmvec-sincos-avx2-main.o.
12383         ($(objpfx)test-float-libmvec-sincosf): Also link with
12384         $(objpfx)test-float-libmvec-sincosf-main.o.
12385         ($(objpfx)test-float-libmvec-sincosf-avx): Also link with
12386         $(objpfx)test-float-libmvec-sincosf-avx2-main.o.
12387         [$(config-cflags-avx512) == yes] (extra-test-objs): Add
12388         test-double-libmvec-sincos-avx512-main.o and
12389         ($(objpfx)test-double-libmvec-sincos-avx512): Also link with
12390         $(objpfx)test-double-libmvec-sincos-avx512-main.o.
12391         ($(objpfx)test-float-libmvec-sincosf-avx512): Also link with
12392         $(objpfx)test-float-libmvec-sincosf-avx512-main.o.
12393         (CFLAGS-test-double-libmvec-sincos.c): Removed.
12394         (CFLAGS-test-float-libmvec-sincosf.c): Likewise.
12395         (CFLAGS-test-double-libmvec-sincos-main.c): New.
12396         (CFLAGS-test-double-libmvec-sincos-avx-main.c): Likewise.
12397         (CFLAGS-test-double-libmvec-sincos-avx2-main.c): Likewise.
12398         (CFLAGS-test-float-libmvec-sincosf-main.c): Likewise.
12399         (CFLAGS-test-float-libmvec-sincosf-avx-main.c): Likewise.
12400         (CFLAGS-test-float-libmvec-sincosf-avx2-main.c): Likewise.
12401         (CFLAGS-test-float-libmvec-sincosf-avx512-main.c): Likewise.
12402         (CFLAGS-test-double-libmvec-sincos-avx.c): Set to -DREQUIRE_AVX.
12403         (CFLAGS-test-float-libmvec-sincosf-avx.c ): Likewise.
12404         (CFLAGS-test-double-libmvec-sincos-avx2.c): Set to
12405         -DREQUIRE_AVX2.
12406         (CFLAGS-test-float-libmvec-sincosf-avx2.c ): Likewise.
12407         (CFLAGS-test-double-libmvec-sincos-avx512.c): Set to
12408         -DREQUIRE_AVX512F.
12409         (CFLAGS-test-float-libmvec-sincosf-avx512.c): Likewise.
12410         * sysdeps/x86_64/fpu/test-double-libmvec-sincos.c: Rewritten.
12411         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf.c: Likewise.
12412         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx-main.c: New
12413         file.
12414         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx2-main.c:
12415         Likewise.
12416         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx512-main.c:
12417         Likewise.
12418         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-main.c:
12419         Likewise.
12420         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx-main.c:
12421         Likewise.
12422         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx2-main.c:
12423         Likewise.
12424         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx512-main.c:
12425         Likewise.
12426         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-main.c:
12427         Likewise.
12428
12429 2016-07-27  Chung-Lin Tang  <cltang@codesourcery.com>
12430
12431         * sysdeps/unix/sysv/linux/nios2/localplt.data (__eqsf2): Remove.
12432
12433 2016-07-21  Gustavo Romero  <gromero@linux.vnet.ibm.com>
12434
12435         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Fix missing verb
12436         and typo in a comment about AT_HWCAP entry.
12437
12438 2016-07-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12439
12440         * sysdeps/aarch64/libm-test-ulps: Updated.
12441
12442 2016-07-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
12443
12444         * sysdeps/s390/s390-32/memcpy.S (memcpy): Eliminate the usage
12445         of r13 as it is not restored in mvcle case.
12446
12447 2016-07-19  Mike Frysinger  <vapier@gentoo.org>
12448
12449         * sysdeps/unix/sysv/linux/microblaze/sysdep.h (inline_syscall0):
12450         Rename "ret" to "__ret".
12451         (inline_syscall1, inline_syscall2, inline_syscall3, inline_syscall4,
12452         inline_syscall5, inline_syscall6): Likewise.
12453
12454 2016-07-19   Will Newton  <will.newton@gmail.com>
12455
12456         * elf/elf.h (R_METAG_REL8, R_METAG_REL16, R_METAG_TLS_GD
12457         R_METAG_TLS_LDM, R_METAG_TLS_LDO_HI16, R_METAG_TLS_LDO_LO16,
12458         R_METAG_TLS_LDO, R_METAG_TLS_IE, R_METAG_TLS_IENONPIC,
12459         R_METAG_TLS_IENONPIC_HI16, R_METAG_TLS_IENONPIC_LO16,
12460         R_METAG_TLS_LE, R_METAG_TLS_LE_HI16, R_METAG_TLS_LE_LO16): New.
12461
12462 2016-07-18  H.J. Lu  <hongjiu.lu@intel.com>
12463
12464         * sysdeps/i386/Makefile (rtld-CFLAGS): New.
12465         [subdir == elf] (CFLAGS-.os): Replace -mno-sse -mno-mmx
12466         -mfpmath=387 with $(rtld-CFLAGS).
12467         [subdir != elf] (CFLAGS-.os): Compile rtld-*.os with
12468         $(rtld-CFLAGS).
12469
12470 2016-07-18   Ross Burton  <ross.burton@intel.com>
12471              Khem Raj  <raj.khem@gmail.com>
12472
12473         * elf/elf.h (R_METAG_HIADDR16, R_METAG_LOADDR16,
12474         R_METAG_ADDR32, R_METAG_NONE, R_METAG_RELBRANCH,
12475         R_METAG_GETSETOFF, R_METAG_REG32OP1, R_METAG_REG32OP2,
12476         R_METAG_REG32OP3, R_METAG_REG16OP1, R_METAG_REG16OP2,
12477         R_METAG_REG16OP3, R_METAG_REG32OP4, R_METAG_HIOG,
12478         R_METAG_LOOG, R_METAG_GNU_VTINHERIT, R_METAG_GNU_VTENTRY,
12479         R_METAG_HI16_GOTOFF, R_METAG_LO16_GOTOFF,
12480         R_METAG_GETSET_GOTOFF, R_METAG_GETSET_GOT, R_METAG_HI16_GOTPC,
12481         R_METAG_LO16_GOTPC, R_METAG_HI16_PLT, R_METAG_LO16_PLT,
12482         R_METAG_RELBRANCH_PLT, R_METAG_GOTOFF, R_METAG_PLT,
12483         R_METAG_COPY, R_METAG_JMP_SLOT, R_METAG_RELATIVE,
12484         R_METAG_GLOB_DAT, R_METAG_TLS_TPOFF, R_METAG_TLS_DTPMOD,
12485         R_METAG_TLS_DTPOFF): New.
12486
12487 2016-07-18  Siddhesh Poyarekar  <siddhesh@sourceware.org>
12488             Matt Clay  <mclay@lycos.com>
12489
12490         [BZ #20357]
12491         * sysdeps/ieee754/dbl-64/s_sin.c (sloww): Fix up condition
12492         to call __mpsin/__mpcos and to negate values.
12493         * math/auto-libm-test-in: Add test.
12494         * math/auto-libm-test-out: Regenerate.
12495
12496 2016-07-18  Zack Weinberg  <zackw@panix.com>
12497
12498         * grp/Makefile: Don't install the internal header grp-merge.h.
12499
12500 2016-07-18  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12501
12502         * sysdeps/aarch64/libm-test-ulps: Regenerated.
12503
12504 2016-07-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12505
12506         * bits/termios.h (TABDLY): Change macro to include TAB3 bit too.
12507
12508 2016-07-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12509
12510         [BZ #15368]
12511         * sysdeps/unix/sysv/linux/nptl-signals.h
12512         (__nptl_clear_internal_signals): New function.
12513         (__libc_signal_block_all): Likewise.
12514         (__libc_signal_block_app): Likewise.
12515         (__libc_signal_restore_set): Likewise.
12516         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Use Linux raise.c
12517         implementation.
12518         * sysdeps/unix/sysv/linux/raise.c (raise): Reimplement to not use
12519         the cached pid/tid value in pthread structure.
12520
12521 2016-07-13  H.J. Lu  <hongjiu.lu@intel.com>
12522
12523         [BZ #20347]
12524         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
12525
12526 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
12527
12528         [BZ #20348]
12529         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add pread64,
12530         preadv64, pwrite64 and pwritev64.
12531
12532 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
12533
12534         [BZ #20350]
12535         * posix/tst-preadwrite.c: Renamed to ...
12536         * posix/tst-preadwrite-common.c: This.
12537         (PREAD): Removed.
12538         (PWRITE): Likewise.
12539         (STRINGIFY): Likewise.
12540         (STRINGIFY2): Likewise.
12541         (do_prepare): Make it static and remove function arguments.
12542         (do_test): Likewise.
12543         (PREPARE): Updated.
12544         (TEST_FUNCTION): New.
12545         (name): Make it static.
12546         (fd): Likewise.
12547         (do_prepare): Use create_temp_file.
12548         (do_test): Renamed to ...
12549         (do_test_with_offset): This.  Make it static and accept offset.
12550         Properly check return value of PWRITE and PREAD.  Return bytes
12551         read.  Don't close fd nor unlink name.
12552         * posix/tst-preadwrite.c: Rewrite.
12553         * posix/tst-preadwrite64.c: Likewise.
12554
12555 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
12556
12557         [BZ #20309]
12558         * configure.ac (have-mtls-dialect-gnu2): Set to yes if
12559         -mtls-dialect=gnu2 works.
12560         * configure: Regenerated.
12561         * elf/Makefile [have-mtls-dialect-gnu2 = yes]
12562         (tests): Add tst-gnu2-tls1.
12563         (modules-names): Add tst-gnu2-tls1mod.
12564         ($(objpfx)tst-gnu2-tls1): New.
12565         (tst-gnu2-tls1mod.so-no-z-defs): Likewise.
12566         (CFLAGS-tst-gnu2-tls1mod.c): Likewise.
12567         * elf/tst-gnu2-tls1.c: New file.
12568         * elf/tst-gnu2-tls1mod.c: Likewise.
12569         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Add 8
12570         bytes for push in the PLT entry to align the stack.
12571
12572 2016-07-11  H.J. Lu  <hongjiu.lu@intel.com>
12573
12574         [BZ #20349]
12575         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (LO_HI_LONG): New.
12576
12577 2016-07-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12578
12579         [BZ #18707]
12580         * sysdeps/aarch64/Makefile (CFLAGS-mcount.c): Add -mgeneral-regs-only.
12581         * sysdeps/aarch64/sysdep.h (CALL_MCOUNT): Save argument registers.
12582
12583 2016-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12584
12585         * sysdeps/unix/sysv/linux/sysdep.h
12586         [__WORDSIZE == 64 || __ASSUME_WORDSIZE64_ILP32] (LO_HI_LONG): Remove
12587         guards.
12588         * misc/tst-preadvwritev-common.c: New file.
12589         * misc/tst-preadvwritev.c: Use tst-preadvwritev-common.c.
12590         * misc/tst-preadvwritev64.c: Use tst-preadwritev-common.c and add
12591         a check for files larger than 2GB.
12592
12593         * sysdeps/unix/sysv/linux/mips/kernel-features.h
12594         (__ASSUME_OFF_DIFF_OFF64): Remove define.
12595         * sysdeps/unix/sysv/linux/pread.c
12596         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pread): Replace by
12597         __OFF_T_MATCHES_OFF64_T.
12598         * sysdeps/unix/sysv/linux/pread64.c
12599         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pread64): Likewise.
12600         * sysdeps/unix/sysv/linux/preadv.c
12601         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Likewise.
12602         * sysdeps/unix/sysv/linux/preadv64.c
12603         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv64): Likewise.
12604         * sysdeps/unix/sysv/linux/pwrite.c
12605         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwrite): Likewise.
12606         * sysdeps/unix/sysv/linux/pwrite64.c
12607         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwrite64): Likewise.
12608         * sysdeps/unix/sysv/linux/pwritev.c
12609         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Likewise.
12610         * sysdeps/unix/sysv/linux/pwritev64.c
12611         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev64): Likewise.
12612
12613 2016-07-08  Chris Metcalf  <cmetcalf@mellanox.com>
12614
12615         * sysdeps/unix/sysv/linux/tile/kernel-features.h
12616         (__ASSUME_ALIGNED_REGISTER_PAIRS): Only define if !_LP64.
12617
12618 2016-07-08  Aurelien Jarno  <aurelien@aurel32.net>
12619
12620         * bits/in.h (__USE_KERNEL_IPV6_DEFS): Define to 0.
12621
12622 2016-07-08  Aurelien Jarno  <aurelien@aurel32.net>
12623
12624         [BZ #20240]
12625         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
12626         (CFLAGS-s_modf-ppc32.c): New variable.
12627         (CFLAGS-s_modff-ppc32.c): Likewise.
12628         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
12629         (CFLAGS-s_modf-ppc64.c): Likewise.
12630         (CFLAGS-s_modff-ppc64.c): Likewise.
12631
12632 2016-07-07  Andreas Schwab  <schwab@suse.de>
12633
12634         [BZ #20263]
12635         * nptl/tst-robust10.c: New test.
12636         * nptl/Makefile (tests): Add tst-robust10.
12637
12638 2016-07-07  Jiyoung Yun  <t2wish@gmail.com>
12639
12640         [BZ #20263]
12641         * nptl/lowlevelrobustlock.c: Implement ETIMEDOUT logic.
12642
12643 2016-07-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
12644
12645         * sysdeps/s390/linkmap.h (struct link_map_machine):
12646         Remove member gotplt and add member jmprel.
12647         * sysdeps/s390/s390-32/dl-machine.h
12648         (elf_machine_runtime_setup): Setup member jmprel with DT_JMPREL
12649         instead of gotplt with &got[3].
12650         (elf_machine_lazy_rel): Calculate address with reloc and jmprel.
12651         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12652
12653 2016-07-06  John David Anglin  <danglin@gcc.gnu.org>
12654
12655         * sysdeps/hppa/fpu/libm-test-ulps: Regenerate.
12656
12657 2016-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12658
12659         * libio/iofopncook.c (_IO_cookie_read, _IO_cookie_write,
12660         _IO_cookie_seek, _IO_cookie_close, _IO_old_cookie_seek)
12661         [!PTR_DEMANGLE]: Do not call PTR_DEMANGLE.
12662         (set_callbacks) [!PTR_MANGLE]: Do not call PTR_MANGLE.
12663         * libio/vtables.c (_IO_vtable_check)
12664         [!PTR_DEMANGLE]: Do not call PTR_DEMANGLE.
12665         * libio/libioP.h (IO_set_accept_foreign_vtables)
12666         [!PTR_MANGLE]: Do not call PTR_MANGLE.
12667
12668 2016-07-05  H.J. Lu  <hongjiu.lu@intel.com>
12669
12670         [BZ #20314]
12671         * Makeconfig (CXXFLAGS): Prepend -I$(common-objpfx).
12672         * Makerules (before-compile): Add $(common-objpfx)cstdlib and
12673         $(common-objpfx)cmath.
12674         ($(common-objpfx)cstdlib): New target.
12675         ($(common-objpfx)cmath): Likewise.
12676
12677 2016-07-05  Chris Metcalf  <cmetcalf@mellanox.com>
12678
12679         * malloc/tst-malloc-thread-fail.c (TIMEOUT): Bump up to 30s.
12680
12681 2016-07-05  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
12682
12683         [BZ #20327]
12684         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Mask bits that
12685         are not part of the string.
12686
12687 2016-07-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12688
12689         * nptl/tst-cancel4-common.c (do_test): Add temporary fifo creation.
12690         * nptl/tst-cancel4-common.h (fifoname): New variable.
12691         (fifofd): Likewise.
12692         (cl_fifo): New function.
12693         * nptl/tst-cancel4.c (tf_sigpause): Replace SIGCANCEL usage by
12694         SIGINT.
12695         (tf_open): Add early cancel test.
12696
12697 2016-07-04  Andreas Schwab  <schwab@linux-m68k.org>
12698
12699         * sysdeps/m68k/Makefile (CFLAGS-mcount.c): Define.
12700
12701 2016-07-01  Maciej W. Rozycki  <macro@imgtec.com>
12702
12703         * sysdeps/generic/ldsodefs.h
12704         (dl_symbol_visibility_binds_local_p): New inline function.
12705         * elf/dl-addr.c (determine_info): Treat hidden and internal
12706         symbols as local.
12707         * elf/dl-lookup.c (do_lookup_x): Likewise.
12708         * elf/dl-reloc.c (RESOLVE_MAP): Likewise.
12709
12710 2016-07-01  Aurelien Jarno  <aurelien@aurel32.net>
12711
12712         * sparc/sparc32/sparcv9/fpu/s_nearbyint.S (__nearbyint): Trigger an
12713         invalid exception for a sNaN input.
12714         * sparc/sparc32/sparcv9/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
12715         * sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S
12716         (__nearbyint_vis3): Likewise
12717         * sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S
12718         (__nearbyintf_vis3): Likewise
12719         * sparc/sparc64/fpu/s_nearbyint.S (__nearbyint): Likewise.
12720         * sparc/sparc64/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
12721         * sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S (__nearbyint_vis3):
12722         Likewise.
12723         * sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S (__nearbyintf_vis3):
12724         Likewise.
12725
12726 2016-07-01  H.J. Lu  <hongjiu.lu@intel.com>
12727
12728         [BZ #20139]
12729         * config.h.in (HAVE_AVX512_ASM_SUPPORT): Renamed to ...
12730         (HAVE_AVX512DQ_ASM_SUPPORT): This.
12731         * sysdeps/x86_64/configure.ac: Require assembler from binutils
12732         2.24 or above.
12733         (HAVE_AVX512_ASM_SUPPORT): Removed.
12734         (HAVE_AVX512DQ_ASM_SUPPORT): New.
12735         * sysdeps/x86_64/configure: Regenerated.
12736         * sysdeps/x86_64/dl-trampoline.S: Make HAVE_AVX512_ASM_SUPPORT
12737         check unconditional.
12738         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
12739         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
12740         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
12741         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
12742         Likewise.
12743         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
12744         Likewise.
12745         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
12746         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
12747         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
12748         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
12749         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
12750         Likewise.
12751         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
12752         Likewise.
12753         * sysdeps/x86_64/multiarch/memset.S: Likewise.
12754         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
12755         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Check
12756         HAVE_AVX512DQ_ASM_SUPPORT instead of HAVE_AVX512_ASM_SUPPORT.
12757         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S:
12758         Likewise.
12759         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S:
12760         Likewise.
12761         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S:
12762         Likewise.
12763         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S:
12764         Likewise.
12765         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.:
12766         Likewise.
12767         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S:
12768         Likewise.
12769         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S:
12770         Likewise.
12771         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S:
12772         Likewise.
12773         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S:
12774         Likewise.
12775         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx51:
12776         Likewise.
12777         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S:
12778         Likewise.
12779
12780 2016-07-01  Andrew Senkevich  <andrew.senkevich@intel.com>
12781
12782         [BZ #20024]
12783         * sysdeps/x86/fpu/test-math-vector-sincos.h: New.
12784         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Fixed ABI
12785         of this implementation of vector function.
12786         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
12787         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
12788         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
12789         Likewise.
12790         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
12791         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
12792         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: Likewise.
12793         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: Likewise.
12794         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: Likewise.
12795         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Likewise.
12796         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
12797         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S: Likewise.
12798         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S: Likewise.
12799         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S: Likewise.
12800         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Use another wrapper
12801         for testing vector sincos with fixed ABI.
12802         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
12803         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
12804         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
12805         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
12806         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
12807         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
12808         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
12809         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx.c: New test.
12810         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx2.c: Likewise.
12811         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx512.c: Likewise.
12812         * sysdeps/x86_64/fpu/test-double-libmvec-sincos.c: Likewise.
12813         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx.c: Likewise.
12814         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx2.c: Likewise.
12815         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx512.c: Likewise.
12816         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf.c: Likewise.
12817         * sysdeps/x86_64/fpu/Makefile: Added new tests.
12818
12819 2016-06-30  Aurelien Jarno  <aurelien@aurel32.net>
12820
12821         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Add _Qp_cmp.
12822
12823 2016-06-30  Anton Blanchard  <anton@samba.org>
12824
12825         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
12826         [$(subdir) = math] (libm-sysdep_routines): Add s_sinf-power8 and
12827         s_sinf-ppc64.
12828         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: New file.
12829         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
12830         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
12831         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
12832
12833 2016-06-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
12834
12835         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12836         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
12837         [$(subdir) = math] (libm-sysdep_routines): Add e_expf-power8 and
12838         e_expf-ppc64.
12839         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: New file.
12840         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Likewise.
12841         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c: Likewise.
12842         * sysdeps/powerpc/powerpc64/power8/fpu/e_expf.S: Likewise.
12843
12844 2016-06-30  John David Anglin  <danglin@gcc.gnu.org>
12845
12846         [BZ #20277]
12847         * sysdeps/hppa/start.S (_start): Correct loading of global pointer
12848         when SHARED is defined.
12849
12850 2016-06-30  H.J. Lu  <hongjiu.lu@intel.com>
12851
12852         * sysdeps/x86/cpu-features.h (bit_arch_Prefer_ERMS): New.
12853         (index_arch_Prefer_ERMS): Likewise.
12854         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Return
12855         __memcpy_erms for Prefer_ERMS.
12856         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
12857         (__memmove_erms): Enabled for libc.a.
12858         * ysdeps/x86_64/multiarch/memmove.S (__libc_memmove): Return
12859         __memmove_erms or Prefer_ERMS.
12860         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Return
12861         __mempcpy_erms for Prefer_ERMS.
12862         * sysdeps/x86_64/multiarch/memset.S (memset): Return
12863         __memset_erms for Prefer_ERMS.
12864
12865 2016-06-30  Andreas Schwab  <schwab@suse.de>
12866
12867         [BZ #20262]
12868         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Return
12869         NSS_STATUS_SUCCESS when done.  Return NSS_STATUS_TRYAGAIN when out
12870         of memory.
12871
12872 2016-06-29  H.J. Lu  <hongjiu.lu@intel.com>
12873
12874         [BZ #18645]
12875         * nptl/Makefile (extra-test-objs): Add tst-cleanupx4aux.o.
12876         (test-extras): Add tst-cleanupx4aux.
12877         (CFLAGS-tst-cleanupx4aux.c): New.  Set to -fexceptions.
12878         ($(objpfx)tst-cleanupx4): Replace tst-cleanup4aux.o with
12879         tst-cleanupx4aux.o.
12880         * nptl/tst-cleanupx4aux.c: New file.
12881
12882 2016-06-30  Aurelien Jarno  <aurelien@aurel32.net>
12883
12884         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
12885
12886 2016-06-29  Andreas Schwab  <schwab@suse.de>
12887
12888         [BZ #20260]
12889         * sysdeps/x86/bits/string.h (__strncat_g) [!__i686__]: Compute the
12890         address before the beginning of the string as an integer to avoid
12891         array-bounds warning.
12892
12893 2016-06-28  Richard Henderson  <rth@redhat.com>
12894
12895         * elf/elf.h (EM_BPF): New.
12896         (EM_NUM): Update.
12897         (R_BPF_NONE, R_BPF_MAP_FD): New.
12898
12899         * elf/elf.h (EM_IAMCU, EM_SPU, EM_PDP10, EM_PDP11, EM_ARC_COMPACT,
12900         EM_VIDEOCORE, EM_TMM_GPP, EM_NS32K, EM_TPC, EM_SNP1K, EM_ST200,
12901         EM_IP2K, EM_MAX, EM_CR, EM_F2MC16, EM_MSP430, EM_BLACKFIN, EM_SE_C33,
12902         EM_SEP, EM_ARCA, EM_UNICORE, EM_EXCESS, EM_DXP, EM_ALTERA_NIOS2,
12903         EM_CRX, EM_XGATE, EM_C166, EM_M16C, EM_DSPIC30F, EM_CE, EM_M32C,
12904         EM_TSK3000, EM_RS08, EM_SHARC, EM_ECOG2, EM_SCORE7, EM_DSP24,
12905         EM_VIDEOCORE3, EM_LATTICEMICO32, EM_SE_C17, EM_TI_C6000, EM_TI_C2000,
12906         EM_TI_C5500, EM_TI_ARP32, EM_TI_PRU, EM_MMDSP_PLUS, EM_CYPRESS_M8C,
12907         EM_R32C, EM_TRIMEDIA, EM_QDSP6, EM_8051, EM_STXP7X, EM_NDS32,
12908         EM_ECOG1X, EM_MAXQ30, EM_XIMO16, EM_MANIK, EM_CRAYNV2, EM_RX,
12909         EM_METAG, EM_MCST_ELBRUS, EM_ECOG16, EM_CR16, EM_ETPU, EM_SLE9X,
12910         EM_L10M, EM_K10M, EM_AVR32, EM_STM8, EM_TILE64, EM_CUDA,
12911         EM_CLOUDSHIELD, EM_COREA_1ST, EM_COREA_2ND, EM_ARC_COMPACT2,
12912         EM_OPEN8, EM_RL78, EM_VIDEOCORE5, EM_78KOR, EM_56800EX, EM_BA1,
12913         EM_BA2, EM_XCORE, EM_MCHP_PIC, EM_KM32, EM_KMX32, EM_EMX16, EM_EMX8,
12914         EM_KVARC, EM_CDP, EM_COGE, EM_COOL, EM_NORC, EM_CSR_KALIMBA, EM_Z80,
12915         EM_VISIUM, EM_FT32, EM_MOXIE, EM_AMDGPU, EM_RISCV, EM_BPF): New.
12916         (EM_NUM): Update.
12917
12918 2016-06-28  Stefan Liebler  <stli@linux.vnet.ibm.com>
12919
12920         [BZ #18960]
12921         * locale/localeinfo.h (_NL_CURRENT_DEFINE):
12922         Set _nl_current_LC_CATEGORY_used to two instead of one.
12923
12924 2016-06-27  Aurelien Jarno  <aurelien@aurel32.net>
12925
12926         * sysdeps/mips/tst-mode-switch-1.c (main): Converted to ...
12927         (do_test): ... this.
12928         (TEST_FUNCTION): New macro.
12929          Include test-skeleton.c.
12930         * sysdeps/mips/tst-mode-switch-2.c (main): Likewise.
12931         * sysdeps/mips/tst-mode-switch-3.c (main): Likewise.
12932
12933 2016-06-27  Joseph Myers  <joseph@codesourcery.com>
12934
12935         [BZ #15479]
12936         * sysdeps/i386/fpu/s_trunc.S (__trunc): Save and restore
12937         floating-point environment rather than just control word.
12938         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
12939         * sysdeps/i386/fpu/s_truncl.S (__truncl): Save and restore
12940         floating-point environment, with "invalid" exceptions merged in,
12941         rather than just control word.
12942         * sysdeps/x86_64/fpu/s_truncl.S (__truncl): Likewise.
12943         * math/libm-test.inc (trunc_test_data): Do not allow spurious
12944         "inexact" exceptions.
12945
12946         [BZ #15479]
12947         * sysdeps/i386/fpu/s_floor.S (__floor): Save and restore
12948         floating-point environment rather than just control word.
12949         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
12950         * sysdeps/i386/fpu/s_floorl.S (__floorl): Save and restore
12951         floating-point environment, with "invalid" exceptions merged in,
12952         rather than just control word.
12953         * sysdeps/x86_64/fpu/s_floorl.S (__floorl): Likewise.
12954         * math/libm-test.inc (floor_test_data): Do not allow spurious
12955         "inexact" exceptions.
12956
12957         [BZ #15479]
12958         * sysdeps/i386/fpu/s_ceil.S (__ceil): Save and restore
12959         floating-point environment rather than just control word.
12960         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
12961         * sysdeps/i386/fpu/s_ceill.S (__ceill): Save and restore
12962         floating-point environment, with "invalid" exceptions merged in,
12963         rather than just control word.
12964         * sysdeps/x86_64/fpu/s_ceill.S (__ceill): Likewise.
12965         * math/libm-test.inc (ceil_test_data): Do not allow spurious
12966         "inexact" exceptions.
12967
12968 2016-06-21  Aurelien Jarno  <aurelien@aurel32.net>
12969
12970         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Rename into
12971         __libc_vfork.
12972         (__vfork) [IS_IN (libc)]: Remove alias.
12973         (__libc_vfork) [IS_IN (libc)]: Define as an alias.
12974         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
12975         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
12976
12977 2016-06-24  Torvald Riegel  <triegel@redhat.com>
12978
12979         * nscd/cache.c (cache_add): Use new C11-like atomic operation instead
12980         of atomic_compare_and_exchange_bool_rel.
12981         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
12982         * include/atomic.h (atomic_compare_and_exchange_bool_rel,
12983         catomic_compare_and_exchange_bool_rel): Remove.
12984         * sysdeps/aarch64/atomic-machine.h
12985         (atomic_compare_and_exchange_bool_rel): Likewise.
12986         * sysdeps/alpha/atomic-machine.h
12987         (atomic_compare_and_exchange_bool_rel): Likewise.
12988         * sysdeps/arm/atomic-machine.h
12989         (atomic_compare_and_exchange_bool_rel): Likewise.
12990         * sysdeps/mips/atomic-machine.h
12991         (atomic_compare_and_exchange_bool_rel): Likewise.
12992         * sysdeps/microblaze/atomic-machine.h
12993         ( __arch_compare_and_exchange_bool_8_rel,
12994         __arch_compare_and_exchange_bool_16_rel): Likewise.
12995         * sysdeps/powerpc/atomic-machine.h
12996         ( __arch_compare_and_exchange_bool_8_rel,
12997         __arch_compare_and_exchange_bool_16_rel): Likewise.
12998         * sysdeps/powerpc/powerpc32/atomic-machine.h
12999         ( __arch_compare_and_exchange_bool_32_rel,
13000         __arch_compare_and_exchange_bool_64_rel): Likewise.
13001         * sysdeps/powerpc/powerpc64/atomic-machine.h
13002         ( __arch_compare_and_exchange_bool_32_rel,
13003         __arch_compare_and_exchange_bool_64_rel): Likewise.
13004         * sysdeps/tile/atomic-machine.h
13005         (atomic_compare_and_exchange_bool_rel): Likewise.
13006
13007 2016-06-23  Joseph Myers  <joseph@codesourcery.com>
13008
13009         [BZ #20296]
13010         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Add arguments
13011         when either argument is a NaN.
13012         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
13013         * math/libm-test.inc (scalb_test_data): Add sNaN tests.
13014
13015         * math/libm-test.inc (snan_value_ld): New macro.
13016         (isgreater_test_data): Add sNaN tests.
13017         (isgreaterequal_test_data): Likewise.
13018         (isless_test_data): Likewise.
13019         (islessequal_test_data): Likewise.
13020         (islessgreater_test_data): Likewise.
13021         (isunordered_test_data): Likewise.
13022         (nextafter_test_data): Likewise.
13023         (nexttoward_test_data): Likewise.
13024         (remainder_test_data): Likewise.
13025         (remquo_test_data): Likewise.
13026         (significand_test_data): Likewise.
13027         * math/gen-libm-test.pl (%beautify): Add snan_value_ld.
13028
13029 2016-06-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
13030
13031         * posix/getconf.c: Define ALL_ENVIRONMENTS_DEFINED if all
13032         environment macros are defined.
13033         (main): Avoid execve if ALL_ENVIRONMENTS_DEFINED is defined.
13034
13035 2016-06-23  Florian Weimer  <fweimer@redhat.com>
13036
13037         [BZ #20191]
13038         Implement vtable verification in libio.
13039         * Makerules (shlib.lds): Place __libc_IO_vtables section.
13040         * debug/obprintf_chk.c (_IO_obstack_jumps): Define as vtable.
13041         * debug/vdprintf_chk.c (__vdprintf_chk): Call
13042         _IO_new_file_init_internal instead of _IO_file_init.
13043         * debug/vsnprintf_chk.c (_IO_strn_jumps): Define as vtable.
13044         * debug/vsprintf_chk.c (_IO_str_chk_jumps): Likewise.
13045         * libio/Makefile (routines): Add vtables.
13046         * libio/libioP.h (_IO_JUMPS_FUNC): Call IO_validate_vtable.
13047         (_IO_init): Remove, not for internal use.
13048         (_IO_init_internal): Declare, internal replacement for _IO_init.
13049         (_IO_file_init): Remove, not for internal use.
13050         (_IO_new_file_init): Remove, not for internal use.
13051         (_IO_new_file_init_internal): Declare, internal replacement for
13052         _IO_new_file_init.
13053         (_IO_old_file_init): Remove, not for internal use.
13054         (_IO_old_file_init_internal): Declare, internal replacement for
13055         _IO_old_file_init.
13056         (_IO_str_init_static, _IO_str_init_readonly): Remove, not for
13057         internal use.
13058         (__libc_IO_vtables, IO_accept_foreign_vtables, _IO_vtable_check):
13059         Declare.
13060         (libio_vtable): New macro.
13061         (IO_set_accept_foreign_vtables, _IO_validate_vtable): New inline
13062         functions.
13063         * libio/fileops.c (_IO_new_file_init_internal): Rename from
13064         _IO_new_file_init.
13065         (_IO_new_file_init): New externally visible wrapper which disables
13066         vtable verification.
13067         (_IO_file_jumps, _IO_file_jumps_mmap, _IO_file_jumps_maybe_mmap):
13068         Define as vtables.
13069         * libio/genops.c (_IO_init_internal): Rename from _IO_init.
13070         (_IO_init): New externally visible wrapper which disables
13071         vtable verification.
13072         * libio/iofdopen.c (_IO_new_fdopen): Call
13073         _IO_new_file_init_internal instead of _IO_file_init.  Adjust
13074         comment.
13075         * libio/iofopen.c (__fopen_internal): Call
13076         _IO_new_file_init_internal instead of _IO_file_init.
13077         * libio/iofopncook.c (_IO_cookie_jumps, _IO_old_cookie_jumps):
13078         Define as vtables.
13079         (_IO_cookie_init): Call _IO_init_internal instead of _IO_init,
13080         _IO_new_file_init_internal instead of _IO_file_init.
13081         * libio/iopopen.c (_IO_new_popen): Likewise.
13082         (_IO_proc_jumps): Define as vtable.
13083         * libio/iovdprintf.c (_IO_vdprintf): Call
13084         _IO_new_file_init_internal instead of _IO_file_init.
13085         * libio/memstream.c (_IO_mem_jumps): Define as vtable.
13086         (__open_memstream): Call _IO_init_internal instead of _IO_init.
13087         * libio/obprintf.c (_IO_obstack_jumps): Define as vtable.
13088         * libio/oldfileops.c (_IO_old_file_init_internal): Rename from
13089         _IO_old_file_init.
13090         (_IO_old_file_init): New externally visible wrapper which disables
13091         vtable verification.
13092         (_IO_old_file_jumps): Define as vtable.
13093         * libio/oldiofdopen.c (_IO_old_fdopen): Call
13094         _IO_old_file_init_internal instead of _IO_old_file_init.
13095         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
13096         * libio/oldiopopen.c (_IO_old_popen): Likewise.
13097         (_IO_old_proc_jumps): Define as vtable.
13098         * libio/strops.c (_IO_str_jumps, _IO_strn_jumps, _IO_wstrn_jumps):
13099         Define as vtables.
13100         * libio/vtables.c: New file.
13101         * libio/wfileops.c (_IO_wfile_jumps, _IO_wfile_jumps_mmap)
13102         (_IO_wfile_jumps_maybe_mmap): Define as vtables.
13103         * libio/wmemstream.c (_IO_wmem_jumps): Define as vtable.
13104         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
13105         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
13106         * stdlib/strfmon_l.c (__vstrfmon_l): Call _IO_init_internal
13107         instead of _IO_init.
13108
13109 2016-06-23  Florian Weimer  <fweimer@redhat.com>
13110
13111         * test-skeleton.c (xrealloc): Support deallocation with n == 0.
13112
13113 2016-06-23  Florian Weimer  <fweimer@redhat.com>
13114
13115         * test-skeleton.c (xmalloc, xcalloc, xrealloc): Mark as
13116         potentially unused.
13117
13118 2016-06-22  Florian Weimer  <fweimer@redhat.com>
13119
13120         * test-skeleton.c (write_message): New function.
13121         * malloc/tst-mallocfork2.c (write_message): Remove.
13122         * debug/tst-longjmp_chk2.c (write_indented): New function.
13123         (write_message): Remove.
13124         (stackoverflow_handler): Call write_indented.
13125
13126 2016-06-22  Joseph Myers  <joseph@codesourcery.com>
13127
13128         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Do not mask
13129         "inexact" exceptions after fnstenv.
13130         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
13131         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
13132         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
13133
13134 2015-06-22  Zack Weinberg  <zackw@panix.com>
13135
13136         * sysdeps/generic/bits/hwcap.h: Moved to ...
13137         * bits/hwcap.h: Here.
13138
13139 2016-06-22  Wilco Dijkstra  <wdijkstr@arm.com>
13140
13141         * sysdeps/aarch64/memcpy.S (memcpy):
13142         Further tuning for performance.
13143
13144 2016-06-21  Florian Weimer  <fweimer@redhat.com>
13145
13146         [BZ #20284]
13147         * malloc/arena.c (reused_arena): Do not return NULL if we start
13148         out with a non-corrupted arena.
13149
13150 2016-06-21 Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13151
13152         * misc/Makefile (tests): Add tst-preadvwritev and tst-preadvwritev64.
13153         * misc/tst-preadvwritev.c: New file.
13154         * misc/tst-preadvwritev64.c: Likewise.
13155         * sysdeps/unix/sysv/linux/preadv.c (preadv): Remove SYSCALL_LL{64}
13156         usage.
13157         * sysdeps/unix/sysv/linux/preadv64.c (preadv64): Likewise.
13158         * sysdeps/unix/sysv/linux/pwritev.c (pwritev): Likewise.
13159         * sysdeps/unix/sysv/linux/pwritev64.c (pwritev64): Likewise.
13160         * sysdeps/unix/sysv/linux/sysdep.h (LO_HI_LONG): New macro.
13161
13162 2016-06-20  Andrew Senkevich  <andrew.senkevich@intel.com>
13163
13164         [BZ #19654]
13165         * sysdeps/x86_64/fpu/Makefile: Added new tests.
13166         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-main.c: New.
13167         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-mod.c: Likewise.
13168         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx.c: Likewise.
13169         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-main.c: Likewise.
13170         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-mod.c: Likewise.
13171         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2.c: Likewise.
13172         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-main.c: Likewise.
13173         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-mod.c: Likewise.
13174         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512.c: Likewise.
13175         * sysdeps/x86_64/fpu/test-double-libmvec-alias-main.c: Likewise.
13176         * sysdeps/x86_64/fpu/test-double-libmvec-alias-mod.c: Likewise.
13177         * sysdeps/x86_64/fpu/test-double-libmvec-alias.c: Likewise.
13178         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-main.c: Likewise.
13179         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-mod.c: Likewise.
13180         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx.c: Likewise.
13181         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-main.c: Likewise.
13182         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-mod.c: Likewise.
13183         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2.c: Likewise.
13184         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-main.c: Likewise.
13185         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-mod.c: Likewise.
13186         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512.c: Likewise.
13187         * sysdeps/x86_64/fpu/test-float-libmvec-alias-main.c: Likewise.
13188         * sysdeps/x86_64/fpu/test-float-libmvec-alias-mod.c: Likewise.
13189         * sysdeps/x86_64/fpu/test-float-libmvec-alias.c: Likewise.
13190         * sysdeps/x86_64/fpu/test-libmvec-alias-mod.c: Likewise.
13191
13192 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
13193
13194         * sysdeps/aarch64/rawmemchr.S (__rawmemchr): New file.
13195         * sysdeps/aarch64/strlen.S (__strlen): Change to __strlen to avoid PLT.
13196
13197 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
13198
13199         * sysdeps/aarch64/memcpy.S (memcpy):
13200         Rewrite of optimized memcpy and memmove.
13201         * sysdeps/aarch64/memmove.S (memmove): Remove
13202         memmove code (merged into memcpy.S).
13203
13204 2016-06-20  Florian Weimer  <fweimer@redhat.com>
13205
13206         Consolidate machine-agnostic DTV definitions in <dl-dtv.h>.
13207         * sysdeps/generic/dl-dtv.h: New file.
13208         * sysdeps/aarch64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
13209         * sysdeps/aarch64/nptl/tls.h: Include <dl-dtv.h>.
13210         (dtv_t): Remove.
13211         * sysdeps/alpha/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
13212         * sysdeps/alpha/nptl/tls.h: Include <dl-dtv.h>.
13213         (dtv_t): Remove.
13214         * sysdeps/arm/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
13215         * sysdeps/arm/nptl/tls.h: Include <dl-dtv.h>.
13216         (dtv_t): Remove.
13217         * sysdeps/hppa/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
13218         * sysdeps/hppa/nptl/tls.h: Include <dl-dtv.h>.
13219         (dtv_t): Remove.
13220         * sysdeps/i386/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
13221         * sysdeps/i386/nptl/tls.h: Include <dl-dtv.h>.
13222         (dtv_t): Remove.
13223         * sysdeps/ia64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
13224         * sysdeps/ia64/nptl/tls.h: Include <dl-dtv.h>.
13225         (dtv_t): Remove.
13226         * sysdeps/m68k/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
13227         * sysdeps/m68k/nptl/tls.h: Include <dl-dtv.h>.
13228         (dtv_t): Remove.
13229         * sysdeps/mach/hurd/i386/tls.h: Include <dl-dtv.h>.
13230         (dtv_t): Remove.
13231         * sysdeps/microblaze/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
13232         * sysdeps/microblaze/nptl/tls.h: Include <dl-dtv.h>.
13233         (dtv_t): Remove.
13234         * sysdeps/mips/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
13235         * sysdeps/mips/nptl/tls.h: Include <dl-dtv.h>.
13236         (dtv_t): Remove.
13237         * sysdeps/nios2/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
13238         * sysdeps/nios2/nptl/tls.h: Include <dl-dtv.h>.
13239         (dtv_t): Remove.
13240         * sysdeps/powerpc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
13241         * sysdeps/powerpc/nptl/tls.h: Include <dl-dtv.h>.
13242         (dtv_t): Remove.
13243         * sysdeps/s390/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
13244         * sysdeps/s390/nptl/tls.h: Include <dl-dtv.h>.
13245         (dtv_t): Remove.
13246         * sysdeps/sh/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
13247         * sysdeps/sh/nptl/tls.h: Include <dl-dtv.h>.
13248         (dtv_t): Remove.
13249         * sysdeps/sparc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
13250         * sysdeps/sparc/nptl/tls.h: Include <dl-dtv.h>.
13251         (dtv_t): Remove.
13252         * sysdeps/x86_64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
13253         * sysdeps/x86_64/nptl/tls.h: Include <dl-dtv.h>.
13254         (dtv_t): Remove.
13255
13256 2016-06-20  Florian Weimer  <fweimer@redhat.com>
13257
13258         Revert symbol poisoning of  __malloc_initialize_hook.
13259         * include/stdc-predef.h (__malloc_initialize_hook): Remove
13260         poisoning.
13261         * malloc/Makefile: Remove un-poisoning.
13262         * malloc/arena.c (ptmalloc_init): Use __malloc_initialize_hook
13263         instead of old__malloc_initialize_hook.
13264         * malloc/malloc-hooks.h: Likewise.
13265         * malloc/malloc.c: Likewise.
13266         * malloc/mcheck-init.c: Likewise.
13267
13268 2016-06-19  Carlos O'Donell  <carlos@redhat.com>
13269
13270         * sysdeps/unix/sysv/linux/times.c (__times): Expand comments.
13271
13272 2016-06-18  Aurelien Jarno  <aurelien@aurel32.net>
13273
13274         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Conditionalize
13275         hidden_def, weak_alias and strong_alias on [IS_IN (libc)].
13276         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
13277         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
13278
13279 2016-06-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
13280
13281         * NEWS: Mention addition of nextup and nextdown.
13282         * manual/arith.texi: Document nextup and nextdown.
13283         * manual/libm-err-tab.pl: Add nextup and nextdown.
13284         * math/Makefile (libm-calls): Add s_nextdown and s_nextup.
13285         * math/Versions (libm): Add GLIBC_2.24.
13286         * math/bits/mathcalls.h: Add nextup and nextdown declaration.
13287         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
13288         Add new test.
13289         (nextafter_test_data) [TEST_COND_binary32]: Likewise.
13290         (nextafter_test_data) [TEST_COND_m68k96]: Likewise.
13291         (nextafter_test_data) [TEST_COND_binary64]: Likewise.
13292         (nextafter_test_data) [TEST_COND_binary128]: Likewise.
13293         (nextup_test_data): Likewise.
13294         (nextdown_test_data): Likewise.
13295         * math/s_nextdown.c: New file.
13296         * math/s_nextdownf.c: Likewise.
13297         * math/s_nextdownl.c: Likewise.
13298         * math/test-tgmath.c F(compile_test)): Add nextup and nextdown tests.
13299         F(nextup): New function.
13300         F(nextdown): Likewise.
13301         * math/tgmath.h: Add nextup and nextdown.
13302         * sysdeps/ieee754/flt-32/s_nextupf.c: New file.
13303         * sysdeps/ieee754/dbl-64/s_nextup.c: Likewise.
13304         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
13305         * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
13306         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
13307         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls):
13308         Add nextup and nextdown.
13309         (CFLAGS-nldbl-nextup.c): New variable.
13310         (CFLAGS-nldbl-nextdown.c): Likewise.
13311         * sysdeps/ieee754/ldbl-opt/nldbl-nextdown.c: New file.
13312         * sysdeps/ieee754/ldbl-opt/nldbl-nextup.c: Likewise.
13313         * sysdeps/nacl/libm.abilist: Update.
13314         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13315         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13316         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13317         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13318         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13319         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13320         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13321         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13322         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13323         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13324         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13325         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13326         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
13327         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
13328         Likewise.
13329         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
13330         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
13331         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13332         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13333         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13334         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13335         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13336         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Likewise.
13337         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: Likewise.
13338         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
13339         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13340         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
13341         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13342
13343 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
13344
13345         * manual/pattern.texi: Fix typos & grammar errors.
13346
13347 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
13348
13349         * manual/search.texi: Fix typos & grammar errors.
13350
13351 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
13352
13353         * manual/message.texi: Fix typos & grammar errors.
13354
13355 2016-06-16  Mike Frysinger  <vapier@gentoo.org>
13356
13357         * manual/contrib.texi: Fix spelling typos.
13358         * manual/crypt.texi: Likewise.
13359         * manual/filesys.texi: Likewise.
13360         * manual/locale.texi: Likewise.
13361         * manual/message.texi: Likewise.
13362         * manual/nss.texi: Likewise.
13363         * manual/string.texi: Likewise.
13364
13365 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
13366
13367         * manual/locale.texi: Fix typos & grammar errors.
13368
13369 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
13370
13371         * manual/charset.texi: Fix typos & grammar errors.
13372
13373 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
13374
13375         * manual/string.texi: Fix typos.
13376
13377 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
13378
13379         * manual/ctype.texi: Fix typos.
13380
13381 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
13382
13383         * manual/memory.texi: Fix various typos & grammar errors.
13384
13385 2016-06-14  Joseph Myers  <joseph@codesourcery.com>
13386
13387         [BZ #20255]
13388         * sysdeps/i386/fpu/s_fdim.c: New file.  Based on math/s_fdim.c.
13389         * math/libm-test.inc (fdim_test_data): Add another test.
13390
13391         [BZ #6796]
13392         [BZ #20255]
13393         [BZ #20256]
13394         * math/s_fdim.c: Include <math_private.h>.
13395         (__fdim): Use math_narrow_eval on result.
13396         * math/s_fdimf.c: Include <math_private.h>.
13397         (__fdimf): Use math_narrow_eval on result.
13398         * sysdeps/i386/fpu/s_fdim.S: Remove file.
13399         * sysdeps/i386/fpu/s_fdimf.S: Likewise.
13400         * sysdeps/i386/fpu/s_fdiml.S: Likewise.
13401         * sysdeps/i386/i686/fpu/s_fdim.S: Likewise.
13402         * sysdeps/i386/i686/fpu/s_fdimf.S: Likewise.
13403         * sysdeps/i386/i686/fpu/s_fdiml.S: Likewise.
13404         * sysdeps/powerpc/fpu/s_fdim.c: Likewise.
13405         * sysdeps/powerpc/fpu/s_fdimf.c: Likewise.
13406         * sysdeps/powerpc/powerpc32/fpu/s_fdim.c: Likewise.
13407         * sysdeps/powerpc/powerpc64/fpu/s_fdim.c: Likewise.
13408         * sysdeps/x86_64/fpu/s_fdiml.S: Likewise.
13409         * math/libm-test.inc (fdim_test_data): Expect errno setting on
13410         overflow.  Add sNaN tests.
13411
13412         * math/s_fdim.c (__fdim): Use islessequal and isinf instead of
13413         fpclassify.
13414         * math/s_fdimf.c (__fdimf): Likewise.
13415         * math/s_fdiml.c (__fdiml): Likewise.
13416
13417 2016-06-14  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
13418
13419         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
13420         (sysdep_routines): Add P8 and PPC64 strcasecmp/strncasecmp targets.
13421         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
13422         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
13423         ifunc'ed strcasecmp/strncasecmp.
13424         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S:
13425         [EALIGN]: Removed.
13426         [END]: Likewise.
13427         [__strcasecmp]: Define instead of the above to control symbol name.
13428         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Add IFUNC selector
13429         for __strcasecmp_power8.
13430         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Add IFUNC selector
13431         for __strncasecmp_power8.
13432         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: New File.
13433         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-ppc64.c: Likewise.
13434         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
13435         * sysdeps/powerpc/powerpc64/multiarch/strncase-ppc64.c: Likewise.
13436         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Likewise.
13437         * sysdeps/powerpc/powerpc64/power8/strncase.S: Likewise.
13438
13439 2016-06-13  Joseph Myers  <joseph@codesourcery.com>
13440
13441         [BZ #20252]
13442         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Add both
13443         arguments when second argument is a NaN.
13444         * math/libm-test.inc (atan2_test_data): Add sNaN tests and more
13445         qNaN tests.
13446
13447         * math/libm-test.inc (cimag_test_data): Add sNaN tests.
13448         (conj_test_data): Likewise.
13449         (copysign_test_data): Likewise.
13450         (creal_test_data): Likewise.
13451         (fma_test_data): Likewise.
13452         (fmod_test_data): Likewise.
13453
13454         [BZ #20250]
13455         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Add non-finite input to
13456         itself.
13457         * sysdeps/ieee754/dbl-64/s_frexp.c (__frexp): Add non-finite or
13458         zero input to itself.
13459         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp):
13460         Likewise.
13461         * sysdeps/ieee754/flt-32/s_frexpf.c (__frexpf): Likewise.
13462         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
13463         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
13464         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
13465         * math/libm-test.inc (frexp_test_data): Add sNaN tests.
13466
13467 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13468
13469         * nptl/Makefile (test): Add tst-cancel4_1 and tst-cancel4_2.
13470         * nptl/tst-cancel4-common.c: New file.
13471         * nptl/tst-cancel4-common.h: Likewise.
13472         * nptl/tst-cancel4.c: Move common definitions to
13473         tst-cancel4-common.{c,h} file.
13474         * nptl/tst-cancel4_1.c: New test.
13475         * nptl/tst-cancel4_2.c: New test.
13476
13477 2016-06-13  Florian Weimer  <fweimer@redhat.com>
13478
13479         [BZ #20248]
13480         * debug/tst-longjmp_chk2.c (pass): Use volatile sig_atomic_t.
13481         (write_message): New function.
13482         (stackoverflow_handler): Call it instead of printf, to avoid
13483         excessive stack usage by printf.
13484         (do_test): Restore SIGSEGV, SIGBUS default handlers.
13485
13486 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13487
13488         * nptl/pthread_mutex_init.c [__ASSUME_FUTEX_LOCK_PI]
13489         (prio_inherit_missing): Remove define.
13490         * sysdeps/unix/sysv/linux/arm/kernel-features.h
13491         (__ASSUME_FUTEX_LOCK_PI): Likewise.
13492         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FUTEX_LOCK_PI):
13493         Likewise.
13494         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
13495         (__ASSUME_FUTEX_LOCK_PI): Likewise.
13496         * sysdeps/unix/sysv/linux/mips/kernel-features.h
13497         (__ASSUME_FUTEX_LOCK_PI): Likewise.
13498         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
13499         (__ASSUME_FUTEX_LOCK_PI): Likewise.
13500
13501 2016-06-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
13502
13503         [BZ #19670]
13504         [BZ #19672]
13505
13506         * io/test-lfs.c (do_prepare): Use xmalloc.
13507         * io/tst-fcntl.c (do_prepare): Likewise.
13508         * libio/tst-fopenloc.c (do_bz17916): Likewise.
13509         * libio/tst-mmap2-eofsync.c (do_prepare): Likewise.
13510         * login/tst-utmp.c (do_prepare): Likewise.
13511         * posix/tst-exec.c (do_prepare): Likewise.
13512         * posix/tst-pathconf.c (prepare): Likewise.
13513         * posix/tst-spawn.c (do_prepare): Likewise.
13514         * posix/tst-truncate.c (do_prepare): Likewise.
13515         * rt/tst-aio.c (do_prepare): Likewise.
13516         * rt/tst-aio64.c (do_prepare): Likewise.
13517
13518 2016-06-11  Florian Weimer  <fweimer@redhat.com>
13519
13520         [BZ #20237]
13521         * nss/nss_db/db-XXX.c (set*ent): Reset entidx to NULL.
13522         (get*ent): Set entidx to NULL during initialization.  If entidx is
13523         NULL, start iteration from the beginning.
13524
13525 2016-06-11  Florian Weimer  <fweimer@redhat.com>
13526
13527         * malloc/malloc.c (musable): Return correct size for dumped fake
13528         mmapped chunk.
13529
13530 2016-06-11  Florian Weimer  <fweimer@redhat.com>
13531
13532         [BZ #20222]
13533         * libio/iofopncook.c (_IO_cookie_read): Demangle callback pointer.
13534         (_IO_cookie_write): Likewise.
13535         (_IO_cookie_seek): Likewise.
13536         (_IO_cookie_close): Likewise.
13537         (_IO_old_cookie_seek): Likewise.
13538         (set_callbacks): New function.
13539         (_IO_cookie_init): Call set_callbacks to copy callbacks.
13540
13541 2016-06-11  Marko Myllynen  <myllynen@redhat.com>
13542
13543         * locale/programs/localedef.c (oldstyle_tables): Remove.
13544         * locale/programs/localedef.h (oldstyle_tables): Likewise.
13545
13546 2016-06-10  Joseph Myers  <joseph@codesourcery.com>
13547
13548         [BZ #20240]
13549         * math/Makefile (CFLAGS-s_modf.c): New variable.
13550         (CFLAGS-s_modff.c): Likewise.
13551         (CFLAGS-s_modfl.c): Likewise.
13552         * math/libm-test.inc (modf_test_data): Add sNaN tests.
13553
13554 2016-06-09  Carlos O'Donell  <carlos@redhat.com>
13555
13556         [BZ #20215]
13557         * misc/sys/cdefs.h [__GNUC_PREREQ (3,2)]: Undef __always_inline first.
13558         [!__GNUC_PREREQ (3,2)]: Likewise.
13559
13560 2016-06-10  Adhemerval Zanela  <adhemerval.zanella@linaro.org>
13561
13562         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Add xfail-.
13563         (msghdr.msg_controllen): Likewise.
13564         (cmsghdr.cmsg_len): Likewise.
13565         * nptl/Makefile (libpthread-routines): Remove ptw-oldrecvmsg and
13566         ptw-oldsendmsg.
13567         (CFLAGS-oldrecvmsg.c): Remove rule.
13568         (CFLAGS-oldsendmsg.c): Likewise.
13569         (CFLAGS-recvmsg.c): Add rule.
13570         (CFLAGS-sendmsg.c): Likewise.
13571         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
13572         oldrecvmsg, oldsendmsg, oldrecvmmsg, oldsendmmsg.
13573         (CFLAGS-recvmsg.c): Remove rule.
13574         (CFLAGS-sendmsg.c): Likewise.
13575         (CFLAGS-oldrecvmsg.c): Likewise.
13576         (CFLAGS-oldsendmsg.c): Likewise.
13577         (CFLAGS-recvmmsg.c): Likewise.
13578         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Revert
13579         to kernel defined interfaces.
13580         (msghdr.msg_controllen): Likewise.
13581         (cmsghdr.cmsg_len): Likewise.
13582         (msghdr.__glibc_reserved1): Remove member.
13583         (msghdr.__glibc_reserved2): Likewise.
13584         (cmsghdr.__glibc_reserved1): Likewise.
13585         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: Remove file.
13586         * sysdeps/unix/sysv/linux/oldrecvmsg.c: Likewise.
13587         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
13588         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
13589         * sysdeps/unix/sysv/linux/recvmmsg.c: Revert back to previous
13590         version.
13591         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
13592         * sysdeps/unix/sysv/linux/sendmmsg.c: Likewise.
13593         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
13594         * sysdeps/unix/sysv/linux/aarch64/Versions [libc] (GLIBC_2.24):
13595         Remove recvmsg and sendmsg.
13596         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24):
13597         Likewise.
13598         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
13599         Likewise.
13600         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
13601         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
13602         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
13603         Likewise.
13604         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
13605         Likewise.
13606         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions
13607         [libc] (GLIBC_2.24): Likewise.
13608         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
13609         Likewise.
13610         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
13611         Likewise.
13612         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
13613         [libc] (GLIBC_2.24): Likewise.
13614         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
13615         Likewise.
13616         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
13617         Likewise.
13618         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
13619         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
13620         Likewise.
13621         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
13622         Likewise.
13623         * sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
13624         Likewise.
13625         * sysdeps/unix/sysv/linux/x86_64/Versions [libc] (GLIBC_2.24):
13626         Likewise.
13627         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions: Remove file
13628         * sysdeps/unix/sysv/linux/x86_64/64/Versions: Likewise.
13629         * sysdeps/unix/sysv/linux/mips/mips64/n64/Versions: Likewise.
13630         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Remove new 2.24
13631         version for {recv,send,recm,sendm}msg.
13632         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
13633         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
13634         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
13635         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
13636         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
13637         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
13638         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
13639         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
13640         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
13641         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
13642         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
13643         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
13644         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
13645         Likewise.
13646         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
13647         Likewise.
13648         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
13649         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
13650         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
13651         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
13652         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
13653         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
13654         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
13655         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
13656         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
13657         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
13658         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
13659         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
13660         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
13661
13662 2016-06-10  Florian Weimer  <fweimer@redhat.com>
13663
13664         [BZ #19564]
13665         Remove __malloc_initialize_hook from the API.
13666         * malloc/malloc.h (__malloc_initialize_hook): Remove.
13667         * include/stdc-predef.h (__malloc_initialize_hook): Poison with
13668         #pragma GCC poison.
13669         * malloc/malloc-hooks.h: New file.
13670         * malloc/arena.c (ptmalloc_init): Use old__malloc_initialize_hook.
13671         * malloc/malloc.c (HAVE_MALLOC_INIT_HOOK): New.
13672         (old__malloc_initialize_hook): Rename from
13673         __malloc_initialize_hook to evade poisoning.  Turn into compat
13674         symbol.
13675         * malloc/mcheck-init.c (old__malloc_initialize_hook): Rename from
13676         __malloc_initialize_hook.
13677         * malloc/Makefile (poisoned_apis, unpoisoned_api_defines): New.
13678         (mallo.c, mcheck-init.c): Compile with unpoisoned symbol.
13679         * manual/memory.texi (Hooks for Malloc): Remove
13680         __malloc_initialize_hook.  Adjust hook example.
13681
13682 2016-06-09  Joseph Myers  <joseph@codesourcery.com>
13683
13684         [BZ #20235]
13685         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Add NaN input to
13686         itself.
13687         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
13688         * math/libm-test.inc (log2_test_data): Add sNaN tests.
13689
13690         [BZ #20234]
13691         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Add positive
13692         infinity or NaN input to itself.
13693
13694         [BZ #20233]
13695         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Add NaN input
13696         to itself.
13697
13698         [BZ #20232]
13699         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add NaN input to
13700         itself.
13701
13702 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
13703
13704         * sysdeps/x86_64/start.S (_start): Always indirect branch to
13705         __libc_start_main via GOT.
13706
13707 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
13708
13709         * sysdeps/x86_64/memcopy.h: New file.
13710         * sysdeps/x86_64/wordcopy.c: Likewise.
13711
13712 2016-06-09  Florian Weimer  <fweimer@redhat.com>
13713
13714         Prevent GCC 6 <cstdlib> from including /usr/include/stdlib.h.
13715         * stdlib/tst-quick_exit.cc: Include <stdlib.h> instead of
13716         <cstdlib>.
13717         (optimization_barrier): New.
13718         (do_test): Use it.  Call quick_exit in the global namespace.
13719         * stdlib/tst-thread-quick_exit.cc: Include <stdlib.h>, <pthread.h>
13720         instead of <cstdlib>, <thread>.
13721         (optimization_barrier): New.
13722         (non_main_thread): Adjust declaration.  Call optimization_barrier.
13723         Call quick_exit in the global namespace.
13724         (do_test): Call optimization_barrier.  Use pthread_create,
13725         pthread_join instead of std::thread.
13726
13727 2016-06-09  Andreas Schwab  <schwab@suse.de>
13728
13729         [BZ #19755]
13730         * nscd/pwdcache.c (cache_addpw): Lock prune_run_lock while adding
13731         new entries in auto-propagate mode.
13732         * nscd/grpcache.c (cache_addgr): Likewise.
13733
13734 2016-06-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
13735
13736         * test-skeleton.c (oom_error, xmalloc, xcalloc, xrealloc):
13737         New functions.
13738         (add_temp_file): Use them.
13739
13740 2016-06-09  Samuel Thibault  <samuel.thibault@ens-lyon.org
13741
13742         * mach/mach/mach_traps.h (mach_print): Add syscall declaration.
13743
13744 2016-06-08  Joseph Myers  <joseph@codesourcery.com>
13745
13746         [BZ #20229]
13747         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Add NaN input to itself.
13748         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
13749         * math/libm-test.inc (log1p_test_data): Add sNaN tests.
13750
13751         [BZ #20228]
13752         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Add NaN input to
13753         itself.
13754         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Likewise.
13755         * math/libm-test.inc (log10_test_data): Add sNaN tests.
13756
13757         [BZ #20227]
13758         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Add NaN input to
13759         itself.
13760         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
13761         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
13762         * math/libm-test.inc (log_test_data): Add sNaN tests.
13763
13764         [BZ #20226]
13765         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Add NaN argument to
13766         itself.
13767         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
13768         * math/libm-test.inc (exp_test_data): Add sNaN tests.
13769         (exp10_test_data): Likewise.
13770         (expm1_test_data): Likewise.
13771
13772         [BZ #20225]
13773         * math/s_ldexp.c (__ldexp): Add non-finite or zero argument to
13774         itself.
13775         * math/s_ldexpf.c (__ldexpf): Likewise.
13776         * math/s_ldexpl.c (__ldexpl): Likewise.
13777         * math/w_scalbln.c (__w_scalbln): Likewise.
13778         * math/w_scalblnf.c (__w_scalblnf): Likewise.
13779         * math/w_scalblnl.c (__w_scalblnl): Likewise.
13780         * math/libm-test.inc (scalbn_test_data): Add sNaN tests.
13781         (scalbln_test_data): Likewise.
13782
13783         [BZ #20224]
13784         * sysdeps/i386/fpu/s_cbrtl.S (__cbrtl): Add non-finite or zero
13785         argument to itself.
13786         * math/libm-test.inc (cbrt_test_data): Add sNaN tests.
13787
13788 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
13789
13790         [BZ #19776]
13791         * sysdeps/x86_64/memcpy.S: Make it dummy.
13792         * sysdeps/x86_64/mempcpy.S: Likewise.
13793         * sysdeps/x86_64/memmove.S: New file.
13794         * sysdeps/x86_64/memmove_chk.S: Likewise.
13795         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
13796         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
13797         * sysdeps/x86_64/memmove.c: Removed.
13798         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
13799         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
13800         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: Likewise.
13801         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
13802         Likewise.
13803         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
13804         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
13805         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
13806         memcpy-sse2-unaligned, memmove-avx-unaligned,
13807         memcpy-avx-unaligned and memmove-sse2-unaligned-erms.
13808         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
13809         (__libc_ifunc_impl_list): Replace
13810         __memmove_chk_avx512_unaligned_2 with
13811         __memmove_chk_avx512_unaligned.  Remove
13812         __memmove_chk_avx_unaligned_2.  Replace
13813         __memmove_chk_sse2_unaligned_2 with
13814         __memmove_chk_sse2_unaligned.  Remove __memmove_chk_sse2 and
13815         __memmove_avx_unaligned_2.  Replace __memmove_avx512_unaligned_2
13816         with __memmove_avx512_unaligned.  Replace
13817         __memmove_sse2_unaligned_2 with __memmove_sse2_unaligned.
13818         Remove __memmove_sse2.  Replace __memcpy_chk_avx512_unaligned_2
13819         with __memcpy_chk_avx512_unaligned.  Remove
13820         __memcpy_chk_avx_unaligned_2.  Replace
13821         __memcpy_chk_sse2_unaligned_2 with __memcpy_chk_sse2_unaligned.
13822         Remove __memcpy_chk_sse2.  Remove __memcpy_avx_unaligned_2.
13823         Replace __memcpy_avx512_unaligned_2 with
13824         __memcpy_avx512_unaligned.  Remove __memcpy_sse2_unaligned_2
13825         and __memcpy_sse2.  Replace __mempcpy_chk_avx512_unaligned_2
13826         with __mempcpy_chk_avx512_unaligned.  Remove
13827         __mempcpy_chk_avx_unaligned_2.  Replace
13828         __mempcpy_chk_sse2_unaligned_2 with
13829         __mempcpy_chk_sse2_unaligned.  Remove __mempcpy_chk_sse2.
13830         Replace __mempcpy_avx512_unaligned_2 with
13831         __mempcpy_avx512_unaligned.  Remove __mempcpy_avx_unaligned_2.
13832         Replace __mempcpy_sse2_unaligned_2 with
13833         __mempcpy_sse2_unaligned.  Remove __mempcpy_sse2.
13834         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Support
13835         __memcpy_avx512_unaligned_erms and __memcpy_avx512_unaligned.
13836         Use __memcpy_avx_unaligned_erms and __memcpy_sse2_unaligned_erms
13837         if processor has ERMS.  Default to __memcpy_sse2_unaligned.
13838         (ENTRY): Removed.
13839         (END): Likewise.
13840         (ENTRY_CHK): Likewise.
13841         (libc_hidden_builtin_def): Likewise.
13842         Don't include ../memcpy.S.
13843         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Support
13844         __memcpy_chk_avx512_unaligned_erms and
13845         __memcpy_chk_avx512_unaligned.  Use
13846         __memcpy_chk_avx_unaligned_erms and
13847         __memcpy_chk_sse2_unaligned_erms if if processor has ERMS.
13848         Default to __memcpy_chk_sse2_unaligned.
13849         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
13850         Change function suffix from unaligned_2 to unaligned.
13851         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Support
13852         __mempcpy_avx512_unaligned_erms and __mempcpy_avx512_unaligned.
13853         Use __mempcpy_avx_unaligned_erms and __mempcpy_sse2_unaligned_erms
13854         if processor has ERMS.  Default to __mempcpy_sse2_unaligned.
13855         (ENTRY): Removed.
13856         (END): Likewise.
13857         (ENTRY_CHK): Likewise.
13858         (libc_hidden_builtin_def): Likewise.
13859         Don't include ../mempcpy.S.
13860         (mempcpy): New.  Add a weak alias.
13861         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Support
13862         __mempcpy_chk_avx512_unaligned_erms and
13863         __mempcpy_chk_avx512_unaligned.  Use
13864         __mempcpy_chk_avx_unaligned_erms and
13865         __mempcpy_chk_sse2_unaligned_erms if if processor has ERMS.
13866         Default to __mempcpy_chk_sse2_unaligned.
13867
13868 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
13869
13870         [BZ #19881]
13871         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Folded
13872         into ...
13873         * sysdeps/x86_64/memset.S: This.
13874         (__bzero): Removed.
13875         (__memset_tail): Likewise.
13876         (__memset_chk): Likewise.
13877         (memset): Likewise.
13878         (MEMSET_CHK_SYMBOL): New. Define only if MEMSET_SYMBOL isn't
13879         defined.
13880         (MEMSET_SYMBOL): Define only if MEMSET_SYMBOL isn't defined.
13881         * sysdeps/x86_64/multiarch/memset-avx2.S: Removed.
13882         (__memset_zero_constant_len_parameter): Check SHARED instead of
13883         PIC.
13884         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
13885         memset-avx2 and memset-sse2-unaligned-erms.
13886         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
13887         (__libc_ifunc_impl_list): Remove __memset_chk_sse2,
13888         __memset_chk_avx2, __memset_sse2 and __memset_avx2_unaligned.
13889         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
13890         (__bzero): Enabled.
13891         * sysdeps/x86_64/multiarch/memset.S (memset): Replace
13892         __memset_sse2 and __memset_avx2 with __memset_sse2_unaligned
13893         and __memset_avx2_unaligned.  Use __memset_sse2_unaligned_erms
13894         or __memset_avx2_unaligned_erms if processor has ERMS.  Support
13895         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
13896         (memset): Removed.
13897         (__memset_chk): Likewise.
13898         (MEMSET_SYMBOL): New.
13899         (libc_hidden_builtin_def): Replace __memset_sse2 with
13900         __memset_sse2_unaligned.
13901         * sysdeps/x86_64/multiarch/memset_chk.S (__memset_chk): Replace
13902         __memset_chk_sse2 and __memset_chk_avx2 with
13903         __memset_chk_sse2_unaligned and __memset_chk_avx2_unaligned_erms.
13904         Use __memset_chk_sse2_unaligned_erms or
13905         __memset_chk_avx2_unaligned_erms if processor has ERMS.  Support
13906         __memset_chk_avx512_unaligned_erms and
13907         __memset_chk_avx512_unaligned.
13908
13909 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
13910
13911         * math/gen-auto-libm-test.c (fp_format_desc): remove
13912         suffix member.
13913         (output_generic_value): Remove usage of suffix member,
13914         and the resulting unuse of the fp_format argument.
13915         (output_for_one_input_case): Remove unused fp_format
13916         parameter.
13917
13918         * math/auto-libm-test-out: Regenerate.
13919
13920         * math/libm-test.inc (TEST_COND_ldbl_128ibm): replace
13921         usage with TEST_COND_ibm128.
13922         (TEST_COND_flt_32): Remove.
13923         (TEST_COND_dbl_64): Remove.
13924         (TEST_COND_ldbl_96_intel): Remove.
13925         (TEST_COND_ldbl_96_m68k): Remove.
13926         (TEST_COND_ldbl_128): Remove.
13927
13928 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
13929
13930         * auto-libm-test-in:
13931         Replace flt-32 usage with binary32.
13932         Replace dbl-64 usage with binary64.
13933         Replace ldbl-intel-96 usage with intel96.
13934         Replace ldbl-m68k-96 usage with m68k96.
13935         Replace ldbl-128ibm usage with ibm128.
13936         Replace ldbl-128 usage with binary128.
13937
13938         * auto-libm-test-out: Regenerate.
13939
13940 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
13941
13942         * math/gen-libm-test.pl (all_floats_pfx): New lookup table.
13943         (parse_ulps): Dynamically generate type name matching
13944         string from all_floats.
13945         (get_ulps): Generate the ulps as an array instead.
13946         (output_ulps): Dynamically compose the type based
13947         on the number of supported formats, and print
13948         the indices as type specific helper macros.
13949
13950         * math/libm-test.inc: Remove comment about CHOOSE.
13951         (ulp_data): Generate the type in libm-test-ulps.h.
13952         (ULP_IDX): New macro.
13953         (find_ulps): Update usage of max_ulp.
13954
13955         * math/test-double-vlen2.h (CHOOSE): Remove.
13956         * math/test-double-vlen4.h (CHOOSE): Likewise.
13957         * math/test-double-vlen8.h (CHOOSE): Likewise.
13958         * math/test-float.c (CHOOSE): Likewise.
13959         * math/test-float-finite.c (CHOOSE): Likewise.
13960         * math/test-double.c (CHOOSE): Likewise.
13961         * math/test-double-finite.c (CHOOSE): Likewise.
13962         * math/test-idouble.c (CHOOSE): Likewise.
13963         * math/test-ifloat.c (CHOOSE): Likewise.
13964         * math/test-ildoubl.c (CHOOSE): Likewise.
13965         * math/test-ldouble-finite.c (CHOOSE): Likewise.
13966         * math/test-ldouble.c (CHOOSE): Likewise.
13967
13968         * math/test-float.h (TEST_FLOAT): Remove.
13969         * math/test-double.h (TEST_DOUBLE): Likewise.
13970         * math/test-ldouble.h (TEST_LDOUBLE): Likewise.
13971
13972 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
13973
13974         * math/gen-libm-test.pl: (apply_lit): New subroutine.
13975         (parse_args): Strip C suffix from floating point literals
13976         typed with 'f' and wrap them with LIT().
13977
13978         * math/libm-tests.inc (RUN_TEST_LOOP_fj_f): New macro.
13979         (test_ff_f_data_nexttoward): Rename to
13980         (test_fj_f_data): New struct.
13981         (nexttoward_test_data): Relabel tests as
13982         TEST_fj_f instead of TEST_ff_f.
13983
13984 2016-06-08  Florian Weimer  <fweimer@redhat.com>
13985
13986         Emacs bug 23726.
13987         * malloc/malloc.c (dumped_main_arena_start): Update comment.
13988         (__libc_realloc): Correct size computation for dumped fake mmapped
13989         chunks.
13990
13991 2016-06-07  Joseph Myers  <joseph@codesourcery.com>
13992
13993         [BZ #20219]
13994         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): Add NaN argument
13995         to itself.
13996         * math/libm-test.inc (atanh_test_data): Add sNaN tests.
13997
13998         [BZ #20218]
13999         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Add non-finite argument
14000         to itself.
14001         * math/libm-test.inc (asinh_test_data): Add sNaN tests.
14002
14003 2016-06-07  H.J. Lu  <hongjiu.lu@intel.com>
14004
14005         [BZ #20195]
14006         * sysdeps/x86/cpu-features.c (get_common_indeces): Move FMA4
14007         check to ...
14008         (init_cpu_features): Here.
14009
14010 2016-06-07  Carlos O'Donell  <carlos@redhat.com>
14011
14012         [BZ #20214]
14013         * sysdeps/unix/sysv/linux/bits/in.h
14014         [defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
14015          || defined _LINUX_IN6_H || defined _IPV6_H] (__USE_KERNEL_IPV6_DEFS):
14016         Define to 1.
14017         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
14018          || defined _LINUX_IN6_H || defined _IPV6_H)] (__USE_KERNEL_IPV6_DEFS):
14019         Define to 0.
14020         [!__USE_KERNEL_IPV6_DEFS] (IPV6_ADD_MEMBERSHIP): Define.
14021         [!__USE_KERNEL_IPV6_DEFS] (IPV6_DROP_MEMBERSHIP): Define.
14022
14023 2016-06-06  Carlos O'Donell  <carlos@redhat.com>
14024
14025         [BZ #20198]
14026         * stdlib/Makefile (tests): Add tst-quick_exit, and
14027         tst-thread-quick_exit.
14028         [ifeq ($(have-cxx-thread_local),yes)]
14029         (CFLAGS-tst-quick_exit.o): Use -stdc=c++11.
14030         (CFLAGS-tst-thread-quick_exit.o): Likewise.
14031         (LDLIBS-tst-quick_exit): Use -lstdc++ for C++ program.
14032         (LDLIBS-tst-thread-quick_exit): Likewise.
14033         [ifneq ($(have-cxx-thread_local),yes)]
14034         (tests-unsupported): Add tst-quick_exit, and tst-thread-quick_exit.
14035         * stdlib/exit.c (__run_exit_handlers): Add run_dtors argument.
14036         If run_dtors is true call __call_tls_dtors.
14037         (exit): Call __run_exit_handlers with run_dtors set to true.
14038         * stdlib/exit.h: Add run_dtors argument to __run_exit_handlers
14039         definition.
14040         * stdlib/quick_exit.c (quick_exit): Remove function.
14041         (__new_quick_exit): New function.
14042         [SHLIB_COMPAT(libc, GLIBC_2_10, GLIBC_2_24)] (__old_quick_exit): New
14043         function.
14044         * stdlib/tst-quick_exit.cc: New file.
14045         * stdlib/tst-thread-quick_exit.cc: New file.
14046         * stdlib/Versions: Add quick_exit@GLIBC_2.24.
14047         * sysdeps/arm/nacl/libc.abilist: Add 'GLIBC_2.24 quick_exit F'.
14048         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise
14049         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise
14050         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise
14051         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise
14052         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise
14053         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise
14054         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise
14055         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise
14056         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise
14057         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise
14058         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise
14059         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise
14060         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise
14061         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
14062         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise
14063         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise
14064         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise
14065         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise
14066         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise
14067         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise
14068         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise
14069         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise
14070         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise
14071         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise
14072         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise
14073         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise
14074         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise
14075         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise
14076
14077 2016-06-06  H.J. Lu  <hongjiu.lu@intel.com>
14078
14079         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Fix
14080         a typo in comments.
14081
14082 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
14083
14084         [BZ #20213]
14085         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Add NaN
14086         argument to itself.
14087         * math/libm-test.inc (asin_test_data): Add sNaN tests.
14088
14089 2016-06-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14090
14091         * misc/Makefile (CFLAGS-pwritev.c): New variable: add cancellation
14092         required flags.
14093         (CFLAGS-pwritev64.c): Likewise.
14094         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Remove file.
14095         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
14096         * sysdeps/unix/sysv/linux/mips/mips64/n64/pwritev64.c: Likewise.
14097         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
14098         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.: Likewise.
14099         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (pwritev): Remove
14100         syscall from auto-generation.
14101         * sysdeps/unix/sysv/linux/pwritev.c: Rewrite implementation.
14102         [WORDSIZE == 64] (pwritev64): Remove macro.
14103         [!PWRITEV] (PWRITEV): Likewise.
14104         [!PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
14105         [!PWRITEV] (PWRITE): Likewise.
14106         [!PWRITEV] (OFF_T): Likewise.
14107         [!__ASSUME_PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
14108         (LO_HI_LONG): Remove macro.
14109         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Add function.
14110         * sysdeps/unix/sysv/linux/pwritev64.c: Rewrite implementation.
14111         (PWRITEV): Remove macro.
14112         (PWRITEV_REPLACEMENTE): Likewise.
14113         (PWRITE): Likewise.
14114         (OFF_T): Likewise.
14115         (pwritev64): New function.
14116         * nptl/tst-cancel4.c (tf_writev): Add test.
14117
14118         * misc/Makefile (CFLAGS-preadv.c): New variable: add cancellation
14119         required flags.
14120         (CFLAGS-preadv64.c): Likewise.
14121         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Remove file.
14122         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
14123         * sysdeps/unix/sysv/linux/mips/mips64/n64/preadv64.c: Likewise.
14124         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: Likewise.
14125         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.: Likewise.
14126         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (preadv): Remove
14127         syscall from auto-generation.
14128         * sysdeps/unix/sysv/linux/preadv.c: Rewrite implementation.
14129         [WORDSIZE == 64] (preadv64): Remove macro.
14130         [!PREADV] (PREADV): Likewise.
14131         [!PREADV] (PREADV_REPLACEMENT): Likewise.
14132         [!PREADV] (PREAD): Likewise.
14133         [!PREADV] (OFF_T): Likewise.
14134         [!__ASSUME_PREADV] (PREADV_REPLACEMENT): Likewise.
14135         (LO_HI_LONG): Remove macro.
14136         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Add function.
14137         * sysdeps/unix/sysv/linux/preadv64.c: Rewrite implementation.
14138         (PREADV): Remove macro.
14139         (PREADV_REPLACEMENTE): Likewise.
14140         (PREAD): Likewise.
14141         (OFF_T): Likewise.
14142         (preadv64): New function.
14143         * nptl/tst-cancel4.c (tf_preadv): Add test.
14144
14145 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
14146
14147         [BZ #20212]
14148         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_acos): Add NaN
14149         argument to itself.
14150         * math/libm-test.inc (acos_test_data): Add sNaN tests.
14151
14152 2016-06-06  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
14153
14154         * sysdeps/powerpc/powerpc64/power8/strcasestr.S (__strcasestr):
14155         New symbol defined as libc_hidden_def.
14156         (strcasestr): Became a weak alias to __strcasestr.
14157         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Handle memset calls
14158         according to multi-arch support.  Move __stpncpy hidden
14159         definition from here to...
14160         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: ...here.  Add
14161         symbol stpncpy.
14162         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Undefine
14163         libc_hidden_builtin_def.
14164         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Specify which
14165         memset symbol to use when multi-arch support is available.
14166
14167 2016-06-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
14168
14169         * dlfcn/tst-rec-dlopen.c: Include string.h.
14170
14171 2016-06-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
14172
14173         * manual/install.texi: Remove mention of --without-tls
14174         * INSTALL: Regenerate.
14175
14176 2016-06-05  Florian Weimer  <fweimer@redhat.com>
14177
14178         * dlfcn/tst-rec-dlopen.c (custom_malloc_hook, old_malloc_hook):
14179         Remove.
14180         (call_function, interposed_malloc_called): New variables.
14181         (malloc): New function.
14182         (do_test): Do not change malloc hooks.  Initialize malloc.  Set
14183         and clear call_function as needed.
14184
14185 2016-06-04  Andreas Schwab  <schwab@linux-m68k.org>
14186
14187         * include/wchar.h (__wmemset): Use __typeof.
14188
14189 2016-06-03  Carlos O'Donell  <carlos@redhat.com>
14190
14191         * include/wchar.h (__wmemset): Declare function without typeof.
14192
14193 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
14194
14195         [BZ #20205]
14196         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Do not adjust
14197         exponent when incrementing negative subnormal with low mantissa
14198         word zero.
14199         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
14200         Add another test.
14201
14202 2016-06-03  Florian Weimer  <fweimer@redhat.com>
14203
14204         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf): Use
14205         __wmemset instead of wmemset.
14206
14207 2016-06-02  Carlos O'Donell  <carlos@redhat.com>
14208
14209         * sysdeps/unix/sysv/linux/bits/in.h [defined _UAPI_LINUX_IN6_H ||
14210         defined _UAPI_IPV6_H]: Define __USE_KERNEL_IPV6_DEFS to 1.
14211         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H)]: Define
14212         __USE_KERNEL_IPV6_DEFS to 0.
14213         * inet/netinet/in.h: Use '#if !__USE_KERNEL_IPV6_DEFS'.
14214         Update comment.
14215
14216 2016-06-01  Florian Weimer  <fweimer@redhat.com>
14217
14218         [BZ #19861]
14219         Do not use IFUNC resolver with potentially unrelocated symbol.
14220         * nptl/pt-fork.c [HAVE_IFUNC]: Remove.
14221         (DEFINE_FORK): Remove macro and inline definition.
14222         (fork_alias): Renamed from fork_ifunc.
14223         (__fork_alias): Renamed from __fork_ifunc.
14224
14225 2016-05-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
14226
14227         [BZ 19653]
14228         * inet/if_index.c (__protocol_available): Delete #if 0'd code.
14229         * inet/ruserpass.c (ruserpass): Delete #if 0'd code.
14230
14231 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14232
14233         * scripts/check-local-headers.sh (exclude): Add hurd/ihash.h, and
14234         include .*-.*/ in addition to .*-.*-.*/ (i.e. i386-gnu in addition to
14235         i386-linux-gnu).
14236         * sysdeps/mach/hurd/configure.ac (libc_cv_ld_gnu_indirect_function):
14237         Set to no.
14238         * sysdeps/mach/hurd/configure: Refresh.
14239
14240 2016-05-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14241
14242         [BZ #20178]
14243         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call _exit
14244         on failure instead of exit.
14245
14246 2016-05-30  Roland McGrath  <roland@hack.frob.com>
14247
14248         [BZ #3629]
14249         * manual/string.texi (Copying Strings and Arrays): stpcpy is part
14250         of POSIX.1-2008.
14251
14252 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14253
14254         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk) [PIC]:
14255           Use PLT entry for calling _hurd_self_sigstate.
14256
14257 2016-05-27  H.J. Lu  <hongjiu.lu@intel.com>
14258
14259         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Count number of
14260         available logical processors with SMT level type sharing L2
14261         cache for Intel processors.
14262
14263 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
14264
14265         [BZ #20160]
14266         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Add NaN
14267         argument to itself before returning the result.
14268         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
14269         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
14270         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
14271         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
14272         Likewise.
14273         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
14274         Likewise.
14275         * sysdeps/powerpc/powerpc64/fpu/s_rint.S (__rint): Likewise.
14276         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S (__rintf): Likewise.
14277         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
14278         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
14279         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
14280         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
14281
14282         [BZ #20160]
14283         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Add NaN
14284         argument to itself before returning the result.
14285         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
14286         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
14287         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
14288         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint):
14289         Likewise.
14290         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
14291         Likewise.
14292         * sysdeps/powerpc/powerpc32/fpu/s_rint.S (__rint): Likewise.
14293         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S (__rintf): Likewise.
14294         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Likewise.
14295         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
14296         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
14297         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
14298
14299 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
14300
14301         * libm-test.inc: Replace usage of M_El with
14302         (lit_e): New macro.
14303
14304 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
14305
14306         * libm-test.inc: Replace usage of M_PI_4l with
14307         (lit_pi_4_d): New macro.
14308
14309 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
14310
14311         * libm-test.inc: Replace usage of M_PIl with
14312         (lit_pi): New macro.
14313
14314 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
14315
14316         * libm-test.inc: Replace usage of M_PI2l with
14317         (lit_pi_2_d): New macro.
14318
14319         * math/test-double.h (LITM): New macro.
14320         * math/test-float.h (LITM): Likewise.
14321         * math/test-ldouble.h (LITM): Likewise.
14322
14323 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
14324
14325         * libm-test.inc (M_PI_34l): Rename to
14326         (lit_pi_3_m_4_d): New Macro.
14327         (M_PI_34_LOG10El): Rename to
14328         (lit_pi_3_m_4_ln10_m_d): New Macro.
14329         (M_PI2_LOG10El): Rename to
14330         (lit_pi_2_ln10_m_d):  New Macro.
14331         (M_PI4_LOG10El): Rename to
14332         (lit_pi_4_ln10_m_d):  New Macro.
14333         (M_PI_LOG10El): Rename to
14334         (lit_pi_ln10_d):  New Macro.
14335
14336 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
14337
14338         [BZ #20157]
14339         * sysdeps/powerpc/powerpc32/fpu/s_fabsl.S (__fabsl): Use fsel to
14340         determine whether to negate low half if [_ARCH_PPCGR], and integer
14341         comparison otherwise.
14342         * sysdeps/powerpc/powerpc64/fpu/s_fabsl.S (__fabsl): Use fsel to
14343         determine whether to negate low half.
14344
14345         * math/libm-test.inc (NO_TEST_INLINE_FLOAT): Remove macro.
14346         (NO_TEST_INLINE_DOUBLE): Likewise.
14347         (TEST_COND_x86_64): Likewise.
14348         (TEST_COND_x86): Likewise.
14349         (M_PI_6l): Likewise.
14350
14351 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
14352
14353         * math/libm-test.inc:
14354         (TEST_FLOAT): Change usage to TEST_COND_binary32.
14355         (TEST_DOUBLE): Change usage to TEST_COND_binary64.
14356         (TEST_LDOUBLE): Update usage to evaluate as true if
14357         the guarded tests match the property being tested.
14358         (LDBL_MAX_EXP): Change to MAX_EXP.
14359         (LDBL_MIN_EXP): Change to MIN_EXP.
14360         (LDBL_MANT_DIG): Change to MANT_DIG, except for
14361         nexttoward tests.
14362
14363 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
14364
14365         * math/libm-test.inc:
14366         (TYPE_DECIMAL_DIG): Redefine using type supplied PREFIX macro.
14367         (TYPE_MIN): Likewise.
14368         (TYPE_TRUE_MIN): Likewise.
14369         (TYPE_MAX): Likewise.
14370         (MIN_EXP): Likewise.
14371         (MAX_EXP): Likewise.
14372         (MANT_DIG): Likewise.
14373
14374         (FSTR_MAX): New macro.
14375         (__CONCATX): Likewise.
14376         (QTYPE_STR): Likewise.
14377         (TEST_COND_binary32): Likewise.
14378         (TEST_COND_binary64): Likewise.
14379         (TEST_COND_binary128): Likewise.
14380         (TEST_COND_ibm128): Likewise.
14381         (TEST_COND_intel96): Likewise.
14382         (TEST_COND_m68k96): Likewise.
14383
14384         (TEST_COND_flt_32): Redefine as equivalent format test macro.
14385         (TEST_COND_dbl_64): Likewise.
14386         (TEST_COND_ldbl_96_intel): Likewise.
14387         (TEST_COND_ldbl_96_m68k): Likewise.
14388         (TEST_COND_ldbl_128): Likewise.
14389         (TEST_COND_ldbl_128ibm): Likewise.
14390
14391         (plus_zero): Redefine using LIT macro.
14392         (minus_zero): Likewise.
14393         (plus_infty): Redefine as (INF).
14394         (minux_infty): Redefine as (-INF).
14395         (max_value): Redefine as TYPE_MAX.
14396         (min_value): Redefine as TYPE_MIN.
14397         (min_subnorm_value): Redefine as TYPE_TRUE_MIN.
14398
14399         (print_float): Refactor to use snprintf to convert FLOAT values
14400         to string. This brings it closer to dropin replacement of strtof
14401         for the TS 18661 defined types.
14402         (update_stats): Likewise.
14403         (print_complex_function_ulps): Likewise.
14404         (print_max_error): Likewise.
14405         (print_complex_max_error): Likewise.
14406         (check_float_internal): Likewise.
14407
14408         * math/test-float.h (PREFIX): New macro.
14409         (LIT): Likewise.
14410         (TYPE_STR): Likewise.
14411         (FTOSTR): Likewise.
14412
14413         * math/test-double.h (PREFIX): New macro.
14414         (LIT): Likewise.
14415         (TYPE_STR): Likewise.
14416         (FTOSTR): Likewise.
14417
14418         * math/test-ldouble.h (PREFIX): New macro.
14419         (LIT): Likewise.
14420         (TYPE_STR): Likewise.
14421         (FTOSTR): Likewise.
14422
14423 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
14424
14425         [BZ #20156]
14426         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Add high part
14427         to itself when zero or not finite.
14428         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Likewise.
14429         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
14430         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Likewise.
14431         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
14432
14433 2016-05-26  Joseph Myers  <joseph@codesourcery.com>
14434
14435         [BZ #20153]
14436         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Return
14437         x * x + x for infinities and NaNs.
14438
14439         [BZ #20151]
14440         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Add NaN
14441         argument to itself before returning result.
14442         (__ieee754_y0l): Likewise.
14443         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
14444         (__ieee754_y1l).
14445
14446         * math/libm-test.inc (acosh_test_data): Add sNaN tests.
14447         (atan_test_data): Likewise.
14448         (ceil_test_data): Likewise.
14449         (cos_test_data): Likewise.
14450         (cosh_test_data): Likewise.
14451         (erf_test_data): Likewise.
14452         (exp2_test_data): Likewise.
14453         (fabs_test_data): Likewise.
14454         (floor_test_data): Likewise.
14455         (ilogb_test_data): Likewise.
14456         (j0_test_data): Likewise.
14457         (j1_test_data): Likewise.
14458         (jn_test_data): Likewise.
14459         (lgamma_test_data): Likewise.
14460         (lrint_test_data): Likewise.
14461         (llrint_test_data): Likewise.
14462         (logb_test_data): Likewise.
14463         (lround_test_data): Likewise.
14464         (llround_test_data): Likewise.
14465         (nearbyint_test_data): Likewise.
14466         (rint_test_data): Likewise.
14467         (round_test_data): Likewise.
14468         (sin_test_data): Likewise.
14469         (sincos_test_data): Likewise.
14470         (sinh_test_data): Likewise.
14471         (sqrt_test_data): Likewise.
14472         (tan_test_data): Likewise.
14473         (tanh_test_data): Likewise.
14474         (tgamma_test_data): Likewise.
14475         (trunc_test_data): Likewise.
14476         (y0_test_data): Likewise.
14477         (y1_test_data): Likewise.
14478         (yn_test_data): Likewise.
14479
14480         * math/libm-test.inc: Update comment about NaN testing.
14481         (TEST_SNAN): New macro.
14482         (snan_value): Likewise.
14483         (enable_test): Disable tests of sNaNs when SNAN_TESTS fails.
14484         (fpclassify_test_data): Add sNaN tests.
14485         (isfinite_test_data): Likewise.
14486         (isinf_test_data): Likewise.
14487         (isnan_test_data): Likewise.
14488         (isnormal_test_data): Likewise.
14489         (issignaling_test_data): Likewise.
14490         (signbit_test_data): Likewise.
14491         * math/gen-libm-test.pl (%beautify): Add snan_value.
14492         (show_exceptions): Add argument $test_snan.
14493         (parse_args): Handle snan_value as non-finite.  Update call to
14494         show_exceptions.
14495         * math/Makefile (libm-test-no-inline-cflags): Add
14496         -fsignaling-nans.
14497
14498 2016-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14499
14500         * nptl/Makefile (CFLAGS-oldrecvfrom.c): Remove rule.
14501         (CFLAGS-oldsendmsg.c): Add rule.
14502         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
14503         Correct recvmsg symbol name.
14504         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24):
14505         Likewise.
14506
14507 2016-05-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14508
14509         * sysdeps/unix/sysv/linux/Makefile
14510         [$(subdir) = socket] (sysdep_routines): Add oldrecvmmsg and
14511         oldsendmmsg.
14512         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add recvmmsg and
14513         sendmmsg.
14514         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
14515         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
14516         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
14517         * sysdeps/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
14518         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
14519         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
14520         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
14521         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
14522         Likewise.
14523         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
14524         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: New file.
14525         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
14526         * sysdeps/unix/sysv/linux/recvmmsg.c (__recvmmsg): Adjust msghdr
14527         iovlen and controllen fields to adjust to POSIX specification.
14528         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
14529
14530         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Remove xfail-
14531         and change to correct expected type.
14532         (msghdr.msg_controllen): Likewise.
14533         (cmsghdr.cmsg_len): Likewise.
14534         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Fix
14535         expected POSIX assumption about the size.
14536         (msghdr.msg_controllen): Likewise.
14537         (msghdr.__glibc_reserved1): Likewise.
14538         (msghdr.__glibc_reserved2): Likewise.
14539         (cmsghdr.cmsg_len): Likewise.
14540         (cmsghdr.__glibc_reserved1): Likewise.
14541         * nptl/Makefile (libpthread-routines): Remove ptw-recvmsg and ptw-sendmsg.
14542         Add ptw-oldrecvmsg and ptw-oldsendmsg.
14543         (CFLAGS-sendmsg.c): Remove rule.
14544         (CFLAGS-recvmsg.c): Likewise.
14545         (CFLAGS-oldsendmsg.c): Add rule.
14546         (CFLAGS-oldrecvmsg.c): Likewise.
14547         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24): Add
14548         recvmsg and sendmsg.
14549         * sysdeps/unix/sysv/linux/aarch64/Version [libc] (GLIBC_2.24):
14550         Likewise.
14551         * sysdeps/unix/sysv/linux/arm/Versions [libc] (GLIBC_2.24): Likewise.
14552         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24): Likewise.
14553         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
14554         * sysdeps/unix/sysv/linux/ia64/Versions [libc] (GLIBC_2.24): Likewise.
14555         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
14556         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
14557         Likewise.
14558         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
14559         Likewise.
14560         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions [libc] (GLIBC_2.24):
14561         Likewise.
14562         * sysdeps/unix/sysv/linux/mips/mips64/Versions [libc] (GLIBC_2.24):
14563         Likewise.
14564         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
14565         Likewise.
14566         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
14567         Likewise.
14568         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions [libc]
14569         (GLIBC_2.24): Likewise.
14570         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
14571         Likewise.
14572         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
14573         Likewise.
14574         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
14575         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
14576         Likewise.
14577         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
14578         Likewise.
14579         ( sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
14580         Likewise.
14581         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions [libc]
14582         (GLIBC_2.24): Likewise.
14583         ( sysdeps/unix/sysv/linux/x86_64/64/Versions [libc] (GLIBC_2.24):
14584         Likewise.
14585         * sysdeps/unix/sysv/linux/x84_64/Versions [libc] (GLIBC_2.24):
14586         Likewise.
14587         * sysdeps/unix/sysv/linux/Makefile
14588         [$(subdir) = socket)] (sysdep_headers): Add oldrecvmsg and oldsendmsg.
14589         (CFLAGS-sendmsg.c): Add rule.
14590         (CFLAGS-recvmsg.c): Likewise.
14591         (CFLAGS-oldsendmsg.c): Likewise.
14592         (CFLAGS-oldrecvmsg.c): Likewise.
14593         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Fix msghdr
14594         initialization.
14595         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
14596         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
14597         * sysdeps/unix/sysv/linux/oldrecvmsg.c: New file.
14598         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
14599         * sysdeps/unix/sysv/linux/recvmsg.c (__libc_recvmsg): Adjust msghdr
14600         iovlen and controllen fields to adjust to POSIX specification.
14601         * sysdeps/unix/sysv/linux/sendmsg.c (__libc_sendmsg): Likewise.
14602         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: New version and
14603         added recvmsg and sendmsg.
14604         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
14605         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
14606         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
14607         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
14608         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
14609         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
14610         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
14611         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
14612         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
14613         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
14614         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
14615         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
14616         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
14617         Likewise.
14618         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
14619         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
14620         * sysdepe/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
14621         Likewise.
14622         Likewise.
14623         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
14624         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
14625         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
14626         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
14627         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
14628         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
14629         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
14630         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
14631         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
14632         Likewise.
14633         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
14634         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
14635
14636         * sysdeps/unix/sysv/linux/alpha/syscalls.list (recvmsg): Remove
14637         from auto-generation.
14638         (sendmsg): Likewise.
14639         * sysdeps/unix/sysv/linux/arm/syscalls.list (recvmsg): Likewise.
14640         (sendmsg): Likewise.
14641         * sysdeps/unix/sysv/linux/generic/syscalls.list (recvmsg): Likewise.
14642         (sendmsg): Likewise.
14643         * sysdeps/unix/sysv/linux/hppa/syscalls.list (recvmsg): Likewise.
14644         (sendmsg): Likewise.
14645         * sysdeps/unix/sysv/linux/ia64/syscalls.list (recvmsg): Likewise.
14646         (sendmsg): Likewise.
14647         * sysdeps/unix/sysv/linux/mips/syscalls.list (recvmsg): Likewise.
14648         (sendmsg): Likewise.
14649         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (recvmsg):
14650         Likewise.
14651         (sendmsg): Likewise.
14652         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (recvmsg): Likewise.
14653         (sendmsg): Likewise.
14654         * sysdeps/unix/sysv/linux/i386/kernel-features.h
14655         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
14656         Remove.
14657         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
14658         Likewise.
14659         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
14660         Undefine.
14661         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
14662         Likewise.
14663         * sysdeps/unix/sysv/linux/kernel-features.h
14664         (__ASSUME_SENDMSG_SYSCALL): Define.
14665         (__ASSUME_RECVMSG_SYSCALL): Likewise.
14666         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
14667         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
14668         Remove.
14669         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
14670         Likewise.
14671         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
14672         Undefine.
14673         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
14674         Likewise.
14675         * sysdeps/unix/sysv/linux/s390/kernel-features.h
14676         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
14677         Remove.
14678         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
14679         Likewise.
14680         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
14681         Undefine.
14682         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
14683         Likewise.
14684         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
14685         (__ASSUME_SENDMSG_SYSCALL): Undefine.
14686         (__ASSUME_RECVMSG_SYSCALL): Likewise.
14687         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
14688         (__ASSUME_SENDMSG_SYSCALL): Likewise.
14689         (__ASSUME_RECVMSG_SYSCALL): Likewise.
14690         * sysdeps/unix/sysv/linux/sh/kernel-features.h
14691         (__ASSUME_SENDMSG_SYSCALL): Likewise.
14692         (__ASSUME_RECVMSG_SYSCALL): Likewise.
14693
14694 2016-05-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
14695
14696         * stdlib/gen-tst-strtod-round.c: Add backslash to
14697         compile command in comment.
14698         (printfp): Remove the literal suffix, and define an infinite
14699         value as INF to avoid expansion clash with INFINITY.
14700         (round_str): Remove the literal suffix.
14701         (round_for_all): Likewise, remove the now duplicate ldbl-64
14702         entry, and remove some magic constants.
14703
14704         * stdlib/tst-strtod-round.c: (TEST): Redefine to reduce
14705         duplication.  Remove duplicate dbl-64 and ldbl-64 entries.
14706         (ROUNDING_TESTS_long_double): Define as 0 for ibm128.
14707         (_CONCAT): New macro.
14708         (CONCAT): Likewise.
14709         (CHOOSE_ld): Likewise.
14710         (CHOOSE_f): Likewise.
14711         (CHOOSE_d): Likewise.
14712         (FTYPE_MEMBER): Likewise.
14713         (BOOL_MEMBER): Likewise.
14714         (STRUCT_FOREACH_FLOAT_FTYPE): Likewise.
14715         (STRUCT_FOREACH_FLOAT_BOOL): Likewise.
14716         (_XNTRY): Likewise.
14717         (XNTRY): Likewise.
14718         (_ENTRY): Likewise.
14719         (ENTRY): Likewise.
14720         (test_exactness): Generate members via macro.
14721         (test_results): Likewise.
14722         (test): Update members.
14723         (TEST): Redefine using new macros.
14724         (INF): New macro.
14725         (fetestmodes): New structure.
14726         (do_test): Refactor to be type generic.
14727         (test_in_one_mode): Refactor duplicate code into
14728         (GEN_ONE_TEST): New macro.
14729
14730         * stdlib/tst-strtod-round-data.h: Regenerate.
14731
14732         * stdlib/tst-strtod.h (GEN_TEST_STRTOD_FOREACH):
14733         Extend to pass additional arbitrary parameters to
14734         generators.
14735
14736 2016-05-25  Joseph Myers  <joseph@codesourcery.com>
14737
14738         [BZ #15479]
14739         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Move save of
14740         floating-point state after first floating-point operation on
14741         input.  Restore full floating-point state instead of just rounding
14742         mode.
14743         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
14744         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
14745         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
14746         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
14747         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
14748
14749         [BZ #15479]
14750         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Move save of
14751         floating-point state after first floating-point operation on
14752         input.  Restore full floating-point state instead of just rounding
14753         mode.
14754         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
14755         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
14756         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
14757         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
14758         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
14759
14760 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
14761
14762         [BZ #19727]
14763         * iconvdata/utf-16.c (BODY): Report an error if first word is not a
14764         valid high surrogate.
14765         * iconvdata/utf-32.c (BODY): Report an error if the value is in range
14766         of an utf16 surrogate.
14767         * iconv/gconv_simple.c (BODY): Likewise.
14768         * iconvdata/bug-iconv12.c: New file.
14769         * iconvdata/Makefile (tests): Add bug-iconv12.
14770
14771 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
14772
14773         [BZ #19726]
14774         * iconv/gconv_simple.c (ucs4le_internal_loop): Update inptrp and
14775         outptrp in case of an illegal input.
14776         * iconv/tst-iconv6.c: New file.
14777         * iconv/Makefile (tests): Add tst-iconv6.
14778
14779 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
14780
14781         * sysdeps/s390/utf16-utf32-z9.c: Disable cu42 instruction and report
14782         an error in case of a value in range of an utf16 low surrogate.
14783
14784 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
14785
14786         * sysdeps/s390/utf8-utf32-z9.c: Disable cu41 instruction and report
14787         an error in case of a value in range of an utf16 low surrogate.
14788
14789 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
14790
14791         * sysdeps/s390/s390-64/Makefile (iconvdata-subdirectory):
14792         Move to ...
14793         * sysdeps/s390/Makefile: ... here.
14794         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Move to ...
14795         * sysdeps/s390/iso-8859-1_cp037_z900.c: ... here.
14796         (BRANCH_ON_COUNT): New define.
14797         (TR_LOOP): Use BRANCH_ON_COUNT instead of brctg.
14798         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Move to ...
14799         * sysdeps/s390/utf16-utf32-z9.c: ... here and adjust to
14800         run on s390-32, too.
14801         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Move to ...
14802         * sysdeps/s390/utf8-utf16-z9.c: ... here and adjust to
14803         run on s390-32, too.
14804         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Move to ...
14805         * sysdeps/s390/utf8-utf32-z9.c: ... here and adjust to
14806         run on s390-32, too.
14807
14808 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
14809
14810         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Use ifunc to select c,
14811         etf3eh or new vector loop-variant.
14812
14813 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
14814
14815         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Use ifunc to select c,
14816         etf3eh or new vector loop-variant.
14817
14818 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
14819
14820         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Use ifunc to select c, etf3eh
14821         or new vector loop-variant.
14822
14823 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
14824
14825         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c (TROO_LOOP):
14826         Rename to TR_LOOP and usage of tr instead of troo instruction.
14827
14828 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
14829
14830         * sysdeps/s390/multiarch/gconv_simple.c: New File.
14831         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add gconv_simple.
14832
14833 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
14834
14835         * sysdeps/s390/multiarch/8bit-generic.c: New File.
14836         * sysdeps/s390/multiarch/gen-8bit.sh: New File.
14837         * sysdeps/s390/multiarch/Makefile (generate-8bit-table):
14838         New override define.
14839         * sysdeps/s390/multiarch/iconv/skeleton.c: Likewise.
14840
14841 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
14842
14843         * config.h.in (HAVE_S390_VX_GCC_SUPPORT): New macro undefine.
14844         * sysdeps/s390/configure.ac: Add test for S390 vector register
14845         support in gcc.
14846         * sysdeps/s390/configure: Regenerated.
14847
14848 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
14849
14850         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules):
14851         Install file from $(objpfx)gconv-modules.
14852         ($(objpfx)gconv-modules): Concatenate architecture specific file
14853         in variable sysdeps-gconv-modules and gconv-modules in src dir.
14854         * sysdeps/s390/gconv-modules: New file.
14855         * sysdeps/s390/s390-64/Makefile: ($(inst_gconvdir)/gconv-modules):
14856         Deleted.
14857         ($(objpfx)gconv-modules-s390): Deleted.
14858         (sysdeps-gconv-modules): New variable.
14859
14860 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
14861
14862         [BZ #15479]
14863         * sysdeps/x86_64/fpu/multiarch/s_ceil.S (__ceil_sse41): Set bit 3
14864         of immediate operand to rounding instruction.
14865         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S (__ceilf_sse41):
14866         Likewise.
14867         * sysdeps/x86_64/fpu/multiarch/s_floor.S (__floor_sse41):
14868         Likewise.
14869         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf_sse41):
14870         Likewise.
14871
14872 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
14873
14874         * math/libm-test.inc (MIN_EXP): Directly define as
14875         (DBL|LDBL|FLT)_MIN_EXP and fixup usage.
14876
14877 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
14878
14879         * math/libm-test.inc (MANT_DIG): Directly define as
14880         (DBL|LDBL|FLT)_MANT_DIG and fixup usage.
14881
14882 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
14883
14884         * stdlib/gen-tst-strtod-round.c (main):
14885           Change usage to more closely match the generated
14886           output.  Add usage and compilation instructions.
14887           (string_to_fp): Add and use FILE* parameter as
14888           output target.
14889           (print_fp): Likewise.
14890           (round_str): Likewise.
14891           (round_for_all): Likewise.
14892         * stdlib/tst-strtod-round.c (tests): Move into
14893         * stdlib/tst-strtod-round-data.h: New file.
14894
14895 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
14896
14897         [BZ #15479]
14898         * sysdeps/ieee754/dbl-64/s_round.c (huge): Remove variable.
14899         (__round): Do not force "inexact" exception.
14900         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (huge): Remove
14901         variable.
14902         (__round): Do not force "inexact" exception.
14903         * sysdeps/ieee754/flt-32/s_roundf.c (huge): Remove variable.
14904         (__roundf): Do not force "inexact" exception.
14905         * sysdeps/ieee754/ldbl-128/s_roundl.c (huge): Remove variable.
14906         (__roundl): Do not force "inexact" exception.
14907         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Remove variable.
14908         (__roundl): Do not force "inexact" exception.
14909         * math/libm-test.inc (round_test_data): Do not allow spurious
14910         "inexact" exceptions.
14911
14912         [BZ #15479]
14913         * sysdeps/ieee754/dbl-64/s_floor.c: Do not mention "inexact"
14914         exception in comment.
14915         (huge): Remove variable.
14916         (__floor): Do not force "inexact" exception.
14917         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Do not mention
14918         "inexact" exception in comment.
14919         (huge): Remove variable.
14920         (__floor): Do not force "inexact" exception.
14921         * sysdeps/ieee754/flt-32/s_floorf.c: Do not mention "inexact"
14922         exception in comment.
14923         (huge): Remove variable.
14924         (__floorf): Do not force "inexact" exception.
14925         * sysdeps/ieee754/ldbl-128/s_floorl.c: Do not mention "inexact"
14926         exception in comment.
14927         (huge): Remove variable.
14928         (__floorl): Do not force "inexact" exception.
14929
14930         [BZ #15479]
14931         * sysdeps/ieee754/dbl-64/s_ceil.c: Do not mention "inexact"
14932         exception in comment.
14933         (huge): Remove variable.
14934         (__ceil): Do not force "inexact" exception.
14935         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Do not mention
14936         "inexact" exception in comment.
14937         (huge): Remove variable.
14938         (__ceil): Do not force "inexact" exception.
14939         * sysdeps/ieee754/flt-32/s_ceilf.c (huge): Remove variable.
14940         (__ceilf): Do not force "inexact" exception.
14941         * sysdeps/ieee754/ldbl-128/s_ceill.c: Do not mention "inexact"
14942         exception in comment.
14943         (huge): Remove variable.
14944         (__ceill): Do not force "inexact" exception.
14945
14946 2016-05-24  H.J. Lu  <hongjiu.lu@intel.com>
14947
14948         * config.h.in (BIND_NOW): New.
14949         * configure.ac (BIND_NOW): New.  Defined for --enable-bind-now.
14950         * configure: Regenerated.
14951         * sysdeps/x86_64/sysdep.h (JUMPTARGET)[BIND_NOW]: Defined to
14952         indirect branch via the GOT slot.
14953
14954 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
14955
14956         [BZ #19765]
14957         * sysdeps/s390/mempcpy.S: New File.
14958         * sysdeps/s390/multiarch/mempcpy.c: Likewise.
14959         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add mempcpy.
14960         * sysdeps/s390/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
14961         Add mempcpy variants.
14962         * sysdeps/s390/s390-32/memcpy.S: Add mempcpy entry point.
14963         (memcpy): Adjust to be usable from mempcpy entry point.
14964         (__memcpy_mvcle): Likewise.
14965         * sysdeps/s390/s390-64/memcpy.S: Likewise.
14966         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add entry points
14967         ____mempcpy_z196, ____mempcpy_z10 and add __GI_ symbols for mempcpy.
14968         (__memcpy_z196): Adjust to be usable from mempcpy entry point.
14969         (__memcpy_z10): Likewise.
14970         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
14971
14972 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
14973
14974         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_libc_ifunc):
14975         Remove __GI_ symbol.
14976         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Add __GI_memcmp symbol.
14977         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Likewise.
14978         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add __GI_memcpy symbol.
14979         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
14980         * sysdeps/s390/s390-32/multiarch/memset-s390.S: Add __GI_memset symbol.
14981         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Likewise.
14982
14983 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
14984
14985         * sysdeps/s390/s390-64/memcpy.S (memcpy):
14986         Use cghi instead of chi to compare 64bit value.
14987
14988 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
14989
14990         * sysdeps/s390/s390-32/memcpy.S (memcpy):
14991         Jump to 1MB check before executing mvc-loop.
14992
14993 2016-05-24  Florian Weimer  <fweimer@redhat.com>
14994
14995         [BZ #6527]
14996         * malloc/malloc.c (MALLOC_ALIGNMENT): Use correct alignment
14997         unconditionally.
14998         * malloc/hooks.c (MALLOC_STATE_VERSION): Increase state version.
14999
15000 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15001
15002         * stdlib/tst-strtod6.c (do_test): Use new type generic
15003         invocation of the test function.
15004         (test): Refactor into ...
15005         (TEST_STRTOD): New macro base function.
15006
15007 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15008
15009         * stdlib/bug-strtod2.c (do_test): Refactor strtod usage into ...
15010         (TEST_STRTOD): New macro.
15011         (TEST_FUNCTION): Redefine to use STRTOD_TEST_FOREACH
15012
15013 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15014
15015         * stdlib/tst-strtod6.c (do_test): Use new type generic
15016         invocation of the test function.
15017         (test): Refactor into ...
15018         (TEST_STRTOD): New macro base function.
15019
15020 2016-05-23  Florian Weimer  <fweimer@redhat.com>
15021
15022         CVE-2016-4429
15023         [BZ #20112]
15024         * sunrpc/clnt_udp.c (clntudp_call): Use malloc/free for the error
15025         payload.
15026
15027 2016-05-23  Florian Weimer  <fweimer@redhat.com>
15028
15029         [BZ #20111]
15030         * bits/sockaddr.h (_SS_SIZE): Define.
15031         * bits/socket.h (_SS_SIZE): Remove.
15032         (_SS_PADSIZE): Adjust to account for all padding.
15033         (struct sockaddr_storage): Update comment.  Avoid implicit
15034         padding.
15035         * sysdeps/mach/hurd/bits/socket.h (_SS_SIZE): Remove.
15036         (_SS_PADSIZE): Adjust to account for all padding.
15037         (struct sockaddr_storage): Update comment.  Avoid implicit
15038         padding.
15039         * sysdeps/unix/bsd/bits/sockaddr.h (_SS_SIZE): Define.
15040         * sysdeps/unix/sysv/linux/bits/socket.h (_SS_SIZE): Remove.
15041         (_SS_PADSIZE): Adjust to account for all padding.
15042         (struct sockaddr_storage): Update comment.  Avoid implicit
15043         padding.
15044         * sysdeps/unix/sysv/linux/m68k/bits/sockaddr.h: New file.
15045         __SS_SIZE is 126 in this version.
15046         * inet/tst-sockaddr.c: New file.
15047         * inet/Makefile (tests): Add tst-sockaddr.c
15048         (tst-sockaddr.c): Compile with non-strict aliasing.
15049
15050 2016-05-23  Joseph Myers  <joseph@codesourcery.com>
15051
15052         * conform/data/limits.h-data (CHARCLASS_NAME_MAX): Also expect for
15053         [XPG3 || XPG4].
15054         (NL_ARGMAX): Also expect for [XPG3].
15055         (NL_LANGMAX): Likewise.
15056         (NL_MSGMAX): Likewise.
15057         (NL_NMAX): Likewise.
15058         (NL_SETMAX): Likewise.
15059         (NL_TEXTMAX): Likewise.
15060         (NZERO): Likewise.
15061         (TMP_MAX): Likewise.
15062         * conform/Makefile (test-xfail-XPG3/limits.h/conform): Remove
15063         variable.
15064
15065         * sysdeps/unix/sysv/linux/bits/socket.h (PF_KCM): New macro.
15066         (PF_MAX): Update value.
15067         (AF_KCM): New macro.
15068         (SOL_NETBEUI): Likewise.
15069         (SOL_LLC): Likewise.
15070         (SOL_DCCP): Likewise.
15071         (SOL_NETLINK): Likewise.
15072         (SOL_TIPC): Likewise.
15073         (SOL_RXRPC): Likewise.
15074         (SOL_PPPOL2TP): Likewise.
15075         (SOL_BLUETOOTH): Likewise.
15076         (SOL_PNPIPE): Likewise.
15077         (SOL_RDS): Likewise.
15078         (SOL_IUCV): Likewise.
15079         (SOL_CAIF): Likewise.
15080         (SOL_ALG): Likewise.
15081         (SOL_NFC): Likewise.
15082         (SOL_KCM): Likewise.
15083         (MSG_BATCH): New enum value and macro.
15084
15085 2016-05-20  H.J. Lu  <hongjiu.lu@intel.com>
15086
15087         [BZ #18185]
15088         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Don't limit threads
15089         sharing L2 cache to 2 for Knights Landing.
15090
15091 2016-05-20  Joseph Myers  <joseph@codesourcery.com>
15092
15093         * conform/data/ftw.h-data (struct FTW): Do not expect for [XPG3].
15094         (FTW_DP): Do not expect for [XPG3 || XPG4].
15095         (FTW_SL): Do not expect for [XPG3].
15096         (FTW_SLN): Likewise.
15097         (FTW_PHYS): Likewise.
15098         (FTW_MOUNT): Likewise.
15099         (FTW_DEPTH): Likewise.
15100         (FTW_CHDIR): Likewise.
15101         (nftw): Likewise.
15102         * conform/Makefile (test-xfail-XPG3/ftw.h/conform): Remove
15103         variable.
15104
15105 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
15106
15107         * manual/errno.texi: Fix various typos & grammar errors.
15108
15109 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
15110
15111         * manual/intro.texi: Fix duplicated typo.
15112
15113 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
15114
15115         [BZ #13304]
15116         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Include <fenv.h>,
15117         <float.h>, <math_private.h> and <stdlib.h>.
15118         (add_split): New function.
15119         (mul_split): Likewise.
15120         (ext_val): New typedef.
15121         (store_ext_val): New function.
15122         (mul_ext_val): New function.
15123         (compare): New function.
15124         (add_split_ext): New function.
15125         (__fmal): After checking for Inf, NaN and zero, compute result as
15126         an exact sum of scaled double values in round-to-nearest before
15127         adding those up and adjusting for other rounding modes.
15128         * math/auto-libm-test-in: Remove xfail-rounding:ldbl-128ibm from
15129         tests of fma.
15130         * math/auto-libm-test-out: Regenerated.
15131
15132 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
15133
15134         [BZ #20119]
15135         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Correct Intel
15136         processor level type mask for CPUID with EAX == 11.
15137
15138 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
15139
15140         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Skip counting
15141         logical threads if the HTT bit is 0.
15142         * sysdeps/x86/cpu-features.h (bit_cpu_HTT): New.
15143         (index_cpu_HTT): Likewise.
15144         (reg_HTT): Likewise.
15145
15146 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
15147
15148         [BZ #20115]
15149         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S (__memset):
15150         Remove alignments on jump targets.
15151
15152 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
15153
15154         * conform/data/pwd.h-data (endpwent): Do not expect for [XPG3].
15155         (getpwent): Likewise.
15156         (setpwent): Likewise.
15157         * conform/Makefile (test-xfail-XPG3/pwd.h/conform): Remove
15158         variable.
15159
15160         * conform/data/search.h-data (insque): Do not expect for [XPG3].
15161         (remque): Likewise.
15162         * conform/Makefile (test-xfail-XPG3/search.h/conform): Remove
15163         variable.
15164
15165 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
15166
15167         * math/libm-test.inc: Update comment not to refer to signs of NaNs
15168         not being tested.
15169
15170 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
15171
15172         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
15173         (__condvar_cleanup2): Remove JUMPTARGET from  _Unwind_Resume
15174         call.
15175         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
15176         (__condvar_cleanup1): Likewise.
15177
15178 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
15179
15180         * sysdeps/unix/sysv/linux/x86_64/cancellation.S (PTHREAD_UNWIND):
15181         New
15182         (__pthread_unwind): Renamed to ...
15183         (PTHREAD_UNWIND): This.
15184         (__pthread_enable_asynccancel): Replace
15185         JUMPTARGET(__pthread_unwind) with PTHREAD_UNWIND.
15186
15187 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
15188
15189         * sysdeps/unix/sysv/linux/bits/sched.h [__USE_GNU]
15190         (CLONE_NEWCGROUP): New macro.
15191
15192         * sysdeps/unix/sysv/linux/sys/quota.h [_LINUX_QUOTA_VERSION >= 2]
15193         (Q_GETNEXTQUOTA): New macro.
15194
15195 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
15196
15197         [BZ #19907]
15198         * benchtests/bench-memcpy.c (do_one_test): Clear the destination
15199         buffer updated by the previous run.
15200         * string/test-memcpy.c (do_one_test): Likewise.
15201         * benchtests/bench-memmove.c (do_one_test): Add a comment.
15202         * string/test-memmove.c (do_one_test): Likewise.
15203
15204 2016-05-17  Joseph Myers  <joseph@codesourcery.com>
15205
15206         [BZ #20094]
15207         * stdlib/stdlib.h (grantpt): Declare if [__USE_XOPEN_EXTENDED],
15208         not [__USE_XOPEN].
15209         (unlockpt): Likewise.
15210         (ptsname): Likewise.
15211         * conform/Makefile (test-xfail-XPG3/stdlib.h/conform): Remove
15212         variable.
15213
15214         [BZ #20076]
15215         * io/sys/stat.h (S_IFSOCK): Define for [__USE_XOPEN_EXTENDED]
15216         instead of [__USE_UNIX98].
15217         (S_ISSOCK): Likewise.
15218         * conform/Makefile (test-xfail-XPG4/sys/stat.h/conform): Remove
15219         variable.
15220
15221         [BZ #20074]
15222         * stdlib/stdlib.h (rand_r): Declare if [__USE_POSIX199506], not if
15223         [__USE_POSIX].
15224         * conform/Makefile (test-xfail-XPG4/stdlib.h/conform): Remove
15225         variable.
15226
15227         [BZ #20051]
15228         * posix/unistd.h [__USE_XOPEN_EXTENDED && !__USE_UNIX98]
15229         (ttyslot): Do not declare.
15230         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && !__USE_XOPEN2K]
15231         (ttyslot): New prototype.
15232         * conform/Makefile (test-xfail-XPG4/unistd.h/conform): Remove
15233         variable.
15234         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
15235
15236 2016-05-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
15237
15238         * nptl/tst-cancel17.c (do_test): Wait for finishing aio_read(&a).
15239
15240 2016-05-13  Florian Weimer  <fweimer@redhat.com>
15241
15242         Fix race condition in tst-mallocfork2, use fewer resources.
15243         * malloc/tst-mallocfork2.c (sigusr1_handler): Do not send SIGSTOP
15244         to current process group.
15245         (signal_sender): Yield in the non-sleeping case.
15246
15247 2016-05-13  Joseph Myers  <joseph@codesourcery.com>
15248
15249         * conform/data/stdlib.h-data (a64l): Do not expect for [XPG3].
15250         (ecvt): Likewise.
15251         (fcvt): Likewise.
15252         (gcvt): Likewise.
15253         (getsubopt): Likewise.
15254         (grantpt): Likewise.
15255         (initstate): Likewise.
15256         (l64a): Likewise.
15257         (mktemp): Likewise.
15258         (mkstemp): Likewise.
15259         (ptsname): Likewise.
15260         (random): Likewise.
15261         (realpath): Likewise.
15262         (setstate): Likewise.
15263         (srandom): Likewise.
15264         (ttyslot): Likewise.
15265         (unlockpt): Likewise.
15266         (valloc): Likewise.
15267
15268         * conform/data/string.h-data (strdup): Do not expect for [XPG3].
15269         * conform/Makefile (test-xfail-XPG3/string.h/conform): Remove
15270         variable.
15271
15272 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
15273
15274         [BZ #20072]
15275         * sysdeps/i386/dl-machine.h (dl_platform_init): Call
15276         init_cpu_features only if SHARED is defined.
15277         * sysdeps/x86_64/dl-machine.h (dl_platform_init): Likewise.
15278
15279 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
15280
15281         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Check and support
15282         non-inclusive caches on Intel processors.
15283
15284 2016-05-13  Florian Weimer  <fweimer@redhat.com>
15285
15286         * malloc/malloc.c (dumped_main_arena_start)
15287         (dumped_main_arena_end): New variables.
15288         (DUMPED_MAIN_ARENA_CHUNK): New macro.
15289         (do_check_chunk): Skip dumped fake mmapped chunks.
15290         (munmap_chunk): Likewise.
15291         (__libc_free): Do not adjust statistics for fake mmapped chunks.
15292         (__libc_realloc): Adjust hardening check.  Always copy dumped fake
15293         mmapped chunks.
15294         * malloc/hooks.c (__malloc_set_state): Do not update main_arena.
15295         Mark dumped chunks as using mmap.  Update dumped_main_arena_start
15296         and dumped_main_arena_end to cover the dumped heap.
15297
15298 2016-05-12  Joseph Myers  <joseph@codesourcery.com>
15299
15300         * conform/data/time.h-data (getdate_err): Do not expect for
15301         [XPG3].
15302         (getdate): Likewise.
15303         * conform/Makefile (test-xfail-XPG3/time.h/conform): Remove
15304         variable.
15305
15306         * conform/data/unistd.h-data (F_LOCK): Do not expect for [XPG3].
15307         (F_ULOCK): Likewise.
15308         (F_TEST): Likewise.
15309         (F_TLOCK): Likewise.
15310         (useconds_t): Likewise.
15311         (intptr_t): Do not expect for [XPG3] or [XPG4].
15312         (brk): Do not expect for [XPG3]
15313         (fchown): Likewise.
15314         (fchdir): Likewise.
15315         (ftruncate): Likewise.
15316         (getdtablesize): Likewise.
15317         (gethostid): Likewise.
15318         (getpagesize): Likewise.
15319         (getpgid): Likewise.
15320         (getsid): Likewise.
15321         (getwd): Likewise.
15322         (lchown): Likewise.
15323         (lockf): Likewise.
15324         (readlink): Likewise.
15325         (sbrk): Likewise.
15326         (setpgrp): Likewise.
15327         (setregid): Likewise.
15328         (setreuid): Likewise.
15329         (symlink): Likewise.
15330         (sync): Likewise.
15331         (truncate): Likewise.
15332         (ualarm): Likewise.
15333         (usleep): Likewise.
15334         (vfork): Likewise.
15335         * conform/Makefile (test-xfail-XPG3/unistd.h/conform): Remove
15336         variable.
15337
15338         [BZ #20054]
15339         * posix/unistd.h (gethostname): Declare if [__USE_XOPEN_EXTENDED],
15340         not [__USE_UNIX98].
15341         * conform/data/unistd.h-data (gethostname): Do not expect for
15342         [XPG3].
15343
15344         * conform/data/fcntl.h-data [!POSIX] (S_IFMT): Do not expect.
15345         [!POSIX] (S_IFBLK): Likewise.
15346         [!POSIX] (S_IFCHR): Likewise.
15347         [!POSIX] (S_IFIFO): Likewise.
15348         [!POSIX] (S_IFREG): Likewise.
15349         [!POSIX] (S_IFDIR): Likewise.
15350         [!POSIX] (S_IFLNK): Likewise.
15351         [!POSIX] (S_IFSOCK): Likewise.
15352         * conform/Makefile (test-xfail-XPG3/fcntl.h/conform): Remove
15353         variable.
15354         (test-xfail-XPG4/fcntl.h/conform): Likewise.
15355
15356 2016-05-12  Wilco Dijkstra  <wdijkstr@arm.com>
15357
15358         * sysdeps/aarch64/memset.S (__memset):
15359         Rewrite of optimized memset.
15360
15361 2016-05-12  Florian Weimer  <fweimer@redhat.com>
15362
15363         [BZ #19703]
15364         Partially async-signal-safe fork for single-threaded processes.
15365         * sysdeps/nptl/fork.c (__libc_fork): Introduce multiple_threads
15366         variable.  Do not acquire and reset/release malloc and libio locks
15367         in single-threaded processes.
15368         * malloc/tst-mallocfork2.c: New file.
15369         * malloc/Makefile (tests): Add it.
15370
15371 2016-05-12  Florian Weimer  <fweimer@redhat.com>
15372
15373         * sysdeps/posix/getaddrinfo.c (gaih_inet_serv): Add tmpbuf
15374         argument.  Use scratch buffer instead of extend_alloca.
15375         (gethosts): Use scratch buffer instead of extend_alloca.
15376         (gaih_inet): Add tmpbuf argument.  Use scratch buffer instead of
15377         extend_alloca.
15378         (getaddrinfo): Allocate scratch buffer and pass it to gaih_inet.
15379
15380 2016-05-11  Joseph Myers  <joseph@codesourcery.com>
15381
15382         [BZ #20055]
15383         * termios/termios.h (pid_t): Define for [__USE_XOPEN_EXTENDED]
15384         instead of [__USE_UNIX98].
15385         (tcgetsid): Declare for [__USE_XOPEN_EXTENDED] instead of
15386         [__USE_UNIX98].
15387         * conform/data/termios.h-data (tcgetsid): Do not expect for
15388         [XPG3].
15389         * conform/Makefile (test-xfail-XPG3/termios.h/conform): Remove
15390         variable.
15391         (test-xfail-XPG4/termios.h/conform): Likewise.
15392
15393 2016-05-11  Florian Weimer  <fweimer@redhat.com>
15394
15395         Do not use mcheck in localedef.
15396         * locale/programs/localedef.c (turn_on_mcheck)
15397         (__malloc_initialize_hook): Remove.
15398
15399 2016-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
15400
15401         * sysdeps/s390/s390-32/Makefile (pic-ccflag): Remove.
15402         * sysdeps/s390/s390-64/Makefile: Likewise.
15403
15404 2016-05-11  H.J. Lu  <hongjiu.lu@intel.com>
15405
15406         * sysdeps/i386/i686/multiarch/Makefile (gen-as-const-headers):
15407         Remove ifunc-defines.sym.
15408         * sysdeps/x86_64/multiarch/Makefile (gen-as-const-headers):
15409         Likewise.
15410         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Removed.
15411         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
15412         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
15413         * sysdeps/x86/Makefile (gen-as-const-headers): Remove
15414         rtld-global-offsets.sym.
15415         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Merged with ...
15416         * sysdeps/x86/cpu-features-offsets.sym: This.
15417         * sysdeps/x86/cpu-features.h: Include <cpu-features-offsets.h>
15418         instead of <ifunc-defines.h> and <rtld-global-offsets.h>.
15419
15420 2016-05-10  Joseph Myers  <joseph@codesourcery.com>
15421
15422         [BZ #20073]
15423         * io/sys/stat.h (fchmod): Declare for
15424         [__USE_POSIX199309 || __USE_XOPEN_EXTENDED], not [__USE_POSIX].
15425         * conform/Makefile (test-xfail-XPG3/sys/stat.h/conform): Remove
15426         variable.
15427
15428         * conform/data/sys/stat.h-data [XPG3] (S_IFLNK): Do not expect.
15429         [XPG3] (S_IFSOCK): Likewise.
15430         [XPG3] (S_ISVTX): Likewise.
15431         [XPG3] (S_ISLNK): Likewise.
15432         [XPG3] (S_ISSOCK): Likewise.
15433         [XPG3] (fchmod): Likewise.
15434         [XPG3] (lstat): Likewise.
15435         [XPG3] (mknod): Likewise.
15436
15437         * conform/data/sys/stat.h-data (st_blksize): Do not expect for
15438         [XPG3].  Expect type long and XFAIL for [XPG4].
15439         (st_blocks): Likewise.
15440
15441         [BZ #20044]
15442         * posix/unistd.h [__USE_UNIX98 && !__USE_XOPEN2K]
15443         (pthread_atfork): New prototype.
15444         * conform/Makefile (test-xfail-UNIX98/unistd.h/conform): Remove
15445         variable.
15446
15447         [BZ #20043]
15448         * posix/unistd.h [__USE_XOPEN && !__USE_XOPEN2K] (cuserid): New
15449         prototype.
15450
15451 2016-05-10  Florian Weimer  <fweimer@redhat.com>
15452
15453         [BZ #20017]
15454         * resolv/res_debug.c (p_secstodate): Call __gmtime_r instead of
15455         gmtime.
15456
15457 2016-05-10  Florian Weimer  <fweimer@redhat.com>
15458
15459         [BZ #19994]
15460         * sysdeps/posix/getaddrinfo.c (gethosts): Restore RES_USE_INET6
15461         flag in _res.options.
15462
15463 2016-05-09  Joseph Myers  <joseph@codesourcery.com>
15464
15465         * conform/data/sys/types.h-data (blkcnt_t): Do not expect for
15466         [XPG3 || XPG4].
15467         (blksize_t): Likewise.
15468         (clockid_t): Likewise.
15469         * conform/Makefile (test-xfail-XPG3/sys/types.h/conform): Remove
15470         variable.
15471         (test-xfail-XPG4/sys/types.h/conform): Likewise.
15472
15473 2016-05-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
15474
15475         * sysdeps/unix/sysv/linux/s390/init-first.c:
15476         Add VDSO_SYMBOL(getcpu).
15477         (_libc_vdso_platform_setup): Initialize VDSO_SYMBOL(getcpu).
15478         * sysdeps/unix/sysv/linux/s390/libc-vdso.h:
15479         Add VDSO_SYMBOL(getcpu).
15480         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
15481         New define HAVE_GETCPU_VSYSCALL.
15482         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
15483
15484 2016-05-08  H.J. Lu  <hongjiu.lu@intel.com>
15485
15486         * sysdeps/i386/cacheinfo.c: Include <sysdeps/x86/cacheinfo.c>
15487         instead of <sysdeps/x86_64/cacheinfo.c>.
15488         * sysdeps/x86_64/cacheinfo.c: Moved to ...
15489         * sysdeps/x86/cacheinfo.c: Here.
15490
15491 2016-05-04  Florian Weimer  <fweimer@redhat.com>
15492
15493         * malloc/malloc-internal.h: Adjust header file guard.
15494
15495 2016-05-04  Florian Weimer  <fweimer@redhat.com>
15496
15497         [BZ #19787]
15498         * inet/getnameinfo.c (check_sprintf_result): New function.
15499         (CHECKED_SNPRINTF): New macro.
15500         (gni_host_inet_numeric): Use CHECKED_SNPRINTF to write the scope
15501         to the host buffer.
15502         (gni_host_local): Use checked_copy to copy the host name.
15503         (gni_serv_inet): Use CHECKED_SNPRINTF to write the service name.
15504         (gni_serv_local): Use checked_copy to copy the service name.
15505         (getnameinfo): Remove unnecessary truncation of result buffers.
15506
15507 2016-05-04  Florian Weimer  <fweimer@redhat.com>
15508
15509         * inet/getnameinfo.c (gni_host_inet_numeric): Return EAI_OVERFLOW
15510         in case of inet_ntop failure.
15511
15512 2016-05-04  Florian Weimer  <fweimer@redhat.com>
15513
15514         * inet/getnameinfo.c (gni_host_inet_name): Use temporaries to
15515         avoid long lines.
15516         (gni_host_inet_numeric): Likewise.  Reduce scope of local
15517         variables.
15518         (gni_host_inet, gni_host_local): Add comment.
15519         (gni_host): Add comment.  Use temporary to avoid long lines.
15520
15521 2016-05-04  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
15522
15523         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Fix use of condition
15524         registers specifiers where general purpose registers specifiers should
15525         have been used.
15526
15527 2016-05-04  Florian Weimer  <fweimer@redhat.com>
15528
15529         [BZ #19779]
15530         CVE-2016-1234
15531         Avoid copying names of directory entries.
15532         * posix/glob.c (DIRENT_MUST_BE, DIRENT_MIGHT_BE_SYMLINK)
15533         (DIRENT_MIGHT_BE_DIR, CONVERT_D_INO, CONVERT_D_TYPE)
15534         (CONVERT_DIRENT_DIRENT64, REAL_DIR_ENTRY): Remove macros.
15535         (struct readdir_result): New type.
15536         (D_TYPE_TO_RESULT, D_INO_TO_RESULT, READDIR_RESULT_INITIALIZER)
15537         (GL_READDIR): New macros.
15538         (readdir_result_might_be_symlink, readdir_result_might_be_dir)
15539         (convert_dirent, convert_dirent64): New functions.
15540         (glob_in_dir): Use struct readdir_result.  Call convert_dirent or
15541         convert_dirent64.  Adjust references to the readdir result.
15542         * sysdeps/unix/sysv/linux/i386/glob64.c:
15543         (convert_dirent, GL_READDIR): Redefine for second file inclusion.
15544         * posix/bug-glob2.c (LONG_NAME): Define.
15545         (filesystem): Add LONG_NAME.
15546         (my_DIR): Increase the size of room_for_dirent.
15547
15548 2016-05-03  Joseph Myers  <joseph@codesourcery.com>
15549
15550         [BZ #20041]
15551         * misc/sys/select.h (__need_timespec): Only define if
15552         [__USE_XOPEN2K].
15553         * conform/Makefile (test-xfail-XPG4/sys/time.h/conform): Remove
15554         variable.
15555         (test-xfail-XPG4/utmpx.h/conform): Likewise.
15556         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
15557         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
15558
15559 2016-05-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15560             Segher Boessenkool  <segher@gcc.gnu.org>
15561
15562         [BZ #20004]
15563         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S:
15564         (__novec_swapcontext): Add missing load.
15565
15566 2016-05-02  Joseph Myers  <joseph@codesourcery.com>
15567
15568         [BZ #20023]
15569         * io/fcntl.h [__USE_XOPEN && !__USE_XOPEN2K8]: Do not include
15570         <time.h>.
15571         * conform/Makefile (test-xfail-UNIX98/fcntl.h/conform): Remove
15572         variable.
15573         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
15574
15575 2016-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15576
15577         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone): Fix
15578         flags CLONE_VM compare.
15579
15580 2016-05-02  Florian Weimer  <fweimer@redhat.com>
15581
15582         [BZ #20031]
15583         * hesiod/hesiod.c (get_txt_records): Return error if TXT record is
15584         completely empty.
15585
15586 2016-05-02  Florian Weimer  <fweimer@redhat.com>
15587
15588         [BZ #19573]
15589         * hesiod/Makefile (libnss_hesiod-routines): Remove hesiod-init.
15590         * hesiod/nss_hesiod/hesiod-init.c: Remove file.
15591         * hesiod/nss_hesiod/nss_hesiod.h: Likewise.
15592         * hesiod/hesiod.h (__hesiod_res_get, __hesiod_res_set): Remove.
15593         (hesiod_init, hesiod_end, hesiod_to_bind, hesiod_resolve)
15594         (hesiod_free_list): Mark as hidden.
15595         * hesiod/hesiod_p (struct hesiod_p): Remove res, free_res,
15596         res_set, res_get.
15597         * hesiod/hesiod.c: Remove unnecessary forward declarations.
15598         (init, __hesiod_res_get, __hesiod_res_set): Remove.
15599         (hesiod_init): Remove obsolete res_ninit call.
15600         (hesiod_end): Do not free resolver state.  Do not invoke callback.
15601         (hesiod_bind): Do not call init.
15602         (get_txt_records): Use res_mkquery, res_send instead of
15603         res_nmkquery, res_nsend.
15604         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Call hesiod_init
15605         instead of _nss_hesiod_init.
15606         (_nss_hesiod_initgroups_dyn): Likewise.
15607         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
15608         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Likewise.
15609         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
15610
15611 2016-05-02  Florian Weimer  <fweimer@redhat.com>
15612
15613         * hesiod/hesiod_p.h (DEF_RHS): Remove.
15614         * hesiod/hesiod.c (hesiod_init): Remove code for handling DEF_RHS.
15615
15616 2016-05-02  Florian Weimer  <fweimer@redhat.com>
15617
15618         * hesiod/hesiod.h: Remove RCS keyword.
15619         * hesiod/hesiod_p.h: Likewise.
15620
15621         * hesiod/hesiod.c: Likewise.
15622
15623 2016-05-01  Arnas Udovičius  <arnas.udovicius@gmail.com>
15624
15625         [BZ #12450]
15626         * locale/iso-639.def: Add Samogitian/sgs.
15627
15628 2016-04-30  Andreas Schwab  <schwab@linux-m68k.org>
15629
15630         * sysdeps/m68k/Makefile (CFLAGS-gmon-start.c): Define.
15631
15632         * sysdeps/unix/sysv/linux/m68k/clone.S: Localize labels.
15633
15634 2016-04-29  Stephen Gallagher  <sgallagh@redhat.com>
15635             Carlos O'Donell  <carlos@redhat.com>
15636
15637         [BZ #19072]
15638         * grp/Makefile (headers): Add grp-merge.h
15639         (routines): Add grp-merge.
15640         * grp/getgrgid_r.c: Include grp-merge.h.
15641         (DEEPCOPY_FN): Define.
15642         (MERGE_FN): Define.
15643         * grp/getgrname_r.c: Include grp-merge.h.
15644         (DEEPCOPY_FN): Define.
15645         (MERGE_FN): Define.
15646         * grp/grp-merge.c: New file.
15647         * grp/grp-merge.h: New file.
15648         * include/grp-merge.h: New file.
15649         * grp/Versions: Define __merge_grp@GLIBC_PRIVATE, and
15650         __copy_grp@GLIBC_PRIVATE.
15651         * manual/nss.texi (Actions in the NSS configuration): Describe
15652         return, continue, and merge.
15653         * nscd/getgrgid_r.c: Include grp/grp-merge.h.
15654         (DEEPCOPY_FN): Define.
15655         (MERGE_FN): Define.
15656         * nscd/getgrnam_r.c: Include grp/grp-merge.h.
15657         (DEEPCOPY_FN): Define.
15658         (MERGE_FN): Define.
15659         * nss/getXXbyYY_r.c [!DEEPCOPY_FN]: Define __copy_einval.
15660         [!MERGE_FN]: Define __merge_einval.
15661         (CHECK_MERGE): Define.
15662         (REENTRANT_NAME): Process merge if do_merge is true.
15663         * nss/getnssent_r.c (__nss_setent): Process NSS_ACTION_MERGE.
15664         (__nss_getent_r): Likewise.
15665         * nss/nsswitch.c (nss_parse_service_list): Likewise.
15666         * nss/nsswitch.h (lookup_actions): Define NSS_ACTION_MERGE.
15667
15668 2016-04-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15669
15670         [BZ #20012]
15671         * libio/fmemopen.c (fmemopen_read): Use buffer maximum position, not
15672         length to calculate the buffer to read.
15673         (fmemopen_write): Set the buffer position based on bytes written.
15674         (fmemopen_seek): Return EINVAL for invalid whence modes.
15675
15676         [BZ #19957]
15677         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nptl] (test): Remove
15678         tst-getpid2.
15679         (test): Add tst-clone2.
15680         * sysdeps/unix/sysv/linux/tst-clone2.c: New file.
15681         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Do not change
15682         pid/tid fields for CLONE_VM.
15683         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
15684         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
15685         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
15686         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise,
15687         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
15688         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
15689         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
15690         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
15691         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
15692         Likewise.
15693         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
15694         Likewise.
15695         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
15696         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
15697         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
15698         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
15699         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
15700         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
15701         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
15702         * sysdeps/unix/sysv/linux/tst-getpid2.c: Remove file.
15703
15704 2016-04-29  Florian Weimer  <fweimer@redhat.com>
15705
15706         [BZ #19642]
15707         * inet/getnameinfo.c (gni_host_inet_name, gni_host_inet_numeric)
15708         (gni_host_inet, gni_host_local, gni_host, gni_serv_inet)
15709         (gni_serv_local, gni_serv): New functions extracted from
15710         getnameinfo.
15711         (getnameinfo): Call gni_host and gni_serv to perform the
15712         processing.  Always free scratch buffer.
15713
15714 2016-04-29  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
15715
15716         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Call memset to pad the
15717         remaining bytes in the dest string, with zeros.
15718
15719 2016-04-29  Florian Weimer  <fweimer@redhat.com>
15720
15721         [BZ #20010]
15722         CVE-2016-3706
15723         * sysdeps/posix/getaddrinfo.c
15724         (convert_hostent_to_gaih_addrtuple): New function.
15725         (gethosts): Call convert_hostent_to_gaih_addrtuple.
15726         (gaih_inet): Use convert_hostent_to_gaih_addrtuple to convert
15727         AF_INET data.
15728
15729 2016-04-29  Florian Weimer  <fweimer@redhat.com>
15730
15731         glob: Simplify and document the interface for the GLOB_ALTDIRFUNC
15732         callback function gl_readdir.
15733         * posix/glob.c (NAMELEN, CONVERT_D_NAMLEN): Remove.
15734         (CONVERT_DIRENT_DIRENT64): Use strcpy instead of memcpy.
15735         (glob_in_dir): Remove len.  Use strdup instead of malloc and
15736         memcpy to copy the name.
15737         * manual/pattern.texi (Calling Glob): Document requirements for
15738         implementations of the gl_readdir callback function.
15739         * manual/examples/mkdirent.c: New example.
15740         * posix/bug-glob2.c (my_readdir): Set d_ino to 1 unconditionally,
15741         per the manual guidance.
15742         * posix/tst-gnuglob.c (my_readdir): Likewise.
15743
15744 2016-04-28  Joseph Myers  <joseph@codesourcery.com>
15745
15746         [BZ #20014]
15747         * libio/stdio.h (getc_unlocked): Declare if [__USE_POSIX199506],
15748         not [__USE_POSIX].
15749         (getchar_unlocked): Likewise.
15750         (putc_unlocked): Likewise.
15751         (putchar_unlocked): Likewise.
15752         (flockfile): Likewise.
15753         (ftrylockfile): Likewise.
15754         (funlockfile): Likewise.
15755         * conform/Makefile (test-xfail-XPG3/stdio.h/conform): Remove
15756         variable.
15757         (test-xfail-XPG4/stdio.h/conform): Likewise.
15758
15759         * conform/data/langinfo.h-data [XPG3 || XPG4 || UNIX98] (YESSTR):
15760         Expect constant.
15761         [XPG3 || XPG4 || UNIX98] (NOSTR): Likewise.
15762         * conform/Makefile (test-xfail-XPG3/langinfo.h/conform): Remove
15763         variable.
15764         (test-xfail-XPG4/langinfo.h/conform): Likewise.
15765         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
15766
15767         * libio/stdio.h (off_t): Also define if [__USE_UNIX98].
15768         [__USE_LARGEFILE64] (off64_t): Likewise.
15769         * conform/Makefile (test-xfail-UNIX98/stdio.h/conform): Remove
15770         variable.
15771
15772 2016-04-28  Florian Weimer  <fweimer@redhat.com>
15773
15774         * inet/getnameinfo.c (getnameinfo): Do not preserve errno.
15775
15776 2016-04-28  Florian Weimer  <fweimer@redhat.com>
15777
15778         * resolv/inet_addr.c: Reindent preprocessor conditionals.
15779         * resolv/res_init.c: Likewise.
15780         * resolv/res_mkquery.c: Likewise.
15781
15782 2016-04-28  Florian Weimer  <fweimer@redhat.com>
15783
15784         * resolv/res_init.c (isascii): Do not define.  Use definition in
15785         <ctype.h>.
15786         * resolv/gethnamaddr.c: Remove USE_OPTIONS_H conditional.
15787         (LOG_AUTH): Remove.
15788         (SPRINTF): Remove, adjust caller.
15789         (MULTI_PTRS_ARE_ALIASES): Remove, always defined.
15790
15791 2016-04-28  Florian Weimer  <fweimer@redhat.com>
15792
15793         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Remove
15794         SUNSECURITY conditional.
15795         * resolv/gethnamaddr.c (gethostbyaddr): Likewise.
15796
15797 2016-04-28  Florian Weimer  <fweimer@redhat.com>
15798
15799         * resolv/arpa/nameser.h: Include <sys/types.h> unconditionally.
15800         * resolv/gethnamaddr.c: Use include files from conf/portability.h.
15801         Remove BSD-related preprocessor conditionals.
15802         * conf/portability.h: Remove.
15803
15804 2016-04-28  Florian Weimer  <fweimer@redhat.com>
15805
15806         * resolv/resolv.h: Remove __BIND_NOSTATIC conditional.
15807         * resolv/res_data.c: Likewise.
15808
15809 2016-04-28  Florian Weimer  <fweimer@redhat.com>
15810
15811         * resolv/res_comp.c: Remove code conditional on __ultrix__.
15812         * resolv/res_data.c: Remove code conditional on ultrix.
15813
15814 2016-04-28  Florian Weimer  <fweimer@redhat.com>
15815
15816         * resolv/res_init.c (RFC1535): Do not define.  Remove
15817         RFC1535 preprocessor conditionals.
15818         * resolv/README: Update.  Do not claim strict RFC 1535 compliance
15819         because there configuration options which make the resolver
15820         behavior different.
15821
15822 2016-04-28  Florian Weimer  <fweimer@redhat.com>
15823
15824         * resolv/gethnamaddr.c (RESOLVSORT): Do not define.  Remove
15825         RESOLVSORT preprocessor conditionals.
15826         * resolv/nss_dns/dns-host.c: Likewise.
15827         * resolv/res_init.c: Likewise.
15828
15829 2016-04-28  Florian Weimer  <fweimer@redhat.com>
15830
15831         * resolv/res_data.c: Remove code conditional on BIND_UPDATE.  It
15832         is never defined.
15833
15834 2016-04-28  Florian Weimer  <fweimer@redhat.com>
15835
15836         * inet/inet_lnaof.c: Remove SCSS keyword.
15837         * inet/inet_mkadr.c: Likewise.
15838         * inet/inet_net.c: Likewise.
15839         * inet/inet_netof.c: Likewise.
15840         * inet/rcmd.c: Likewise.
15841         * inet/rexec.c: Likewise.
15842         * inet/ruserpass.c: Likewise.
15843
15844 2016-04-28  Florian Weimer  <fweimer@redhat.com>
15845
15846         * resolv/inet_addr.c: Remove _LIBC conditionals.
15847         * resolv/res_data.c: Likewise.
15848         * resolv/res_init.c: Likewise.
15849         * resolv/res_mkquery.c: Likewise.
15850         * resolv/res_libc.c: Update comment.
15851         * resolv/README: Update.
15852
15853 2016-04-28  Florian Weimer  <fweimer@redhat.com>
15854
15855         * resolv/gethnamaddr.c: Remove SCSS keyword.
15856         * resolv/herror.c: Likewise.
15857         * resolv/inet_addr.c: Likewise.
15858         * resolv/inet_net_ntop.c: Likewise.
15859         * resolv/inet_net_pton.c: Likewise.
15860         * resolv/inet_neta.c: Likewise.
15861         * resolv/inet_ntop.c: Likewise.
15862         * resolv/inet_pton.c: Likewise.
15863         * resolv/ns_date.c: Remove RCS keyword.
15864         * resolv/ns_name.c: Likewise.
15865         * resolv/ns_netint.c: Likewise.
15866         * resolv/ns_parse.c: Likewise.
15867         * resolv/ns_print.c: Likewise.
15868         * resolv/ns_samedomain.c: Likewise.
15869         * resolv/ns_ttl.c: Likewise.
15870         * resolv/nsap_addr.c: Likewise.
15871         * resolv/res_comp.c: Remove SCSS and RCS keyword.
15872         * resolv/res_data.c: Remove RCS keyword.
15873         * resolv/res_debug.c: Remove SCSS and RCS keyword.
15874         * resolv/res_init.c: Likewise.
15875         * resolv/res_mkquery.c: Likewise.
15876         * resolv/res_query.c: Likewise.
15877         * resolv/res_send.c: Likewise.
15878
15879 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
15880
15881         * conform/data/stdio.h-data (fdopen): Expect also for
15882         [XPG3 || XPG4].
15883
15884         * conform/data/stdio.h-data (flockfile): Also expect for [UNIX98].
15885         (fseeko): Likewise.
15886         (ftello): Likewise.
15887         (ftrylockfile): Likewise.
15888         (funlockfile): Likewise.
15889         (getc_unlocked): Likewise.
15890         (getchar_unlocked): Likewise.
15891         (putc_unlocked): Likewise.
15892         (putchar_unlocked): Likewise.
15893
15894 2016-04-27  Florian Weimer  <fweimer@redhat.com>
15895
15896         [BZ #19868]
15897         * resolv/nss_dns/dns-network.c (getanswer_r): Implement additional
15898         DNS packet syntax checks (which were not needed before).  Skip
15899         over non-PTR records.
15900
15901 2016-04-27  Florian Weimer  <fweimer@redhat.com>
15902
15903         * resolv/nss_dns/dns-network.c (offsetof): Remove macro
15904         definition.  Include <stddef.h> instead.
15905
15906 2016-04-27  Florian Weimer  <fweimer@redhat.com>
15907
15908         [BZ #19831]
15909         * resolv/nss_dns/dns-host.c (rrtype_to_rdata_length): New
15910         function.
15911         (getanswer_r): Check RDATA length against RRTYPE and QTYPE.
15912         (gaih_getanswer_slice): Check RDATA length against RRTYPE.
15913
15914 2016-04-27  Florian Weimer  <fweimer@redhat.com>
15915
15916         [BZ #19862]
15917         * resolv/nss_dns/dns-host.c (AskedForGot): Remove.
15918         (getanswer_r): Do not call syslog.
15919         (gaih_getanswer_slice): Likewise.
15920         * resolv/gethnamaddr.c (AskedForGot): Remove.
15921         (getanswer): Do not call syslog.
15922         (gethostbyaddr): Likewise.
15923
15924 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
15925
15926         * conform/data/signal.h-data (union sigval): Expect also if
15927         [XOPEN2K].
15928         (struct sigevent): Likewise.
15929         (SIGEV_NONE): Likewise.
15930         (SIGEV_SIGNAL): Likewise.
15931         (SIGEV_THREAD): Likewise.
15932         (SIGRTMIN): Likewise.
15933         (SIGRTMAX): Likewise.
15934         * conform/Makefile (test-xfail-XOPEN2K/aio.h/conform): Remove
15935         variable.
15936         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
15937
15938 2016-04-27  Florian Weimer  <fweimer@redhat.com>
15939
15940         [BZ #19830]
15941         * resolv/nss_dns/dns-host.c (getanswer_r): Check RDATA length.
15942         (gaih_getanswer_slice): Likewise.
15943         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Likewise.
15944         Also check for availability of RR metadata.
15945
15946 2016-04-27  Florian Weimer  <fweimer@redhat.com>
15947
15948         [BZ #19825]
15949         * resolv/res_send.c (send_vc): Remove early *resplen2
15950         initialization.  Set *resplen2 on socket error.  Call
15951         close_and_return_error for other errors.
15952
15953 2016-04-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
15954
15955         * sysdeps/unix/sysv/linux/netiucv/iucv.h
15956         (SOL_IUCV, SO_IPRMDATA_MSG, SO_MSGLIMIT, SO_MSGSIZE)
15957         (SCM_IUCV_TRGCLS): New define.
15958
15959 2016-04-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15960
15961         [BZ #20005]
15962         * libio/fmemopen.c (fmemopen_write): Update internal position after
15963         write.
15964         * stdio-common/Makefile (tests): Add tst-fmemopen4.c.
15965         * stdio-common/tst-fmemopen4.c: New file..
15966
15967 2016-04-26  Joseph Myers  <joseph@codesourcery.com>
15968
15969         [BZ #19996]
15970         * locale/langinfo.h (nl_langinfo_l): Declare if [__USE_XOPEN2K8],
15971         not [__USE_XOPEN2K].
15972         * conform/Makefile (test-xfail-XOPEN2K/langinfo.h/conform): Remove
15973         variable.
15974
15975         * conform/data/stdarg.h-data [XOPEN2K] (va_copy): Require macro.
15976         * conform/Makefile (test-xfail-XOPEN2K/stdarg.h/conform): Remove
15977         variable.
15978
15979         * libio/stdio.h (off_t): Define if [__USE_XOPEN2K], not
15980         [__USE_XOPEN2K8].
15981         [__USE_LARGEFILE64] (off64_t): Likewise.
15982         * conform/Makefile (test-xfail-XOPEN2K/stdio.h/conform): Remove
15983         variable.
15984
15985 2016-04-25  Joseph Myers  <joseph@codesourcery.com>
15986
15987         [BZ #19989]
15988         * libio/stdio.h (cuserid): Do not declare if
15989         [__USE_XOPEN2K && !__USE_GNU].
15990         * conform/Makefile (test-xfail-XOPEN2K8/stdio.h/conform): Remove
15991         variable.
15992
15993 2016-04-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15994
15995         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
15996         (sysdep_routines): Add P8 and PPC64 strcspn targets.
15997         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
15998         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
15999         ifunc'ed strcspn.
16000         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
16001         [EALIGN]: Removed.
16002         [END]: Likewise
16003         [STRSPN]: Define instead of the above to control symbol name.
16004         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S:
16005         New file.
16006         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c:
16007         Likewise.
16008         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c:
16009         Likewise.
16010         * sysdeps/powerpc/powerpc64/power8/strcspn.S:
16011         Likewise.
16012         * sysdeps/powerpc/powerpc64/power8/strspn.S:
16013         [INITIAL_MASK]: New macro.
16014         [STRCSPN]: Likewise.
16015         [UPDATE_MASK]: Likewise.
16016         [USE_AS_STRCSPN]: Likewise.
16017
16018 2016-04-25  Florian Weimer  <fweimer@redhat.com>
16019
16020         [BZ #19931]
16021         * stdio-common/tst-vfprintf-width-prec.c: New file.
16022         * stdio-common/Makefile (tests): Add tst-vfprintf-width-prec.
16023         (tests-special): Add tst-vfprintf-width-prec-mem.out.
16024         (generated): Add mtrace-related files.
16025         (tst-vfprintf-width-prec-ENV): Set MALLOC_TRACE.
16026         (tst-%-mem.out): New pattern rule, replaces
16027         tst-printf-bz18872-mem.out.
16028         * stdio-common/vfprintf.c (vfprintf): When handling a precision
16029         specifier, deallocate any previously allocated work buffer.
16030
16031 2016-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
16032
16033         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__startcontext):
16034         Add nop before __startcontext, add explaining comments.
16035
16036 2016-04-25  Samuel thibault  <samuel.thibault@ens-lyon.org>
16037
16038         RFC2292 macros were obsoleted by RFC3542, and should not be exposed
16039         any more. Notably since IPV6_PKTINFO has been reintroduced with a
16040         completely different API.
16041
16042         * bits/in.h (IPV6_PKTINFO): Rename to IPV6_2292PKTINFO.
16043         (IPV6_HOPOPTS): Rename to IPV6_2292HOPOPTS.
16044         (IPV6_DSTOPTS): Rename to IPV6_2292DSTOPTS.
16045         (IPV6_RTHDR): Rename to IPV6_2292RTHDR.
16046         (IPV6_PKTOPTIONS): Rename to IPV6_2292PKTOPTIONS.
16047         (IPV6_HOPLIMIT): Rename to IPV6_2292HOPLIMIT.
16048         (IPV6_RECVPKTINFO, IPV6_PKTINFO, IPV6_RECVHOPLIMIT, IPV6_HOPLIMIT,
16049         IPV6_RECVHOPOPTS, IPV6_HOPOPTS, IPV6_RTHDRDSTOPTS, IPV6_RECVRTHDR,
16050         IPV6_RTHDR, IPV6_RECVDSTOPTS, IPV6_DSTOPTS, IPV6_RECVPATHMTU,
16051         IPV6_PATHMTU, IPV6_DONTFRAG): New macros.
16052
16053 2016-04-23  H.J. Lu  <hongjiu.lu@intel.com>
16054
16055         * elf/dl-minimal.c (__libc_memalign): Mmap one extra page.
16056
16057 2016-04-23  Mike Frysinger  <vapier@gentoo.org>
16058
16059         * locale/programs/ld-time.c (time_finish): Set week_1stweek to 7
16060         when it is the default of 0.
16061
16062 2016-04-22  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
16063
16064         * sysdeps/powerpc/locale-defines.sym:  Add new macros.
16065         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
16066         (sysdep_routines): Add new strcasestr targets.
16067         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
16068         (__libc_ifunc_impl_list): Likewise.
16069         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: New file.
16070         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-ppc64.c: New file.
16071         * sysdeps/powerpc/powerpc64/multiarch/strcasestr.c: New file.
16072         * sysdeps/powerpc/powerpc64/power8/Makefile:
16073         New file to add strcasestr-ppc64 to sysdep_routines.
16074         * sysdeps/powerpc/powerpc64/power8/strcasestr-ppc64.c: New file.
16075         * sysdeps/powerpc/powerpc64/power8/strcasestr.S: New file.
16076
16077 2016-04-20  Siddhesh Poyarekar  <sid@reserved-bit.com>
16078
16079         * benchtests/Makefile (wcsmbs-benchset): Include only for
16080         native builds and runs.
16081         (LOCALES): Likewise.
16082         (bench-build): Build timing-type here instead of the bench
16083         target.  Generate locale only for native builds.
16084         * benchtests/README: Add note for cross-building.
16085
16086         * benchtests/Makefile (bench-clean): Clean up extra-objs.
16087
16088         * benchtests/README: Update README to include instructions on
16089         using bench-build.
16090
16091         * Makefile.in (bench-build): New target.
16092         * Rules (PHONY): Add bench-build target.
16093         * benchtests/Makefile (bench): Depend on bench-build.
16094         (bench-build): New target.
16095
16096 2016-04-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16097
16098         * sysdeps/mach/hurd/profil.c (update_waiter): Initialize
16099         profil_reply_port.
16100         (profile_waiter): Do not initialize profil_reply_port.
16101         * sysdeps/mach/hurd/profil.c (__profile_frequency): Return tick
16102         frequency instead of tick length in us.
16103
16104 2016-04-18  Wilco Dijkstra  <wdijkstr@arm.com>
16105
16106         [BZ #18712]
16107         * string/string-inlines.c (__STRING2_COPY_TYPE): Add, moved from string2.h.
16108         (__old_mempcpy_small): Likewise.
16109         (__old_strcpy_small): Likewise.
16110         (__old_stpcpy_small): Likewise.
16111         (__old_strpbrk_c2): Fix compat symbol name.
16112         (__old_strpbrk_c3): Likewise.
16113         * string/bits/string2.h (__STRING2_COPY_TYPE): Remove.
16114         (__mempcpy_small): Remove.
16115         (__strcpy_small): Remove.
16116         (__stpcpy_small): Remove.
16117
16118 2016-04-16  Robin van der Vliet <info@robinvandervliet.com>
16119
16120         [BZ #19400]
16121         * locale/iso-639.def: Add the Talossan/tzl language.
16122
16123 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
16124
16125         [BZ #16983]
16126         * locale/programs/ld-address.c (address_finish): Update postal_fmt
16127         comment.  Add "ln" to strchr check on postal_fmt.
16128
16129 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
16130
16131         * locale/programs/ld-telephone.c (telephone_finish): Add %t to the
16132         default tel_int_fmt.  Add "Cet" to strchr check on tel_int_fmt and
16133         tel_dom_fmt.
16134
16135 2016-04-15  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
16136
16137         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
16138         (sysdep_routines): Added __strlen_power8.
16139         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Added
16140         __strlen_power8 entry.
16141         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: New file.
16142         Implementation for POWER8.
16143         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Added IFUNC selector
16144         for __strlen_power8.
16145         * sysdeps/powerpc/powerpc64/power8/strlen.S: New file.
16146         Implementation for POWER8.
16147
16148 2016-04-15  Mike Frysinger  <vapier@gentoo.org>
16149
16150         * locale/iso-4217.def: Add SSP and change ZMK to ZMW.
16151
16152 2016-04-15   H.J. Lu  <hongjiu.lu@intel.com>
16153
16154         * sysdeps/x86/cpu-features.c (init_cpu_features): Detect Intel
16155         Goldmont and Airmont processors.
16156
16157 2016-04-15  Wilco Dijkstra  <wdijkstr@arm.com>
16158
16159         * string/string.h: Use __GNUC_PREREQ(3,4) for bits/string2.h.
16160         * string/bits/string2.h (__STRING2_SMALL_GET16): Remove.
16161         (__STRING2_SMALL_GET32): Remove.
16162         (memset): Remove.
16163         (__memset_1): Remove.
16164         (__memset_gc): Remove.
16165         (__mempcpy): Remove.
16166         (mempcpy): Remove.
16167         (__mempcpy_args): Remove.
16168         (strchr): Remove.
16169         (strcpy): Remove.
16170         (strcpy_args): Remove.
16171         (__stpcpy_args): Remove.
16172         (__strcmp_cc): Remove.
16173         (__strcmp_gc): Remove.
16174         (strstr): Remove.
16175
16176 2016-04-15  Yvan Roux  <yvan.roux@linaro.org>
16177
16178         * stdlib/setenv.c (unsetenv): Fix ambiguous 'else'.
16179         * nis/nis_call.c (nis_server_cache_add): Likewise.
16180
16181 2016-04-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16182
16183         * sysdeps/unix/sysv/linux/sysdep.h: Include kernel-features.h.
16184
16185 2016-04-14  Florian Weimer  <fweimer@redhat.com>
16186
16187         * malloc/arena.c (__malloc_fork_lock_parent)
16188         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Add
16189         internal_function attribute.
16190
16191 2016-04-14  Stefan Liebler  <stli@linux.vnet.ibm.com>
16192
16193         * stdio-common/printf_fp.c (__printf_fp_l):
16194         Rename ___printf_fp_l to __printf_fp_l and
16195         remove strong alias. Use libc_hidden_def instead
16196         of ldbl_hidden_def macro.
16197
16198 2016-04-14  Florian Weimer  <fweimer@redhat.com>
16199
16200         Remove malloc hooks from fork handler.  They are no longer needed
16201         because malloc runs right before fork, and no malloc calls from
16202         other fork handlers are not possible anymore.
16203         * malloc/malloc.c (malloc_atfork, free_atfork): Remove
16204         declarations.
16205         * malloc/arena.c (save_malloc_hook, save_free_hook, save_arena)
16206         (ATFORK_ARENA_PTR, malloc_atfork, free_atfork)
16207         (atfork_recursive_cntr): Remove.
16208         (__malloc_fork_lock_parent): Do not override malloc hooks and
16209         thread_arena.
16210         (__malloc_fork_unlock_parent): Do not restore malloc hooks and
16211         thread_arena.
16212         (__malloc_fork_unlock_child): Do not restore malloc hooks.  Use
16213         thread_arena instead of save_arena.
16214
16215 2016-04-14  Florian Weimer  <fweimer@redhat.com>
16216
16217         * sysdeps/nptl/malloc-machine.h (ATFORK_MEM, __dso_handle)
16218         (thread_atfork, thread_atfork_static): Remove.
16219         * sysdeps/mach/hurd/malloc-machine.h:
16220         (thread_atfork, thread_atfork_static): Remove.
16221
16222 2016-04-14  Florian Weimer  <fweimer@redhat.com>
16223
16224         [BZ #19431]
16225         Run the malloc fork handler as late as possible to avoid deadlocks.
16226         * malloc/malloc-internal.h: New file.
16227         * malloc/malloc.c: Include it.
16228         * malloc/arena.c (ATFORK_MEM): Remove.
16229         (__malloc_fork_lock_parent): Rename from ptmalloc_lock_all.
16230         Update comment.
16231         (__malloc_fork_unlock_parent): Rename from ptmalloc_unlock_all.
16232         (__malloc_fork_unlock_child): Rename from ptmalloc_unlock_all2.
16233         Remove outdated comment.
16234         (ptmalloc_init): Do not call thread_atfork.  Remove
16235         thread_atfork_static.
16236         * malloc/tst-malloc-fork-deadlock.c: New file.
16237         * Makefile (tests): Add tst-malloc-fork-deadlock.
16238         (tst-malloc-fork-deadlock): Link against libpthread.
16239         * manual/memory.texi (Aligned Memory Blocks): Update safety
16240         annotation comments.
16241         * sysdeps/nptl/fork.c (__libc_fork): Call
16242         __malloc_fork_lock_parent, __malloc_fork_unlock_parent,
16243         __malloc_fork_unlock_child.
16244         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
16245
16246 2016-04-14  Florian Weimer  <fweimer@redhat.com>
16247
16248         [BZ #19613]
16249         Remove union wait.
16250         * bits/waitstatus.h (union wait, w_termsig, w_coredump, w_retcode)
16251         (w_stopsig, w_stopval): Remove.
16252         * include/sys/wait.h (__wait, __wait3, __wait4): Use int * for the
16253         stat_loc argument.
16254         * posix/sys/wait.h (__WAIT_INT, __WAIT_STATUS)
16255         (__WAIT_STATUS_DEFN): Remove.
16256         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
16257         (WIFSTOPPED, WIFCONTINUED, WCOREDUMP): Remove __WAIT_INT.
16258         (wait, wait3, wait4): Use int * for the stat_loc argument.
16259         * posix/wait.c (__wait): Likewise.
16260         * posix/wait3.c (__wait3): Likewise.
16261         * posix/wait4.c (__wait4): Likewise.
16262         * stdlib/stdlib.h (__WAIT_INT, __WAIT_STATUS)
16263         (__WAIT_STATUS_DEFN): Remove.
16264         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
16265         (WIFSTOPPED, WIFCONTINUED): Remove __WAIT_INT.
16266         * sysdeps/mach/hurd/wait4.c (__wait4): Use int * for the stat_loc
16267         argument.
16268         * sysdeps/posix/wait.c (__libc_wait): Likewise.
16269         * sysdeps/posix/wait3.c (__wait3): Likewise.
16270         * sysdeps/unix/bsd/wait.c (__libc_wait): Likewise.
16271         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
16272         * sysdeps/unix/bsd/waitpid.c (__waitpid): Remove cast.
16273         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Use int * for the
16274         stat_loc argument.
16275         * manual/process.texi (BSD Wait Functions): Remove union wait.
16276
16277 2016-04-13  Andreas Schwab  <schwab@suse.de>
16278
16279         * elf/Makefile (extra-test-objs): Add tst-tlsalign-vars.o.
16280         (test-extras): Add tst-tlsalign-vars.
16281         * math/Makefile: Wrap long lines.
16282         (libm-vec-test-wrappers): Define.
16283         (test-extras): Add $(libm-vec-test-wrappers).
16284         (extra-test-objs): Add $(libm-vec-test-wrappers) objects.
16285         * nss/Makefile (extra-test-objs): Add nss_test1.os.
16286         * stdlib/Makefile (extra-test-objs): Add $(modules-names) objects.
16287         * sysdeps/x86_64/Makefile (test-extras): Add tst-quadmod1pie
16288         tst-quadmod2pie tst-audit4-aux tst-audit10-aux.
16289         (extra-test-objs): Add corresponding objects.
16290
16291 2016-04-12   H.J. Lu  <hongjiu.lu@intel.com>
16292
16293         [BZ #19928]
16294         * sysdeps/x86_64/cacheinfo.c (__x86_shared_non_temporal_threshold):
16295         New.
16296         (init_cacheinfo): Set __x86_shared_non_temporal_threshold to 6
16297         times of shared cache size.
16298         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S
16299         (VMOVNT): New.
16300         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S
16301         (VMOVNT): Likewise.
16302         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
16303         (VMOVNT): Likewise.
16304         (VMOVU): Changed to movups for smaller code sizes.
16305         (VMOVA): Changed to movaps for smaller code sizes.
16306         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Update
16307         comments.
16308         (PREFETCH): New.
16309         (PREFETCH_SIZE): Likewise.
16310         (PREFETCHED_LOAD_SIZE): Likewise.
16311         (PREFETCH_ONE_SET): Likewise.
16312         Rewrite to use forward and backward loops, which move 4 vector
16313         registers at a time, to support overlapping addresses and use
16314         non temporal store if size is above the threshold and there is
16315         no overlap between destination and source.
16316
16317 2016-04-12  Alex Smith  <alex.smith@imgtec.com>
16318
16319         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines):
16320         Include dl-vdso.
16321         * sysdeps/unix/sysv/linux/mips/Versions: Add
16322         __vdso_clock_gettime.
16323         * sysdeps/unix/sysv/linux/mips/init-first.c: New file.
16324         * sysdeps/unix/sysv/linux/mips/libc-vdso.h: New file.
16325         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h:
16326         (INTERNAL_VSYSCALL_CALL): Define to be compatible with MIPS
16327         definitions of INTERNAL_SYSCALL_{ERROR_P,ERRNO}.
16328         (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
16329         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
16330         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
16331         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
16332
16333 2016-04-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16334
16335         * sysdeps/unix/sysv/linux/arm/pwrite.c: Remove file.
16336         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
16337         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
16338         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
16339         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
16340         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
16341         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
16342         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
16343         * sysdeps/unix/sysv/linux/wordsize-64/pwrite64.c: Likewise.
16344         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (prite): Remove
16345         syscalls generation.
16346         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
16347         [__NR_pwrite64] (__NR_write): Remove define.
16348         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
16349         [__NR_pwrite64] (__NR_write): Remove define.
16350         * sysdeps/unix/sysv/linux/pwrite.c [__NR_pwrite64] (__NR_pwrite):
16351         Remove define.
16352         (__libc_pwrite): Use SYSCALL_LL macro on offset argument.
16353         * sysdeps/unix/sysv/linux/pwrite64.c [__NR_pwrite64] (__NR_pwrite):
16354         Remove define.
16355         (__libc_pwrite64): Use SYSCALL_LL64 macro on offset argument.
16356         * sysdeps/unix/sysv/linux/sh/pwrite.c: Rewrite using default
16357         Linux implementation as base.
16358         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
16359
16360         * sysdeps/unix/sysv/linux/arm/pread.c: Remove file.
16361         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
16362         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
16363         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
16364         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise,
16365         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
16366         * sysdeps/unix/sysv/linux/wordsize-64/pread64.c: Likewise.
16367         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (pread): Remove
16368         syscall generation.
16369         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
16370         [__NR_pread64] (__NR_pread): Remove define.
16371         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
16372         [__NR_pread64] (__NR_pread): Likewise.
16373         * sysdeps/unix/sysv/linux/pread.c [__NR_pread64] (__NR_pread): Remove
16374         define.
16375         (__libc_pread): Use SYSCALL_LL macro on offset argument.
16376         * sysdeps/unix/sysv/linux/pread64.c [__NR_pread64] (__NR_pread):
16377         Remove define.
16378         (__libc_pread64): Use SYSCALL_LL64 macro on offset argument.
16379         * sysdeps/unix/sysv/linux/sh/pread.c: Rewrite using default
16380         Linux implementation as base.
16381         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
16382         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
16383         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
16384
16385         * sysdeps/unix/sysv/linux/generic/sysdep.h (__ALIGNMENT_ARG): Move
16386         definition.
16387         (__ALIGNMENT_COUNT): Likewise.
16388         * sysdeps/unix/sysv/linux/sysdep.h (__ALIGNMENT_ARG): To here.
16389         (__ALIGNMENT_COUNT): Likewise.
16390         (SYSCALL_LL): New define.
16391         (SYSCALL_LL64): Likewise.
16392         * sysdeps/unix/sysv/linux/mips/kernel-features.h:
16393         [_MIPS_SIM == _ABIO32] (__ASSUME_WORDSIZE64_ILP32): Define.
16394         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h:
16395         [ILP32] (__ASUME_WORDSIZE64_ILP32): Likewise.
16396
16397         * sysdeps/unix/sysv/linux/arm/kernel-features.h
16398         (__ASSUME_ALIGNED_REGISTER_PAIRS): Define.
16399         * sysdeps/unix/sysv/linux/mips/kernel-features.h
16400         [_MIPS_SIM == _ABIO32] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
16401         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
16402         [!__powerpc64__] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
16403
16404 2016-04-11  Florian Weimer  <fweimer@redhat.com>
16405
16406         [BZ #19865]
16407         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Restore
16408         original buffer before retry.
16409
16410 2016-04-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16411
16412         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro)
16413         [!HAVE_AUX_VECTOR]: Do not define _dl_auxv field.
16414         * misc/getauxval.c (__getauxval) [!HAVE_AUX_VECTOR]: Do not go through
16415         GLRO(dl_auxv) list.
16416         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_VECTOR): Define before
16417         including <ldsodefs.h>.
16418         * sysdeps/nacl/ldsodefs.h (HAVE_AUX_VECTOR): Likewise.
16419
16420 2016-04-09  Nick Alcock  <nick.alcock@oracle.com>
16421
16422         * elf/rtld-Rules (rtld-compile-command.c): Add $(rtld-CFLAGS).
16423         * scripts/sysd-rules.awk: Substitute in $(CFLAGS) as well as
16424         $(CPPFLAGS).
16425
16426 2016-04-09  Khem Raj  <raj.khem@gmail.com>
16427
16428         [BZ #17950]
16429         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os):
16430         Add -mfpmath=387.
16431
16432 2016-04-09  Mike Frysinger  <vapier@gentoo.org>
16433
16434         * sysdeps/i386/configure.ac: Change == to = when calling test.
16435         * sysdeps/x86_64/configure.ac: Likewise.
16436         * sysdeps/i386/configure: Regenerated.
16437         * sysdeps/x86_64/configure: Likewise.
16438
16439 2016-04-08  Mike Frysinger  <vapier@gentoo.org>
16440
16441         [BZ #16137]
16442         * benchtests/Makefile (LOCALES): Change iw_IL to he_IL.
16443         * benchtests/bench-strcoll.c (input_files): Likewise.
16444         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
16445         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Rename to ...
16446         * benchtests/strcoll-inputs/lorem_ipsum#he_IL.UTF-8: ... here.
16447
16448 2016-04-08  Joseph Myers  <joseph@codesourcery.com>
16449
16450         [BZ #19929]
16451         * include/bits/xopen_lim.h (NL_NMAX): Do not define if
16452         [__USE_XOPEN2K8 && !__USE_GNU].
16453         * conform/Makefile (test-xfail-XOPEN2K8/limits.h/conform): Remove
16454         variable.
16455
16456         [BZ #19925]
16457         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (XCASE): Do not
16458         define if [!__USE_MISC && __USE_XOPEN2K].
16459         * sysdeps/unix/sysv/linux/bits/termios.h (XCASE): Likewise.
16460         * sysdeps/unix/sysv/linux/mips/bits/termios.h (XCASE): Likewise.
16461         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (XCASE):
16462         Likewise.
16463         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (XCASE): Likewise.
16464         * conform/Makefile (test-xfail-XOPEN2K/termios.h/conform): Remove
16465         variable.
16466         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
16467
16468 2016-04-07  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
16469
16470         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
16471         (sysdep_routines): Add new strspn targets.
16472         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
16473         (__libc_ifunc_impl_list): Add strspn.
16474         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
16475         New file.
16476         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c:
16477         Likewise.
16478         * sysdeps/powerpc/powerpc64/multiarch/strspn.c:
16479         Likewise.
16480         * sysdeps/powerpc/powerpc64/power8/strspn.S:
16481         Likewise.
16482
16483 2016-04-07  Florian Weimer  <fweimer@redhat.com>
16484
16485         * misc/hsearch_r.c: Include <limits.h>.
16486
16487 2016-04-07  Florian Weimer  <fweimer@redhat.com>
16488
16489         * malloc/scratch_buffer_set_array_size.c: Include <limits.h>.
16490
16491 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
16492
16493         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
16494         (MEMCPY_SYMBOL): New.
16495         (MEMPCPY_SYMBOL): Likewise.
16496         (MEMMOVE_CHK_SYMBOL): Likewise.
16497         Replace MEMMOVE_SYMBOL with MEMMOVE_CHK_SYMBOL on __mempcpy_chk
16498         symbols.  Replace MEMMOVE_SYMBOL with MEMPCPY_SYMBOL on
16499         __mempcpy symbols.  Provide alias for __memcpy_chk in libc.a.
16500         Provide alias for memcpy in libc.a and ld.so.
16501
16502 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
16503
16504         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
16505         (MEMSET_CHK_SYMBOL): New.  Define if not defined.
16506         (__bzero): Check VEC_SIZE == 16 instead of USE_MULTIARCH.
16507         Disabled fro now.
16508         Replace MEMSET_SYMBOL with MEMSET_CHK_SYMBOL on __memset_chk
16509         symbols.  Properly check USE_MULTIARCH on __memset symbols.
16510
16511 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
16512
16513         * benchtests/Makefile (string-benchset): Add memcpy-large,
16514         memmove-large and memset-large.
16515         * benchtests/bench-memcpy-large.c: New file.
16516         * benchtests/bench-memmove-large.c: Likewise.
16517         * benchtests/bench-memmove-large.c: Likewise.
16518         * benchtests/bench-string.h (TIMEOUT): Don't redefine.
16519
16520 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
16521
16522         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Force
16523         32-bit displacement to avoid long nop between instructions.
16524
16525 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
16526
16527         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Add
16528         a comment on VMOVU and VMOVA.
16529
16530 2016-04-04  Florian Weimer  <fweimer@redhat.com>
16531
16532         [BZ #19633]
16533         Use specified locale for number formatting in strfmon_l.
16534         * locale/localeinfo.h (__nl_lookup, _nl_lookup_wstr)
16535         (__nl_lookup_word): New inline functions.
16536         * include/printf.h (__print_fp_l): Declare.
16537         * stdio-common/printf_fp.c (___printf_fp_l): Renamed from
16538         ___printf_fp.  Add locale argument.  Replace _NL_CURRENT with
16539         _nl_lookup and _NL_CURRENT_WORD with _nl_lookup_word.
16540         (___printf_fp): New function.
16541         * stdlib/strfmon_l.c (__printf_fp): Remove declaration.
16542         (__vstrfmon_l): Call __printf_fp_l instead of printf_fp.
16543         * stdlib/tst-strfmon_l.c (do_test): New test.
16544         * stdlib/Makefile (tests): Add kt.
16545         (LOCALES): Build additional locales.
16546         (tst-strfmon_l.out): Require locales.
16547
16548 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
16549
16550         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: Skip
16551         if not in libc.
16552         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
16553         Likewise.
16554         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S:
16555         Likewise.
16556         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
16557         Likewise.
16558
16559 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
16560
16561         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
16562         (__mempcpy_erms, __memmove_erms): Moved before __mempcpy_chk
16563         with unaligned_erms.
16564         (__memmove_erms): Skip if source == destination.
16565         (__memmove_unaligned_erms): Don't check source == destination
16566         first.
16567
16568 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
16569
16570         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
16571         bit_arch_Fast_Copy_Backward for Intel Core proessors.
16572
16573 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16574
16575         * string/strcspn.c (strcspn): Use PTR_ALIGN_DOWN.
16576         * string/strspn.c (strspn): Likewise.
16577
16578 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
16579
16580         * benchtests/bench-memset.c (do_test): Support 64-byte
16581         alignment.
16582         (test_main): Test 64-byte alignment.
16583
16584 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
16585
16586         * benchtests/bench-memmove.c (test_main): Test 64-byte
16587         alignment.
16588
16589 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
16590
16591         * benchtests/bench-memcpy.c (test_main): Test 64-byte alignment.
16592
16593 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16594
16595         * sysdeps/powerpc/powerpc64/strcspn.S: Remove file.
16596         * sysdeps/powerpc/powerpc64/strpbrk.S: Remove file.
16597         * sysdeps/powerpc/powerpc64/strspn.S: Remove file.
16598
16599         * string/strpbrk.c (strpbrk): Rewrite function.
16600         * string/bits/string2.h (strpbrk): Use __builtin_strpbrk.
16601         (__strpbrk_c2): Likewise.
16602         (__strpbrk_c3): Likewise.
16603         * string/string-inlines.c
16604         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c2):
16605         Likewise.
16606         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c3):
16607         Likewise.
16608
16609         * string/strspn.c (strcspn): Rewrite function.
16610         * string/bits/string2.h (strspn): Use __builtin_strcspn.
16611         (__strspn_c1): Remove inline function.
16612         (__strspn_c2): Likewise.
16613         (__strspn_c3): Likewise.
16614         * string/string-inlines.c
16615         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c1): Add
16616         compatibility symbol.
16617         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c2):
16618         Likewise.
16619         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c3):
16620         Likewise.
16621         * string/string-inlines.c: Include generic version.
16622
16623 2016-04-01  Wilco Dijkstra  <wdijkstr@arm.com>
16624             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16625
16626         * string/Version (libc): Add GLIBC_2.24.
16627         * string/strcspn.c (strcspn): Rewrite function.
16628         * string/bits/string2.h (strcspn): Use __builtin_strcspn.
16629         (__strcspn_c1): Remove inline function.
16630         (__strcspn_c2): Likewise.
16631         (__strcspn_c3): Likewise.
16632         * string/string-inline.c
16633         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c1): Add
16634         compatibility symbol.
16635         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c2):
16636         Likewise.
16637         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c3):
16638         Likewise.
16639         * sysdeps/i386/string-inlines.c: Include generic string-inlines.c.
16640
16641 2016-04-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
16642
16643         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
16644         Use ahi instead of aghi to adjust stack pointer.
16645
16646 2016-03-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
16647
16648         [BZ #19853]
16649         * stdio-common/tst-sprintf3.c [TEST_N]: Refactor
16650         TEST to take significant digits as second parameter.
16651         [TEST]: Redefine in terms of TEST_N taking 30
16652         significant digits.
16653         (do_test): Add test case to demonstrate precision
16654         failure in the ldbl-128ibm printf.
16655         * sysdeps/ieee754/ldbl-128ibm/ldbl2pm.c:
16656         (__mpn_extract_long_double): Carry 7 extra intermediate
16657         bits of precision to aide computing difference when
16658         signs differ.
16659
16660 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
16661
16662         [BZ #19881]
16663         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16664         memset-sse2-unaligned-erms, memset-avx2-unaligned-erms and
16665         memset-avx512-unaligned-erms.
16666         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
16667         (__libc_ifunc_impl_list): Test __memset_chk_sse2_unaligned,
16668         __memset_chk_sse2_unaligned_erms, __memset_chk_avx2_unaligned,
16669         __memset_chk_avx2_unaligned_erms, __memset_chk_avx512_unaligned,
16670         __memset_chk_avx512_unaligned_erms, __memset_sse2_unaligned,
16671         __memset_sse2_unaligned_erms, __memset_erms,
16672         __memset_avx2_unaligned, __memset_avx2_unaligned_erms,
16673         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
16674         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S: New
16675         file.
16676         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
16677         Likewise.
16678         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S:
16679         Likewise.
16680         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S:
16681         Likewise.
16682
16683 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
16684
16685         [BZ #19776]
16686         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16687         memmove-sse2-unaligned-erms, memmove-avx-unaligned-erms and
16688         memmove-avx512-unaligned-erms.
16689         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
16690         (__libc_ifunc_impl_list): Test
16691         __memmove_chk_avx512_unaligned_2,
16692         __memmove_chk_avx512_unaligned_erms,
16693         __memmove_chk_avx_unaligned_2, __memmove_chk_avx_unaligned_erms,
16694         __memmove_chk_sse2_unaligned_2,
16695         __memmove_chk_sse2_unaligned_erms, __memmove_avx_unaligned_2,
16696         __memmove_avx_unaligned_erms, __memmove_avx512_unaligned_2,
16697         __memmove_avx512_unaligned_erms, __memmove_erms,
16698         __memmove_sse2_unaligned_2, __memmove_sse2_unaligned_erms,
16699         __memcpy_chk_avx512_unaligned_2,
16700         __memcpy_chk_avx512_unaligned_erms,
16701         __memcpy_chk_avx_unaligned_2, __memcpy_chk_avx_unaligned_erms,
16702         __memcpy_chk_sse2_unaligned_2, __memcpy_chk_sse2_unaligned_erms,
16703         __memcpy_avx_unaligned_2, __memcpy_avx_unaligned_erms,
16704         __memcpy_avx512_unaligned_2, __memcpy_avx512_unaligned_erms,
16705         __memcpy_sse2_unaligned_2, __memcpy_sse2_unaligned_erms,
16706         __memcpy_erms, __mempcpy_chk_avx512_unaligned_2,
16707         __mempcpy_chk_avx512_unaligned_erms,
16708         __mempcpy_chk_avx_unaligned_2, __mempcpy_chk_avx_unaligned_erms,
16709         __mempcpy_chk_sse2_unaligned_2, __mempcpy_chk_sse2_unaligned_erms,
16710         __mempcpy_avx512_unaligned_2, __mempcpy_avx512_unaligned_erms,
16711         __mempcpy_avx_unaligned_2, __mempcpy_avx_unaligned_erms,
16712         __mempcpy_sse2_unaligned_2, __mempcpy_sse2_unaligned_erms and
16713         __mempcpy_erms.
16714         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: New
16715         file.
16716         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
16717         Likewise.
16718         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
16719         Likewise.
16720         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
16721         Likewise.
16722
16723 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
16724
16725         * sysdeps/s390/bits/link.h: (La_s390_vr) New typedef.
16726         (La_s390_32_regs): Append vector register lr_v24-lr_v31.
16727         (La_s390_64_regs): Likewise.
16728         (La_s390_32_retval): Append vector register lrv_v24.
16729         (La_s390_64_retval): Likeweise.
16730         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
16731         Handle extended structs La_s390_32_regs and La_s390_32_retval.
16732         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
16733         Handle extended structs La_s390_64_regs and La_s390_64_retval.
16734
16735 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
16736
16737         [BZ #19916]
16738         * sysdeps/s390/s390-32/dl-trampoline.S: Include dl-trampoline.h twice
16739         to create a non-vector/vector version for _dl_runtime_resolve and
16740         _dl_runtime_profile. Move implementation to ...
16741         * sysdeps/s390/s390-32/dl-trampoline.h: ... here.
16742         (_dl_runtime_resolve) Save and restore fpr/vrs.
16743         (_dl_runtime_profile) Save and restore vrs and fix some issues
16744         if _dl_call_pltexit is called.
16745         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
16746         Choose the correct resolver function if running on a machine with vx.
16747         * sysdeps/s390/s390-64/dl-trampoline.S: Include dl-trampoline.h twice
16748         to create a non-vector/vector version for _dl_runtime_resolve and
16749         _dl_runtime_profile. Move implementation to ...
16750         * sysdeps/s390/s390-64/dl-trampoline.h: ... here.
16751         (_dl_runtime_resolve) Save and restore fpr/vrs.
16752         (_dl_runtime_profile) Save and restore vrs and fix some issues
16753         * sysdeps/s390/s390-64/dl-machine.h: (elf_machine_runtime_setup):
16754         Choose the correct resolver function if running on a machine with vx.
16755
16756 2016-03-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16757
16758         * elf/tst-dlsym-error.c: Include <string.h> for strchrnul.
16759
16760 2016-03-31  Florian Weimer  <fweimer@redhat.com>
16761
16762         [BZ #19509]
16763         * elf/dl-lookup.c (_dl_lookup_symbol_x): Report error even if
16764         skip_map != NULL.
16765         * elf/tst-dlsym-error.c: New file.
16766         * elf/Makefile (tests): Add tst-dlsym-error.
16767         (tst-dlsym-error): Link against libdl.
16768
16769 2016-03-29  Joseph Myers  <joseph@codesourcery.com>
16770
16771         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
16772         (__ASSUME_FUTIMESAT): Remove macro.
16773         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: Remove file.
16774
16775 2016-03-29  Florian Weimer  <fweimer@redhat.com>
16776
16777         [BZ #19879]
16778         CVE-2016-3075
16779         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Do not
16780         copy name.
16781
16782 2016-03-29  Florian Weimer  <fweimer@redhat.com>
16783
16784         [BZ #19837]
16785         * nss/nss_db/db-XXX.c (_nss_db_getENTNAME_r): Propagate ERANGE
16786         error if parse_line fails.
16787
16788 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
16789
16790         * sysdeps/x86/cpu-features.h (bit_cpu_ERMS): New.
16791         (index_cpu_ERMS): Likewise.
16792         (reg_ERMS): Likewise.
16793
16794 2016-03-28  Aurelien Jarno  <aurelien@aurel32.net>
16795
16796         * sysdeps/unix/sysv/linux/sys/personality.h (UNAME26, FDPIC_FUNCPTRS,
16797         PER_LINUX_FDPIC): Add.
16798
16799 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
16800
16801         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
16802         memcpy-avx512-no-vzeroupper.
16803         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: Renamed
16804         to ...
16805         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: This.
16806         (MEMCPY): Don't define.
16807         (MEMCPY_CHK): Likewise.
16808         (MEMPCPY): Likewise.
16809         (MEMPCPY_CHK): Likewise.
16810         (MEMPCPY_CHK): Renamed to ...
16811         (__mempcpy_chk_avx512_no_vzeroupper): This.
16812         (MEMPCPY_CHK): Renamed to ...
16813         (__mempcpy_chk_avx512_no_vzeroupper): This.
16814         (MEMCPY_CHK): Renamed to ...
16815         (__memmove_chk_avx512_no_vzeroupper): This.
16816         (MEMCPY): Renamed to ...
16817         (__memmove_avx512_no_vzeroupper): This.
16818         (__memcpy_avx512_no_vzeroupper): New alias.
16819         (__memcpy_chk_avx512_no_vzeroupper): Likewise.
16820
16821 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
16822
16823         [BZ #18858]
16824         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
16825         mempcpy-ssse3, mempcpy-ssse3-back, mempcpy-avx-unaligned
16826         and mempcpy-avx512-no-vzeroupper.
16827         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMPCPY_CHK):
16828         New.
16829         (MEMPCPY): Likewise.
16830         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S
16831         (MEMPCPY_CHK): New.
16832         (MEMPCPY): Likewise.
16833         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S (MEMPCPY_CHK): New.
16834         (MEMPCPY): Likewise.
16835         * sysdeps/x86_64/multiarch/memcpy-ssse3.S (MEMPCPY_CHK): New.
16836         (MEMPCPY): Likewise.
16837         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: Removed.
16838         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S:
16839         Likewise.
16840         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: Likewise.
16841         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: Likewise.
16842
16843 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
16844              Amit Pawar  <Amit.Pawar@amd.com>
16845
16846         [BZ #19583]
16847         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
16848         Fast_Unaligned_Copy with Fast_Unaligned_Load for Intel
16849         processors.  Set Fast_Copy_Backward for AMD Excavator
16850         processors.
16851         * sysdeps/x86/cpu-features.h (bit_arch_Fast_Unaligned_Copy):
16852         New.
16853         (index_arch_Fast_Unaligned_Copy): Likewise.
16854         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check
16855         Fast_Unaligned_Copy instead of Fast_Unaligned_Load.
16856
16857 2016-03-25  Florian Weimer  <fweimer@redhat.com>
16858
16859         [BZ #19791]
16860         * resolv/res_send.c (close_and_return_error): New function.
16861         (send_dg): Initialize *resplen2 after reopen failure.  Call
16862         close_and_return_error for error returns.  On error paths without
16863         __res_iclose, initialze *resplen2 explicitly.  Update comment for
16864         successful return.
16865
16866 2016-03-25  Florian Weimer  <fweimer@redhat.com>
16867
16868         [BZ #19860]
16869         * sysdeps/x86_64/tst-audit10.c (avx512_enabled): Always return
16870         zero if the compiler does not provide the AVX512F bit.
16871
16872 2016-03-24  Joseph Myers  <joseph@codesourcery.com>
16873
16874         [BZ #19848]
16875         * sysdeps/i386/fpu/e_powl.S (p3): Rename to p2 and change value
16876         from 8 to 4.
16877         (__ieee754_powl): Compare integer exponent against 4 not 8.
16878         * sysdeps/x86_64/fpu/e_powl.S (p3): Rename to p2 and change value
16879         from 8 to 4.
16880         (__ieee754_powl): Compare integer exponent against 4 not 8.
16881         * math/auto-libm-test-in: Add more tests of pow.
16882         * math/auto-libm-test-out: Regenerated.
16883         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
16884         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16885
16886 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
16887
16888         * sysdeps/unix/sysv/linux/futimens.c (futimens) [__NR_utimensat]:
16889         Make code unconditional.
16890         [!__NR_utimensat]: Remove conditional code.
16891         * sysdeps/unix/sysv/linux/lutimes.c (lutimes) [__NR_utimensat]:
16892         Make code unconditional.
16893         [!__NR_utimensat]: Remove conditional code.
16894         * sysdeps/unix/sysv/linux/utimensat.c (utimensat) [__NR_utimensat]:
16895         Make code unconditional.
16896         [!__NR_utimensat]: Remove conditional code.
16897
16898 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
16899
16900         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64) [__NR_openat]:
16901         Make code unconditional.
16902
16903 2016-03-23  Nick Alcock  <nick.alcock@oracle.com>
16904
16905         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Reload
16906         call-clobbered %eax on retry path.
16907         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
16908
16909 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
16910
16911         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMCPY):
16912         Don't set %rcx twice before "rep movsb".
16913
16914 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
16915
16916         [BZ #19583]
16917         * sysdeps/x86/cpu-features.c (get_common_indeces): Remove
16918         inline.  Check family before setting family, model and
16919         extended_model.  Set AVX, AVX2, AVX512, FMA and FMA4 usable
16920         bits here.
16921         (init_cpu_features): Replace HAS_CPU_FEATURE and
16922         HAS_ARCH_FEATURE with CPU_FEATURES_CPU_P and
16923         CPU_FEATURES_ARCH_P.  Set index_arch_AVX_Fast_Unaligned_Load
16924         for Intel processors with usable AVX2.  Call get_common_indeces
16925         for other processors with family == NULL.
16926         * sysdeps/x86/cpu-features.h (CPU_FEATURES_CPU_P): New macro.
16927         (CPU_FEATURES_ARCH_P): Likewise.
16928         (HAS_CPU_FEATURE): Use CPU_FEATURES_CPU_P.
16929         (HAS_ARCH_FEATURE): Use CPU_FEATURES_ARCH_P.
16930
16931 2016-03-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16932
16933         * malloc/Makefile ($(objpfx)tst-malloc-backtrace,
16934         $(objpfx)tst-malloc-thread-exit, $(objpfx)tst-malloc-thread-fail): Use
16935         $(shared-thread-library) instead of hardcoding the path to libpthread.
16936
16937 2016-03-22  Joseph Myers  <joseph@codesourcery.com>
16938
16939         * sysdeps/unix/sysv/linux/kernel-features.h
16940         (__ASSUME_GETDENTS64_SYSCALL): Remove macro.
16941         * sysdeps/unix/sysv/linux/getdents.c
16942         [!__ASSUME_GETDENTS64_SYSCALL]: Remove conditional code.
16943         [!have_no_getdents64_defined]: Likewise.
16944         (__GETDENTS): Remove __have_no_getdents64 conditional.
16945
16946 2016-03-21  Joseph Myers  <joseph@codesourcery.com>
16947
16948         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SIGNALFD4):
16949         Remove macro.
16950         * sysdeps/unix/sysv/linux/signalfd.c: Do not include
16951         <kernel-features.h>.
16952         (signalfd) [__NR_signalfd4]: Make code unconditional.
16953         (signalfd) [!__ASSUME_SIGNALFD4]: Remove conditional code.
16954
16955 2016-03-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16956
16957         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix implict checks
16958         style.
16959
16960 2016-03-21  H.J. Lu  <hongjiu.lu@intel.com>
16961
16962         * sysdeps/unix/sysv/linux/x86_64/cancellation.S
16963         (__pthread_enable_asynccancel): Use JUMPTARGET to call
16964         __pthread_unwind.
16965         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
16966         (__condvar_cleanup2): Use JUMPTARGET to call _Unwind_Resume.
16967         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
16968         (__condvar_cleanup1): Likewise.
16969
16970 2016-03-21  Dylan Alex Simon  <dylan-sourceware@dylex.net>
16971
16972         [BZ #19822]
16973         * math/Makefile ($(inst_libdir)/libm.so): Write output to $@.tmp and
16974         move it to the final $@ location.
16975
16976 2016-03-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16977
16978         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix invalid memory
16979         access where posix_spawn success and pid argument is null.
16980         * posix/tst-spawn.c (do_test): Add posix_spawn null pid argument for
16981         success case.
16982
16983 2016-03-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>:
16984
16985         * sysdeps/mach/hurd/i386/c++-types.data: New file.
16986
16987         * sysdeps/mach/hurd/libc-lock.h (_IO_lock_inexpensive): Define to 1.
16988
16989         * sysdeps/generic/dl-fcntl.h: New file, adds attribute_hidden to __open
16990         and __fcntl.
16991         * sysdeps/mach/hurd/dl-fcntl.h: New file, adds attribute_hidden to
16992         __fcntl only.
16993         * include/fcntl.h [IS_IN (rtld)]: Include <dl-fcntl.h> instead of
16994         adding attribute_hidden to __open and __fcntl.
16995
16996         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Strip
16997         "-include $(common-objpfx)libc-modules.h" from CPPFLAGS, and do not
16998         depend on libc-modules.h,
16999         * mach/Makefile ($(objpfx)mach-syscalls.mk): Depend on libc-modules.h.
17000
17001 2016-03-17  Joseph Myers  <joseph@codesourcery.com>
17002
17003         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EVENTFD2):
17004         Remove macro.
17005         * sysdeps/unix/sysv/linux/eventfd.c: Remove file.
17006         * sysdeps/unix/sysv/linux/syscalls.list (eventfd): New syscall
17007         entry.
17008
17009         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FALLOCATE):
17010         Remove macro.
17011         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: Do not
17012         include <kernel-features.h>.
17013         [!__ASSUME_FALLOCATE]: Remove conditional code.
17014         (posix_fallocate) [__NR_fallocate]: Make code unconditional.
17015
17016 2016-03-16  H.J. Lu  <hongjiu.lu@intel.com>
17017
17018         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S
17019         (_ZGVbN2v_cos_sse4): Use JUMPTARGET to call cos.
17020         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S
17021         (_ZGVdN4v_cos_avx2): Likewise.
17022         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S
17023         (_ZGVdN4v_cos): Likewise.
17024         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S
17025         (_ZGVbN2v_exp_sse4): Use JUMPTARGET to call exp.
17026         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S
17027         (_ZGVdN4v_exp_avx2): Likewise.
17028         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S
17029         (_ZGVdN4v_exp): Likewise.
17030         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S
17031         (_ZGVbN2v_log_sse4): Use JUMPTARGET to call log.
17032         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S
17033         (_ZGVdN4v_log_avx2): Likewise.
17034         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S
17035         (_ZGVdN4v_log): Likewise.
17036         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S
17037         (_ZGVbN2vv_pow_sse4): Use JUMPTARGET to call pow.
17038         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S
17039         (_ZGVdN4vv_pow_avx2): Likewise.
17040         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S
17041         (_ZGVdN4vv_pow): Likewise.
17042         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S
17043         (_ZGVbN2v_sin_sse4): Use JUMPTARGET to call sin.
17044         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S
17045         (_ZGVdN4v_sin_avx2): Likewise.
17046         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S
17047         (_ZGVdN4v_sin): Likewise.
17048         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S
17049         (_ZGVbN2vvv_sincos_sse4): Use JUMPTARGET to call sin and cos.
17050         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S
17051         (_ZGVdN4vvv_sincos_avx2): Likewise.
17052         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S
17053         (_ZGVdN4vvv_sincos): Likewise.
17054         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S
17055         (_ZGVdN8v_cosf): Use JUMPTARGET to call cosf.
17056         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S
17057         (_ZGVbN4v_cosf_sse4): Likewise.
17058         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S
17059         (_ZGVdN8v_cosf_avx2): Likewise.
17060         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S
17061         (_ZGVdN8v_expf): Use JUMPTARGET to call expf.
17062         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S
17063         (_ZGVbN4v_expf_sse4): Likewise.
17064         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S
17065         (_ZGVdN8v_expf_avx2): Likewise.
17066         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S
17067         (_ZGVdN8v_logf): Use JUMPTARGET to call logf.
17068         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S
17069         (_ZGVbN4v_logf_sse4): Likewise.
17070         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S
17071         (_ZGVdN8v_logf_avx2): Likewise.
17072         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S
17073         (_ZGVdN8vv_powf): Use JUMPTARGET to call powf.
17074         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S
17075         (_ZGVbN4vv_powf_sse4): Likewise.
17076         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S
17077         (_ZGVdN8vv_powf_avx2): Likewise.
17078         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
17079         (_ZGVdN8vv_powf): Use JUMPTARGET to call sinf and cosf.
17080         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
17081         (_ZGVbN4vvv_sincosf_sse4): Likewise.
17082         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
17083         (_ZGVdN8vvv_sincosf_avx2): Likewise.
17084         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S
17085         (_ZGVdN8v_sinf): Use JUMPTARGET to call sinf.
17086         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S
17087         (_ZGVbN4v_sinf_sse4): Likewise.
17088         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S
17089         (_ZGVdN8v_sinf_avx2): Likewise.
17090         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h (WRAPPER_IMPL_SSE2):
17091         Use JUMPTARGET to call callee.
17092         (WRAPPER_IMPL_SSE2_ff): Likewise.
17093         (WRAPPER_IMPL_SSE2_fFF): Likewise.
17094         (WRAPPER_IMPL_AVX): Likewise.
17095         (WRAPPER_IMPL_AVX_ff): Likewise.
17096         (WRAPPER_IMPL_AVX_fFF): Likewise.
17097         (WRAPPER_IMPL_AVX512): Likewise.
17098         (WRAPPER_IMPL_AVX512_ff): Likewise.
17099         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h (WRAPPER_IMPL_SSE2):
17100         Likewise.
17101         (WRAPPER_IMPL_SSE2_ff): Likewise.
17102         (WRAPPER_IMPL_SSE2_fFF): Likewise.
17103         (WRAPPER_IMPL_AVX): Likewise.
17104         (WRAPPER_IMPL_AVX_ff): Likewise.
17105         (WRAPPER_IMPL_AVX_fFF): Likewise.
17106         (WRAPPER_IMPL_AVX512): Likewise.
17107         (WRAPPER_IMPL_AVX512_ff): Likewise.
17108         (WRAPPER_IMPL_AVX512_fFF): Likewise.
17109
17110 2016-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17111
17112         * sysdeps/mach/hurd/openat.c (__openat): Add missing ellipsis.
17113         * resolv/gai_sigqueue.c (__gai_sigqueue): Add missing internal_function
17114         qualifier.
17115         * /rt/aio_sigqueue.c (__aio_sigqueue): Add missing attribute_hidden
17116         internal_function qualifiers.
17117
17118 2016-03-15  Carlos O'Donell <carlos@redhat.com>
17119
17120         * catgets/tst-catgets.c (do_bz17905): Mark result unused.
17121         * dlfcn/bug-dl-leaf-lib.c (check_val_fini): Mark ret unused.
17122         * math/atest-exp.c (exp_mpn): Mark chk unused.
17123         * math/atest-exp2.c (exp_mpn): Likewise.
17124         * sysdeps/arm/dl-machine.h (elf_machine_rela): Mark td unused.
17125         * sysdeps/i386/i686/dl-hash.h: Mark _dl_elf_hash unused.
17126
17127 2016-03-15  Joseph Myers  <joseph@codesourcery.com>
17128
17129         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PPOLL):
17130         Remove macro.
17131         * sysdeps/unix/sysv/linux/ppoll.c: Do not include
17132         <kernel-features.h>.
17133         [__NR_ppoll]: Make code unconditional.
17134         [!__ASSUME_PPOLL]: Remove conditional code.
17135
17136         * sysdeps/unix/sysv/linux/kernel-features.h
17137         (__ASSUME_ACCEPT4_SYSCALL): Define unconditionally.
17138         (__ASSUME_ACCEPT4): Likewise.
17139         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
17140         Define.
17141         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG):
17142         Likewise.
17143         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
17144         Likewise.
17145         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG):
17146         Likewise.
17147         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: Remove file.
17148         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: Likewise.
17149         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
17150         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
17151         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
17152         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
17153         * sysdeps/unix/sysv/linux/arm/kernel-features.h
17154         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
17155         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
17156         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
17157         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
17158         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
17159         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
17160         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
17161         * sysdeps/unix/sysv/linux/i386/kernel-features.h
17162         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
17163         Likewise.
17164         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
17165         Likewise.
17166         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
17167         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
17168         0x040300].
17169         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
17170         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
17171         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
17172         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
17173         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
17174         0x030300].
17175         [__LINUX_KERNEL_VERSION < 0x030300] (__ASSUME_ACCEPT4): Undefine.
17176         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
17177         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
17178         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
17179         0x040300].
17180         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
17181         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
17182         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
17183         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
17184         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
17185         (__ASSUME_SENDMMSG_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
17186         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
17187         0x030300].
17188         * sysdeps/unix/sysv/linux/mips/kernel-features.h
17189         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
17190         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
17191         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
17192         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
17193         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
17194         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
17195         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
17196         * sysdeps/unix/sysv/linux/s390/kernel-features.h
17197         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
17198         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
17199         0x040300].
17200         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
17201         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
17202         * sysdeps/unix/sysv/linux/sh/kernel-features.h
17203         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
17204         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
17205         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
17206         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
17207         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
17208         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
17209         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
17210         * sysdeps/unix/sysv/linux/tile/kernel-features.h
17211         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
17212         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
17213         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
17214         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h
17215         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
17216         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
17217         Likewise.
17218         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
17219         Likewise.
17220
17221 2016-03-15  Andreas Schwab  <schwab@suse.de>
17222
17223         [BZ #19257]
17224         * resolv/res_init.c (__res_iclose): Use statp->nscount instead of
17225         statp->_u._ext.nscount as loop count.
17226
17227 2016-03-14  Andreas Schwab  <schwab@linux-m68k.org>
17228
17229         * math/test-signgam-finite-c99.c: Also #undef
17230         __LIBC_INTERNAL_MATH_INLINES.
17231         * math/test-signgam-main.c: Likewise.
17232
17233 2016-03-14  Joseph Myers  <joseph@codesourcery.com>
17234
17235         * bits/mman-linux.h [__USE_MISC] (MADV_FREE): New macro.
17236         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
17237         (MADV_FREE): Likewise.
17238         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_HDRINCL): Likewise.
17239         * sysdeps/unix/sysv/linux/sys/epoll.h (enum EPOLL_EVENTS): Add
17240         EPOLLEXCLUSIVE.
17241
17242 2016-03-14  Carlos O'Donell  <carlos@redhat.com>
17243
17244         * timezone/README: Remove mention of checktab.awk. Mention wiki
17245         SharedSourceFiles.
17246
17247 2016-03-13  Samuel Thibault  <samuel.thibault@ens-lyon.org
17248
17249         * sysdeps/posix/waitid.c (OUR_WAITID): Test against WSTOPPED instead of
17250         WUNTRACED.
17251
17252 2016-03-11  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17253
17254         * malloc/malloc.c (malloc_consolidate): Replace 0 by NULL in
17255         order to match the type of p when calling atomic_exchange_acq().
17256
17257 2016-03-11  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
17258
17259         * sysdeps/powerpc/powerpc32/power4/memcmp.S (memcmp): Rearrange
17260         cfi_offset calls.
17261         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
17262         * sysdeps/powerpc/powerpc32/power7/memcmp.S (memcmp): Likewise.
17263         * sysdeps/powerpc/powerpc64/power4/memcmp.S (memcmp): Likewise.
17264         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Likewise.
17265         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Likewise.
17266
17267 2016-03-10  Carlos O'Donell  <carlos@redhat.com>
17268
17269         * timezone/checktab.awk: Removed.
17270
17271 2016-03-10  Joseph Myers  <joseph@codesourcery.com>
17272
17273         * manual/math.texi (Errors in Math Functions): Document relaxed
17274         accuracy goals for IBM long double.
17275         * math/libm-test.inc (test_exceptions): Always allow spurious
17276         "underflow" and "inexact" exceptions for IBM long double.
17277
17278 2016-03-10  H.J. Lu  <hongjiu.lu@intel.com>
17279
17280         [BZ #19762]
17281         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
17282         (EXTRA_LD_ENVVARS): Add _arch_ to index_*/bit_*.
17283         * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
17284         * sysdeps/x86/cpu-features.h (bit_*): Renamed to ...
17285         (bit_arch_*): This for feature array.
17286         (bit_*): Renamed to ...
17287         (bit_cpu_*): This for cpu array.
17288         (index_*): Renamed to ...
17289         (index_arch_*): This for feature array.
17290         (index_*): Renamed to ...
17291         (index_cpu_*): This for cpu array.
17292         [__ASSEMBLER__] (HAS_FEATURE): Add and use field.
17293         [__ASSEMBLER__] (HAS_CPU_FEATURE)): Pass cpu to HAS_FEATURE.
17294         [__ASSEMBLER__] (HAS_ARCH_FEATURE)): Pass arch to HAS_FEATURE.
17295         [!__ASSEMBLER__] (HAS_CPU_FEATURE): Replace index_##name and
17296         bit_##name with index_cpu_##name and bit_cpu_##name.
17297         [!__ASSEMBLER__] (HAS_ARCH_FEATURE): Replace index_##name and
17298         bit_##name with index_arch_##name and bit_arch_##name.
17299
17300 2016-03-09  Aurelien Jarno  <aurelien@aurel32.net>
17301
17302         [BZ #19792]
17303         * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
17304         Terminate FDE before return label.
17305
17306 2016-03-09  Joseph Myers  <joseph@codesourcery.com>
17307
17308         [BZ #19790]
17309         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c [USE_AS_NEARBYINTL]
17310         (rintl): Define as macro.
17311         [USE_AS_NEARBYINTL] (__rintl): Likewise.
17312         (__rintl) [USE_AS_NEARBYINTL]: Use SET_RESTORE_ROUND_NOEX instead
17313         of fesetround.  Ensure results are evaluated before end of scope.
17314         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Define
17315         USE_AS_NEARBYINTL and include s_rintl.c.
17316         * sysdeps/powerpc/fpu/fenv_private.h (libc_feholdsetround_ppc):
17317         Disable exception traps in new environment.
17318         (libc_feholdsetround_ppc_ctx): Likewise.
17319
17320 2016-03-08  Roland McGrath  <roland@hack.frob.com>
17321
17322         * sysdeps/x86_64/tst-audit10.c: #include <cpu-features.h>.
17323         * sysdeps/x86_64/tst-audit10-aux.c: Move audit_test extern decl ...
17324         (tst_audit10_aux) [__AVX512F__]: ... here.
17325
17326 2016-03-08  Aurelien Jarno  <aurelien@aurel32.net>
17327
17328         * include/sys/auxv.h: New file.
17329
17330 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
17331
17332         [BZ #19759]
17333         * sysdeps/x86/bits/string.h (_HAVE_STRING_ARCH_mempcpy): New.
17334
17335 2016-03-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
17336
17337         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Remove use of %s
17338         operand modifier.
17339         (feclearexcept): Likewise.
17340
17341 2016-03-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
17342
17343         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Updated
17344         to reflect the entire 32-bit HWCAP.
17345         * sysdeps/powerpc/dl-procinfo.h: Code cleanup.
17346         (_DL_HWCAP_FIRST): Removed.  Replaced by 0 accordingly.
17347
17348 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
17349
17350         [BZ #19783]
17351         * benchtests/Makefile (run-bench): Replace $(rtld-prefix) with
17352         $(test-via-rtld-prefix).
17353         ($(binaries-bench)): Replace $(+link) with $(+link-tests).
17354
17355 2016-03-08  Florian Weimer  <fweimer@redhat.com>
17356
17357         * sunrpc/key_call.c (key_call_keyenvoy): Use int status instead of
17358         union wait.  Report any non-zero exit status as error.
17359
17360 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17361
17362         * posix/tst-execvpe5.c (do_test): Fix fix test invocation when
17363         configured with --enable-hardcoded-path-in-tests.
17364
17365 2016-03-08  Joseph Myers  <joseph@codesourcery.com>
17366
17367         [BZ #19677]
17368         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
17369         (__ieee754_remainderl): Put zero low parts in canonical form.
17370         * sysdeps/ieee754/ldbl-128ibm/test-fmodrem-ldbl-128ibm.c: New
17371         file.  Based on
17372         sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c.
17373         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: Replace
17374         with wrapper round test-fmodrem-ldbl-128ibm.c.
17375         * sysdeps/ieee754/ldbl-128ibm/test-remainderl-ldbl-128ibm.c: New
17376         file.
17377         * sysdeps/ieee754/ldbl-128ibm/test-remquol-ldbl-128ibm.c:
17378         Likewise.
17379         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Add
17380         test-remainderl-ldbl-128ibm and test-remquol-ldbl-128ibm.
17381
17382 2016-03-07  Florian Weimer  <fweimer@redhat.com>
17383
17384         [BZ #19610]
17385         * elf/ldconfig.c (opt_link): Update comment.
17386         (options): Update help string for option -X.
17387         (search_dir): Unlink stale symbolic link only if updating symbolic
17388         links.
17389         * elf/tst-ldconfig-X.sh: New file.
17390         * elf/Makefile (tests-special): Add tst-ldconfig-X.out.
17391         (tst-ldconfig-X.out): New rule to run tst-ldconfig-X.sh.
17392
17393 2016-03-07  Andreas Schwab  <schwab@suse.de>
17394
17395         * iconv/gconv_builtin.h ("=ascii->INTERNAL"): Correct min/max
17396         needed arguments.
17397
17398 2016-03-07  Hongjiu Zhang  <noctuorare@gmail.com>
17399
17400         [BZ #15333]
17401         * elf/sln.c (makesymlink): Change struct stat to stat64, and lstat
17402         to lstat64.
17403
17404 2016-03-07  Florian Weimer  <fweimer@redhat.com>
17405
17406         * libio/filedoalloc.c (isatty): Remove.
17407         (local_isatty): Add comment.  Call __isatty directly.
17408         (_IO_file_doallocate): Update comment.  Assume _LIBC.
17409         * libio/wfiledoalloc.c (isatty): Remove.
17410         (_IO_wfile_doallocate): Update comment.
17411
17412 2016-03-07  Florian Weimer  <fweimer@redhat.com>
17413
17414         [BZ #19269]
17415         * sysdeps/x86_64/Makefile (tst-audit4): Depend on
17416         tst-audit4-aux.o.
17417         (tst-audit10): Depend on tst-audit10-aux.o.
17418         (CFLAGS-tst-audit4-aux.c): Compile with AVX enabled.
17419         (CFLAGS-tst-audit10-aux.c): Compile with AVX512 enabled.
17420         * sysdeps/x86_64/tst-audit4.c (do_test): Call tst_audit4_aux
17421         instead of inline AVX code.
17422         * sysdeps/x86_64/tst-audit10.c (do_test): Call tst_audit10_aux
17423         instead of inline AVX512 code.
17424         * sysdeps/x86_64/tst-audit4-aux.c: New file
17425         * sysdeps/x86_64/tst-audit10-aux.c: New file
17426
17427         [BZ #19648]
17428         * test-skeleton.c (main): Do not set RLIMIT_DATA.
17429
17430 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17431
17432         [BZ #14750]
17433         [BZ #10354]
17434         [BZ #18433]
17435         * include/sched.h (__clone): Add hidden prototype.
17436         (__clone2): Likewise.
17437         * include/unistd.h (__dup): Likewise.
17438         * posix/Makefile (tests): Add tst-spawn2.
17439         * posix/tst-spawn2.c: New file.
17440         * sysdeps/posix/dup.c (__dup): Add hidden definition.
17441         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Likewise.
17442         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
17443         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
17444         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
17445         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
17446         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise.
17447         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
17448         * sysdeps/unix/sysv/linux/microblaze/clone.S (__clone): Likewise.
17449         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
17450         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
17451         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
17452         Likewise.
17453         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
17454         Likewise.
17455         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
17456         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
17457         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
17458         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
17459         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
17460         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
17461         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
17462         * sysdeps/unix/sysv/linux/nptl-signals.h
17463         (____nptl_is_internal_signal): New function.
17464         * sysdeps/unix/sysv/linux/spawni.c: New file.
17465
17466         * posix/execvpe.c (__execvpe): Remove dynamic allocation.
17467         * posix/Makefile (tests): Add tst-execvpe{1,2,3,4,5,6}.
17468         * posix/tst-execvp1.c (do_test): Use a macro to call execvp.
17469         * posix/tst-execvp2.c (do_test): Likewise.
17470         * posix/tst-execvp3.c (do_test): Likewise.
17471         * posix/tst-execvp4.c (do_test): Likewise.
17472         * posix/tst-execvpe1.c: New file.
17473         * posix/tst-execvpe2.c: Likewise.
17474         * posix/tst-execvpe3.c: Likewise.
17475         * posix/tst-execvpe4.c: Likewise.
17476         * posix/tst-execvpe5.c: Likewise.
17477         * posix/tst-execvpe6.c: Likewise.
17478
17479         [BZ #19534]
17480         * posix/execl.c (execl): Remove dynamic memory allocation.
17481         * posix/execle.c (execle): Likewise.
17482         * posix/execlp.c (execlp): Likewise.
17483
17484 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
17485
17486         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S:
17487         Replace .text with .text.avx512.
17488         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
17489         Likewise.
17490
17491 2016-03-07  Aurelien Jarno  <aurelien@aurel32.net>
17492
17493         * sysdeps/generic/libnsl.abilist: New file.
17494         * sysdeps/generic/libutil.abilist: New file.
17495
17496 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
17497
17498         [BZ #19762]
17499         * sysdeps/i386/i686/multiarch/bcopy.S (bcopy): Use
17500         HAS_ARCH_FEATURE with Fast_Rep_String.
17501         * sysdeps/i386/i686/multiarch/bzero.S (__bzero): Likewise.
17502         * sysdeps/i386/i686/multiarch/memcpy.S (memcpy): Likewise.
17503         * sysdeps/i386/i686/multiarch/memcpy_chk.S (__memcpy_chk):
17504         Likewise.
17505         * sysdeps/i386/i686/multiarch/memmove_chk.S (__memmove_chk):
17506         Likewise.
17507         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy): Likewise.
17508         * sysdeps/i386/i686/multiarch/mempcpy_chk.S (__mempcpy_chk):
17509         Likewise.
17510         * sysdeps/i386/i686/multiarch/memset.S (memset): Likewise.
17511         * sysdeps/i386/i686/multiarch/memset_chk.S (__memset_chk):
17512         Likewise.
17513
17514 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
17515
17516         [BZ #19745]
17517         * sysdeps/x86_64/crti.S (_init): Replace PREINIT_FUNCTION@PLT
17518         with *%rax in call.
17519
17520 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
17521
17522         [BZ #19745]
17523         * sysdeps/x86_64/start.S (_start): Replace __libc_start_main@PLT
17524         with *__libc_start_main@GOTPCREL(%rip) in call.
17525
17526 2016-03-04  Roland McGrath  <roland@hack.frob.com>
17527
17528         * Makefile (tests-special): Add $(objpfx)c++-types-check.out only
17529         inside conditional for nonempty $(CXX).
17530
17531         * math/Makefile (tests): Add test-math-isinff only if $(CXX) is
17532         nonempty.
17533
17534         * Makefile ($(objpfx)c++-types-check.out): Fix conditionalization
17535         to test for empty $(CXX) rather than $(CXX) of "no".
17536
17537 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
17538
17539         * sysdeps/x86_64/Makefile (sysdep_noprof): Add comments.
17540
17541 2016-03-04  Amit Pawar  <Amit.Pawar@amd.com>
17542             H.J. Lu  <hongjiu.lu@intel.com>
17543
17544         [BZ #18880]
17545         * sysdeps/x86_64/multiarch/memcpy.S: Check Fast_Unaligned_Load,
17546         instead of Slow_BSF, and also check for Fast_Copy_Backward to
17547         enable __memcpy_ssse3_back.
17548
17549 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
17550
17551         [BZ #19758]
17552         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
17553         (EXTRA_LD_ENVVARS): Or in bit_Prefer_MAP_32BIT_EXEC.
17554
17555 2016-03-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
17556
17557         [BZ #19490]
17558         * sysdeps/x86_64/_mcount.S (_mcount): Add unwind descriptor.
17559         (__fentry__): Likewise.
17560
17561 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
17562
17563         * gmon/Makefile (noprof): Add $(sysdep_noprof).
17564         * sysdeps/x86_64/Makefile (sysdep_noprof): Add _mcount.
17565
17566 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
17567
17568         * sysdeps/x86_64/_mcount.S (C_LABEL(_mcount)): Call
17569         __mcount_internal directly.
17570         (C_LABEL(__fentry__)): Likewise.
17571         * sysdeps/x86_64/setjmp.S __sigsetjmp): Call __sigjmp_save
17572         directly.
17573
17574 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
17575
17576         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
17577         (__start_context): Call __setcontext directly.
17578
17579 2016-02-26  Joseph Myers  <joseph@codesourcery.com>
17580
17581         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
17582         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
17583         [__LINUX_KERNEL_VERSION >= 0x030200]: Likewise.
17584         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
17585         * sysdeps/unix/sysv/linux/arm/kernel-features.h
17586         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
17587         [__LINUX_KERNEL_VERSION >= 0x020624]: Likewise.
17588         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
17589         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
17590         [__LINUX_KERNEL_VERSION >= 0x020622]: Likewise.
17591         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
17592         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
17593         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
17594         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
17595         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
17596         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
17597         [__LINUX_KERNEL_VERSION < 0x030000]: Remove conditional code.
17598         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
17599         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
17600         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
17601         [__LINUX_KERNEL_VERSION < 0x020625]: Likewise.
17602         * sysdeps/unix/sysv/linux/mips/kernel-features.h
17603         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
17604         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
17605         [_MIPS_SIM == _ABIN32 && __LINUX_KERNEL_VERSION < 0x020623]:
17606         Remove conditional code.
17607         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
17608         [__LINUX_KERNEL_VERSION >= 0x020625]: Make code unconditional.
17609         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
17610         * sysdeps/unix/sysv/linux/sh/kernel-features.h
17611         [__LINUX_KERNEL_VERSION >= 0x020625]: Likewise.
17612         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
17613         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
17614         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
17615         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
17616         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
17617         * sysdeps/unix/sysv/linux/tile/kernel-features.h
17618         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
17619
17620 2016-02-24  Marko Myllynen  <myllynen@redhat.com>
17621
17622         * NEWS (2.23): Fix typo in bug 19048 text.
17623
17624 2016-02-24  Carlos O'Donell  <carlos@redhat.com>
17625
17626         [BZ #14259]
17627         * Makeconfig: Rename msgcatdir to localedir.
17628         Rename inst_msgcatdir to inst_localedir.
17629         * catgets/Makefile (catgets-CPPFLAGS): Use localedir.
17630         * config.make.in: Add localedir.
17631         * elf/Makefile ($(objpfx)sotruss): Use localedir.
17632         (ldd-rewrite): Likewise.
17633         * intl/Makefile: Rename inst_msgcatdir to inst_localedir.
17634         (install-others): Use inst_localedir.
17635         (CPPFLAGS): Use localedir.
17636         * locale/Makefile (locale-CPPFLAGS): Likewise.
17637         * po/Makefile (mo-installed): Use inst_localedir.
17638
17639         [BZ #19575]
17640         * localedata/charmaps/GB18030: Update comments regarding PAU to
17641         non-PUA mappings.
17642
17643 2016-02-24  Joseph Myers  <joseph@codesourcery.com>
17644
17645         * sysdeps/unix/sysv/linux/configure.ac (linux/fanotify.h): Do not
17646         test for header.
17647         * sysdeps/unix/sysv/linux/configure: Regenerated.
17648         * config.h.in (HAVE_LINUX_FANOTIFY_H): Remove #undef.
17649         * sysdeps/unix/sysv/linux/tst-fanotify.c [!HAVE_LINUX_FANOTIFY_H]:
17650         Remove conditional code.
17651         [HAVE_LINUX_FANOTIFY_H]: Make code unconditional.
17652
17653         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
17654         Define to 3.2.0.
17655         (arch_minimum_kernel): Likewise.
17656         * sysdeps/unix/sysv/linux/configure: Regenerated.
17657         * sysdeps/unix/sysv/linux/i386/configure.ac (arch_minimum_kernel):
17658         Define to 2.6.32.
17659         * sysdeps/unix/sysv/linux/i386/configure: Regenerated.
17660         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac
17661         (arch_minimum_kernel): Define to 2.6.32.
17662         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerated.
17663         * README: Document Linux 3.2 requirement.
17664         * manual/install.texi (Linux): Document Linux 3.2 headers
17665         requirement.
17666         * INSTALL: Regenerated.
17667
17668 2016-02-24  Andreas Schwab  <schwab@suse.de>
17669
17670         * math/test-math-isinff.cc (do_test): Only call isinfl and isnanl
17671         if !NO_LONG_DOUBLE.
17672
17673 2016-02-22  Roland McGrath  <roland@hack.frob.com>
17674
17675         * sysdeps/arm/nacl/libc.abilist (GLIBC_2.23): Add GLIBC_2.23,
17676         fts64_children, fts64_close, fts64_open, fts64_read and fts64_set.
17677
17678 2016-02-22  Dmitry V. Levin  <ldv@altlinux.org>
17679
17680         [BZ #19512]
17681         * config.h.in (HAVE_BUILTIN_EXPECT): New macro.
17682
17683 2016-02-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
17684
17685         * posix/tst-dir.c: Include libc-internal.h.
17686
17687 2016-02-20  Florian Weimer  <fweimer@redhat.com>
17688
17689         [BZ #19056]
17690         * dirent/dirent.h (readdir_r, readdir64_r): Mark as deprecated.
17691         * manual/filesys.texi (Reading/Closing Directory): Mention
17692         deprecaion.
17693         * posix/tst-dir.c (main): Disable deprecation warning in test.
17694
17695 2016-02-19  H.J. Lu  <hongjiu.lu@intel.com>
17696
17697         [BZ #19679]
17698         * sysdeps/x86_64/dl-trampoline.S (DL_RUNIME_UNALIGNED_VEC_SIZE):
17699         Renamed to ...
17700         (DL_RUNTIME_UNALIGNED_VEC_SIZE): This.  Set to 8.
17701         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
17702         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.  Updated.
17703         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
17704         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
17705         * sysdeps/x86_64/dl-trampoline.h
17706         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
17707         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
17708
17709 2016-02-19  Mark Wielaard  <mjw@redhat.com>
17710
17711         * elf/elf.h: Add NT_ARM_SYSTEM_CALL.
17712
17713 2016-02-19  Mark Wielaard  <mjw@redhat.com>
17714
17715         * elf/elf.h (R_386_GOT32X): New.
17716         (R_386_NUM): Update.
17717         (R_X86_64_GOTPCRELX: New.
17718         (R_X86_64_REX_GOTPCRELX): New.
17719         (R_X86_64_NUM): Update.
17720
17721 2016-02-19  Mike Frysinger  <vapier@gentoo.org>
17722
17723         * test-skeleton.c (TIMEOUT): Change to 20 and adjust comment.
17724
17725 2016-02-19  Carlos O'Donell  <carlos@systemhalted.org>
17726
17727         * nptl/allocatestack.c (allocate_stack): Declare new stackaddr,
17728         assign attr->stackaddr to it, and adjust it down when
17729         _STACK_GROWS_UP.  Change all attr->stackaddr to stackaddr.
17730         [_STACK_GROWS_UP]: Delete assert.
17731         * nptl/pthread_create.c (START_THREAD_DEFN) [!_STACK_GROWS_DOWN]:
17732         Implement stack grows up logic.
17733         * nptl/pthread_getattr_np.c (pthread_getattr_np): Implement
17734         stack grows up logic.
17735
17736 2016-02-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17737
17738         * NEWS: Update with 2.24 template.
17739
17740 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
17741
17742         [BZ #19678]
17743         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
17744         Ensure +0.0 is returned when taking the next value below the least
17745         positive value.
17746
17747 2016-02-19  Florian Weimer  <fweimer@redhat.com>
17748
17749         * sysdeps/generic/malloc-machine.h: Assume mutex_init is always
17750         available.  Do not define NO_THREADS.
17751         * malloc/malloc.c: Do not check NO_THREADS.
17752         * malloc/arena.c: Likewise.
17753
17754 2016-02-19  Florian Weimer  <fweimer@redhat.com>
17755
17756         * malloc/malloc.c (__libc_mallinfo): Update comment.
17757         (struct malloc_par): Remove max_total_mem member, it was always 0.
17758         (int_mallinfo): Store 0 into usmblks (no functional change).
17759         * malloc/hooks.c (struct malloc_state): Document that
17760         max_total_mem is always 0.
17761         * malloc/malloc.h (struct mallinfo): Dcoument that usmblks is
17762         always 0.
17763         * manual/memory.texi (Statistics of Malloc): Likewise.
17764
17765 2016-02-19  Florian Weimer  <fweimer@redhat.com>
17766
17767         * malloc/malloc.c (sysmalloc): Do not update arena_max.
17768         * malloc/arena.c (arena_max): Remove.
17769         (heap_trim, _int_new_arena): Do not update arena_max.
17770
17771 2016-02-19  Florian Weimer  <fweimer@redhat.com>
17772
17773         * resolv/res_init.c (res_ninit): Update comment.
17774
17775 2016-02-19  Florian Weimer  <fweimer@redhat.com>
17776
17777         [BZ #19505]
17778         * posix/spawn_int.h: Add headers and include guard.
17779         (__spawn_valid_fd): New function.
17780         * posix/spawn_faction_addopen.c
17781         (posix_spawn_file_actions_addopen): Use __spawn_valid_fd.
17782         * posix/spawn_faction_addclose.c
17783         (posix_spawn_file_actions_addclose): Likewise.
17784         * posix/spawn_faction_adddup2.c
17785         (posix_spawn_file_actions_adddup2): Likewise.  Add check for
17786         second file descriptor.
17787         * posix/spawn_valid_fd.c: New file.
17788         * posix/tst-posix_spawn-fd.c: New file.
17789         * posix/Makefile (routines): Add spawn_valid_fd.
17790         (tests): Add tst-posix_spawn-fd.
17791
17792 2016-02-19  Florian Weimer  <fweimer@redhat.com>
17793
17794         * malloc/tst-malloc-thread-exit.c: Include test-skeleton.c early.
17795         (do_test): Limit the number of arenas, so that we can use fewer
17796         outer threads.  Limit timeout to 3 seconds, in preparation for a
17797         larger TIMEOUT value.
17798
17799 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
17800
17801         [BZ #19674]
17802         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Include
17803         sign in overflowing and underflowing results when overflow or
17804         underflow is detected early.  Include sign in result before rather
17805         than after scaling.
17806
17807         [BZ #19603]
17808         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
17809         (__ieee754_remainderl): Adjust sign of integer version of low part
17810         when taking absolute value of high part.
17811         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
17812         * math/libm-test.inc (remainder_test_data): Add another test.
17813         (remquo_test_data): Likewise.
17814
17815 2016-02-18  Joseph Myers  <joseph@codesourcery.com>
17816
17817         [BZ #19602]
17818         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Handle
17819         equal high parts and both low parts zero specially.
17820         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: New test.
17821         * sysdeps/ieee754/ldbl-128ibm/Makefile [$(subdir) = math] (tests):
17822         Add test-fmodl-ldbl-128ibm.
17823
17824         [BZ #19595]
17825         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Use
17826         common logic for all cases of shifting subnormal results.  Do not
17827         insert sign bit in shifted mantissa.  Always pass -1023 as biased
17828         exponent to ldbl_insert_mantissa in subnormal case.
17829
17830         [BZ #19594]
17831         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Use __round
17832         on high and low parts then adjust result and use
17833         ldbl_canonicalize_int if needed.
17834
17835         [BZ #19593]
17836         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Use __trunc
17837         on high part and __floor or __ceil on low part then use
17838         ldbl_canonicalize_int if needed.
17839
17840         [BZ #19592]
17841         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Use __ceil on
17842         high and low parts then use ldbl_canonicalize_int if needed.
17843
17844         [BZ #17899]
17845         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_canonicalize_int):
17846         New function.
17847         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Use __floor
17848         on high and low parts then use ldbl_canonicalize_int if needed.
17849
17850 2016-02-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17851
17852         * configure: Regenerated.
17853
17854         * po/libc.pot: Regenerated.
17855
17856         * po/be.po: Updated translation.
17857         * po/bg.po: Likewise.
17858         * po/ca.po: Likewise.
17859         * po/cs.po: Likewise.
17860         * po/da.po: Likewise.
17861         * po/el.po: Likewise.
17862         * po/eo.po: Likewise.
17863         * po/es.po: Likewise.
17864         * po/fi.po: Likewise.
17865         * po/fr.po: Likewise.
17866         * po/gl.po: Likewise.
17867         * po/hr.po: Likewise.
17868         * po/hu.po: Likewise.
17869         * po/ia.po: Likewise.
17870         * po/id.po: Likewise.
17871         * po/it.po: Likewise.
17872         * po/ja.po: Likewise.
17873         * po/lt.po: Likewise.
17874         * po/nb.po: Likewise.
17875         * po/nl.po: Likewise.
17876         * po/pt_BR.po: Likewise.
17877         * po/rw.po: Likewise.
17878         * po/sk.po: Likewise.
17879         * po/sl.po: Likewise.
17880         * po/sv.po: Likewise.
17881         * po/tr.po: Likewise.
17882         * po/zh_CN.po: Likewise.
17883         * po/zh_TW.po: Likewise.
17884
17885         * version.h (RELEAES): Set to "development".
17886         (VERSION): Set to 2.23.90.
17887
17888         * version.h (RELEASE): Set to "stable".
17889         (VERSION): Set to 2.23.
17890         * include/feature.h (__GLIBC_MINOR__): Set to 23.
17891
17892         * NEWS: Updated fixed bugs.
17893
17894 2016-02-18  H.J. Lu  <hongjiu.lu@intel.com>
17895             Wilco Dijkstra  <wdijkstr@arm.com>
17896
17897         [BZ #19462]
17898         * bits/string.h (_STRING_ARCH_unaligned): Renamed to ...
17899         (_STRING_INLINE_unaligned): This.
17900         * include/string.h: Include <string_private.h>.
17901         * string/bits/string2.h: Replace _STRING_ARCH_unaligned with
17902         _STRING_INLINE_unaligned.
17903         * sysdeps/aarch64/bits/string.h (_STRING_ARCH_unaligned): Removed.
17904         (_STRING_INLINE_unaligned): New.
17905         * sysdeps/aarch64/string_private.h: New file.
17906         * sysdeps/generic/string_private.h: Likewise.
17907         * sysdeps/m68k/m680x0/m68020/string_private.h: Likewise.
17908         * sysdeps/s390/string_private.h: Likewise.
17909         * sysdeps/x86/string_private.h: Likewise.
17910         * sysdeps/m68k/m680x0/m68020/bits/string.h
17911         (_STRING_ARCH_unaligned): Renamed to ...
17912         (_STRING_INLINE_unaligned): This.
17913         * sysdeps/s390/bits/string.h (_STRING_ARCH_unaligned): Renamed
17914         to ...
17915         (_STRING_INLINE_unaligned): This.
17916         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Renamed
17917         to ...
17918         (_STRING_INLINE_unaligned): This.
17919         * sysdeps/x86/bits/string.h (_STRING_ARCH_unaligned): Renamed
17920         to ...
17921         (_STRING_INLINE_unaligned): This.
17922
17923 2016-02-17  Andrew Senkevich  <andrew.senkevich@intel.com>
17924             H.J. Lu  <hongjiu.lu@intel.com>
17925
17926         [BZ #19590]
17927         * sysdeps/x86_64/fpu/svml_finite_alias.S (ALIAS_IMPL): Use PIC
17928         relocation.
17929
17930 2016-02-15  Carlos O'Donell  <carlos@redhat.com>
17931
17932         [BZ #18665]
17933         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Always set
17934         *herrno_p.
17935         (gaih_getanswer): Document functional behviour. Return tryagain
17936         if any result is tryagain.
17937         * resolv/res_query.c (__libc_res_nsearch): Set buffer size to zero
17938         when freed.
17939         * resolv/res_send.c: Add copyright text.
17940         (__libc_res_nsend): Document that MAXPACKET is expected.
17941         (send_vc): Document. Remove buffer reuse.
17942         (send_dg): Document. Remove buffer reuse. Set *thisanssizp to set the
17943         size of the buffer. Add Dprint for truncated UDP buffer.
17944
17945 2016-02-14  Carlos O'Donell  <carlos@redhat.com>
17946
17947         * manual/install.texi: Latest tested is GCC 5.3, texinfo 6.0, gawk
17948         4.1.3, and sed 4.2.2. Remove po2test.sed comments.
17949         * INSTALL: Regenerate.
17950
17951 2016-02-14  Jakub Jelinek  <jakub@redhat.com>
17952             Jonathan Wakely  <jwakely@redhat.com>
17953             Carlos O'Donell  <carlos@redhat.com>
17954
17955         [BZ 19439]
17956         * math/Makefile (tests): Add test-math-isinff.
17957         (CFLAGS-test-math-isinff.cc): Use -std=gnu++11.
17958         * math/bits/mathcalls.h [__USE_MISC]: Use
17959         '|| __MATH_DECLARING_DOUBLE == 0' to relax definition of
17960         functions not in C++11 and which don't conflict e.g. isinff,
17961         isinfl etc.
17962         * math/test-math-isinff.cc: New file.
17963
17964 2016-02-12  Florian Weimer  <fweimer@redhat.com>
17965
17966         * misc/bug18240.c (do_test): Set RLIMIT_AS.
17967
17968 2016-02-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17969
17970         [BZ #19529]
17971         * stdlib/Makefile (CFLAGS-tst-makecontext.c): Add -funwind-tables.
17972
17973 2016-02-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
17974
17975         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
17976
17977 2016-02-01  Joseph Myers  <joseph@codesourcery.com>
17978
17979         [BZ #19550]
17980         * sysdeps/unix/sysv/linux/mips/mips32/mmap.c: New file.
17981         * sysdeps/unix/sysv/linux/mips/mips64/mmap64.c: Move to ....
17982         * sysdeps/unix/sysv/linux/mips/mips64/n64/mmap64.c: ... here.
17983         * sysdeps/unix/sysv/linux/mips/mips64/n32/mmap.c: New file.
17984         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (mmap64):
17985         New syscall entry.
17986         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list (mmap):
17987         New syscall entry.
17988         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (mmap): Remove
17989         syscall entry.
17990
17991 2016-01-27  Paul Eggert  <eggert@cs.ucla.edu>
17992
17993         [BZ #18240]
17994         * misc/hsearch_r.c (isprime, __hcreate_r): Protect against
17995         unsigned int wraparound.
17996
17997 2016-01-27  Florian Weimer  <fweimer@redhat.com>
17998
17999         [BZ #18240]
18000         * misc/bug18240.c: New test.
18001         * misc/Makefile (tests): Add it.
18002
18003 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
18004             Joseph Myers  <joseph@codesourcery.com>
18005
18006         * sysdeps/mips/memcpy.S (MEMCPY_NAME) [USE_DOUBLE]: Avoid word
18007         load in branch delay slot when less than a word of input left.
18008
18009 2016-01-27  Andreas Schwab  <schwab@suse.de>
18010
18011         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (half): Remove.
18012         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (maxlog, big): Remove.
18013         * sysdeps/powerpc/fpu/s_cosf.c (one): Remove.
18014         * sysdeps/powerpc/fpu/e_hypotf.c (two30): Remove.
18015
18016 2016-01-26  David S. Miller  <davem@davemloft.net>
18017
18018         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Add _Q_cmp.
18019
18020 2016-01-25  David S. Miller  <davem@davemloft.net>
18021
18022         * sysdeps/sparc/sparc32/Versions (GLIBC_2.23): Add entry for
18023         __sqrtl_finite.
18024         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c (__sqrtl_finite): Define
18025         instead using versioned_symbol.
18026         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Fix ordering
18027         of entries.
18028
18029         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Move
18030         __sqrtl_finite to GLIBC_2.23
18031
18032 2016-01-25  Ricchard Henderson  <rth@redhat.com>
18033
18034         * sysdeps/alpha/fpu/libm-test-ulps: Update.
18035
18036 2016-01-25  Andreas Schwab  <schwab@suse.de>
18037
18038         [BZ #17514]
18039         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock)
18040         <case PTHREAD_MUTEX_ERRORCHECK_NP>: Don't do lock elision.
18041         * nptl/Makefile (tests): Add tst-mutex-errorcheck.
18042         * nptl/tst-mutex-errorcheck.c: New file.
18043
18044 2016-01-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
18045
18046         [BZ #18560]
18047         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h (__ipc): Remove.
18048         (IPCOP_semop): Likewise.
18049         (IPCOP_semget): Likewise.
18050         (IPCOP_semctl): Likewise.
18051         (IPCOP_msgsnd): Likewise.
18052         (IPCOP_msgrcv): Likewise.
18053         (IPCOP_msgget): Likewise.
18054         (IPCOP_msgctl): Likewise.
18055         (IPCOP_shmat): Likewise.
18056         (IPCOP_shmdt): Likewise.
18057         (IPCOP_shmget): Likewise.
18058         (IPCOP_shmctl): Likewise.
18059
18060 2016-01-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
18061
18062         * string/tst-endian.c: Include <libc-internal.h>.
18063         (do_test): Ignore tautological-compare warnings around
18064         "htobeXX (beXXtoh (i)) != i" and
18065         "htoleXX (leXXtoh (i)) != i" if-statements.
18066
18067 2016-01-24  David S. Miller  <davem@davemloft.net>
18068
18069         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c: New file.
18070         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c (__ieee754_sqrtl): Remove
18071         alias.
18072         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
18073         __sqrtl_finite.
18074
18075         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18076
18077 2016-01-25  Maciej W. Rozycki  <macro@imgtec.com>
18078
18079         * sysdeps/unix/sysv/linux/mips/configure.ac: Set
18080         `arch_minimum_kernel' to 4.5.0 if 2008 NaN encoding is used.
18081         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
18082
18083 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
18084
18085         * nptl/tst-setuid3.c (is_invalid_barrier_ret): New function.
18086         (thread_func): Use new function to simplify barrier check.
18087         (do_test): Use new function to simplify checking barrier exit
18088         code, and actually join the child thread.
18089
18090 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
18091
18092         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin): Remove
18093         semicolon.
18094         (__libc_tend): Likewise.
18095         (__libc_tabort): Likewise.
18096
18097 2016-01-22  Chung-Lin Tang  <cltang@codesourcery.com>
18098
18099         * sysdeps/nios2/libm-test-ulps: Update.
18100         * sysdeps/unix/sysv/linux/nios2/localplt.data (__gtdf2): Add.
18101         (__gtsf2): Likewise.
18102         (__unorddf2): Likewise.
18103         (__unordsf2): Likewise.
18104         (__ledf2): Likewise.
18105
18106 2016-01-20  Chris Metcalf  <cmetcalf@ezchip.com>
18107
18108         * nis/nis_table.c (__follow_path): Disable diagnostic for
18109         uninitialized variable that is a false positive for gcc 4.7.
18110         * stdio-common/vfscanf.c (_IO_vfwscanf): Likewise.
18111
18112 2016-01-20  Roland McGrath  <roland@hack.frob.com>
18113
18114         * sysdeps/nacl/lowlevellock-futex.h
18115         (lll_futex_wait, lll_futex_timed_wait, lll_futex_wake):
18116         Always evaluate PRIVATE argument.
18117
18118 2016-01-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
18119
18120         [BZ #19490]
18121         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
18122         (pthread_cond_broadcast): Use ENTRY/END
18123         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
18124         (pthread_cond_signal): Likewise.
18125         * sysdeps/x86_64/nptl/pthread_spin_lock.S (pthread_spin_lock):
18126         Likewise.
18127         * sysdeps/x86_64/nptl/pthread_spin_trylock.S (pthread_spin_trylock):
18128         Likewise.
18129         * sysdeps/x86_64/nptl/pthread_spin_unlock.S (pthread_spin_unlock):
18130         Likewise.
18131
18132 2016-01-20  Joseph Myers  <joseph@codesourcery.com>
18133
18134         * sysdeps/ieee754/dbl-64/s_finite.c
18135         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Define
18136         compat symbol at version GLIBC_2_1 and use GLIBC_2_1 in
18137         SHLIB_COMPAT condition for libm, not GLIBC_2_0.
18138         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c
18139         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Likewise.
18140
18141         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
18142         (__gtsf2): Add as optional for libc.so.
18143         (__unordsf2): Likewise.
18144         (__signbit): Remove for libc.so.
18145         (__signbitl): Likewise.
18146
18147 2016-01-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
18148
18149         * iconvdata/bug-iconv11.c (test_ibm93x):
18150         Use %zu printf format specifier for size_t argument.
18151
18152 2016-01-19  Joseph Myers  <joseph@codesourcery.com>
18153
18154         * math/gen-libm-test.pl (parse_ulps): Do not reduce
18155         already-recorded ulps.
18156         * sysdeps/arm/libm-test-ulps: Regenerated.
18157         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
18158         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
18159         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
18160
18161 2016-01-19  Andrew Senkevich  <andrew.senkevich@intel.com>
18162             Paul Pluzhnikov  <ppluzhnikov@google.com>
18163
18164         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Fixed build with
18165         assembler not supporting AVX-512.
18166
18167 2016-01-18  Stefan Liebler  <stli@linux.vnet.ibm.com>
18168
18169         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
18170
18171 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
18172
18173         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
18174         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
18175
18176         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
18177
18178         * sysdeps/arm/libm-test-ulps: Regenerated.
18179
18180 2016-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
18181
18182         [BZ #19451]
18183         * math/Makefile (libm-vec-tests): Move libraries after wrappers.o
18184
18185 2016-01-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
18186
18187         [BZ #19486]
18188         * sysdeps/s390/fix-fp-int-convert-overflow.h: New File.
18189         * sysdeps/generic/fix-fp-int-convert-overflow.h
18190         (FIX_LDBL_LONG_CONVERT_OVERFLOW,
18191         FIX_LDBL_LLONG_CONVERT_OVERFLOW): New define.
18192         * sysdeps/arm/fix-fp-int-convert-overflow.h: Likewise.
18193         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h:
18194         Likewise.
18195         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl):
18196         Avoid conversions to long int where inexact exceptions
18197         could be raised.
18198         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl):
18199         Likewise.
18200         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl):
18201         Avoid conversions to long long int where inexact exceptions
18202         could be raised.
18203         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl):
18204         Likewise.
18205
18206 2016-01-17  Mike Frysinger  <vapier@gentoo.org>
18207
18208         * configure.ac: Rewrite error comment and use AC_MSG_ERROR.
18209         * configure: Regenerated.
18210
18211 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
18212
18213         * sysdeps/x86_64/multiarch/memcpy_chk.S: Fixed typos.
18214
18215 2016-01-16  Mike Frysinger  <vapier@gentoo.org>
18216
18217         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT): Move
18218         outside of comment.
18219
18220 2016-01-15  Torvald Riegel  <triegel@redhat.com>
18221
18222         * nptl/tst-barrier1.c: Add description on first line.
18223         * nptl/tst-barrier2.c: Likewise.
18224         * nptl/tst-barrier3.c: Likewise.
18225         * nptl/tst-barrier4.c: Likewise.
18226         * nptl/tst-barrier5.c: Likewise.
18227
18228 2016-01-15  Torvald Riegel  <triegel@redhat.com>
18229
18230         [BZ #18868]
18231         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Apply fix.
18232
18233 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
18234
18235         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new files.
18236         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
18237         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: New file.
18238         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S: Likewise.
18239         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: Likewise.
18240         * sysdeps/x86_64/multiarch/memcpy.S: Added new IFUNC branch.
18241         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
18242         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
18243         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
18244         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
18245         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
18246
18247 2016-01-15  Torvald Riegel  <triegel@redhat.com>
18248
18249         [BZ #13065]
18250         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Replace with
18251         new implementation.
18252         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy): Likewise.
18253         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Adapt.
18254         * sysdeps/nptl/internaltypes.h (pthread_barrier): Adapt.
18255         (BARRIER_IN_THRESHOLD): New macro.
18256         * nptl/pthread_barrierattr_setpshared.c
18257         (pthread_barrierattr_setpshared): Clean up.
18258         * nptl/tst-barrier4.c: Correct comment.
18259         * nptl/tst-barrier5.c: New file.
18260         * nptl/Makefile (tests): Add nptl/tst-barrier5.c.
18261         (gen-as-const-headers): Remove lowlevelbarrier.sym.
18262         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Remove.
18263         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Remove.
18264         * nptl/lowlevelbarrier.sym: Remove.
18265         * nptl/DESIGN-barrier.txt: Remove.
18266         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Remove.
18267         * sysdeps/sparc/nptl/pthread_barrier_init.c: Remove.
18268         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Remove.
18269         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: Replace with build
18270         error.
18271         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: Use generic
18272         implementation.
18273
18274 2016-01-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
18275
18276         * rt/tst-mqueue5.c (thr): Cleanup misleading comment.
18277         (do_child): Mask SIGRTMIN while thr is running.
18278
18279 2016-01-15  Martin Sebor  <msebor@redhat.com>
18280
18281         [BZ #19432]
18282         * iconvdata/Makefile: Add bug-iconv11.
18283         * iconvdata/bug-iconv11.c: New test.
18284         * iconvdata/ibm930.c: Do not reject redundant shift sequences.
18285         * iconvdata/ibm933.c: Same.
18286         * iconvdata/ibm935.c: Same.
18287         * iconvdata/ibm937.c: Same.
18288         * iconvdata/ibm939.c: Same.
18289
18290 2016-01-15  Martin Sebor  <msebor@redhat.com>
18291
18292         [BZ #19443]
18293         * crypt/crypt_util.c [DEBUG] (_ufc_prbits): Correct format string.
18294         [DEBUG] (_ufc_set_bits): Declare used.
18295         * iconv/gconv_dl.c [DEBUG]: Add a missing include directive.
18296         [DEBUG] (print_all): Declare used.
18297         * resolv/res_send.c [DEBUG] (__libc_res_nsend): Explicitly convert
18298         operands of the ternary ?: expression to target type.
18299         * stdlib/rshift.c [DEBUG] (mpn_rshift): Use assert() instead of
18300         calling the undeclared abort.
18301         * time/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.
18302
18303 2016-01-15  Martin Sebor  <msebor@redhat.com>
18304
18305         [BZ #18755]
18306         * iconv/skeleton.c (FUNCTION_NAME): Suppress -Wunused-but-set-variable
18307         warnings.
18308         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread): Same.
18309         (__gai_create_helper_thread): Same.
18310         * nscd/nscd.c (do_exit): Suppress -Wunused-variable.
18311         * iconvdata/iso-2022-cn-ext.c (BODY): Initialize local variable
18312         to suppress -Wmaybe-uninitialized warnings.
18313
18314 2016-01-15  H.J. Lu  <hongjiu.lu@intel.com>
18315
18316         [BZ #19465]
18317         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Call math_opt_barrier
18318         inside if.
18319         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
18320         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
18321         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
18322
18323 2016-01-14  H.J. Lu  <hongjiu.lu@intel.com>
18324
18325         [BZ #19466]
18326         * time/tst-mktime2.c (time_t_max): Removed.
18327         (time_t_min): Likewise.
18328         (TYPE_SIGNED): New.
18329         (TYPE_MINIMUM): Likewise.
18330         (TYPE_MAXIMUM): Likewise.
18331         (TIME_T_MIN): Likewise.
18332         (TIME_T_MAX): Likewise.
18333         (mktime_test): Replace time_t_max and time_t_min with TIME_T_MAX
18334         and TIME_T_MIN.
18335         (do_test): Likewise.
18336
18337 2016-01-14  Amit Pawar  <amit.pawar@amd.com>
18338
18339         [BZ #19467]
18340         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
18341         index_Fast_Unaligned_Load flag for Excavator family CPUs.
18342
18343 2016-01-02  Marcin Kościelnicki  <koriakin@0x04.net>
18344
18345         * sysdeps/s390/nptl/tls.h (struct tcbhead_t): Add __private_ss field.
18346
18347 2016-01-13  Carlos O'Donell  <carlos@redhat.com>
18348
18349         * benchtests/Makefile (PYTHON): Define.
18350         (bench-func): Use $(PYTHON) to run python scripts.
18351         ($(objpfx)bench-%.c): Likewise.
18352
18353 2016-01-13  Flavio Cruz  <flaviocruz@gmail.com>
18354
18355         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Do not remove
18356         leading slash when `file_name' is "/".
18357
18358 2016-01-12  Joseph Myers  <joseph@codesourcery.com>
18359
18360         * bits/mman-linux.h [!MCL_CURRENT] (MCL_ONFAULT): New macro.
18361         * sysdeps/unix/sysv/linux/alpha/bits/mman.h (MCL_ONFAULT):
18362         Likewise.
18363         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MCL_ONFAULT):
18364         Likewise.
18365         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT):
18366         Likewise.
18367         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_GETSIGMASK): New
18368         enum constant and macro.
18369         (PTRACE_SETSIGMASK): Likewise.
18370         (PTRACE_SECCOMP_GET_FILTER): Likewise.
18371         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
18372         (PTRACE_GETSIGMASK): Likewise.
18373         (PTRACE_SETSIGMASK): Likewise.
18374         (PTRACE_SECCOMP_GET_FILTER): Likewise.
18375         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_GETSIGMASK):
18376         Likewise.
18377         (PTRACE_SETSIGMASK): Likewise.
18378         (PTRACE_SECCOMP_GET_FILTER): Likewise.
18379         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
18380         (PTRACE_GETSIGMASK): Likewise.
18381         (PTRACE_SETSIGMASK): Likewise.
18382         (PTRACE_SECCOMP_GET_FILTER): Likewise.
18383         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_GETSIGMASK):
18384         Likewise.
18385         (PTRACE_SETSIGMASK): Likewise.
18386         (PTRACE_SECCOMP_GET_FILTER): Likewise.
18387         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_GETSIGMASK):
18388         Likewise.
18389         (PTRACE_SETSIGMASK): Likewise.
18390         (PTRACE_SECCOMP_GET_FILTER): Likewise.
18391         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_GETSIGMASK):
18392         Likewise.
18393         (PTRACE_SETSIGMASK): Likewise.
18394         (PTRACE_SECCOMP_GET_FILTER): Likewise.
18395
18396 2016-01-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
18397             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18398
18399         [BZ #19439]
18400         * math/bits/mathcalls.h
18401         [!__cplusplus || __cplusplus < 201103L] (isinf): Do not declare
18402         prototype.
18403         [!__cplusplus || __cplusplus < 201103L] (isnan): Likewise.
18404
18405 2016-01-11  Andreas Schwab  <schwab@suse.de>
18406
18407         [BZ #19253]
18408         * time/tzfile.c (__tzfile_default): Invalidate tzfile attribute
18409         cache when TZDEFRULES was used.
18410         * time/tst-tzname.c: New file.
18411         * time/Makefile (test): Add tst-tzname.
18412         (tst-tzname-ENV, CPPFLAGS-tst-tzname.c): Define.
18413         * timezone/Makefile (test-zones): Add $(posixrules-file).
18414         ($(testdata)/$(posixrules-file)): New rule.
18415
18416 2016-01-10  Paul Eggert  <eggert@cs.ucla.edu>
18417
18418         Fix doc quoting problems with Texinfo 5
18419         Without this change, in the info file output, Texinfo 5 quotes code
18420         in text with undirected single quotes 'like this' and generates
18421         code examples that with many PDF readers cannot be cut out of PDFs
18422         and pasted into code.
18423         * manual/libc.texinfo: Configure the libc manual like the GNU
18424         Emacs manual, by using @documentencoding and setting
18425         txicodequoteundirected and txicodequotebacktick.  This way,
18426         Texinfo 5 quotes code in text with directed single quotes ‘like
18427         this’ and produces examples that can be cut out of PDFs.  This
18428         change causes Texinfo 5 to generate info files that contain UTF-8
18429         characters in the set {'‘', '’', '“', '”', 'Ä', 'ä', 'ö', '−',
18430         '–', '—', '©', '⇒', '•', '…'}, which is OK nowadays.
18431
18432 2016-01-08  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
18433
18434         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin,
18435         __libc_tabort, __libc_tend): New wrappers that enforce compiler
18436         barriers to their respective compiler built-ins.
18437         * sysdeps/powerpc/nptl/elide.h (__get_new_count, ELIDE_LOCK,
18438         ELIDE_TRYLOCK, __elide_unlock): Use the new wrappers.
18439         * sysdeps/powerpc/sysdep.h: Likewise.
18440         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: Likewise.
18441         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: Likewise.
18442         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: Likewise.
18443
18444 2016-01-08  Marko Myllynen  <myllynen@redhat.com>
18445
18446         * scripts/config.guess: Revert previous shebang change.
18447         * scripts/config.sub: Likewise.
18448         * scripts/mkinstalldirs: Likewise.
18449
18450 2016-01-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
18451
18452         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_ARCH_3_00 and
18453         PPC_FEATURE2_HAS_IEEE128.
18454         * sysdeps/powerpc/dl-procinfo.c:
18455         (_dl_powerpc_cap_flags): Add corresponding names to new capabilities.
18456
18457 2016-01-08  John David Anglin  <danglin@gcc.gnu.org>
18458
18459         [BZ #19415]
18460         * sysdeps/hppa/dl-fptr.c (_dl_fixup): Declare.
18461         (elf_machine_resolve): New.  Return address of _dl_runtime_resolve.
18462         (_dl_lookup_address): Rewrite using function resolver trampoline.
18463         * sysdeps/hppa/dl-lookupcfg.h (DL_LOOKUP_ADDRESS): Don't clear bottom
18464         two bits in address.
18465
18466 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
18467
18468         * longlong.h: Change !__SHMEDIA__ to
18469         (!defined (__SHMEDIA__) || !__SHMEDIA__).
18470         Change __SHMEDIA__ to defined (__SHMEDIA__) && __SHMEDIA__.
18471
18472 2016-01-07  Daniel Jacobowitz  <dan@codesourcery.com>
18473             Joseph Myers  <joseph@codesourcery.com>
18474             Mark Shinwell  <shinwell@codesourcery.com>
18475             Andrew Stubbs  <ams@codesourcery.com>
18476             Rich Felker <dalias@libc.org>
18477
18478         * longlong.h (udiv_qrnnd): Add FDPIC compatible version for SH.
18479
18480 2016-01-07  Richard Henderson  <rth@redhat.com>
18481
18482         * longlong.h [__alpha] (umul_ppmm): Disable for c++.
18483
18484 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
18485
18486         * sysdeps/unix/sysv/linux/fxstat64.c (___fxstat64): Change
18487         __ASSUME_ST_INO_64_BIT == 0 to !defined __ASSUME_ST_INO_64_BIT.
18488         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
18489         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
18490         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat32_conv): Likewise.
18491
18492 2016-01-07  Paul Eggert  <eggert@cs.ucla.edu>
18493             Joseph Myers  <joseph@codesourcery.com>
18494
18495         * timezone/private.h: Update from tzcode 2015g.
18496         * timezone/tzfile.h: Likewise.
18497         * timezone/tzselect.ksh: Likewise.
18498         * timezone/zdump.c: Likewise.
18499         * timezone/zic.c: Likewise.
18500         * timezone/ialloc.c: Remove file.
18501         * timezone/scheck.c: Likewise.
18502         * timezone/Makefile (extra-objs): Remove variable.
18503         ($(objpfx)zic): Do not depend on scheck.o and ialloc.o.
18504         (tz-cflags): Add -DHAVE_GETTEXT -DUSE_LTZ=0
18505         -Wno-maybe-uninitialized.
18506         (CFLAGS-zdump.c): Remove -fwrapv -DNOID -DHAVE_GETTEXT.
18507         (CFLAGS-zic.c): Remove -DNOID -DHAVE_GETTEXT.
18508         (CFLAGS-ialloc.c): Remove variable.
18509         (CFLAGS-scheck.c): Likewise.
18510         * timezone/README: Update list of files from tzcode.
18511
18512 2016-01-07  Khem Raj  <raj.khem@gmail.com>
18513
18514         * argp/argp-fmtstream.c (__argp_fmtstream_free): Use fwrite_unlocked
18515         instead of __fxprintf when _LIBC is undefined.
18516
18517 2016-01-07  Marko Myllynen  <myllynen@redhat.com>
18518
18519         * catgets/test-gencat.sh: Remove space after shebang.
18520         * conform/GlibcConform.pm: Likewise.
18521         * conform/check-header-lists.sh: Likewise.
18522         * conform/conformtest.pl: Likewise.
18523         * conform/linknamespace.pl: Likewise.
18524         * conform/list-header-symbols.pl: Likewise.
18525         * debug/catchsegv.sh: Likewise.
18526         * elf/genrtldtbl.awk: Likewise.
18527         * elf/tst-pathopt.sh: Likewise.
18528         * elf/tst-rtld-load-self.sh: Likewise.
18529         * grp/tst_fgetgrent.sh: Likewise.
18530         * iconvdata/gen-8bit-gap-1.sh: Likewise.
18531         * iconvdata/gen-8bit-gap.sh: Likewise.
18532         * iconvdata/gen-8bit.sh: Likewise.
18533         * iconvdata/run-iconv-test.sh: Likewise.
18534         * intl/tst-gettext.sh: Likewise.
18535         * intl/tst-gettext2.sh: Likewise.
18536         * intl/tst-gettext4.sh: Likewise.
18537         * intl/tst-gettext6.sh: Likewise.
18538         * intl/tst-translit.sh: Likewise.
18539         * io/ftwtest-sh: Likewise.
18540         * libio/test-freopen.sh: Likewise.
18541         * locale/gen-translit.pl: Likewise.
18542         * malloc/tst-mtrace.sh: Likewise.
18543         * manual/check-safety.sh: Likewise.
18544         * manual/libc-texinfo.sh: Likewise.
18545         * manual/tsort.awk: Likewise.
18546         * manual/xtract-typefun.awk: Likewise.
18547         * nptl/tst-cancel-wrappers.sh: Likewise.
18548         * nptl/tst-tls6.sh: Likewise.
18549         * posix/globtest.sh: Likewise.
18550         * posix/tst-getconf.sh: Likewise.
18551         * posix/wordexp-tst.sh: Likewise.
18552         * scripts/check-c++-types.sh: Likewise.
18553         * scripts/check-local-headers.sh: Likewise.
18554         * scripts/config.guess: Likewise.
18555         * scripts/config.sub: Likewise.
18556         * scripts/cpp: Likewise.
18557         * scripts/cross-test-ssh.sh: Likewise.
18558         * scripts/documented.sh: Likewise.
18559         * scripts/evaluate-test.sh: Likewise.
18560         * scripts/gen-libc-abis: Likewise.
18561         * scripts/gen-sorted.awk: Likewise.
18562         * scripts/list-fixed-bugs.py: Likewise.
18563         * scripts/merge-test-results.sh: Likewise.
18564         * scripts/mkinstalldirs: Likewise.
18565         * scripts/rellns-sh: Likewise.
18566         * scripts/test-installation.pl: Likewise.
18567         * scripts/update-copyrights: Likewise.
18568         * stdio-common/tst-printf.sh: Likewise.
18569         * stdio-common/tst-unbputc.sh: Likewise.
18570         * stdlib/tst-fmtmsg.sh: Likewise.
18571         * stdlib/tst-setcontext3.sh: Likewise.
18572         * sysdeps/i386/tst-ld-sse-use.sh: Likewise.
18573         * sysdeps/unix/make-syscalls.sh: Likewise.
18574
18575 2016-01-06  John David Anglin  <dave.anglin@bell.net>
18576
18577         * sysdeps/hppa/nptl/pthread_spin_init.c (pthread_spin_init): Replace
18578         asm stw with atomic_exchange_rel.  Add explanatory comment.
18579         * sysdeps/hppa/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
18580         Likewise.
18581
18582 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
18583
18584         [BZ #19122]
18585         * include/unistd.h [IS_IN (rtld)]: Include <dl-unistd.h>.
18586         * sysdeps/generic/dl-unistd.h: New file.
18587         * sysdeps/mach/hurd/dl-unistd.h: Likewise.
18588
18589 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
18590
18591          [BZ #19122]
18592          * include/sys/mman.h [IS_IN (rtld)]: Include <dl-mman.h>.
18593          * sysdeps/generic/dl-mman.h: New file.
18594          * sysdeps/mach/hurd/dl-mman.h: Likewise.
18595
18596 2016-01-05  Joseph Myers  <joseph@codesourcery.com>
18597
18598         * manual/texinfo.tex: Update to version 2016-01-04.21 with
18599         trailing whitespace removed.
18600         * scripts/config.guess: Update to version 2016-01-01.
18601         * scripts/config.sub: Update to version 2016-01-01.
18602         * scripts/move-if-change: Update from gnulib.
18603
18604 2016-01-04  Anton Blanchard  <anton@samba.org>
18605
18606         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Use unsigned int
18607         for array indices.
18608         * sysdeps/ieee754/dbl-64/e_pow.c (my_log2): Likewise.
18609
18610 2016-01-04  Joseph Myers  <joseph@codesourcery.com>
18611
18612         * NEWS: Update copyright dates.
18613         * catgets/gencat.c (print_version): Likewise.
18614         * csu/version.c (banner): Likewise.
18615         * debug/catchsegv.sh: Likewise.
18616         * debug/pcprofiledump.c (print_version): Likewise.
18617         * debug/xtrace.sh (do_version): Likewise.
18618         * elf/ldconfig.c (print_version): Likewise.
18619         * elf/ldd.bash.in: Likewise.
18620         * elf/pldd.c (print_version): Likewise.
18621         * elf/sotruss.sh: Likewise.
18622         * elf/sprof.c (print_version): Likewise.
18623         * iconv/iconv_prog.c (print_version): Likewise.
18624         * iconv/iconvconfig.c (print_version): Likewise.
18625         * locale/programs/locale.c (print_version): Likewise.
18626         * locale/programs/localedef.c (print_version): Likewise.
18627         * login/programs/pt_chown.c (print_version): Likewise.
18628         * malloc/memusage.sh (do_version): Likewise.
18629         * malloc/memusagestat.c (print_version): Likewise.
18630         * malloc/mtrace.pl: Likewise.
18631         * manual/libc.texinfo: Likewise.
18632         * nptl/version.c (banner): Likewise.
18633         * nscd/nscd.c (print_version): Likewise.
18634         * nss/getent.c (print_version): Likewise.
18635         * nss/makedb.c (print_version): Likewise.
18636         * posix/getconf.c (main): Likewise.
18637         * scripts/test-installation.pl: Likewise.
18638         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
18639
18640         * All files with FSF copyright notices: Update copyright dates
18641         using scripts/update-copyrights.
18642         * intl/plural.c: Regenerated.
18643         * locale/programs/charmap-kw.h: Likewise.
18644         * locale/programs/locfile-kw.h: Likewise.
18645
18646 2016-01-02  Helge Deller  <deller@gmx.de>
18647
18648         [BZ #19285]
18649         * sysdeps/unix/sysv/linux/hppa/bits/mman.h (MAP_STACK): Define.
18650         (MAP_HUGETLB, MCL_ONFAULT): Likewise.
18651         (MADV_HUGEPAGE, MADV_NOHUGEPAGE, MADV_DONTDUMP, MADV_DODUMP): Likewise.
18652         (MADV_xxK_PAGES): Remove.
18653
18654 2016-01-01  Mike Frysinger  <vapier@gentoo.org>
18655
18656         [BZ #15421]
18657         * sysdeps/ia64/fpu/w_lgamma_main.c: Include math.h & math_private.h.
18658         [BUILD_LGAMMA]: Wrap all code by define.  Re-indent sub-preprocessor.
18659         * sysdeps/ia64/fpu/w_lgammaf_main.c: Likewise.
18660         * sysdeps/ia64/fpu/w_lgammal_main.c: Likewise.
18661
18662 2015-12-30  Dmitry V. Levin  <ldv@altlinux.org>
18663
18664         [BZ #19408]
18665         * sysdeps/unix/sysv/linux/personality.c: New file.
18666         * sysdeps/unix/sysv/linux/sparc/sparc64/personality.c: Likewise.
18667         * sysdeps/unix/sysv/linux/tst-personality.c: Likewise.
18668         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == misc]
18669         (sysdep_routines): Add personality.
18670         (tests): Add tst-personality.
18671         * sysdeps/unix/sysv/linux/syscalls.list (personality): Move ...
18672         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ... here.
18673         * sysdeps/unix/sysv/linux/arm/syscalls.list (personality): New entry.
18674         * sysdeps/unix/sysv/linux/hppa/syscalls.list (personality): Likewise.
18675         * sysdeps/unix/sysv/linux/i386/syscalls.list (personality): Likewise.
18676         * sysdeps/unix/sysv/linux/m68k/syscalls.list (personality): Likewise.
18677         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (personality):
18678         Likewise.
18679         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (personality):
18680         Likewise.
18681         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (personality):
18682         Likewise.
18683         * sysdeps/unix/sysv/linux/sh/syscalls.list (personality): Likewise.
18684         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (personality):
18685         Likewise.
18686
18687 2015-12-30  Aurelien Jarno  <aurelien@aurel32.net>
18688
18689         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include <string.h>.
18690         (PATH_ARM_SYSTYPE): Remove.
18691         (PATH_CPUINFO): Likewise.
18692         (IO_BASE_FOOTBRIDGE): Likewise.
18693         (IO_SHIFT_FOOTBRIDGE): Likewise.
18694         (struct platform): Likewise.
18695         (init_iosys): Remove compatibility code for 2.4 kernels.
18696         * sysdeps/unix/sysv/linux/arm/localplt.data: Remove fscanf.
18697
18698 2015-12-29  Florian Weimer  <fweimer@redhat.com>
18699
18700         * malloc/tst-malloc-thread-fail.c: New file.
18701         * malloc/Makefile (tests): Add tst-malloc-thread-fail.
18702         (tst-malloc-thread-fail): Link against libpthread.
18703
18704 2015-12-29  Mike Frysinger  <vapier@gentoo.org>
18705
18706         * scripts/list-fixed-bugs.py: Import argparse.  Call main instead.
18707         (get_parser): New function.
18708         (main): New function.
18709
18710 2015-12-29  Rob Wu  <rob@robwu.nl>
18711
18712         [BZ #19369]
18713         * resolv/res_init.c (__res_vinit): Reset defdname before use.
18714
18715 2015-12-29  John David Anglin  <danglin@gcc.gnu.org>
18716
18717         [BZ #19270]
18718         * sysdeps/hppa/fpu/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
18719
18720 2015-12-28  Mike Frysinger  <vapier@gentoo.org>
18721
18722         [BZ #15421]
18723         * sysdeps/ia64/fpu/w_lgamma_main.c: Change gammaf to gamma.
18724
18725 2015-12-23  Torvald Riegel  <triegel@redhat.com>
18726
18727         [BZ #13690]
18728         * sysdeps/nptl/lowlevellock.h (__lll_unlock): Do not access the lock
18729         after releasing it.
18730         (__lll_robust_unlock): Likewise.
18731         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
18732         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_unlock): Likewise.
18733         (lll_robust_unlock): Likewise.
18734         * sysdeps/unix/sysv/linux/lowlevellock-futex.h (__lll_private_flag):
18735         Prevent warnings in callers.
18736
18737 2015-12-23  Florian Weimer  <fweimer@redhat.com>
18738
18739         * malloc/arena.c (list_lock): Update comment.
18740
18741 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
18742
18743         * sysdeps/powerpc/hwcapinfo.c: Export symbol
18744         __parse_hwcap_and_convert_at_platform to libc.a.
18745
18746 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
18747
18748         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Added
18749         platform and feature support for POWER9.
18750         * sysdeps/powerpc/dl-procinfo.h: Likewise.
18751         * sysdeps/powerpc/powerpc32/power9/Implies: New file.
18752         * sysdeps/powerpc/powerpc32/power9/fpu/multiarch/Implies: Likewise.
18753         * sysdeps/powerpc/powerpc32/power9/multiarch/Implies: Likewise.
18754         * sysdeps/powerpc/powerpc64/power9/Implies: Likewise, for powerpc64.
18755         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
18756         * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
18757         * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
18758
18759 2015-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18760
18761         Harmonize generic stdio-lock support with nptl
18762
18763         This fixes build when _IO_funlockfile is a macro, fixes build where
18764         _IO_acquire_lock_clear_flags2 is used, and fixes unlocking on unexpected
18765         stack unwind.
18766
18767         * sysdeps/generic/stdio-lock.h [__EXCEPTIONS] (_IO_acquire_lock,
18768         _IO_release_lock ): Use cleanup attribute on new
18769         _IO_acquire_lock_file variable instead of assuming that
18770         _IO_release_lock will be called.
18771         [!__EXCEPTIONS] (_IO_acquire_lock): Define to non-existing
18772         _IO_acquire_lock_needs_exceptions_enabled.
18773         (_IO_acquire_lock_clear_flags2): New macro.
18774
18775 2015-12-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18776
18777         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
18778
18779 2015-12-21  Florian Weimer  <fweimer@redhat.com>
18780
18781         [BZ #19182]
18782         * malloc/arena.c (list_lock): Document lock ordering requirements.
18783         (free_list_lock): New lock.
18784         (ptmalloc_lock_all): Comment on free_list_lock.
18785         (ptmalloc_unlock_all2): Reinitialize free_list_lock.
18786         (detach_arena): Update comment.  free_list_lock is now needed.
18787         (_int_new_arena): Use free_list_lock around detach_arena call.
18788         Acquire arena lock after list_lock.  Add comment, including FIXME
18789         about incorrect synchronization.
18790         (get_free_list): Switch to free_list_lock.
18791         (reused_arena): Acquire free_list_lock around detach_arena call
18792         and attached threads counter update.  Add two FIXMEs about
18793         incorrect synchronization.
18794         (arena_thread_freeres): Switch to free_list_lock.
18795         * malloc/malloc.c (struct malloc_state): Update comments to
18796         mention free_list_lock.
18797
18798 2015-12-21  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
18799
18800         * sysdeps/ieee754/dbl-64/s_sin.c (csloww, csloww1, csloww2):
18801         Remove functions.
18802         (sloww, sloww1): Accept argument to offset quadrant.
18803         (sloww, sloww1, sloww2): Call __mpsin or __mpcos based on
18804         quadrant.
18805         (__sin, __cos): Consolidate common code into new functions.
18806         (reduce_sincos_1, do_sincos_1): New functions.
18807         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
18808
18809         * sysdeps/ieee754/dbl-64/s_sin.c (__sin, __cos): Move common
18810         code to new functions.
18811         (reduce_sincos_2, do_sincos_2): New functions.
18812         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
18813
18814         * sysdeps/ieee754/dbl-64/s_sin.c (__sin) [!IN_SINCOS]: Skip
18815         common code for sincos.
18816         (__cos) [!IN_SINCOS]: Likewise.
18817         * sysdeps/ieee754/dbl-64/s_sincos.c (reduce_and_compute_sincos):
18818         New function.
18819         (__sincos): Use it.
18820
18821 2015-12-20  Aurelien Jarno  <aurelien@aurel32.net>
18822
18823         * sysdeps/i386/fpu/libm-test-ulps: Move to ....
18824         * sysdeps/i386/i686/multiarch/fpu/libm-test-ulps: ...here.
18825         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
18826
18827 2015-12-19  Andrew Senkevich  <andrew.senkevich@intel.com>
18828
18829         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: New file.
18830         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new file.
18831         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
18832         * sysdeps/x86_64/multiarch/memset.S: Added new IFUNC branch.
18833         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
18834         * sysdeps/x86/cpu-features.h (bit_Prefer_No_VZEROUPPER,
18835         index_Prefer_No_VZEROUPPER): New feature.
18836         * sysdeps/x86/cpu-features.c (init_cpu_features): Set the
18837         Prefer_No_VZEROUPPER for Knights Landing.
18838
18839 015-12-18  Torvald Riegel  <triegel@redhat.com>
18840
18841         * math/atest-exp2.c (mp_exp_m1): Remove.
18842
18843 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18844
18845         * sysdeps/unix/sysdep.h (SYSCALL_CANCEL): Fix macro for zero argument
18846         syscalls.
18847         (__SYSCALL0): New macro.
18848         (__SYSCALL1): Likewise.
18849         (__SYSCALL2): Likewise.
18850         (__SYSCALL3): Likewise.
18851         (__SYSCALL4): Likewise.
18852         (__SYSCALL5): Likewise.
18853         (__SYSCALL6): Likewise.
18854         (__SYSCALL_CONCAT_X): Likewise.
18855         (__SYSCALL_CONCAT): Likewise.
18856         (__SYSCALL_DIST): Likewise.
18857         (__SYSCALL_CALL): Likewise.
18858
18859 2015-12-17  H.J. Lu  <hongjiu.lu@intel.com>
18860
18861         [BZ #19363]
18862         * sysdeps/unix/sysv/linux/x86_64/x32/times.c: New file.
18863
18864 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18865
18866         [BZ #19375]
18867         * sysdeps/powerpc/power7/fpu/s_logb.c (__logb): Fix return for
18868         negative subnormals.
18869
18870 2015-12-16  H.J. Lu  <hongjiu.lu@intel.com>
18871
18872         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
18873         (REGISTERS_CLOBBERED_BY_SYSCALL): New.
18874         (INTERNAL_SYSCALL_NCS): Use it.
18875         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
18876
18877 2015-12-16  Florian Weimer  <fweimer@redhat.com>
18878
18879         [BZ #19243]
18880         * malloc/arena.c (get_free_list): Remove assert and adjust
18881         reference count handling.  Add comment about reused_arena
18882         interaction.
18883         (reused_arena): Add comments abount get_free_list interaction.
18884         * malloc/tst-malloc-thread-exit.c: New file.
18885         * malloc/Makefile (tests): Add tst-malloc-thread-exit.
18886         (tst-malloc-thread-exit): Link against libpthread.
18887
18888 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
18889
18890         [BZ #19367]
18891         * sysdeps/unix/sysv/linux/wordsize-64/mmap.c: New file.
18892         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h: Likewise.
18893         * sysdeps/unix/sysv/linux/x86_64/64/mmap.c: Likewise.
18894         * sysdeps/x86/cpu-features.h (bit_Prefer_MAP_32BIT_EXEC): New.
18895         (index_Prefer_MAP_32BIT_EXEC): Likewise.
18896
18897 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
18898
18899         * sysdeps/x86/cpu-features.c (init_cpu_features): Enable
18900         Silvermont optimizations for Knights Landing.
18901
18902 2015-12-15  Andreas Schwab  <schwab@suse.de>
18903
18904         [BZ #17197]
18905         * iconvdata/ibm930.c (BODY for TO_LOOP): Record current DBCS state
18906         immediately after emitting SI.
18907         * iconvdata/ibm933.c (BODY for TO_LOOP): Likewise.
18908         * iconvdata/ibm935.c (BODY for TO_LOOP): Likewise.
18909         * iconvdata/ibm937.c (BODY for TO_LOOP): Likewise.
18910         * iconvdata/ibm939.c (BODY for TO_LOOP): Likewise.
18911         * iconvdata/bug-iconv10.c: New file.
18912         * iconvdata/Makefile (tests): Add bug-iconv10.
18913         ($(objpfx)bug-iconv10.out): New rule.
18914
18915 2015-12-15  Florian Weimer  <fweimer@redhat.com>
18916
18917         * dlfcn/tst-rec-dlopen.c (call_func): Cast dlsym result, fixing an
18918         aliasing violation.
18919
18920 2015-12-14  Joseph Myers  <joseph@codesourcery.com>
18921
18922         [BZ #18472]
18923         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Handle entries
18924         for the form NAME@VERSION:OBSOLETED and generate SHLIB_COMPAT
18925         conditionals for them.
18926         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Likewise.
18927         * sysdeps/unix/sysv/linux/sys/kdaemon.h: Remove file.
18928         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove
18929         sys/kdaemon.h.
18930         * sysdeps/unix/sysv/linux/syscalls.list (bdflush): Make into
18931         compat-only syscall, obsoleted in glibc 2.23.
18932         (create_module): Likewise.
18933         (get_kernel_syms): Likewise.
18934         (query_module): Likewise.
18935         (uselib): Likewise.
18936         * manual/sysinfo.texi (System Parameters): Do not mention bdflush.
18937
18938 2015-12-11  Aurelien Jarno  <aurelien@aurel32.net>
18939
18940         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include
18941         <linux/version.h>.
18942         [LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,23)]: Remove
18943         conditional code.
18944         (init_iosys): Use CTL_BUS_ISA instead of BUS_ISA in iobase_name
18945         and ioshift_name initialization.
18946
18947 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
18948
18949         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
18950         Fix indentation.
18951
18952 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
18953
18954         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Fix indentation.
18955
18956 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
18957
18958         * stdlib/strtol_l.c (__strtol_l): Fix indentation.
18959
18960 2015-12-10  Aurelien Jarno  <aurelien@aurel32.net>
18961             Jakub Wilk  <jwilk@debian.org>
18962
18963         [BZ #19347]
18964         * sysdeps/unix/grantpt.c [!HAVE_PT_CHOWN] (grantpt): Do not try
18965         to change the group of the device to the tty group.
18966
18967 2015-12-10  Paul Eggert  <eggert@cs.ucla.edu>
18968
18969         Split large string section; add truncation advice
18970         * manual/examples/strncat.c: Remove.
18971         This example was misleading, as the code would have undefined
18972         behavior if "hello" was longer than SIZE.  Anyway, the manual
18973         shouldn't encourage strncpy+strncat for this sort of thing.
18974         * manual/string.texi (Copying Strings and Arrays): Split into
18975         three sections Copying Strings and Arrays, Concatenating Strings,
18976         and Truncating Strings, as this section was way too long.  All
18977         cross-referenced changed.  Add advice about string-truncation
18978         functions.  Remove misleading strncat example.
18979
18980 2015-12-10  Carlos O'Donell  <carlos@redhat.com>
18981
18982         * manual/nss.texi (NSS Modules Interface): Document
18983         NSS_STATUS_NOTFOUND and SUCCESS.
18984
18985 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
18986
18987         [BZ 18568]
18988         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
18989         201505L, for Unicode 8.
18990
18991 2015-12-09  Carlos O'Donell  <carlos@redhat.com>
18992
18993         * locale/C-translit.h: Regenerate.
18994
18995 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
18996
18997         * locale/C-translit.h.in: Remove duplicate transliterations for U+0152
18998         and U+0153.
18999
19000 2015-12-09  Joseph Myers  <joseph@codesourcery.com>
19001
19002         [BZ #19351]
19003         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): When
19004         expanding log(1+z), compare z rather than its square with epsilon
19005         to determine when to avoid evaluating the expansion.
19006
19007         [BZ #19350]
19008         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
19009         Increase overflow threshold.
19010
19011         [BZ #19349]
19012         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Return argument
19013         when small.
19014
19015         * sysdeps/unix/sysv/linux/i386/kernel-features.h
19016         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
19017         New macro.
19018         [__LINUX_KERNEL_VERSION >= 0x040300]
19019         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
19020         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
19021         Likewise.
19022         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
19023         Likewise.
19024         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
19025         Likewise.
19026         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
19027         Likewise.
19028         [__LINUX_KERNEL_VERSION >= 0x040300]
19029         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
19030         [__LINUX_KERNEL_VERSION >= 0x040300]
19031         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
19032         [__LINUX_KERNEL_VERSION >= 0x040300]
19033         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
19034         [__LINUX_KERNEL_VERSION >= 0x040300]
19035         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
19036         [__LINUX_KERNEL_VERSION >= 0x040300]
19037         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
19038         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
19039         Likewise.
19040         [__LINUX_KERNEL_VERSION >= 0x040300]
19041         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
19042         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
19043         Likewise.
19044         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
19045         Likewise.
19046         [__LINUX_KERNEL_VERSION >= 0x040300]
19047         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
19048         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
19049         Likewise.
19050         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
19051         Likewise.
19052         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
19053         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMMSG_SYSCALL):
19054         Likewise.
19055         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMMSG_SYSCALL):
19056         Likewise.
19057         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
19058         Likewise.
19059         [__LINUX_KERNEL_VERSION >= 0x040300]
19060         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
19061         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
19062         Likewise.
19063         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
19064         Likewise.
19065         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
19066         Likewise.
19067         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
19068         Likewise.
19069         [__LINUX_KERNEL_VERSION >= 0x040300]
19070         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
19071         [__LINUX_KERNEL_VERSION >= 0x040300]
19072         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
19073         [__LINUX_KERNEL_VERSION >= 0x040300]
19074         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
19075         [__LINUX_KERNEL_VERSION >= 0x040300]
19076         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
19077         [__LINUX_KERNEL_VERSION >= 0x040300]
19078         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
19079         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
19080         Likewise.
19081         [__LINUX_KERNEL_VERSION >= 0x040300]
19082         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
19083         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
19084         Likewise.
19085         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
19086         Likewise.
19087         [__LINUX_KERNEL_VERSION >= 0x040300]
19088         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
19089         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
19090         Likewise.
19091         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
19092         Likewise.
19093         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
19094         (__ASSUME_SOCKET_SYSCALL): Likewise.
19095         (__ASSUME_BIND_SYSCALL): Likewise.
19096         (__ASSUME_CONNECT_SYSCALL): Likewise.
19097         (__ASSUME_LISTEN_SYSCALL): Likewise.
19098         (__ASSUME_ACCEPT_SYSCALL): Likewise.
19099         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
19100         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
19101         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
19102         (__ASSUME_SEND_SYSCALL): Likewise.
19103         (__ASSUME_SENDTO_SYSCALL): Likewise.
19104         (__ASSUME_RECV_SYSCALL): Likewise.
19105         (__ASSUME_RECVFROM_SYSCALL): Likewise.
19106         (__ASSUME_SHUTDOWN_SYSCALL): Likewise.
19107         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
19108         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
19109         (__ASSUME_SENDMSG_SYSCALL): Likewise.
19110         (__ASSUME_RECVMSG_SYSCALL): Likewise.
19111         * sysdeps/unix/sysv/linux/sh/kernel-features.h
19112         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SOCKET_SYSCALL):
19113         Likewise.
19114         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_BIND_SYSCALL):
19115         Likewise.
19116         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_CONNECT_SYSCALL):
19117         Likewise.
19118         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_LISTEN_SYSCALL):
19119         Likewise.
19120         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_ACCEPT_SYSCALL):
19121         Likewise.
19122         [__LINUX_KERNEL_VERSION >= 0x020625]
19123         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
19124         [__LINUX_KERNEL_VERSION >= 0x020625]
19125         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
19126         [__LINUX_KERNEL_VERSION >= 0x020625]
19127         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
19128         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SEND_SYSCALL):
19129         Likewise.
19130         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDTO_SYSCALL):
19131         Likewise.
19132         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECV_SYSCALL):
19133         Likewise.
19134         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVFROM_SYSCALL):
19135         Likewise.
19136         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SHUTDOWN_SYSCALL):
19137         Likewise.
19138         [__LINUX_KERNEL_VERSION >= 0x020625]
19139         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
19140         [__LINUX_KERNEL_VERSION >= 0x020625]
19141         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
19142         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDMSG_SYSCALL):
19143         Likewise.
19144         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVMSG_SYSCALL):
19145         Likewise.
19146
19147 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
19148
19149         * sysdeps/unix/sysv/linux/mips/configure.ac (has-mpf64): Define to
19150         record the current if the current ABI and CPU support the FP64
19151         extension.
19152         (has-modd-spreg): Define to record the current if the current ABI and
19153         CPU support 32-bit floating point values in odd FPU registers.
19154         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
19155         * sysdeps/mips/Makefile (tst-abi-fpxxomod): Only build when
19156         $(has-modd-spreg) equals yes.
19157         (tst-abi-fp64amod): Only build when $(has-mpf64) equals yes.
19158         (tst-abi-fp64mod): Only build when both $(has-mpf64) and
19159         $(has-modd-spreg) equal yes.
19160
19161 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
19162
19163         * sysdeps/unix/grantpt.c (grantpt): Call__basename instead of
19164         basename.
19165
19166 2015-12-08  Siddhesh Poyarekar  <sid@reserved-bit.com>
19167
19168         * benchtests/Makefile (bench-math): Move ffs and ffsll...
19169         (bench-string): ... here.
19170         (bench): Add bench-string.
19171         (string-bench, wcsmbs-bench, stdlib-bench, stdio-common-bench): Rename
19172         to *-benchset to reflect what they are.
19173         (benchset): Adjust.
19174
19175         * benchtests/sincos-inputs: Add inputs from sin-inputs and
19176         cos-inputs.
19177
19178 2015-12-07  Andrew Senkevich  <andrew.senkevich@intel.com>
19179
19180         * sysdeps/x86/fpu/bits/math-vector.h: W/o -fopenmp use GCC 6.*
19181         __attribute__ ((__simd__)) for vector math function declarations.
19182
19183 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
19184
19185         Fix typo in strncat, wcsncat manual entries
19186         * manual/string.texi (Copying and Concatenation): Fix typos in
19187         sample implementations of strncat and wcsncat, by having them use
19188         the old value of the destination length, not the new one.
19189
19190 2015-12-04  Joseph Myers  <joseph@codesourcery.com>
19191
19192         [BZ #16961]
19193         [BZ #16962]
19194         * math/s_nan.c (__nan): Use __strtod_nan instead of constructing a
19195         string on the stack for strtod.
19196         * math/s_nanf.c (__nanf): Use __strtof_nan instead of constructing
19197         a string on the stack for strtof.
19198         * math/s_nanl.c (__nanl): Use __strtold_nan instead of
19199         constructing a string on the stack for strtold.
19200         * stdlib/Versions (libc): Add __strtof_nan, __strtod_nan and
19201         __strtold_nan to GLIBC_PRIVATE.
19202         * math/test-nan-overflow.c: New file.
19203         * math/test-nan-payload.c: Likewise.
19204         * math/Makefile (tests): Add test-nan-overflow and
19205         test-nan-payload.
19206
19207 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
19208
19209         Consistency about byte vs character in string.texi
19210         * manual/string.texi (String and Array Utilities):
19211         Distinguish more carefully among bytes, multibyte characters,
19212         and wide characters.  Use "byte" when talking about C 'char',
19213         to distinguish it more clearly from multibyte characters.
19214         Say "wide character" or "multibyte character" instead of
19215         "character", when a wide or multibyte character is intended.
19216         Similarly for "multibyte string" versus "string".
19217         Define these terms more carefully.
19218
19219 2015-12-03  Chris Metcalf  <cmetcalf@ezchip.com>
19220
19221         * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): New symbol.
19222         * sysdeps/microblaze/math_private.h (LDBL_CLASSIFY_COMPAT):
19223         Likewise.
19224         * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
19225         * sysdeps/nios2/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
19226         * sysdeps/sh/math_private.h: New file.
19227         * sysdeps/m68k/coldfire/fpu/math_private.h: Likewise.
19228         * sysdeps/ieee754/dbl-64/s_finite.c [defined NO_LONG_DOUBLE &&
19229         defined LDBL_CLASSIFY_COMPAT]: Create compat symbol for internal
19230         long double function name.
19231         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
19232         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
19233         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
19234         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
19235         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
19236         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
19237         Remove __finitel, __isinfl, and __isnanl.
19238         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
19239         Likewise.
19240         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19241         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
19242         Remove __finitel.
19243         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
19244         Likewise.
19245         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19246
19247 2015-12-03  Andrew Senkevich  <andrew.senkevich@intel.com>
19248
19249         * math/Makefile ($(inst_libdir)/libm.so): Corrected path to
19250         installed libmvec_nonshared.a.
19251
19252 2015-12-03  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
19253
19254         * sysdeps/powerpc/Makefile (sysdep-dl-routines): Add hwcapinfo.
19255         (sysdep_routines): Likewise.
19256         (sysdep-rtld-routines): Likewise.
19257         [$(subdir) = nptl](tests): Add test-get_hwcap and test-get_hwcap-static
19258         [$(subdir) = nptl](tests-static): test-get_hwcap-static
19259         * sysdeps/powerpc/Versions: Added new
19260         __parse_hwcap_and_convert_at_platform symbol to GLIBC-2.23.
19261         * sysdeps/powerpc/hwcapinfo.c: New file.
19262         (__tcb_parse_hwcap_and_convert_at_platform): New function to initialize
19263         and parse hwcap, hwcap2 and platform number information.
19264         * sysdeps/powerpc/hwcapinfo.h: New file.  Creates global variables
19265         to store HWCAP+HWCAP2 and platform number.
19266         * sysdeps/powerpc/nptl/tcb-offsets.sym: Added new offsets
19267         for HWCAP+HWCAP2 and platform number in the TCB.
19268         * sysdeps/powerpc/nptl/tls.h: New functionality.  Stores
19269         the HWCAP, HWCAP2 and platform number in the TCB.
19270         (dtv): Added new fields for HWCAP+HWCAP2 and platform number.
19271         (TLS_INIT_TP): Included calls to add the hwcap and
19272         at_platform values in the TCB in TP initialization.
19273         (TLS_DEFINE_INIT_TP): Likewise.
19274         (THREAD_GET_HWCAP): New macro.
19275         (THREAD_SET_HWCAP): Likewise.
19276         (THREAD_GET_AT_PLATFORM): Likewise.
19277         (THREAD_SET_AT_PLATFORM): Likewise.
19278         * sysdeps/powerpc/powerpc32/dl-machine.h:
19279         (dl_platform_init): New function that calls
19280         __parse_hwcap_and_convert_at_platform for the dymanic linking case for
19281         powerpc32.
19282         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise, for powerpc64.
19283         * sysdeps/powerpc/test-get_hwcap-static.c: New file.  Testcase for
19284         this functionality, static linking case.
19285         * sysdeps/powerpc/test-get_hwcap.c: New file.  Likewise, dynamic
19286         linking case.
19287         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Added call to
19288         __parse_hwcap_and_convert_at_platform for the static linking case.
19289         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist:
19290         Included the new __parse_hwcap_and_convert_at_platform symbol in the
19291         ABI list for GLIBC 2.23.
19292         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist:
19293         Likewise.
19294         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist:
19295         Likewise.
19296
19297 2015-12-02  Ludovic Courtès  <ludo@gnu.org>
19298
19299         * configure.ac: Use 'pwd -P' instead of '/bin/pwd'.
19300         * configure: Regenerate.
19301         * io/ftwtest-sh: Use 'pwd -P' instead of '/bin/pwd'.
19302         * scripts/rellns-sh: Likewise.  Remove 'pwd' variable.
19303
19304 2015-12-02  Carlos O'Donell  <carlos@redhat.com>
19305
19306         * iconvdata/ibm930.c: Add comment explaining encoding uses.
19307         * iconvdata/ibm933.c: Likewise.
19308         * iconvdata/ibm935.c: Likewise.
19309         * iconvdata/ibm937.c: Likewise.
19310         * iconvdata/ibm939.c: Likewise.
19311
19312 2015-12-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19313
19314         * nptl/tst-cancel20.c (do_one_test): Move the pipe closing after
19315         pthread_join.
19316         * nptl/tst-cancel21.c (tf): Likewise.
19317
19318 2015-12-01  H.J. Lu  <hongjiu.lu@intel.com>
19319
19320         [BZ #19313]
19321         * bits/typesizes.h (__CPU_MASK_TYPE): New.
19322         * sysdeps/mach/hurd/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
19323         * sysdeps/nacl/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
19324         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__CPU_MASK_TYPE):
19325         Likewise.
19326         * sysdeps/unix/sysv/linux/generic/bits/typesizes.h (__CPU_MASK_TYPE):
19327         Likewise.
19328         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h (__CPU_MASK_TYPE):
19329         Likewise.
19330         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__CPU_MASK_TYPE):
19331         Likewise.
19332         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h (__CPU_MASK_TYPE):
19333         * sysdeps/unix/sysv/linux/bits/sched.h (__cpu_mask): Replace
19334         unsigned long int with __CPU_MASK_TYPE.
19335
19336 2015-12-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19337
19338         * sysdeps/aarch64/libm-test-ulps: Regenerated.
19339
19340 2015-12-01  Joseph Myers  <joseph@codesourcery.com>
19341
19342         * sysdeps/ieee754/dbl-64/e_sqrt.c: Do not include uroot.h.
19343         (__ieee754_sqrt): Use hex float constants instead of tm256.x and
19344         t512.x.
19345         * sysdeps/ieee754/dbl-64/uroot.h: Remove file.
19346
19347 2015-11-30  Amit Pawar  <amit.pawar@amd.com>
19348
19349         [BZ #19214]
19350         * sysdeps/x86/cpu-features.c (get_common_indeces): Add an
19351         argument to return extended model.  Update family and model
19352         with extended family and model when family == 0x0f.
19353         (init_cpu_features): Updated.
19354
19355 2015-11-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19356
19357         The RPC interface used by mmap uses the unsigned vm_offset_t, not the
19358         signed off_t, so 32bit bigger than 2GiB values are fine actually.
19359
19360         * sysdeps/mach/hurd/mmap64.c: New file.
19361
19362 2015-11-29  Thomas Schwinge  <thomas@codesourcery.com>
19363
19364         * sysdeps/mach/hurd/fork.c (__fork): Install correct number of send
19365         rights for its main user thread in NEWTASK.
19366
19367 2015-11-28  Maciej W. Rozycki  <macro@imgtec.com>
19368
19369         * sysdeps/mips/fpu_control.h (_FPU_RESERVED): Include ABS2008.
19370         (_FPU_DEFAULT, _FPU_IEEE) [__mips_nan2008]: Set ABS2008.
19371
19372 2015-11-27  Carlos O'Donell  <carlos@redhat.com>
19373
19374         [BZ #14259]
19375         * Makeconfig: Rename localedir to complocaledir.
19376         Rename inst_localedir to inst_complocaledir.
19377         * aclocal.m4: Rename libc_cv_localedir to libc_cv_complocaledir.
19378         * config.make.in: Use complocaledir and libc_cv_complocaledir.
19379         * configure.ac: Use libc_cv_complocaledir.
19380         * configure: Regenerate.
19381         * locale/Makefile: Use complocaledir. Rename define -DLOCALEDIR to
19382         -DCOMPLOCALEDIR.
19383         * locale/findlocale.c: Use COMPLOCALEDIR.
19384         * locale/loadarchive.c: Likewise.
19385         * locale/programs/locale.c: Likewise.
19386         * locale/programs/localedef.c: Likewise.
19387         * locale/programs/locarchive.c: Likewise.
19388         * localedata/Makefile: Use inst_complocaledir.
19389         * sysdeps/gnu/configure: Regenerate.
19390         * sysdeps/hppa/configure: Regenerate.
19391         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
19392         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
19393         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
19394         * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
19395         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
19396         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
19397         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
19398
19399 2015-11-27  Andrew Senkevich  <andrew.senkevich@intel.com>
19400
19401         [BZ #19058]
19402         * math/Makefile ($(inst_libdir)/libm.so): Added libmvec_nonshared.a to
19403         AS_NEEDED.
19404         * sysdeps/x86/fpu/bits/math-vector.h: Removed code with asm aliases
19405         workaround.
19406         * sysdeps/x86_64/fpu/Makefile (libmvec-support,
19407         libmvec-static-only-routines): Added new file.
19408         * sysdeps/x86_64/fpu/svml_finite_alias.S: New file.
19409
19410 2015-11-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19411
19412         * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Destroy reply port
19413         of interrupted RPC instead of restoring it.
19414
19415         * sysdeps/i386/setjmp.S (__sigsetjmp): Add hidden_def.
19416         * sysdeps/mach/hurd/accept4.c (__libc_accept4): Remove
19417         libc_hidden_def.
19418         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Initialize to get
19419         into initialized data instead of common. Define rtld_hidden_data_def.
19420         * sysdeps/mach/hurd/fxstatat64.c (__fxstatat64): Add libc_hidden_def.
19421         * sysdeps/mach/hurd/if_index.c (__if_freenameindex): Add
19422         libc_hidden_def.
19423         (if_freenameindex): Add libc_hidden_weak.
19424         (if_nameindex): Add libc_hidden_weak.
19425         * sysdeps/mach/hurd/open.c (_open64): Rename libc_hidden_weak into
19426         __open64.
19427         * sysdeps/mach/hurd/sigwait.c (__sigwait): Add libc_hidden_def.
19428         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Add libc_hidden_def.
19429         * sysdeps/mach/nanosleep.c: Include <time.h>
19430         (__nanosleep): Rename to __libc_nanosleep.
19431         (__nanosleep): Add weak_alias.
19432         (nanosleep): Update alias.
19433
19434 2015-11-24  Joseph Myers  <joseph@codesourcery.com>
19435
19436         * stdlib/strtod_nan.c: New file.
19437         * stdlib/strtod_nan_double.h: Likewise.
19438         * stdlib/strtod_nan_float.h: Likewise.
19439         * stdlib/strtod_nan_main.c: Likewise.
19440         * stdlib/strtod_nan_narrow.h: Likewise.
19441         * stdlib/strtod_nan_wide.h: Likewise.
19442         * stdlib/strtof_nan.c: Likewise.
19443         * stdlib/strtold_nan.c: Likewise.
19444         * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Likewise.
19445         * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Likewise.
19446         * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Likewise.
19447         * wcsmbs/wcstod_nan.c: Likewise.
19448         * wcsmbs/wcstof_nan.c: Likewise.
19449         * wcsmbs/wcstold_nan.c: Likewise.
19450         * stdlib/Makefile (routines): Add strtof_nan, strtod_nan and
19451         strtold_nan.
19452         * wcsmbs/Makefile (routines): Add wcstod_nan, wcstold_nan and
19453         wcstof_nan.
19454         * include/stdlib.h (__strtof_nan): Declare and use
19455         libc_hidden_proto.
19456         (__strtod_nan): Likewise.
19457         (__strtold_nan): Likewise.
19458         (__wcstof_nan): Likewise.
19459         (__wcstod_nan): Likewise.
19460         (__wcstold_nan): Likewise.
19461         * include/wchar.h (____wcstoull_l_internal): Declare.
19462         * stdlib/strtod_l.c: Do not include <ieee754.h>.
19463         (____strtoull_l_internal): Remove declaration.
19464         (STRTOF_NAN): Define macro.
19465         (SET_MANTISSA): Remove macro.
19466         (STRTOULL): Likewise.
19467         (____STRTOF_INTERNAL): Use STRTOF_NAN to parse NaN payload.
19468         * stdlib/strtof_l.c (____strtoull_l_internal): Remove declaration.
19469         (STRTOF_NAN): Define macro.
19470         (SET_MANTISSA): Remove macro.
19471         * sysdeps/ieee754/ldbl-128/strtold_l.c (STRTOF_NAN): Define macro.
19472         (SET_MANTISSA): Remove macro.
19473         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (STRTOF_NAN): Define
19474         macro.
19475         (SET_MANTISSA): Remove macro.
19476         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (STRTOF_NAN): Define
19477         macro.
19478         (SET_MANTISSA): Remove macro.
19479         * sysdeps/ieee754/ldbl-96/strtold_l.c (STRTOF_NAN): Define macro.
19480         (SET_MANTISSA): Remove macro.
19481         * wcsmbs/wcstod_l.c (____wcstoull_l_internal): Remove declaration.
19482         * wcsmbs/wcstof_l.c (____wcstoull_l_internal): Likewise.
19483         * wcsmbs/wcstold_l.c (____wcstoull_l_internal): Likewise.
19484
19485         [BZ #19266]
19486         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check directly for
19487         upper case and lower case letters inside NAN(), not using TOLOWER.
19488         * stdlib/tst-strtod-nan-locale-main.c: New file.
19489         * stdlib/tst-strtod-nan-locale.c: Likewise.
19490         * stdlib/Makefile (tests): Add tst-strtod-nan-locale.
19491         [$(run-built-tests) = yes] ($(objpfx)tst-strtod-nan-locale.out):
19492         Depend on $(gen-locales).
19493         ($(objpfx)tst-strtod-nan-locale): Depend on $(libm).
19494         * wcsmbs/tst-wcstod-nan-locale.c: New file.
19495         * wcsmbs/Makefile (tests): Add tst-wcstod-nan-locale.
19496         [$(run-built-tests) = yes] ($(objpfx)tst-wcstod-nan-locale.out):
19497         Depend on $(gen-locales).
19498         ($(objpfx)tst-wcstod-nan-locale): Depend on $(libm).
19499
19500 2015-11-24  Chris Metcalf  <cmetcalf@ezchip.com>
19501
19502         * misc/tst-tsearch.c (TIMEOUT): Set to 10.
19503
19504         * sysdeps/tile/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
19505         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Add
19506         __finitel, __isinfl, and __isnanl.
19507         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
19508         Likewise.
19509         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19510         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Add
19511         __finitel.
19512         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
19513         Likewise.
19514         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19515
19516 2015-11-24  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
19517
19518         * malloc/memusage.c (me): Remove redundant getenv call.
19519
19520 2015-10-24  Florian Weimer  <fweimer@redhat.com>
19521
19522         [BZ #19143]
19523         [BZ #19164]
19524         * nptl/check-cpuset.h: Remove.
19525         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
19526         Remove CPU set size check.
19527         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
19528         Likewise.
19529         * sysdeps/unix/sysv/linux/check-cpuset.h: Remove.
19530         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
19531         (__kernel_cpumask_size, __determine_cpumask_size): Remove.
19532         (__pthread_setaffinity_new): Remove CPU set size check.
19533         * sysdeps/unix/sysv/linux/sched_setaffinity.c
19534         (__kernel_cpumask_size): Remove.
19535         (__sched_setaffinity_new): Remove CPU set size check.
19536         * manual/threads.texi (Default Thread Attributes): Remove stale
19537         reference to check_cpuset_attr, determine_cpumask_size in comment.
19538         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == posix] (tests):
19539         Remove tst-getcpu.  Add tst-affinity, tst-affinity-pid.
19540         [$(subdir) == nptl] (tests): Add tst-thread-affinity-pthread,
19541         tst-thread-affinity-pthread2, tst-thread-affinity-sched.
19542         * sysdeps/unix/sysv/linux/tst-affinity.c: New file.
19543         * sysdeps/unix/sysv/linux/tst-affinity-pid.c: New file.
19544         * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c: New skeleton test file.
19545         * sysdeps/unix/sysv/linux/tst-thread-affinity-sched.c: New file.
19546         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread.c: New file.
19547         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread2.c: New file.
19548         * sysdeps/unix/sysv/linux/tst-thread-skeleton-affinity.c: New
19549         skeleton test file.
19550         * sysdeps/unix/sysv/linux/tst-getcpu.c: Remove.  Superseded by
19551         tst-affinity-pid.
19552
19553 2015-11-24  Florian Weimer  <fweimer@redhat.com>
19554
19555         * scripts/update-abilist.sh: New file.
19556         * Makefile (+subdir_targets): Add subdir_update-all-abi.
19557         * Makerules (update-all-abi-%, update-all-abi)
19558         (subdir_update-all-abi): New targets.
19559         * elf/Makefile (update-all-abi): New target.
19560
19561 2015-11-24  Florian Weimer  <fweimer@redhat.com>
19562
19563         Replace MUTEX_INITIALIZER with _LIBC_LOCK_INITIALIZER in generic code.
19564         * sysdeps/mach/hurd/libc-lock.h (_LIBC_LOCK_INITIALIZER): Define.
19565         (__libc_lock_define_initialized): Use it.
19566         * sysdeps/nptl/libc-lockP.h (_LIBC_LOCK_INITIALIZER): Define.
19567         * malloc/arena.c (list_lock): Use _LIBC_LOCK_INITIALIZER.
19568         * malloc/malloc.c (main_arena): Likewise.
19569         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): Remove.
19570         * sysdeps/nptl/malloc-machine.h (MUTEX_INITIALIZER): Remove.
19571
19572 2015-11-23  Joseph Myers  <joseph@codesourcery.com>
19573
19574         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
19575         (PTRACE_O_EXITKILL): New value in enum __ptrace_setoptions.
19576         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
19577         (PTRACE_O_MASK): Update value.
19578         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_O_EXITKILL):
19579         New value in enum __ptrace_setoptions.
19580         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
19581         (PTRACE_O_MASK): Update value.
19582         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
19583         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
19584         (PTRACE_O_MASK): Update value.
19585         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
19586         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
19587         (PTRACE_O_MASK): Update value.
19588         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
19589         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
19590         (PTRACE_O_MASK): Update value.
19591         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_SUSPEND_SECCOMP):
19592         New value in enum __ptrace_setoptions.
19593         (PTRACE_O_MASK): Update value.
19594         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_O_EXITKILL):
19595         New value in enum __ptrace_setoptions.
19596         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
19597         (PTRACE_O_MASK): Update value.
19598
19599         * sysdeps/unix/sysv/linux/netpacket/packet.h (PACKET_COPY_THRESH):
19600         New macro.
19601         (PACKET_AUXDATA): Likewise.
19602         (PACKET_ORIGDEV): Likewise.
19603         (PACKET_VERSION): Likewise.
19604         (PACKET_HDRLEN): Likewise.
19605         (PACKET_RESERVE): Likewise.
19606         (PACKET_TX_RING): Likewise.
19607         (PACKET_LOSS): Likewise.
19608         (PACKET_VNET_HDR): Likewise.
19609         (PACKET_TX_TIMESTAMP): Likewise.
19610         (PACKET_TIMESTAMP): Likewise.
19611         (PACKET_FANOUT): Likewise.
19612         (PACKET_TX_HAS_OFF): Likewise.
19613         (PACKET_QDISC_BYPASS): Likewise.
19614         (PACKET_ROLLOVER_STATS): Likewise.
19615         (PACKET_FANOUT_DATA): Likewise.
19616         (PACKET_MR_UNICAST): Likewise.
19617
19618         [BZ #19242]
19619         * stdlib/strtol_l.c (ISALPHA): Use _nl_C_locobj_ptr for locale.
19620         (TOUPPER): Likewise.
19621         * stdlib/tst-strtol-locale-main.c: New file.
19622         * stdlib/tst-strtol-locale.c: Likewise.
19623         * stdlib/Makefile (tests): Add tst-strtol-locale.
19624         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.ISO-8859-9.
19625         [$(run-built-tests) = yes] ($(objpfx)tst-strtol-locale.out):
19626         Depend on $(gen-locales).
19627         * wcsmbs/tst-wcstol-locale.c: New file.
19628         * wcsmbs/Makefile (tests): Add tst-wcstol-locale.
19629         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.UTF-8 and
19630         tr_TR.ISO-8859-9.
19631         [$(run-built-tests) = yes] ($(objpfx)tst-wcstol-locale.out):
19632         Depend on $(gen-locales).
19633
19634 2015-11-20  Roland McGrath  <roland@hack.frob.com>
19635
19636         * sysdeps/nacl/dl-map-segments.h (_dl_map_segments): Use
19637         __glibc_likely instead of __builtin_expect.  After falling back to
19638         dyncode_create in a non-ET_DYN case, use the allocate_code_data
19639         system interface to register the code pages as occupied.
19640
19641 2015-11-20  Joseph Myers  <joseph@codesourcery.com>
19642
19643         * sysdeps/arm/math_private.h [!_MATH_PRIVATE_H]: Change guard to
19644         [!ARM_MATH_PRIVATE_H].
19645         [!ARM_MATH_PRIVATE_H] (ARM_MATH_PRIVATE_H): Define macro.
19646         * sysdeps/hppa/math_private.h [!_MATH_PRIVATE_H]: Change guard to
19647         [!HPPA_MATH_PRIVATE_H].
19648         [!HPPA_MATH_PRIVATE_H] (HPPA_MATH_PRIVATE_H): Define macro.
19649         * sysdeps/i386/fpu/math_private.h [!_MATH_PRIVATE_H]: Change guard
19650         to [!I386_MATH_PRIVATE_H].
19651         [!I386_MATH_PRIVATE_H] (I386_MATH_PRIVATE_H): Define macro.
19652         * sysdeps/m68k/m680x0/fpu/math_private.h [!_MATH_PRIVATE_H]:
19653         Change guard to [!M68K_MATH_PRIVATE_H].
19654         [!M68K_MATH_PRIVATE_H] (M68K_MATH_PRIVATE_H): Define macro.
19655         * sysdeps/microblaze/math_private.h [!_MATH_PRIVATE_H]: Change
19656         guard to [!MICROBLAZE_MATH_PRIVATE_H].
19657         [!MICROBLAZE_MATH_PRIVATE_H] (MICROBLAZE_MATH_PRIVATE_H): Define
19658         macro.
19659         * sysdeps/mips/math_private.h [!_MATH_PRIVATE_H]: Change guard to
19660         [!MIPS_MATH_PRIVATE_H].
19661         [!MIPS_MATH_PRIVATE_H] (MIPS_MATH_PRIVATE_H): Define macro.
19662         * sysdeps/nios2/math_private.h [!_MATH_PRIVATE_H]: Change guard to
19663         [!NIO2_MATH_PRIVATE_H].
19664         [!NIO2_MATH_PRIVATE_H] (NIO2_MATH_PRIVATE_H): Define macro.
19665         * sysdeps/tile/math_private.h [!_MATH_PRIVATE_H]: Change guard to
19666         [!TILE_MATH_PRIVATE_H].
19667         [!TILE_MATH_PRIVATE_H] (TILE_MATH_PRIVATE_H): Define macro.
19668
19669         [BZ #15421]
19670         * sysdeps/ieee754/s_signgam.c (signgam): Rename to __signgam,
19671         initialize with 0 and define as weak alias of __signgam.
19672         * include/math.h [!_ISOMAC] (__signgam): Declare.
19673         * math/Makefile (libm-calls): Add w_lgamma_compat.
19674         (tests): Add test-signgam-uchar, test-signgam-uchar-init,
19675         test-signgam-uint, test-signgam-uint-init, test-signgam-ullong and
19676         test-signgam-ullong-init.
19677         (tests-static): Add test-signgam-uchar-static,
19678         test-signgam-uchar-init-static, test-signgam-uint-static,
19679         test-signgam-uint-init-static, test-signgam-ullong-static and
19680         test-signgam-ullong-init-static.
19681         (CFLAGS-test-signgam-uchar.c): New variable.
19682         (CFLAGS-test-signgam-uchar-init.c): Likewise.
19683         (CFLAGS-test-signgam-uchar-static.c): Likewise.
19684         (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
19685         (CFLAGS-test-signgam-uint.c): Likewise.
19686         (CFLAGS-test-signgam-uint-init.c): Likewise.
19687         (CFLAGS-test-signgam-uint-static.c): Likewise.
19688         (CFLAGS-test-signgam-uint-init-static.c): Likewise.
19689         (CFLAGS-test-signgam-ullong.c): Likewise.
19690         (CFLAGS-test-signgam-ullong-init.c): Likewise.
19691         (CFLAGS-test-signgam-ullong-static.c): Likewise.
19692         (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
19693         * math/Versions (libm): Add GLIBC_2.23.
19694         * math/lgamma-compat.h: New file.
19695         * math/test-signgam-main.c: Likewise.
19696         * math/test-signgam-uchar-init-static.c: Likewise.
19697         * math/test-signgam-uchar-init.c: Likewise.
19698         * math/test-signgam-uchar-static.c: Likewise.
19699         * math/test-signgam-uchar.c: Likewise.
19700         * math/test-signgam-uint-init-static.c: Likewise.
19701         * math/test-signgam-uint-init.c: Likewise.
19702         * math/test-signgam-uint-static.c: Likewise.
19703         * math/test-signgam-uint.c: Likewise.
19704         * math/test-signgam-ullong-init-static.c: Likewise.
19705         * math/test-signgam-ullong-init.c: Likewise.
19706         * math/test-signgam-ullong-static.c: Likewise.
19707         * math/test-signgam-ullong.c: Likewise.
19708         * math/w_lgamma.c: Rename to w_lgamma_main.c and replace by
19709         wrapper of w_lgamma_main.c.
19710         * math/w_lgamma_compat.c: New file.
19711         * math/w_lgamma_compatf.c: Likewise.
19712         * math/w_lgamma_compatl.c: Likewise.
19713         * math/w_lgamma_main.c: New file.  Based on w_lgamma.c.  Include
19714         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
19715         defining compatibility symbols.
19716         (__lgamma): Change to LGFUNC (__lgamma).  Use CALL_LGAMMA.
19717         * math/w_lgammaf.c: Rename to w_lgammaf_main.c and replace by
19718         wrapper of w_lgammaf_main.c.
19719         * math/w_lgammaf_main.c: New file.  Based on w_lgammaf.c.  Include
19720         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
19721         defining compatibility symbols.
19722         (__lgammaf): Change to LGFUNC (__lgammaf).  Use CALL_LGAMMA.
19723         * math/w_lgammal.c: Rename to w_lgammal_main.c and replace by
19724         wrapper of w_lgammal_main.c.
19725         * math/w_lgammal_main.c: New file.  Based on w_lgammal.c.  Include
19726         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
19727         defining compatibility symbols.
19728         (__lgammal): Change to LGFUNC (__lgammal).  Use CALL_LGAMMA.
19729         * sysdeps/ia64/fpu/lgamma-compat.h: New file.
19730         * sysdeps/ia64/fpu/w_lgamma.c: Move to ....
19731         * sysdeps/ia64/fpu/w_lgamma_main.c: ...here.  Include
19732         <lgamma-compat.h>.
19733         (__ieee754_lgamma): Change to LGFUNC (lgamma).  Use CALL_LGAMMA.
19734         (__ieee754_gamma): Define as alias.
19735         * sysdeps/ia64/fpu/w_lgammaf.c: Move to ....
19736         * sysdeps/ia64/fpu/w_lgammaf_main.c: ...here.  Include
19737         <lgamma-compat.h>.
19738         (__ieee754_lgammaf): Change to LGFUNC (lgammaf).  Use CALL_LGAMMA.
19739         (__ieee754_gammaf): Define as alias.
19740         * sysdeps/ia64/fpu/w_lgammal.c: Move to ....
19741         * sysdeps/ia64/fpu/w_lgammal_main.c: ...here.  Include
19742         <lgamma-compat.h>.
19743         (__ieee754_lgammal): Change to LGFUNC (lgammal).  Use CALL_LGAMMA.
19744         (__ieee754_gammal): Define as alias.
19745         * sysdeps/ieee754/ldbl-opt/w_lgamma.c: Move to ....
19746         * sysdeps/ieee754/ldbl-opt/w_lgamma_compat.c: ...here.  Include
19747         <math/w_lgamma_compat.c>.
19748         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__lgammal_dbl_compat):
19749         Define as alias of __lgamma_compat and use in defining lgammal.
19750         * sysdeps/ieee754/ldbl-opt/w_lgammal.c: Move to ....
19751         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c: ...here.  Include
19752         <math/lgamma-compat.h> and <math/w_lgamma_compatl.c>.
19753         (USE_AS_COMPAT): New macro.
19754         (LGAMMA_OLD_VER): Undefine and redefine.
19755         (lgammal): Do not define here.
19756         (gammal): Only define here if [GAMMA_ALIAS].
19757         * conform/linknamespace.pl (@whitelist): Remove signgam.
19758         * sysdeps/nacl/libm.abilist: Update.
19759         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19760         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19761         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19762         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19763         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19764         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19765         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19766         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19767         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19768         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19769         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19770         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19771         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
19772         Likewise.
19773         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
19774         Likewise.
19775         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
19776         Likewise.
19777         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
19778         Likewise.
19779         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19780         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19781         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19782         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19783         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19784         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
19785         Likewise.
19786         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
19787         Likewise.
19788         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19789         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19790         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19791
19792 2015-11-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19793
19794         [BZ #16364]
19795         * sysdeps/unix/sysv/linux/sleep.c: Remove file.
19796         * sysdeps/posix/sleep.c (__sleep): Simplify cancellation handling.
19797
19798 2015-11-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
19799
19800         * sysdeps/s390/fpu/bits/mathinline.h:
19801         Use __asm__ [__volatile__] instead of asm [volatile].
19802         * sysdeps/s390/abort-instr.h: Likewise.
19803         * sysdeps/s390/atomic-machine.h: Likewise.
19804         * sysdeps/s390/bits/string.h: Likewise.
19805         * sysdeps/s390/dl-tls.h: Likewise.
19806         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
19807         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
19808         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
19809         * sysdeps/s390/fpu/fesetround.c: Likewise.
19810         * sysdeps/s390/fpu/fpu_control.h: Likewise.
19811         * sysdeps/s390/fpu/s_fma.c: Likewise.
19812         * sysdeps/s390/fpu/s_fmaf.c: Likewise.
19813         * sysdeps/s390/memusage.h: Likewise.
19814         * sysdeps/s390/multiarch/ifunc-resolve.h: Likewise.
19815         * sysdeps/s390/nptl/pthread_spin_lock.c: Likewise.
19816         * sysdeps/s390/nptl/pthread_spin_trylock.c: Likewise.
19817         * sysdeps/s390/nptl/pthread_spin_unlock.c: Likewise.
19818         * sysdeps/s390/nptl/tls.h: Likewise.
19819         * sysdeps/s390/s390-32/__longjmp.c: Likewise.
19820         * sysdeps/s390/s390-32/backtrace.c: Likewise.
19821         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
19822         * sysdeps/s390/s390-32/multiarch/memcmp.c: Likewise.
19823         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
19824         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
19825         * sysdeps/s390/s390-64/__longjmp.c: Likewise.
19826         * sysdeps/s390/s390-64/backtrace.c: Likewise.
19827         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
19828         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Likewise.
19829         * sysdeps/s390/s390-64/multiarch/memcmp.c: Likewise.
19830         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
19831         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
19832         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
19833         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
19834         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
19835         * sysdeps/unix/sysv/linux/s390/brk.c: Likewise.
19836         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
19837         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Likewise.
19838         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
19839         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: Likewise.
19840         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
19841         * sysdeps/unix/sysv/linux/s390/sysconf.c: Likewise.
19842
19843 2015-11-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19844             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
19845
19846         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
19847         Add lwarx hint, and use macro for acquire instruction.
19848         * sysdeps/powerpc/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
19849         Likewise.
19850         * sysdep/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Move to ...
19851         * sysdeps/powerpc/nptl/pthread_spin_unlock.c: ... here, and
19852         update to use new atomic macros.
19853
19854 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
19855
19856         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
19857         (__lll_trylock_elision): Fix setting of adapt_count.
19858         * sysdeps/unix/sysv/linux/powerpc/htm.h
19859         (_ABORT_PERSISTENT): Define to clarify persistent aborts.
19860         (_ABORT_NESTED_TRYLOCK): Renumber, and make persistent.
19861         (_ABORT_SYSCALL): Renumber, and clarify definition.
19862         (_ABORT_LOCK_BUSY): Renumber, make non-persistent.
19863
19864 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
19865
19866         * sysdeps/ieee754/ldbl-128ibm/mpn2ldl.c: Include gmp headers
19867         after system headers to prevent MIN/MAX redefinition.  Define
19868         HAVE_ALLOCA to preserve builtin alloca usage.
19869
19870 2015-11-17  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
19871
19872         * sysdeps/ieee754/dbl-64/s_sin.c (__sin)[IN_SINCOS]: Mark function
19873         static and don't set or restore rounding.
19874         (__cos)[IN_SINCOS]: Likewise.
19875         * sysdeps/ieee754/dbl-64/s_sincos.c: Include s_sin.c.
19876         (__sincos): Set and restore rounding mode.  Remove check for infinite
19877         or NaN input.
19878
19879         * sysdeps/ieee754/dbl-64/s_sin.c: Remove redundant else clauses.
19880
19881         * benchtests/scripts/bench.py (_print_arg_data): Mark output variables
19882         as used.
19883
19884 2015-11-16  Florian Weimer  <fweimer@redhat.com>
19885
19886         * math/test-signgam-finite-c99.c (_Mlong_double_): Undefine.
19887
19888 2015-11-14  H.J. Lu  <hongjiu.lu@intel.com>
19889
19890         * config.make.in (have-glob-dat-reloc): New.
19891         * configure.ac (libc_cv_has_glob_dat): New.  Set to yes if
19892         target supports GLOB_DAT relocaton. AC_SUBST.
19893         * configure: Regenerated.
19894         * elf/Makefile (tests): Add tst-prelink.
19895         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
19896         (tst-prelink-ENV): New.
19897         ($(objpfx)tst-prelink-conflict.out): Likewise.
19898         ($(objpfx)tst-prelink-cmp.out): Likewise.
19899         * sysdeps/x86/tst-prelink.c: Moved to ...
19900         * elf/tst-prelink.c: Here.
19901         * sysdeps/x86/tst-prelink.exp: Moved to ...
19902         * elf/tst-prelink.exp: Here.
19903         * sysdeps/x86/Makefile (tests): Don't add tst-prelink.
19904         (tst-prelink-ENV): Removed.
19905         ($(objpfx)tst-prelink-conflict.out): Likewise.
19906         ($(objpfx)tst-prelink-cmp.out): Likewise.
19907         (tests-special): Don't add $(objpfx)tst-prelink-cmp.out.
19908
19909 2015-11-13  Joseph Myers  <joseph@codesourcery.com>
19910
19911         [BZ #14551]
19912         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Include <errno.h>.
19913         (__mpn_construct_long_double): If high part overflows to infinity,
19914         set errno and recompute overflowed result of the correct sign.
19915         * sysdeps/ieee754/ldbl-128ibm/Makefile
19916         [$(subdir) = stdlib] (tests): Add tst-strtold-ldbl-128ibm.
19917         [$(subdir) = stdlib] ($(objpfx)tst-strtold-ldbl-128ibm): Depend on
19918         $(libm).
19919         * sysdeps/ieee754/ldbl-128ibm/tst-strtold-ldbl-128ibm.c: New file.
19920
19921 2015-11-12  Joseph Myers  <joseph@codesourcery.com>
19922
19923         [BZ #15479]
19924         [BZ #19238]
19925         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Save
19926         floating-point state after first operation on input.  Restore full
19927         state rather than just rounding mode.
19928         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
19929         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
19930         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
19931
19932         [BZ #19235]
19933         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Do not
19934         add 0.5 to integer arguments.
19935         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf):
19936         Likewise.
19937         (.LC2): New object.
19938
19939 2015-11-11  Mike Frysinger  <vapier@gentoo.org>
19940
19941         * scripts/pylintrc (reports): Set to no.
19942
19943 2015-11-10  Roland McGrath  <roland@hack.frob.com>
19944
19945         * elf/dl-load.c (open_verify): Take new argument FD.
19946         Skip __open call if passed FD is not -1.
19947         (_dl_map_object, open_path): Update callers.
19948         * elf/dl-sysdep-open.h: New file.
19949         * elf/dl-load.c: Include it.
19950         (_dl_map_object): Try _dl_sysdep_open_object before ldconfig cache.
19951         * sysdeps/nacl/dl-sysdep.c (_dl_sysdep_open_object): New function.
19952         * sysdeps/nacl/dl-sysdep-open.h: New file.
19953         * sysdeps/nacl/nacl-interface-list.h: Move nacl_irt_resource_open
19954         from libc to rtld.
19955
19956 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
19957
19958         [BZ #19228]
19959         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Save
19960         and restore full floating-point state.
19961         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
19962         Likewise.
19963         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
19964         Likewise.
19965         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
19966         Likewise.
19967         * math/test-nearbyint-except-2.c: New file.
19968         * math/Makefile (tests): Add test-nearbyint-except-2.
19969
19970 2015-11-10  H.J. Lu  <hongjiu.lu@intel.com>
19971
19972         [BZ #19178]
19973         * sysdeps/x86/Makefile (tests): Add tst-prelink.
19974         (tst-prelink-ENV): New.
19975         ($(objpfx)tst-prelink-conflict.out): Likewise.
19976         ($(objpfx)tst-prelink-cmp.out): Likewise.
19977         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
19978         * sysdeps/x86/tst-prelink.c: New file.
19979         * sysdeps/x86/tst-prelink.exp: Likewise.
19980
19981 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
19982
19983         * math/auto-libm-test-in: Add another test of pow.
19984         * math/auto-libm-test-out: Regenerated.
19985         * math/libm-test.inc (pow_test_data): Add another test.
19986
19987 2015-11-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19988
19989         [BZ #19219]
19990         * sysdeps/ia64/fpu/s_nearbyintl.S (__nearbyint): Define and
19991         weak_alias to nearbyintl.
19992
19993 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
19994
19995         * sysdeps/aarch64/bits/string.h: New file.
19996         (_STRING_ARCH_unaligned): Define.
19997
19998 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
19999
20000         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Remove __signbit*.
20001         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
20002         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
20003         * sysdeps/unix/sysv/linux/nios2/localplt.data: Likewise.
20004         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data: Likewise.
20005
20006 2015-11-09  Ulrich Drepper  <drepper@gmail.com>
20007
20008         * elf/dl-load.c (_dl_map_object_from_fd): Add additional parameter
20009         for original name of the DSO.  Add it to the name list of the DSO
20010         if it is actually given.
20011         (_dl_map_object): Keep track of whether an audit module rewrote
20012         the file name.  If yes, pass the original name to
20013         _dl_map_object_from_fd in a new parameter, otherwise NULL.  When
20014         debugging is enabled, log the change of the file name.
20015         * sysdeps/mach/hur/dl-sysdep.c: Adjust commented-out call to
20016         _dl_map_object_from_fd.
20017         * elf/Makefile: Build and run tst-audit11 and tst-audit12.
20018         * elf/tst-audit11.c: New file
20019         * elf/tst-auditmod11.c: New file.
20020         * elf/tst-audit11mod1.c: New file.
20021         * elf/tst-audit11mod2.c: New file.
20022         * elf/tst-audit11mod2.map: New file.
20023         * elf/tst-audit12.c: New file
20024         * elf/tst-auditmod12.c: New file.
20025         * elf/tst-audit12mod1.c: New file.
20026         * elf/tst-audit12mod2.c: New file.
20027         * elf/tst-audit12mod2.map: New file.
20028         * elf/tst-audit12mod3.c: New file.
20029
20030 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
20031
20032         * sysdeps/s390/longjmp.c (longjmp, _longjmp, siglongjmp):
20033         Don't create weak aliases,
20034         because versioned symbols are created later.
20035         * sysdeps/s390/s390-32/setjmp.S
20036         (setjmp, _setjmp): Remove weak and rename to an unique name
20037         in SHARED case due to existing versioned symbols.
20038         * sysdeps/s390/s390-64/setjmp.S: Likewise.
20039         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S
20040         (getcontext): Create weak alias only in non SHARED case.
20041         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
20042
20043 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
20044
20045         * sysdeps/unix/sysv/linux/s390/kernel-features.h:
20046         (__ASSUME_*_SYSCALL) Define new macros.
20047         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:
20048         Remove socketcall syscalls.
20049         * sysdeps/unix/sysv/linux/accept.c (__libc_accept):
20050         Use accept4 if defined __ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL.
20051         * sysdeps/unix/sysv/linux/recv.c (__libc_recv):
20052         Use recvfrom if defined __ASSUME_RECVFROM_FOR_RECV_SYSCALL.
20053         * sysdeps/unix/sysv/linux/send.c (__libc_send):
20054         Use sendto if defined __ASSUME_SENDTO_FOR_SEND_SYSCALL.
20055
20056 2015-11-09  Florian Weimer  <fweimer@redhat.com>
20057
20058         [BZ #12926]
20059         Terminate process on invalid netlink response.
20060         * sysdeps/unix/sysv/linux/netlinkaccess.h
20061         (__netlink_assert_response): Declare.
20062         * sysdeps/unix/sysv/linux/netlink_assert_response.c: New file.
20063         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == inet]
20064         (sysdep_routines): Add netlink_assert_response.
20065         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Call
20066         __netlink_assert_response.
20067         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
20068         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
20069         * sysdeps/unix/sysv/linux/Versions (GLIBC_PRIVATE): Add
20070         __netlink_assert_response.
20071
20072 2015-11-07  H.J. Lu  <hongjiu.lu@intel.com>
20073
20074         [BZ #19178]
20075         * elf/dl-lookup.c (RTYPE_CLASS_VALID): New.
20076         (RTYPE_CLASS_PLT): Likewise.
20077         (RTYPE_CLASS_COPY): Likewise.
20078         (RTYPE_CLASS_TLS): Likewise.
20079         (_dl_debug_bindings): Use RTYPE_CLASS_TLS and RTYPE_CLASS_VALID
20080         to set relocation type class for DL_DEBUG_PRELINK.  Keep only
20081         ELF_RTYPE_CLASS_PLT and ELF_RTYPE_CLASS_COPY bits for
20082         DL_DEBUG_PRELINK.
20083
20084 2015-11-06  Joseph Myers  <joseph@codesourcery.com>
20085
20086         * math/test-signgam-finite.c (RUN_TESTS): Correct messages about
20087         calls with argument -0.5.
20088         * math/test-signgam-finite-c99.c (RUN_TESTS): Likewise.
20089
20090         * configure.ac (libc_cv_z_nodelete): Remove configure test.
20091         (libc_cv_z_nodlopen): Likewise.
20092         (libc_cv_z_initfirst): Likewise.
20093         * configure: Regenerated.
20094
20095 2015-11-06  Florian Weimer  <fweimer@redhat.com>
20096
20097         Simplify abilist format to be line-based.
20098         * scripts/abilist.awk: Collect descriptors in the descs variable.
20099         (emit): Write descs variable and sort it
20100         externally, with sort.
20101         * sysdeps/**/*.abilist: Convert to new format.
20102
20103 2015-11-06  Mark Wielaard  <mjw@redhat.com>
20104
20105         [BZ #11460]
20106         * io/Makefile (routines): Add fts64.
20107         (tests): Add tst-fts and tst-fts-lfs.
20108         (CFLAGS-fts64.c): New.
20109         * io/Versions (GLIBC_2.23): New.
20110         * io/fts.c: Replace FTS with FTSOBJ, FTSENT with FTSENTRY. Use
20111         function defines FTS_OPEN, FTS_CLOSE, FTS_READ, FTS_SET and
20112         FTS_CHILDREN. Define FTSOBJ, FTSENTRY, FTS_OPEN, FTS_CLOSE,
20113         FTS_READ, FTS_SET, FTS_CHILDREN, INO_T, STAT and LSTAT if necessary.
20114         * io/fts.h (FTS64): New if _USE_LARGEFILE64.
20115         (FTSENT64): Likewise.
20116         (fts64_children): Likewise.
20117         (fts64_close): Likewise.
20118         (fts64_open): Likewise.
20119         (fts64_read): Likewise.
20120         (fts64_set): Likewise.
20121         * io/fts64.c: New file.
20122         * io/tst-fts.c: New test.
20123         * io/tst-fts-lfs.c: Likewise.
20124         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.23): Add
20125         GLIBC_2.23, fts64_children, fts64_close, fts64_open, fts64_read and
20126         fts64_set.
20127         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
20128         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
20129         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
20130         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
20131         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
20132         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
20133         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
20134         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
20135         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
20136         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
20137         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
20138         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
20139         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
20140         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
20141         Likewise.
20142         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
20143         Likewise.
20144         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
20145         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
20146         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
20147         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
20148         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
20149         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
20150         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
20151         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
20152         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
20153         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
20154         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
20155         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
20156         * sysdeps/wordsize-64/fts.c: New file.
20157         * sysdeps/wordsize-64/fts64.c: Likewise.
20158         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts.c: Likewise.
20159         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts64.c: Likewise.
20160         * sysdeps/unix/sysv/linux/x86_64/x32/fts.c: likewise.
20161         * sysdeps/unix/sysv/linux/x86_64/x32/fts64.c: likewise.
20162
20163 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
20164
20165         * math/libm-test.inc (NON_FINITE): New macro.
20166         (enable_test): Do not run tests flagged NON_FINITE if TEST_FINITE.
20167         * math/gen-libm-test.pl (show_exceptions): Add argument
20168         $non_finite.
20169         (parse_args): Update call to show_exceptions.
20170         * math/test-math-finite.h: New file.
20171         * math/test-math-no-finite.h: Likewise.
20172         * math/test-double-finite.c: Likewise.
20173         * math/test-float-finite.c: Likewise.
20174         * math/test-ldouble-finite.c: Likewise.
20175         * math/test-double.c: Include "test-math-no-finite.h".
20176         * math/test-float.c: Include "test-math-no-finite.h".
20177         * math/test-ldouble.c: Include "test-math-no-finite.h".
20178         * math/test-math-inline.h (TEST_FINITE): New macro.
20179         * math/test-math-vector.h (TEST_FINITE): Likewise.
20180         * math/Makefile (test-longdouble-yes): Add test-ldouble-finite.
20181         (libm-tests): Add test-float-finite and test-double-finite.
20182         ($(objpfx)test-float-finite.o): New dependency on
20183         $(objpfx)libm-test.stmp.
20184         ($(objpfx)test-double-finite.o): Likewise.
20185         ($(objpfx)test-ldouble-finite.o): Likewise.
20186         (libm-test-no-inline-cflags): New variable.
20187         (libm-test-finite-cflags): Likewise.
20188         (CFLAGS-test-float-finite.c): Likewise.
20189         (CFLAGS-test-double-finite.c): Likewise.
20190         (CFLAGS-test-ldouble-finite.c): Likewise.
20191         (CFLAGS-test-float.c): Use $(libm-test-no-inline-cflags).
20192         (CFLAGS-test-double.c): Likewise.
20193         (CFLAGS-test-ldouble.c): Likewise.
20194
20195 2015-11-05  Roland McGrath  <roland@hack.frob.com>
20196
20197         * io/fcntl.c (__fcntl): Add ... to prototype.
20198         * misc/ioctl.c (__ioctl): Likewise.
20199         * misc/syscall.c (syscall): Likewise.
20200
20201 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
20202
20203         * scripts/list-fixed-bugs.py: New file.
20204
20205         [BZ #19213]
20206         * sysdeps/i386/fpu/e_log.S (__log_finite): Ensure +0 is always
20207         returned for argument 1.
20208         * sysdeps/i386/fpu/e_logf.S (__logf_finite): Likewise.
20209         * sysdeps/i386/fpu/e_logl.S (__logl_finite): Likewise.
20210         * sysdeps/i386/i686/fpu/e_logl.S (__logl_finite): Likewise.
20211         * sysdeps/x86_64/fpu/e_log10l.S (__log10l_finite): Likewise.
20212         * sysdeps/x86_64/fpu/e_log2l.S (__log2l_finite): Likewise.
20213         * sysdeps/x86_64/fpu/e_logl.S (__logl_finite): Likewise.
20214
20215         [BZ #19211]
20216         * math/bits/math-finite.h (lgamma): Set signgam if [__USE_MISC ||
20217         __USE_XOPEN], not if [!__USE_ISOC99].
20218         (lgammaf): Likewise.
20219         (lgammal): Likewise.
20220         (gamma): Set signgam unconditionally, not if [!__USE_ISOC99].
20221         (gammaf): Likewise.
20222         (gammal): Likewise.
20223         * math/test-signgam-finite-c11.c: New file.
20224         * math/test-signgam-finite-c99.c: Likewise.
20225         * math/test-signgam-finite.c: Likewise.
20226         * math/Makefile (tests): Add test-signgam-finite,
20227         test-signgam-finite-c99 and test-signgam-finite-c11.
20228         (CFLAGS-test-signgam-finite.c): New variable.
20229         (CFLAGS-test-signgam-finite-c99.c): Likewise.
20230         (CFLAGS-test-signgam-finite-c11.c): Likewise.
20231
20232         [BZ #19212]
20233         * include/features.h [(_XOPEN_SOURCE - 0) >= 500]: Change
20234         conditional to [defined _XOPEN_SOURCE && (_XOPEN_SOURCE - 0) >=
20235         500].
20236         [_POSIX_C_SOURCE >= 1]: Change conditional to [defined
20237         _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 1].
20238         [(_POSIX_C_SOURCE - 0) >= 199309L]: Change conditional to [defined
20239         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199309L].
20240         [(_POSIX_C_SOURCE - 0) >= 199506L]: Change conditional to [defined
20241         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199506L].
20242         [(_POSIX_C_SOURCE - 0) >= 200112L]: Change conditional to [defined
20243         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200112L].
20244         [(_POSIX_C_SOURCE - 0) >= 200809L]: Change conditional to [defined
20245         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200809L].
20246
20247         [BZ #19209]
20248         * math/bits/math-finite.h (ldexp): Remove declaration.
20249         (ldexpf): Likewise.
20250         (ldexpl): Likewise.
20251
20252         [BZ #19205]
20253         * math/bits/math-finite.h (acosf): Condition declaration on
20254         [__USE_ISOC99].
20255         (acosl): Likewise.
20256         (acoshf): Likewise.
20257         (acoshl): Likewise.
20258         (asinf): Likewise.
20259         (asinl): Likewise.
20260         (atan2f): Likewise.
20261         (atan2l): Likewise.
20262         (atanhf): Likewise.
20263         (atanhl): Likewise.
20264         (coshf): Likewise.
20265         (coshl): Likewise.
20266         (expf): Likewise.
20267         (expl): Likewise.
20268         (fmodf): Likewise.
20269         (fmodl): Likewise.
20270         (hypot): Change condition to [__USE_XOPEN || __USE_ISOC99].
20271         (j0f): Change condition to [__USE_MISC && __USE_ISOC99].
20272         (j0l): Likewise.
20273         (y0f): Likewise.
20274         (y0l): Likewise.
20275         (j1f): Likewise.
20276         (j1l): Likewise.
20277         (y1f): Likewise.
20278         (y1l): Likewise.
20279         (jnf): Likewise.
20280         (jnl): Likewise.
20281         (ynf): Likewise.
20282         (ynl): Likewise.
20283         (lgammaf_r): Condition declaration on [__USE_ISOC99].
20284         (lgammal_r): Likewise.
20285         (__lgamma_r_finite): New declaration.
20286         (__lgammaf_r_finite): Likewise.
20287         (__lgammal_r_finite): Likewise.
20288         (lgamma): Use __lgamma_r_finite.
20289         (lgammaf): Condition definition on [__USE_ISOC99].  Use
20290         __lgammaf_r_finite.
20291         (lgammal): Condition definition on [__USE_ISOC99].  Use
20292         __lgammal_r_finite.
20293         (gamma): Do not define for [!__USE_MISC && __USE_XOPEN2K].  Use
20294         __lgamma_r_finite.
20295         (gammaf): Condition definition on [__USE_ISOC99].  Use
20296         __lgammaf_r_finite.
20297         (gammal): Condition definition on [__USE_ISOC99].  Use
20298         __lgammal_r_finite.
20299         (logf): Condition declaration on [__USE_ISOC99].
20300         (logl): Likewise.
20301         (log10f): Likewise.
20302         (log10l): Likewise.
20303         (ldexpf): Likewise.
20304         (ldexpl): Likewise.
20305         (powf): Likewise.
20306         (powl): Likewise.
20307         (remainder): Condition declaration on [__USE_XOPEN_EXTENDED ||
20308         __USE_ISOC99].
20309         (remainderf): Condition declaration on [__USE_ISOC99].
20310         (remainderl): Likewise.
20311         (scalb): Do not declare for [!__USE_MISC && __USE_XOPEN2K8].
20312         (scalbf): Change condition to [__USE_MISC && __USE_ISOC99].
20313         (scalbl): Likewise.
20314         (sinhf): Condition declaration on [__USE_ISOC99].
20315         (sinhl): Likewise.
20316         (sqrtf): Likewise.
20317         (sqrtl): Likewise.
20318
20319 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
20320
20321         * sysdeps/arm/atomic-machine.h
20322         [__GNUC_PREREQ (4, 7) && __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
20323         Change conditional to [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
20324         [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 && !__GNUC_PREREQ (4, 7)]:
20325         Remove conditional code.
20326         [!__GNUC_PREREQ (4, 7) || !__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
20327         Change conditional to [!__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
20328         * sysdeps/i386/sysdep.h [__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]:
20329         Change conditional to [__ASSEMBLER__].
20330         [__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
20331         [!__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]: Change conditional to
20332         [!__ASSEMBLER__].
20333         [!__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional
20334         code.
20335         * sysdeps/unix/sysv/linux/sh/atomic-machine.h (rNOSP): Remove
20336         conditional macro definitions.
20337         (__arch_compare_and_exchange_val_8_acq): Use "u" instead of rNOSP.
20338         (__arch_compare_and_exchange_val_16_acq): Likewise.
20339         (__arch_compare_and_exchange_val_32_acq): Likewise.
20340         (atomic_exchange_and_add): Likewise.
20341         (atomic_add): Likewise.
20342         (atomic_add_negative): Likewise.
20343         (atomic_add_zero): Likewise.
20344         (atomic_bit_set): Likewise.
20345         (atomic_bit_test_set): Likewise.
20346         * sysdeps/x86_64/atomic-machine.h [__GNUC_PREREQ (4, 7)]: Make
20347         code unconditional.
20348         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
20349
20350         * math/test-math-errno.h: New file.
20351         * math/test-math-inline.h (TEST_INLINE): Define to 1 instead of
20352         empty.
20353         (TEST_ERRNO): New macro.
20354         (TEST_EXCEPTIONS): Likewise.
20355         * math/test-math-no-inline.h (TEST_INLINE): Likewise.
20356         (TEST_EXCEPTIONS): Likewise.
20357         * math/test-math-vector.h (TEST_ERRNO): Likewise.
20358         * math/test-double.c: Include "test-math-errno.h".
20359         * math/test-float.c: Likewise.
20360         * math/test-ldouble.c: Likewise.
20361         * math/libm-test.inc (test_single_exception) [!TEST_INLINE]: Make
20362         code unconditional.
20363         (test_exceptions): Only run code if TEST_EXCEPTIONS.
20364         (test_single_errno) [!TEST_INLINE && !TEST_MATHVEC]: Make code
20365         unconditional.
20366         (test_errno): Only run code if TEST_ERRNO.
20367         (enable_test): Use "if" conditional on TEST_INLINE, not #ifdef.
20368
20369 2015-11-04  Florian Weimer  <fweimer@redhat.com>
20370
20371         * nptl/tst-once5.cc: Remove attribution.
20372
20373 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
20374
20375         * math/auto-libm-test-in: Add more tests of sin, sincos, sinh,
20376         sqrt, tan, tanh, y0, y1 and yn.
20377         * math/auto-libm-test-out: Regenerated.
20378         * math/libm-test.inc (scalb_test_data): Add more tests.
20379         (scalbn_test_data): Likewise.
20380         (scalbln_test_data): Likewise.
20381         (signbit_test_data): Likewise.
20382         (sin_test_data): Likewise.
20383         (sincos_test_data): Likewise.
20384         (sinh_test_data): Likewise.
20385         (sqrt_test_data): Likewise.
20386         (tan_test_data): Likewise.
20387         (tanh_test_data): Likewise.
20388         (tgamma_test_data): Likewise.
20389         (y0_test_data): Likewise.
20390         (y1_test_data): Likewise.
20391         (yn_test_data): Likewise.
20392         (significand_test_data): Likewise.
20393         * sysdeps/i386/fpu/libm-test-ulps: Update.
20394
20395 2015-11-03  David Kastrup  <dak@gnu.org>
20396
20397         [BZ #18604]
20398         * assert/assert.h (assert): Don't macro-expand failed assertion
20399         expression in error message.
20400         * malloc/malloc.c (assert): Likewise.
20401
20402 2015-11-03  Joseph Myers  <joseph@codesourcery.com>
20403
20404         * configure.ac (libc_cv_ld_no_whole_archive): Remove configure
20405         test.
20406         * configure: Regenerated.
20407
20408 2015-11-02  Joseph Myers  <joseph@codesourcery.com>
20409
20410         * math/libm-test.inc (modf_test_data): Add more tests.
20411         (nearbyint_test_data): Likewise.
20412         (nextafter_test_data): Likewise.
20413         (nexttoward_test_data): Likewise.
20414         (pow_test_data): Likewise.
20415         (remainder_test_data): Likewise.
20416         (remquo_test_data): Likewise.
20417         (rint_test_data): Likewise.
20418
20419         [BZ #19201]
20420         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
20421         Check for zero remainder in case of large exponents and ensure
20422         correct sign of result in that case.
20423         * math/libm-test.inc (remainder_test_data): Add more tests.
20424
20425         [BZ #6799]
20426         * math/s_nextafter.c: Include <errno.h>.
20427         (__nextafter): Set errno on overflow and underflow.
20428         * math/s_nexttowardf.c: Include <errno.h>.
20429         (__nexttowardf): Set errno on overflow and underflow.
20430         * sysdeps/i386/fpu/s_nextafterl.c: Include <errno.h>.
20431         (__nextafterl): Set errno on overflow and underflow.
20432         * sysdeps/i386/fpu/s_nexttoward.c: Include <errno.h>.
20433         (__nexttoward): Set errno on overflow and underflow.
20434         * sysdeps/i386/fpu/s_nexttowardf.c: Include <errno.h>.
20435         (__nexttowardf): Set errno on overflow and underflow.
20436         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include <errno.h>.
20437         (__nextafterf): Set errno on overflow and underflow.
20438         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include <errno.h>.
20439         (__nextafterl): Set errno on overflow and underflow.
20440         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Include <errno.h>.
20441         (__nexttoward): Set errno on overflow and underflow.
20442         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Include <errno.h>.
20443         (__nexttowardf): Set errno on overflow and underflow.
20444         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <errno.h>.
20445         (__nextafterl): Set errno on overflow and underflow.
20446         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Include <errno.h>.
20447         (__nexttoward): Set errno on overflow and underflow.
20448         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include <errno.h>.
20449         (__nexttowardf): Set errno on overflow and underflow.
20450         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Include <errno.h>.
20451         (__nexttoward): Set errno on overflow and underflow.
20452         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include <errno.h>.
20453         (__nexttowardf): Set errno on overflow and underflow.
20454         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include <errno.h>.
20455         (__nldbl_nexttowardf): Set errno on overflow and underflow.
20456         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Include <errno.h>.
20457         (__nextafterl): Set errno on overflow and underflow.
20458         * math/libm-test.inc (nextafter_test_data): Do not allow errno
20459         setting to be missing on overflow.  Add more tests.
20460         (nexttoward_test_data): Likewise.
20461
20462         * configure.ac (libc_cv_initfini_array): Remove configure test.
20463         * configure: Regenerated.
20464
20465 2015-10-29  Joseph Myers  <joseph@codesourcery.com>
20466
20467         [BZ #19189]
20468         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Make check for
20469         non-finite argument handle arguments with negative sign.
20470
20471         * math/libm-test.inc (j0_test_data): Do not test sign of zero
20472         result from infinite argument.
20473         (j1_test_data): Likewise.
20474         (jn_test_data): Likewise.
20475         (y0_test_data): Likewise.
20476         (y1_test_data): Likewise.
20477         (yn_test_data): Likewise.
20478
20479         [BZ #16171]
20480         * math/w_remainder.c (drem): Define as weak alias of __remainder.
20481         [NO_LONG_DOUBLE] (dreml): Define as weak alias of __remainder.
20482         * math/w_remainderf.c (dremf): Define as weak alias of
20483         __remainderf.
20484         * math/w_remainderl.c (dreml): Define as weak alias of
20485         __remainderl.
20486         * sysdeps/ia64/fpu/e_remainder.S (drem): Define as weak alias of
20487         __remainder.
20488         * sysdeps/ia64/fpu/e_remainderf.S (dremf): Define as weak alias of
20489         __remainderf.
20490         * sysdeps/ia64/fpu/e_remainderl.S (dreml): Define as weak alias of
20491         __remainderl.
20492         * sysdeps/ieee754/ldbl-opt/nldbl-remainder.c (dreml): Define as
20493         weak alias of remainderl.
20494         * sysdeps/ieee754/ldbl-opt/w_remainder.c
20495         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__drem): Define as strong
20496         alias of __remainder.
20497         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (dreml): Use compat_symbol.
20498         * sysdeps/ieee754/ldbl-opt/w_remainderl.c (__dreml): Define as
20499         strong alias of __remainderl.
20500         (dreml): Use long_double_symbol.
20501         * math/Makefile (libm-calls): Remove w_drem.
20502         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove drem.
20503         (CFLAGS-nldbl-drem.c): Remove variable.
20504         (CFLAGS-nldbl-remainder.c): Add -fno-builtin-dreml.
20505         * math/w_drem.c: Remove file.
20506         * math/w_dremf.c: Likewise.
20507         * math/w_dreml.c: Likewise.
20508         * sysdeps/ieee754/ldbl-opt/nldbl-drem.c: Likewise.
20509         * sysdeps/ieee754/ldbl-opt/w_drem.c: Likewise.
20510         * sysdeps/ieee754/ldbl-opt/w_dreml.c: Likewise.
20511
20512         * sysdeps/i386/configure.ac (cpuid.h): Do not test for header.
20513         * sysdeps/i386/configure: Regenerated.
20514         * sysdeps/x86_64/configure.ac (cpuid.h): Do not test for header.
20515         * sysdeps/x86_64/configure: Regenerated.
20516
20517         * configure.ac (libc_cv_asm_protected_directive): Remove configure
20518         test.
20519         (libc_cv_visibility_attribute): Likewise.
20520         (libc_cv_protected_data): Test unconditionally.
20521         (libc_cv_broken_visibility_attribute): Remove configure test.
20522         (libc_cv_have_sdata_section): Test unconditionally.
20523         * configure: Regenerated.
20524
20525         * include/libc-internal.h (libc_max_align_t): Remove typedef.
20526         * include/scratch_buffer.h: Include <stddef.h> instead of
20527         <libc-internal.h>.
20528         (struct scratch_buffer): Use max_align_t instead of
20529         libc_max_align_t.
20530
20531 2015-10-29  Florian Weimer  <fweimer@redhat.com>
20532
20533         * elf/dl-fini.c (_dl_fini): Rewrite to use variable-length array
20534         instead of extend_alloca.  Change control flow to avoid a goto.
20535         Remove assert which is trivially always true.
20536
20537 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
20538
20539         [BZ #16068]
20540         * sysdeps/i386/fpu/fesetenv.c: Include <fpu_control.h>.
20541         (FE_ALL_EXCEPT_X86): New macro.
20542         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
20543         FE_ALL_EXCEPT.  Ensure precision control is included in
20544         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
20545         handle "denormal operand exception" and clear FZ and DAZ bits.
20546         * sysdeps/x86_64/fpu/fesetenv.c: Include <fpu_control.h>.
20547         (FE_ALL_EXCEPT_X86): New macro.
20548         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
20549         FE_ALL_EXCEPT.  Ensure precision control is included in
20550         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
20551         handle "denormal operand exception" and clear FZ and DAZ bits.
20552         * sysdeps/x86/fpu/test-fenv-sse-2.c: New file.
20553         * sysdeps/x86/fpu/test-fenv-x87.c: Likewise.
20554         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
20555         test-fenv-x87 and test-fenv-sse-2.
20556         [$(subdir) = math] (CFLAGS-test-fenv-sse-2.c): New variable.
20557
20558         * math/libm-test.inc (BUILD_COMPLEX): Remove macro.
20559         * math/test-double.h (BUILD_COMPLEX): New macro.
20560         * math/test-float.h (BUILD_COMPLEX): Likewise.
20561         * math/test-ldouble.h (BUILD_COMPLEX): Likewise.
20562
20563         * math/libm-test.inc (min_subnorm_value): Use LDBL_TRUE_MIN,
20564         DBL_TRUE_MIN and FLT_TRUE_MIN instead of __LDBL_DENORM_MIN__,
20565         __DBL_DENORM_MIN__ and __FLT_DENORM_MIN__.
20566         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Refer to DBL_TRUE_MIN
20567         instead of DBL_DENORM_MIN in comment.
20568         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Refer to
20569         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
20570         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <float.h>.
20571         (__nextafterl): Use LDBL_TRUE_MIN instead of __LDBL_DENORM_MIN__.
20572         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Refer to
20573         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
20574
20575 2015-10-28  Florian Weimer  <fweimer@redhat.com>
20576
20577         [BZ #19048]
20578         * malloc/malloc.c (struct malloc_state): Update comment.  Add
20579         attached_threads member.
20580         (main_arena): Initialize attached_threads.
20581         * malloc/arena.c (list_lock): Update comment.
20582         (ptmalloc_lock_all, ptmalloc_unlock_all): Likewise.
20583         (ptmalloc_unlock_all2): Reinitialize arena reference counts.
20584         (deattach_arena): New function.
20585         (_int_new_arena): Initialize arena reference count and deattach
20586         replaced arena.
20587         (get_free_list, reused_arena): Update reference count and deattach
20588         replaced arena.
20589         (arena_thread_freeres): Update arena reference count and only put
20590         unreferenced arenas on the free list.
20591
20592 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
20593
20594         [BZ #19181]
20595         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Clear already-raised
20596         SSE exceptions when argument is FE_DFL_ENV or FE_NOMASK_ENV.
20597         * sysdeps/x86_64/fpu/fesetenv.c (__fesetenv): Likewise.
20598         * math/test-fenv-clear-main.c: New file.
20599         * math/test-fenv-clear.c: Likewise.
20600         * math/Makefile (tests): Add test-fenv-clear.
20601         * sysdeps/x86/fpu/test-fenv-clear-sse.c: New file.
20602         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
20603         test-fenv-clear-sse.
20604         [$(subdir) = math] (CFLAGS-test-fenv-clear-sse.c): New variable.
20605
20606         * math/libm-test.inc (TYPE_DECIMAL_DIG): Use LDBL_DECIMAL_DIG,
20607         DBL_DECIMAL_DIG and FLT_DECIMAL_DIG instead of __DECIMAL_DIG__,
20608         __DBL_DECIMAL_DIG__ and __FLT_DECIMAL_DIG__.
20609
20610 2015-10-28  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
20611
20612         * sysdeps/powerpc/libc-tls.c: New file. Provides __tls_get_addr () in
20613         static libc.
20614
20615 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
20616
20617         * sysdeps/i386/configure.ac (libc_cv_cc_avx2): Remove configure
20618         test.
20619         * sysdeps/i386/configure: Regenerated.
20620         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx2): Remove configure
20621         test.
20622         * sysdeps/x86_64/configure: Regenerated.
20623         * config.h.in (HAVE_AVX2_SUPPORT): Remove #undef.
20624         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20625         memset-avx2 unconditionally instead of conditionally on
20626         [$(config-cflags-avx2) = yes].
20627         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
20628         (__libc_ifunc_impl_list) [HAVE_AVX2_SUPPORT]: Make code
20629         unconditional.
20630         * sysdeps/x86_64/multiarch/memset.S [HAVE_AVX2_SUPPORT]: Likewise.
20631         * sysdeps/x86_64/multiarch/memset_chk.S
20632         [IS_IN (libc) && SHARED && HAVE_AVX2_SUPPORT]: Change conditional
20633         to [IS_IN (libc) && SHARED].
20634
20635 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
20636
20637         * sysdeps/arm/configure.ac (libc_cv_arm_tls_desc): Remove
20638         configure test.
20639         * sysdeps/arm/configure: Regenerated.
20640         * sysdeps/arm/Makefile [!have-arm-tls-desc] (have-arm-tls-desc):
20641         Define variable if not already defined.
20642
20643         [BZ #17404]
20644         * sysdeps/mips/atomic-machine.h
20645         [__GNUC_PREREQ (4, 8) || (__mips16 && __GNUC_PREREQ (4, 7))]:
20646         Change conditional to [__GNUC_PREREQ (4, 8) || __mips16].
20647         [__mips16 && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
20648
20649         * resolv/res_send.c (send_vc) [__GNUC_PREREQ (4, 7)]: Make code
20650         unconditional.
20651         * soft-fp/fmadf4.c [__GNUC_PREREQ (4, 7)]: Likewise.
20652         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
20653         * soft-fp/fmasf4.c [__GNUC_PREREQ (4, 7)]: Make code
20654         unconditional.
20655         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
20656         * soft-fp/fmatf4.c [__GNUC_PREREQ (4, 7)]: Make code
20657         unconditional.
20658         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
20659         * stdlib/setenv.c
20660         [((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7)]: Make
20661         code unconditional.
20662         [!(((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7))]:
20663         Remove conditional code.
20664         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
20665         (__ieee754_lgamma_r) [__GNUC_PREREQ (4, 7)]: Make code
20666         unconditional.
20667         (__ieee754_lgamma_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
20668         code.
20669         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
20670         (__ieee754_lgammaf_r) [__GNUC_PREREQ (4, 7)]: Make code
20671         unconditional.
20672         (__ieee754_lgammaf_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
20673         code.
20674         * sysdeps/ieee754/ldbl-128/k_tanl.c
20675         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
20676         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
20677         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c
20678         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
20679         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
20680         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c
20681         (__ieee754_lgammal_r) [__GNUC_PREREQ (4, 7)]: Make code
20682         unconditional.
20683         (__ieee754_lgammal_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
20684         code.
20685         * sysdeps/ieee754/ldbl-96/k_tanl.c
20686         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
20687         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
20688
20689         * nptl/tst-initializers1-c11.c: New file.
20690         * nptl/tst-initializers1-gnu11.c: Likewise.
20691         * nptl/Makefile (tests): Add these new tests.
20692         (CFLAGS-tst-initializers1-c11.c): New variable.
20693         (CFLAGS-tst-initializers1-gnu11.c): Likewise.
20694
20695         * Makeconfig (CFLAGS): Use -std=gnu11 instead of -std=gnu99.
20696         * Makefile ($(objpfx)c++-types-check.out): Filter out -std=gnu11
20697         instead of -std=gnu99.
20698         * configure.ac (systemtap): Test with -std=gnu11 instead of
20699         -std=gnu99.
20700         * configure: Regenerated.
20701         * math/gen-auto-libm-tests.c: Use -std=gnu11 instead of -std=gnu99
20702         in compilation command in comment.
20703
20704         * sysdeps/nptl/configure.ac: Remove file.
20705         * sysdeps/nptl/configure: Remove generated file.
20706         * configure.ac (libc_cv_forced_unwind): Do not substitute.
20707         * configure: Regenerated.
20708         * config.h.in (HAVE_FORCED_UNWIND): Remove #undef.
20709         * config.make.in (have-forced-unwind): Remove variable.
20710         * nptl/Makefile [$(have-forced-unwind) = yes]: Make code
20711         unconditional.
20712         * nptl/descr.h [HAVE_FORCED_UNWIND]: Likewise.
20713         * nptl/unwind.c [HAVE_FORCED_UNWIND]: Likewise.
20714         (__pthread_unwind) [!HAVE_FORCED_UNWIND]: Remove conditional code.
20715         * nptl/version.c [HAVE_FORCED_UNWIND]: Make code unconditional.
20716         * sysdeps/nptl/Makefile [$(have-forced-unwind) = yes]: Make code
20717         unconditional.
20718
20719 2015-10-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
20720
20721         [BZ #19174]
20722         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Fix usage of
20723         .skip_lock_out_of_tbegin_retries.
20724         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
20725         (__lll_lock_elision): Likewise, and respect a value of
20726         try_tbegin <= 0.
20727
20728 2015-10-27  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
20729
20730         * elf/dl-support.c (_dl_aux_init): Added AT_PLATFORM to the case
20731         statement.
20732
20733 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
20734
20735         * conform/Makefile (test-xfail-ISO11/complex.h/conform): Remove
20736         variable.
20737         (test-xfail-ISO11/stdalign.h/conform): Likewise.
20738         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
20739
20740         * conform/GlibcConform.pm ($CFLAGS{"ISO11"}): Use -std=c11 instead
20741         of -std=c1x -D_ISOC11_SOURCE.
20742
20743         * configure.ac (libc_cv_compiler_ok): Require GCC 4.7 or later.
20744         * configure: Regenerated.
20745         * manual/install.texi (Tools for Compilation): Document
20746         requirement for GCC 4.7 or later.
20747         * INSTALL: Regenerated.
20748
20749 2015-10-27  Ludovic Courtès  <ludo@gnu.org>
20750
20751         * locale/loadlocale.c (_nl_intern_locale_data): Change assertion
20752         on CNT to a conditional jump to 'puntdata'.
20753
20754 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
20755
20756         * configure.ac (libc_cv_gcc___thread): Remove configure test.
20757         (libc_cv_gcc_tls_model_attr): Likewise.
20758         * configure: Regenerated.
20759
20760         * configure.ac (libc_cv_need_minus_P): Remove configure test.
20761         * configure: Regenerated.
20762         * Makeconfig (asm-CPPFLAGS): Remove reference to -P in comment.
20763
20764 2015-10-26  Joseph Myers  <joseph@codesourcery.com>
20765
20766         * configure.ac (old_glibc_headers): Remove configure test.
20767         * configure: Regenerated.
20768         * config.make.in (old-glibc-headers): Remove variable.
20769         * Makefile [!$(install_root) && $(old-glibc-headers) = yes]
20770         (install): Remove dependency on remove-old-headers.
20771         (headers2_0): Remove variable.
20772         (remove-old-headers): Remove rule.
20773
20774         * configure.ac (libc_cv_dot_text): Remove configure test.
20775         (libc_cv_asm_set_directive): Use .text instead of
20776         ${libc_cv_dot_text} in configure test.
20777         * configure: Regenerated.
20778
20779 2015-10-26  Florian Weimer  <fweimer@redhat.com>
20780
20781         [BZ #19168]
20782         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
20783
20784 2015-10-26  Florian Weimer  <fweimer@redhat.com>
20785
20786         * configure.ac (CXX): Clear the variable if the C++ toolchain does
20787         not support static linking.
20788         * configure: Regenerate.
20789
20790 2015-10-23  Joseph Myers  <joseph@codesourcery.com>
20791
20792         * math/libm-test.inc (check_float_internal): Do not special-case
20793         errors up to 0.5 ulp.
20794
20795         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
20796         log2.
20797         * math/auto-libm-test-out: Regenerated.
20798         * math/libm-test.inc (MAX_EXP): New macro.
20799         (ilogb_test_data): Add more tests.
20800         (isfinite_test_data): Likewise.
20801         (isgreater_test_data): Likewise.
20802         (isgreaterequal_test_data): Likewise.
20803         (isinf_test_data): Likewise.
20804         (isless_test_data): Likewise.
20805         (islessequal_test_data): Likewise.
20806         (islessgreater_test_data): Likewise.
20807         (isnan_test_data): Likewise.
20808         (isnormal_test_data): Likewise.
20809         (issignaling_test_data): Likewise.
20810         (isunordered_test_data): Likewise.
20811         (j0_test_data): Likewise.
20812         (j1_test_data): Likewise.
20813         (jn_test_data): Likewise.
20814         (lgamma_test_data): Likewise.
20815         (log_test_data): Likewise.
20816         (log10_test_data): Likewise.
20817         (log1p_test_data): Likewise.
20818         (log2_test_data): Likewise.
20819         (logb_test_data): Likewise.
20820         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
20821
20822         [BZ #18611]
20823         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Set errno and
20824         avoid excess range and precision on underflow.
20825         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
20826         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
20827         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
20828         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Set errno on
20829         underflow.
20830         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
20831         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
20832         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
20833         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
20834         * math/auto-libm-test-in: Do not allow missing errno setting for
20835         tests of j1 and jn.
20836         * math/auto-libm-test-out: Regenerated.
20837
20838 2015-10-22  Joseph Myers  <joseph@codesourcery.com>
20839
20840         [BZ #15491]
20841         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Save and restore
20842         floating-point environment instead of clearing all exceptions.
20843         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
20844         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise,
20845         merging in "invalid" exceptions from frndint.
20846         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
20847         * math/test-nearbyint-except.c: New file.
20848         * math/Makefile (tests): Add test-nearbyint-except.
20849
20850 2015-10-22  Chris Metcalf  <cmetcalf@ezchip.com>
20851
20852         * NEWS: Mention bug 18699 fixed by commit fe8c2b33aed0.
20853
20854         * sysdeps/tile/libm-test-ulps: Regenerated.
20855
20856 2015-10-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20857
20858         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c
20859         (__NR_sync_file_range2): Assume it is always defined.
20860         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
20861         (__NR_sync_file_range): Assume it is always defined.
20862
20863 2015-10-22  Andreas Schwab  <schwab@suse.de>
20864
20865         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
20866         INTERNAL_SYSCALL_ERRNO.
20867         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
20868         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
20869         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
20870         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
20871         Likewise.
20872         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
20873
20874 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
20875
20876         * io/tst-fcntl.c (fd): New static variable.
20877         (do_prepare): Open temporary file here....
20878         (do_test): ...not here.
20879
20880         * io/ftwtest-sh: Also trap on exit to remove temporary files.
20881
20882 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
20883
20884         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: Replace
20885         __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
20886         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
20887         Moved before "#ifdef __ASSEMBLER__".
20888
20889 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
20890
20891         [BZ #19156]
20892         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Return 1 for
20893         arguments very close to 0.
20894
20895 2015-10-21  Chris Metcalf  <cmetcalf@ezchip.com>
20896
20897         * sysdeps/unix/sysv/linux/tile/sysdep.h (PSEUDO_END)
20898         (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO): Undef before defining.
20899
20900 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
20901
20902         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
20903         New.  Defined for GCC 5 and above when not compiling for
20904         profiling.
20905         Replace __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
20906
20907         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
20908         Renamed to ...
20909         (CFLAGS-epoll_pwait.o): This.
20910         (CFLAGS-mmap.c): Renamed to ...
20911         (CFLAGS-mmap.o): This.
20912         (CFLAGS-mmap64.c): Renamed to ...
20913         (CFLAGS-mmap64.o): This.
20914         (CFLAGS-epoll_pwait.os): New.
20915         (CFLAGS-mmap.os): Likewise.
20916         (CFLAGS-mmap64.os): Likewise.
20917         (CFLAGS-semtimedop.os): Likewise.
20918         (CFLAGS-semtimedop.c): Renamed to ...
20919         (CFLAGS-semtimedop.o): This.
20920
20921 2015-10-21  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
20922
20923         * debug/tst-backtrace4.c (handle_signal): Fix a comment and
20924         warning message.
20925
20926 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
20927
20928         * Makeconfig (+gccwarn-c): Add -Wold-style-definition.
20929         * Makefile ($(objpfx)c++-types-check.out): Filter out
20930         $(+gccwarn-c) instead of -Wstrict-prototypes.
20931
20932         * io/fts.c (fts_open): Convert to prototype-style function
20933         definition.
20934         * malloc/mcheck.c (mcheck): Likewise.
20935         (mcheck_pedantic): Likewise.
20936         * posix/regexec.c (re_search_2_stub): Likewise.  Use
20937         internal_function.
20938         (re_search_internal): Likewise.
20939         * resolv/res_init.c [RESOLVSORT] (net_mask): Convert to
20940         prototype-style function definition.
20941         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
20942         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
20943         * sunrpc/rpcsvc/rusers.x (xdr_utmp): Likewise.
20944         (xdr_utmpptr): Likewise.
20945         (xdr_utmparr): Likewise.
20946         (xdr_utmpidle): Likewise.
20947         (xdr_utmpidleptr): Likewise.
20948         (xdr_utmpidlearr): Likewise.
20949
20950         * math/auto-libm-test-in: Add more tests of hypot, j0, j1, jn,
20951         log, log10 and log2.
20952         * math/auto-libm-test-out: Regenerated.
20953         * math/libm-test.inc (fmod_test_data): Add more tests.
20954         (fpclassify_test_data): Likewise.
20955         (frexp_test_data): Likewise.
20956         (hypot_test_data): Likewise.
20957         (ilogb_test_data): Likewise.
20958
20959 2015-10-20  Joseph Myers  <joseph@codesourcery.com>
20960
20961         * debug/fortify_fail.c (__fortify_fail): Convert to
20962         prototype-style function definition.  Use internal_function.
20963         * libio/genops.c (save_for_backup): Convert to prototype-style
20964         function definition.
20965         * libio/wgenops.c (save_for_wbackup): Likewise.
20966         * login/grantpt.c (grantpt): Likewise.
20967         * login/ptsname.c (ptsname): Likewise.
20968         (__ptsname_r): Likewise.
20969         * login/unlockpt.c (unlockpt): Likewise.
20970         * mach/msgserver.c (__mach_msg_server): Likewise.
20971         * misc/efgcvt.c (__APPEND (FUNC_PREFIX, fcvt)): Likewise.
20972         (__APPEND (FUNC_PREFIX, ecvt)): Likewise.
20973         (__APPEND (FUNC_PREFIX, gcvt)): Likewise.
20974         * misc/efgcvt_r.c (__APPEND (FUNC_PREFIX, fcvt_r)): Likewise.
20975         (__APPEND (FUNC_PREFIX, ecvt_r)): Likewise.
20976         * nptl/cleanup_compat.c (_pthread_cleanup_push): Likewise.
20977         * nptl/cleanup_defer_compat.c (_pthread_cleanup_push_defer):
20978         Likewise.
20979         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.  Use
20980         internal_function.
20981         * nptl/pthread_atfork.c (__pthread_atfork): Convert to
20982         prototype-style function definition.
20983         * nptl/pthread_create.c (__pthread_create_2_1): Likewise.
20984         [SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1)]
20985         (__pthread_create_2_0): Likewise.
20986         * nptl/pthread_key_create.c (__pthread_key_create): Likewise.
20987         * nptl/register-atfork.c (__register_atfork): Likewise.
20988         * posix/glob.c (glob): Likewise.
20989         * posix/regcomp.c (re_comp): Likewise.
20990         * posix/regexec.c (re_exec): Likewise.
20991         * stdlib/add_n.c [__STDC__]: Make code unconditional.
20992         [!__STDC__]: Remove conditional code.
20993         * stdlib/cmp.c [__STDC__]: Make code unconditional.
20994         [!__STDC__]: Remove conditional code.
20995         * stdlib/divmod_1.c [__STDC__]: Make code unconditional.
20996         [!__STDC__]: Remove conditional code.
20997         * stdlib/divrem.c [__STDC__]: Make code unconditional.
20998         [!__STDC__]: Remove conditional code.
20999         * stdlib/lshift.c [__STDC__]: Make code unconditional.
21000         [!__STDC__]: Remove conditional code.
21001         * stdlib/mod_1.c [__STDC__]: Make code unconditional.
21002         [!__STDC__]: Remove conditional code.
21003         * stdlib/mul.c [__STDC__]: Make code unconditional.
21004         [!__STDC__]: Remove conditional code.
21005         * stdlib/mul_n.c [__STDC__]: Make code unconditional.
21006         [!__STDC__]: Remove conditional code.
21007         * stdlib/rshift.c [__STDC__]: Make code unconditional.
21008         [!__STDC__]: Remove conditional code.
21009         * stdlib/strtod.c (INTERNAL (STRTOF)): Convert to prototype-style
21010         function definition.
21011         (STRTOF): Likewise.
21012         * stdlib/strtod_l.c (__STRTOF): Likewise.
21013         * stdlib/strtol.c (INTERNAL (strtol)): Likewise.
21014         * stdlib/strtol_l.c (INTERNAL (__strtol_l)): Likewise.
21015         (__strtol_l): Likewise.
21016         * stdlib/sub_n.c [__STDC__]: Make code unconditional.
21017         [!__STDC__]: Remove conditional code.
21018         * string/memrchr.c (MEMRCHR): Convert to prototype-style function
21019         definition.
21020         * string/strcasecmp.c (LOCALE_PARAM_DECL): Remove macro.
21021         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
21022         type.
21023         (__strcasecmp): Convert to prototype-style function definition.
21024         * string/strncase.c (LOCALE_PARAM_DECL): Remove macro.
21025         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
21026         type.
21027         (__strncasecmp): Convert to prototype-style function definition.
21028         * sunrpc/pm_getport.c (__libc_rpc_getport): Likewise.
21029         * sunrpc/xdr.c (xdr_union): Likewise.
21030         * sunrpc/xdr_array.c (xdr_array): Likewise.
21031         * sunrpc/xdr_ref.c (xdr_reference): Likewise.
21032         * sysdeps/m68k/m680x0/fpu/s_atan.c (__CONCATX(__,FUNC)): Likewise.
21033         * sysdeps/m68k/m680x0/fpu/s_isinf.c (__CONCATX(__,FUNC)):
21034         Likewise.
21035         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(__scalbn,suffix):
21036         Likewise.
21037         * sysdeps/m68k/m680x0/fpu/s_sincos.c (CONCATX(__,FUNC)): Likewise.
21038         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
21039         Likewise.
21040         * time/strftime_l.c (LOCALE_PARAM_DECL): Remove macro.
21041         (LOCALE_PARAM_PROTO): Likewise.
21042         [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include
21043         argument type.
21044         (ut_argument_spec): Remove macro.
21045         (ut_argument_spec_iso): Rename to ut_argument_spec.
21046         (memcpy_lowcase): Use LOCALE_PARAM in declaration.  Convert to
21047         prototype-style function definition.
21048         (memcpy_uppcase): Likewise.
21049         (__strftime_internal): Likewise.
21050         (my_strftime): Likewise.
21051         * time/strptime_l.c (LOCALE_PARAM_PROTO): Remove macro.
21052         (LOCALE_PARAM_DECL): Likewise.
21053         [_LIBC] (LOCALE_PARAM): Include argument type.
21054         (__strptime_internal): Convert to prototype-style function
21055         definition.
21056         (strptime): Likewise.
21057         * wcsmbs/wcscasecmp.c (LOCALE_PARAM_DECL): Remove macro.
21058         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
21059         type.
21060         (__wcscasecmp): Convert to prototype-style function definition.
21061         * wcsmbs/wcsncase.c (LOCALE_PARAM_DECL): Remove macro.
21062         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
21063         type.
21064         (__wcsncasecmp): Convert to prototype-style function definition.
21065
21066         * crypt/md5-crypt.c (__md5_crypt_r): Convert to prototype-style
21067         function definition.
21068         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
21069         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
21070         * debug/backtracesyms.c (__backtrace_symbols): Likewise.
21071         * elf/dl-minimal.c (_itoa): Likewise.
21072         * hurd/hurdmalloc.c (malloc): Likewise.
21073         (free): Likewise.
21074         (realloc): Likewise.
21075         * inet/inet6_option.c (inet6_option_space): Likewise.
21076         (inet6_option_init): Likewise.
21077         (inet6_option_append): Likewise.
21078         (inet6_option_alloc): Likewise.
21079         (inet6_option_next): Likewise.
21080         (inet6_option_find): Likewise.
21081         * io/ftw.c (FTW_NAME): Likewise.
21082         (NFTW_NAME): Likewise.
21083         (NFTW_NEW_NAME): Likewise.
21084         (NFTW_OLD_NAME): Likewise.
21085         * libio/iofwide.c (_IO_fwide): Likewise.
21086         * libio/strops.c (_IO_str_init_static_internal): Likewise.
21087         (_IO_str_init_static): Likewise.
21088         (_IO_str_init_readonly): Likewise.
21089         (_IO_str_overflow): Likewise.
21090         (_IO_str_underflow): Likewise.
21091         (_IO_str_count): Likewise.
21092         (_IO_str_seekoff): Likewise.
21093         (_IO_str_pbackfail): Likewise.
21094         (_IO_str_finish): Likewise.
21095         * libio/wstrops.c (_IO_wstr_init_static): Likewise.
21096         (_IO_wstr_overflow): Likewise.
21097         (_IO_wstr_underflow): Likewise.
21098         (_IO_wstr_count): Likewise.
21099         (_IO_wstr_seekoff): Likewise.
21100         (_IO_wstr_pbackfail): Likewise.
21101         (_IO_wstr_finish): Likewise.
21102         * locale/programs/localedef.c (normalize_codeset): Likewise.
21103         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
21104         (add_locales_to_archive): Likewise.
21105         (delete_locales_from_archive): Likewise.
21106         * malloc/malloc.c (__libc_mallinfo): Likewise.
21107         * math/gen-auto-libm-tests.c (init_fp_formats): Likewise.
21108         * misc/tsearch.c (__tfind): Likewise.
21109         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Likewise.
21110         * nptl/pthread_attr_getdetachstate.c
21111         (__pthread_attr_getdetachstate): Likewise.
21112         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
21113         Likewise.
21114         * nptl/pthread_attr_getinheritsched.c
21115         (__pthread_attr_getinheritsched): Likewise.
21116         * nptl/pthread_attr_getschedparam.c
21117         (__pthread_attr_getschedparam): Likewise.
21118         * nptl/pthread_attr_getschedpolicy.c
21119         (__pthread_attr_getschedpolicy): Likewise.
21120         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope):
21121         Likewise.
21122         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack):
21123         Likewise.
21124         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
21125         Likewise.
21126         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
21127         Likewise.
21128         * nptl/pthread_attr_init.c (__pthread_attr_init_2_1): Likewise.
21129         (__pthread_attr_init_2_0): Likewise.
21130         * nptl/pthread_attr_setdetachstate.c
21131         (__pthread_attr_setdetachstate): Likewise.
21132         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
21133         Likewise.
21134         * nptl/pthread_attr_setinheritsched.c
21135         (__pthread_attr_setinheritsched): Likewise.
21136         * nptl/pthread_attr_setschedparam.c
21137         (__pthread_attr_setschedparam): Likewise.
21138         * nptl/pthread_attr_setschedpolicy.c
21139         (__pthread_attr_setschedpolicy): Likewise.
21140         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope):
21141         Likewise.
21142         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack):
21143         Likewise.
21144         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
21145         Likewise.
21146         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
21147         Likewise.
21148         * nptl/pthread_condattr_setclock.c (pthread_condattr_setclock):
21149         Likewise.
21150         * nptl/pthread_create.c (__find_in_stack_list): Likewise.
21151         * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
21152         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Define to
21153         use internal_function.
21154         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Convert to
21155         prototype-style function definition.
21156         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
21157         (__pthread_mutex_cond_lock_adjust): Likewise.  Use
21158         internal_function.
21159         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock):
21160         Convert to prototype-style function definition.
21161         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
21162         Likewise.
21163         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
21164         Likewise.
21165         (__pthread_mutex_unlock): Likewise.
21166         * nptl_db/td_ta_clear_event.c (td_ta_clear_event): Likewise.
21167         * nptl_db/td_ta_set_event.c (td_ta_set_event): Likewise.
21168         * nptl_db/td_thr_clear_event.c (td_thr_clear_event): Likewise.
21169         * nptl_db/td_thr_event_enable.c (td_thr_event_enable): Likewise.
21170         * nptl_db/td_thr_set_event.c (td_thr_set_event): Likewise.
21171         * nss/makedb.c (process_input): Likewise.
21172         * posix/fnmatch.c (__strchrnul): Likewise.
21173         (__wcschrnul): Likewise.
21174         (fnmatch): Likewise.
21175         * posix/fnmatch_loop.c (FCT): Likewise.
21176         * posix/glob.c (globfree): Likewise.
21177         (__glob_pattern_type): Likewise.
21178         (__glob_pattern_p): Likewise.
21179         * posix/regcomp.c (re_compile_pattern): Likewise.
21180         (re_set_syntax): Likewise.
21181         (re_compile_fastmap): Likewise.
21182         (regcomp): Likewise.
21183         (regerror): Likewise.
21184         (regfree): Likewise.
21185         * posix/regexec.c (regexec): Likewise.
21186         (re_match): Likewise.
21187         (re_search): Likewise.
21188         (re_match_2): Likewise.
21189         (re_search_2): Likewise.
21190         (re_search_stub): Likewise.  Use internal_function
21191         (re_copy_regs): Likewise.
21192         (re_set_registers): Convert to prototype-style function
21193         definition.
21194         (prune_impossible_nodes): Likewise.  Use internal_function.
21195         * resolv/inet_net_pton.c (inet_net_pton): Convert to
21196         prototype-style function definition.
21197         (inet_net_pton_ipv4): Likewise.
21198         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
21199         * sysdeps/pthread/aio_cancel.c (aio_cancel): Likewise.
21200         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
21201         * sysdeps/pthread/timer_delete.c (timer_delete): Likewise.
21202         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
21203         Make variadic.
21204         * time/strptime_l.c (localtime_r): Convert to prototype-style
21205         function definition.
21206         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
21207         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
21208         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
21209         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
21210
21211         * crypt/crypt.c (_ufc_doit_r): Convert to prototype-style function
21212         definition.
21213         (_ufc_doit_r): Likewise.
21214         * crypt/crypt_util.c (_ufc_copymem): Likewise.
21215         (_ufc_output_conversion_r): Likewise.
21216         * inet/inet_mkadr.c (__inet_makeaddr): Likewise.
21217         * inet/rcmd.c (rcmd_af): Likewise.
21218         (rcmd): Likewise.
21219         (ruserok_af): Likewise.
21220         (ruserok): Likewise.
21221         (ruserok2_sa): Likewise.
21222         (ruserok_sa): Likewise.
21223         (iruserok_af): Likewise.
21224         (iruserok): Likewise.
21225         (__ivaliduser): Likewise.
21226         (__validuser2_sa): Likewise.
21227         * inet/rexec.c (rexec_af): Likewise.
21228         (rexec): Likewise.
21229         * inet/ruserpass.c (ruserpass): Likewise.
21230         * locale/programs/xmalloc.c (xcalloc): Likewise.
21231         * manual/examples/timeval_subtract.c (timeval_subtract): Likewise.
21232         * math/w_drem.c (__drem): Likewise.
21233         * math/w_dremf.c (__dremf): Likewise.
21234         * math/w_dreml.c (__dreml): Likewise.
21235         * misc/daemon.c (daemon): Likewise.
21236         * resolv/res_debug.c (p_fqnname): Likewise.
21237         * stdlib/div.c (div): Likewise.
21238         * string/memcmp.c (memcmp_bytes): Likewise.
21239         * sunrpc/pmap_rmt.c (pmap_rmtcall): Likewise.
21240         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
21241
21242         * crypt/cert.c (main): Convert to prototype-style function
21243         definition.
21244         * io/pipe.c (__pipe): Likewise.
21245         * io/pipe2.c (__pipe2): Likewise.
21246         * misc/futimesat.c (futimesat): Likewise.
21247         * misc/utimes.c (__utimes): Likewise.
21248         * posix/execve.c (__execve): Likewise.
21249         * posix/execvp.c (execvp): Likewise.
21250         * posix/execvpe.c (__execvpe): Likewise.
21251         * posix/fexecve.c (fexecve): Likewise.
21252         * socket/socketpair.c (socketpair): Likewise.
21253         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
21254         * stdlib/erand48.c (erand48): Likewise.
21255         * stdlib/erand48_r.c (__erand48_r): Likewise.
21256         * stdlib/jrand48.c (jrand48): Likewise.
21257         * stdlib/jrand48_r.c (__jrand48_r): Likewise.
21258         * stdlib/lcong48.c (lcong48): Likewise.
21259         * stdlib/lcong48_r.c (__lcong48_r): Likewise.
21260         * stdlib/nrand48.c (nrand48): Likewise.
21261         * stdlib/nrand48_r.c (__nrand48_r): Likewise.
21262         * stdlib/seed48.c (seed48): Likewise.
21263         * stdlib/seed48_r.c (__seed48_r): Likewise.
21264         * sysdeps/mach/hurd/execve.c (__execve): Likewise.
21265         * sysdeps/mach/hurd/utimes.c (__utimes): Likewise.
21266         * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Likewise.
21267
21268 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
21269
21270         * configure.ac (libc_cv_asm_unique_object): Remove configure test.
21271         * configure: Regenerated.
21272         * config.h.in (HAVE_ASM_UNIQUE_OBJECT): Remove #undef.
21273         * elf/tst-unique1.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Make code
21274         unconditional.
21275         * elf/tst-unique1mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
21276         * elf/tst-unique1mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
21277         * elf/tst-unique2.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
21278         (do_test) [!HAVE_ASM_UNIQUE_OBJECT]: Remove conditional code.
21279         * elf/tst-unique2mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Make code
21280         unconditional.
21281         * elf/tst-unique2mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
21282
21283         * posix/Makefile (CFLAGS-regex.c): Remove variable.
21284         * resolv/Makefile (+cflags): Do not use -Wno-strict-prototypes.
21285
21286         * crypt/crypt-entry.c (__crypt_r): Convert to prototype-style
21287         function definition.
21288         * crypt/crypt_util.c (__encrypt_r): Likewise.
21289         * libio/genops.c (_IO_no_init): Likewise.
21290         * libio/iofopncook.c (_IO_fopencookie): Likewise.
21291         (_IO_old_fopencookie): Likewise.
21292         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
21293         * libio/iogetline.c (_IO_getline): Likewise.
21294         (_IO_getline_info): Likewise.
21295         * libio/iogetwline.c (_IO_getwline): Likewise.
21296         (_IO_getwline_info): Likewise.
21297         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
21298         * libio/vswprintf.c (_IO_vswprintf): Likewise.
21299         * locale/programs/simple-hash.c (insert_entry_2): Likewise.
21300         (find_entry): Likewise.
21301         (iterate_table): Likewise.
21302         (lookup): Likewise.
21303         * login/forkpty.c (forkpty): Likewise.
21304         * misc/hsearch_r.c (__hsearch_r): Likewise.
21305         * misc/select.c (__select): Likewise.
21306         * nptl/cleanup_defer_compat.c (_pthread_cleanup_pop_restore):
21307         Likewise.
21308         * nptl/old_pthread_cond_init.c (__pthread_cond_init_2_0):
21309         Likewise.
21310         * nptl/old_pthread_cond_timedwait.c
21311         (__pthread_cond_timedwait_2_0): Likewise.
21312         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
21313         * nptl/pthread_barrierattr_getpshared.c
21314         (pthread_barrierattr_getpshared): Likewise.
21315         * nptl/pthread_getschedparam.c (__pthread_getschedparam):
21316         Likewise.
21317         * nptl/pthread_mutex_setprioceiling.c
21318         (pthread_mutex_setprioceiling): Likewise.
21319         * nptl/pthread_mutexattr_getprioceiling.c
21320         (pthread_mutexattr_getprioceiling): Likewise.
21321         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
21322         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
21323         Likewise.
21324         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
21325         Likewise.
21326         * nptl/pthread_setschedparam.c (__pthread_setschedparam):
21327         Likewise.
21328         * socket/recvfrom.c (__recvfrom): Likewise.
21329         * socket/sendto.c (__sendto): Likewise.
21330         * socket/setsockopt.c (__setsockopt): Likewise.
21331         * stdio-common/_itoa.c (_itoa): Likewise.
21332         * stdio-common/_itowa.c (_itowa): Likewise.
21333         * stdio-common/reg-printf.c (__register_printf_specifier):
21334         Likewise.
21335         (__register_printf_function): Likewise.
21336         * stdio-common/tempname.c (__path_search): Likewise.
21337         * stdlib/addmul_1.c (mpn_addmul_1): Likewise.
21338         * stdlib/mul_1.c (mpn_mul_1): Likewise.
21339         * stdlib/random_r.c (__initstate_r): Likewise.
21340         * stdlib/setenv.c (__add_to_environ): Likewise.
21341         * stdlib/submul_1.c (mpn_submul_1): Likewise.
21342         * streams/getpmsg.c (getpmsg): Likewise.
21343         * streams/putmsg.c (putmsg): Likewise.
21344         * streams/putpmsg.c (putpmsg): Likewise.
21345         * sunrpc/clnt_raw.c (clntraw_call): Likewise.
21346         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
21347         * sunrpc/clnt_udp.c (clntudp_create): Likewise.
21348         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
21349         * sunrpc/pm_getport.c (pmap_getport): Likewise.
21350         * sunrpc/svc_udp.c (cache_get): Likewise.
21351         * sunrpc/xdr_array.c (xdr_vector): Likewise.
21352         * sysdeps/mach/hurd/getcwd.c
21353         (__canonicalize_directory_name_internal): Likewise.
21354         * sysdeps/mach/hurd/pselect.c (__pselect): Likewise.
21355         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
21356         * sysdeps/mach/hurd/select.c (__select): Likewise.
21357         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
21358         * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
21359         * sysdeps/sparc/nptl/pthread_barrier_init.c
21360         (__pthread_barrier_init): Likewise.
21361         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c
21362         (__pthread_cond_timedwait): Likewise.
21363         * sysdeps/unix/sysv/linux/i386/putmsg.c (putmsg): Likewise.
21364         * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop):
21365         Likewise.
21366         * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Likewise.
21367         * sysdeps/unix/sysv/linux/timer_settime.c (timer_settime):
21368         Likewise.
21369         * sysvipc/semtimedop.c (semtimedop): Likewise.
21370         * time/setitimer.c (__setitimer): Likewise.
21371         * time/strftime_l.c (emacs_strftime): Likewise.
21372
21373 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
21374
21375         * config.make.in (have-ssp): Delete.
21376         (stack-protector): New variable.
21377         * configure.ac: Delete libc_cv_ssp export.  Add libc_cv_ssp_strong
21378         cache test for -fstack-protector-strong.  Export stack_protector to
21379         the best ssp flag.
21380         * configure: Regenerated.
21381         * login/Makefile (pt_chown-cflags): Always add $(stack-protector).
21382         * nscd/Makefile (CFLAGS-nscd): Likewise.
21383         * resolv/Makefile (CFLAGS-libresolv): Likewise.
21384
21385 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
21386
21387         [BZ #19122]
21388         * include/sys/stat.h [IS_IN (rtld)] (__fxstatat64): Add
21389         attribute_hidden.
21390
21391 2015-10-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
21392
21393         [BZ #18743]
21394         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Move most of this
21395         code to...
21396         (ELIDE_LOCK): ...here.
21397         (__get_new_count): New function with part of the code from
21398         __elide_lock that updates the value of adapt_count after a
21399         transaction abort.
21400         (__elided_trylock): Moved this code to...
21401         (ELIDE_TRYLOCK): ...here.
21402
21403 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
21404
21405         * configure.ac (AC_ARG_ENABLE(timezone-tools)): Tweak help phrasing.
21406         * configure: Regenerate.
21407         * INSTALL: Regenerate.
21408         * manual/install.texi (--disable-timezone-tools): Use @theglibc{}
21409         and tweak grammar.
21410
21411 2015-10-19  Geoffrey Thomas  <geofft@ldpreload.com>
21412
21413         * login/programs/pt_chown.c: Include signal.h
21414         (main): Clear any signal mask from the parent process.
21415
21416 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
21417
21418         * configure.ac (libc_cv_gnu89_inline): Remove configure test.
21419         * configure: Regenerated.
21420         * config.make.in (gnu89-inline-CFLAGS): Remove variable.
21421         * Makeconfig (CFLAGS): Use -fgnu89-inline instead of
21422         $(gnu89-inline-CFLAGS).
21423
21424         * configure.ac (libc_cv_asm_weak_directive): Remove configure
21425         test.
21426         (libc_cv_asm_weakext_directive): Likewise.
21427         * configure: Regenerated.
21428         * config.h.in (HAVE_ASM_WEAK_DIRECTIVE): Remove #undef.
21429         (HAVE_ASM_WEAKEXT_DIRECTIVE): Likewise.
21430         * include/libc-symbols.h
21431         [!HAVE_ASM_WEAK_DIRECTIVE && !HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove
21432         #error.
21433         [HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove conditional code.
21434         [!HAVE_ASM_WEAKEXT_DIRECTIVE]: Make code unconditional.
21435
21436         * sysdeps/arm/backtrace.c (__backtrace): Convert to
21437         prototype-style function definition.
21438         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
21439         * sysdeps/i386/ffs.c (__ffs): Likewise.
21440         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
21441         * sysdeps/ia64/nptl/pthread_spin_lock.c (pthread_spin_lock):
21442         Likewise.
21443         * sysdeps/ia64/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
21444         Likewise.
21445         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
21446         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
21447         Likewise.
21448         * sysdeps/m68k/ffs.c (__ffs): Likewise.
21449         * sysdeps/m68k/m680x0/fpu/e_acos.c (FUNC): Likewise.
21450         * sysdeps/m68k/m680x0/fpu/e_fmod.c (FUNC): Likewise.
21451         * sysdeps/mach/adjtime.c (__adjtime): Likewise.
21452         * sysdeps/mach/gettimeofday.c (__gettimeofday): Likewise.
21453         * sysdeps/mach/hurd/_exit.c (_exit): Likewise.
21454         * sysdeps/mach/hurd/access.c (__access): Likewise.
21455         * sysdeps/mach/hurd/adjtime.c (__adjtime): Likewise.
21456         * sysdeps/mach/hurd/chdir.c (__chdir): Likewise.
21457         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
21458         * sysdeps/mach/hurd/chown.c (__chown): Likewise.
21459         * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Likewise.
21460         (cthread_getspecific): Likewise.
21461         (cthread_setspecific): Likewise.
21462         (__libc_getspecific): Likewise.
21463         * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Likewise.
21464         * sysdeps/mach/hurd/faccessat.c (faccessat): Likewise.
21465         * sysdeps/mach/hurd/fchdir.c (__fchdir): Likewise.
21466         * sysdeps/mach/hurd/fchmod.c (__fchmod): Likewise.
21467         * sysdeps/mach/hurd/fchmodat.c (fchmodat): Likewise.
21468         * sysdeps/mach/hurd/fchown.c (__fchown): Likewise.
21469         * sysdeps/mach/hurd/fchownat.c (fchownat): Likewise.
21470         * sysdeps/mach/hurd/flock.c (__flock): Likewise.
21471         * sysdeps/mach/hurd/fsync.c (fsync): Likewise.
21472         * sysdeps/mach/hurd/ftruncate.c (__ftruncate): Likewise.
21473         * sysdeps/mach/hurd/getgroups.c (__getgroups): Likewise.
21474         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
21475         * sysdeps/mach/hurd/getitimer.c (__getitimer): Likewise.
21476         * sysdeps/mach/hurd/getlogin_r.c (__getlogin_r): Likewise.
21477         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
21478         * sysdeps/mach/hurd/getrusage.c (__getrusage): Likewise.
21479         * sysdeps/mach/hurd/getsockname.c (__getsockname): Likewise.
21480         * sysdeps/mach/hurd/group_member.c (__group_member): Likewise.
21481         * sysdeps/mach/hurd/isatty.c (__isatty): Likewise.
21482         * sysdeps/mach/hurd/lchown.c (__lchown): Likewise.
21483         * sysdeps/mach/hurd/link.c (__link): Likewise.
21484         * sysdeps/mach/hurd/linkat.c (linkat): Likewise.
21485         * sysdeps/mach/hurd/listen.c (__listen): Likewise.
21486         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
21487         * sysdeps/mach/hurd/mkdirat.c (mkdirat): Likewise.
21488         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
21489         * sysdeps/mach/hurd/poll.c (__poll): Likewise.
21490         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
21491         * sysdeps/mach/hurd/readlinkat.c (readlinkat): Likewise.
21492         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
21493         * sysdeps/mach/hurd/rename.c (rename): Likewise.
21494         * sysdeps/mach/hurd/renameat.c (renameat): Likewise.
21495         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
21496         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Likewise.
21497         * sysdeps/mach/hurd/rmdir.c (__rmdir): Likewise.
21498         * sysdeps/mach/hurd/seekdir.c (seekdir): Likewise.
21499         * sysdeps/mach/hurd/send.c (__send): Likewise.
21500         * sysdeps/mach/hurd/setdomain.c (setdomainname): Likewise.
21501         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
21502         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
21503         * sysdeps/mach/hurd/setgid.c (__setgid): Likewise.
21504         * sysdeps/mach/hurd/setgroups.c (setgroups): Likewise.
21505         * sysdeps/mach/hurd/sethostid.c (sethostid): Likewise.
21506         * sysdeps/mach/hurd/sethostname.c (sethostname): Likewise.
21507         * sysdeps/mach/hurd/setlogin.c (setlogin): Likewise.
21508         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
21509         * sysdeps/mach/hurd/setregid.c (__setregid): Likewise.
21510         * sysdeps/mach/hurd/setreuid.c (__setreuid): Likewise.
21511         * sysdeps/mach/hurd/settimeofday.c (__settimeofday): Likewise.
21512         * sysdeps/mach/hurd/setuid.c (__setuid): Likewise.
21513         * sysdeps/mach/hurd/shutdown.c (shutdown): Likewise.
21514         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
21515         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
21516         * sysdeps/mach/hurd/sigpending.c (sigpending): Likewise.
21517         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
21518         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
21519         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
21520         * sysdeps/mach/hurd/symlink.c (__symlink): Likewise.
21521         * sysdeps/mach/hurd/symlinkat.c (symlinkat): Likewise.
21522         * sysdeps/mach/hurd/telldir.c (telldir): Likewise.
21523         * sysdeps/mach/hurd/truncate.c (__truncate): Likewise.
21524         * sysdeps/mach/hurd/umask.c (__umask): Likewise.
21525         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
21526         * sysdeps/mach/hurd/unlinkat.c (unlinkat): Likewise.
21527         * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
21528         * sysdeps/posix/alarm.c (alarm): Likewise.
21529         * sysdeps/posix/cuserid.c (cuserid): Likewise.
21530         * sysdeps/posix/dirfd.c (dirfd): Likewise.
21531         * sysdeps/posix/dup.c (__dup): Likewise.
21532         * sysdeps/posix/dup2.c (__dup2): Likewise.
21533         * sysdeps/posix/euidaccess.c (euidaccess): Likewise.
21534         (main): Likewise.
21535         * sysdeps/posix/flock.c (__flock): Likewise.
21536         * sysdeps/posix/fpathconf.c (__fpathconf): Likewise.
21537         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
21538         * sysdeps/posix/gethostname.c (__gethostname): Likewise.
21539         * sysdeps/posix/gettimeofday.c (__gettimeofday): Likewise.
21540         * sysdeps/posix/isatty.c (__isatty): Likewise.
21541         * sysdeps/posix/killpg.c (killpg): Likewise.
21542         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
21543         * sysdeps/posix/mkfifoat.c (mkfifoat): Likewise.
21544         * sysdeps/posix/raise.c (raise): Likewise.
21545         * sysdeps/posix/remove.c (remove): Likewise.
21546         * sysdeps/posix/rename.c (rename): Likewise.
21547         * sysdeps/posix/rewinddir.c (__rewinddir): Likewise.
21548         * sysdeps/posix/seekdir.c (seekdir): Likewise.
21549         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
21550         * sysdeps/posix/sigignore.c (sigignore): Likewise.
21551         * sysdeps/posix/sigintr.c (siginterrupt): Likewise.
21552         * sysdeps/posix/signal.c (__bsd_signal): Likewise.
21553         * sysdeps/posix/sigset.c (sigset): Likewise.
21554         * sysdeps/posix/sigsuspend.c (__sigsuspend): Likewise.
21555         * sysdeps/posix/sysconf.c (__sysconf): Likewise.
21556         * sysdeps/posix/sysv_signal.c (__sysv_signal): Likewise.
21557         * sysdeps/posix/time.c (time): Likewise.
21558         * sysdeps/posix/ttyname.c (getttyname): Likewise.
21559         (ttyname): Likewise.
21560         * sysdeps/posix/ttyname_r.c (__ttyname_r): Likewise.
21561         * sysdeps/posix/utime.c (utime): Likewise.
21562         * sysdeps/powerpc/fpu/s_isnan.c (__isnan): Likewise.
21563         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
21564         Likewise.
21565         * sysdeps/powerpc/nptl/pthread_spin_trylock.c
21566         (pthread_spin_trylock): Likewise.
21567         * sysdeps/pthread/aio_error.c (aio_error): Likewise.
21568         * sysdeps/pthread/aio_read.c (aio_read): Likewise.
21569         * sysdeps/pthread/aio_read64.c (aio_read64): Likewise.
21570         * sysdeps/pthread/aio_write.c (aio_write): Likewise.
21571         * sysdeps/pthread/aio_write64.c (aio_write64): Likewise.
21572         * sysdeps/pthread/flockfile.c (__flockfile): Likewise.
21573         * sysdeps/pthread/ftrylockfile.c (__ftrylockfile): Likewise.
21574         * sysdeps/pthread/funlockfile.c (__funlockfile): Likewise.
21575         * sysdeps/pthread/timer_create.c (timer_create): Likewise.
21576         * sysdeps/pthread/timer_getoverr.c (timer_getoverrun): Likewise.
21577         * sysdeps/pthread/timer_gettime.c (timer_gettime): Likewise.
21578         * sysdeps/s390/ffs.c (__ffs): Likewise.
21579         * sysdeps/s390/nptl/pthread_spin_lock.c (pthread_spin_lock):
21580         Likewise.
21581         * sysdeps/s390/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
21582         Likewise.
21583         * sysdeps/sh/nptl/pthread_spin_lock.c (pthread_spin_lock):
21584         Likewise.
21585         * sysdeps/sparc/nptl/pthread_barrier_destroy.c
21586         (pthread_barrier_destroy): Likewise.
21587         * sysdeps/sparc/nptl/pthread_barrier_wait.c
21588         (__pthread_barrier_wait): Likewise.
21589         * sysdeps/sparc/sparc32/e_sqrt.c (__ieee754_sqrt): Likewise.
21590         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
21591         (__pthread_barrier_wait): Likewise.
21592         * sysdeps/sparc/sparc32/sem_init.c (__old_sem_init): Likewise.
21593         * sysdeps/tile/memcmp.c (memcmp_common_alignment): Likewise.
21594         (memcmp_not_common_alignment): Likewise.
21595         (MEMCMP): Likewise.
21596         * sysdeps/tile/wordcopy.c (_wordcopy_fwd_aligned): Likewise.
21597         (_wordcopy_fwd_dest_aligned): Likewise.
21598         (_wordcopy_bwd_aligned): Likewise.
21599         (_wordcopy_bwd_dest_aligned): Likewise.
21600         * sysdeps/unix/bsd/ftime.c (ftime): Likewise.
21601         * sysdeps/unix/bsd/gtty.c (gtty): Likewise.
21602         * sysdeps/unix/bsd/stty.c (stty): Likewise.
21603         * sysdeps/unix/bsd/tcflow.c (tcflow): Likewise.
21604         * sysdeps/unix/bsd/tcflush.c (tcflush): Likewise.
21605         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Likewise.
21606         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
21607         * sysdeps/unix/bsd/tcsendbrk.c (tcsendbreak): Likewise.
21608         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
21609         * sysdeps/unix/bsd/tcsetpgrp.c (tcsetpgrp): Likewise.
21610         * sysdeps/unix/bsd/ualarm.c (ualarm): Likewise.
21611         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
21612         * sysdeps/unix/getlogin_r.c (__getlogin_r): Likewise.
21613         * sysdeps/unix/sockatmark.c (sockatmark): Likewise.
21614         * sysdeps/unix/stime.c (stime): Likewise.
21615         * sysdeps/unix/sysv/linux/_exit.c (_exit): Likewise.
21616         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue):
21617         Likewise.  Use internal_function.
21618         * sysdeps/unix/sysv/linux/arm/sigaction.c (__libc_sigaction):
21619         Convert to prototype-style function definition.
21620         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
21621         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
21622         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Likewise.
21623         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
21624         Likewise.  Use internal_function.
21625         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Convert to
21626         prototype-style function definition
21627         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
21628         Likewise.
21629         (__getlogin_r): Likewise.
21630         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Likewise.
21631         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c
21632         (__pthread_cond_broadcast): Likewise.
21633         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c
21634         (__pthread_cond_destroy): Likewise.
21635         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c
21636         (__pthread_cond_init): Likewise.
21637         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c
21638         (__pthread_cond_signal): Likewise.
21639         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c
21640         (__pthread_cond_wait): Likewise.
21641         * sysdeps/unix/sysv/linux/i386/getmsg.c (getmsg): Likewise.
21642         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
21643         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__libc_sigaction):
21644         Likewise.
21645         * sysdeps/unix/sysv/linux/ia64/sigpending.c (sigpending):
21646         Likewise.
21647         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
21648         Likewise.
21649         * sysdeps/unix/sysv/linux/mips/sigaction.c (__libc_sigaction):
21650         Likewise.
21651         * sysdeps/unix/sysv/linux/msgget.c (msgget): Likewise.
21652         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c
21653         (__ftruncate64): Likewise.
21654         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c
21655         (truncate64): Likewise.
21656         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Likewise.
21657         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c
21658         (pthread_getcpuclockid): Likewise.
21659         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
21660         Likewise.
21661         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
21662         Likewise.
21663         * sysdeps/unix/sysv/linux/pthread_sigmask.c (pthread_sigmask):
21664         Likewise.
21665         * sysdeps/unix/sysv/linux/pthread_sigqueue.c (pthread_sigqueue):
21666         Likewise.
21667         * sysdeps/unix/sysv/linux/raise.c (raise): Likewise.
21668         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c
21669         (__libc_sigaction): Likewise.
21670         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c (sigpending):
21671         Likewise.
21672         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
21673         (__sigprocmask): Likewise.
21674         * sysdeps/unix/sysv/linux/semget.c (semget): Likewise.
21675         * sysdeps/unix/sysv/linux/semop.c (semop): Likewise.
21676         * sysdeps/unix/sysv/linux/setrlimit64.c (setrlimit64): Likewise.
21677         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
21678         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
21679         * sysdeps/unix/sysv/linux/shmget.c (shmget): Likewise.
21680         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
21681         Likewise.
21682         * sysdeps/unix/sysv/linux/sigpending.c (sigpending): Likewise.
21683         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Likewise.
21684         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
21685         * sysdeps/unix/sysv/linux/sigstack.c (sigstack): Likewise.
21686         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c (sigpending):
21687         Likewise.
21688         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
21689         (__sigprocmask): Likewise.
21690         * sysdeps/unix/sysv/linux/speed.c (cfgetospeed): Likewise.
21691         (cfgetispeed): Likewise.
21692         (cfsetospeed): Likewise.
21693         (cfsetispeed): Likewise.
21694         * sysdeps/unix/sysv/linux/tcflow.c (tcflow): Likewise.
21695         * sysdeps/unix/sysv/linux/tcflush.c (tcflush): Likewise.
21696         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
21697         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
21698         * sysdeps/unix/sysv/linux/time.c (time): Likewise.
21699         * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Likewise.
21700         * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Likewise.
21701         * sysdeps/unix/sysv/linux/timer_getoverr.c (timer_getoverrun):
21702         Likewise.
21703         * sysdeps/unix/sysv/linux/timer_gettime.c (timer_gettime):
21704         Likewise.
21705         * sysdeps/unix/sysv/linux/x86_64/sigpending.c (sigpending):
21706         Likewise.
21707         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
21708         Likewise.
21709         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
21710
21711 2015-10-17  Florian Weimer  <fweimer@redhat.com>
21712
21713         sunrpc: Rewrite with explicit TLS access using __thread.
21714         * sunrpc/rpc_thread.c (thread_rpc_vars): New TLS variable.
21715         (__rpc_thread_destroy, rpc_thread_multi): Access thread_rpc_vars
21716         directly.
21717         (__rpc_thread_variables): Access thread_rpc_vars directly.
21718         Eliminate redundant assignment of the tvp variable.
21719
21720 2015-10-17  Florian Weimer  <fweimer@redhat.com>
21721
21722         malloc: Rewrite with explicit TLS access using __thread.
21723         * sysdeps/generic/malloc-machine.h (tsd_key_t, tsd_key_create)
21724         (tsd_setspecific, tsd_getspecific): Remove.
21725         * sysdeps/mach/hurd/malloc-machine.h (tsd_key_t, tsd_key_create)
21726         (tsd_setspecific, tsd_getspecific): Likewise.
21727         * sysdeps/nptl/malloc-machine.h (tsd_key_t, tsd_key_create)
21728         (tsd_setspecific, tsd_getspecific): Likewise.
21729         * malloc/arena.c (thread_arena): New TLS variable.
21730         (arena_key): Remove variable.
21731         (arena_get): Use thread_arena.
21732         (arena_lookup): Remove macro.
21733         (malloc_atfork, free_atfork, ptmalloc_lock_all)
21734         (ptmalloc_unlock_all, ptmalloc_unlock_all2, ptmalloc_init)
21735         (_int_new_arena, get_free_list, reused_arena)
21736         (arena_thread_freeres): Use thread_arena.
21737         * manual/memory.texi (Basic Allocation): Remove arena_lookup,
21738         tsd_getspecific, tsd_setspecific from safety annotations.
21739         (Allocating Cleared Space): Remove arena_lookup from safety
21740         annotations.
21741
21742 2015-10-17  Florian Weimer  <fweimer@redhat.com>
21743
21744         * stdio-common/vfprintf.c (printf_positional): Rewrite to use
21745         struct scratch_buffer instead of extend_alloca.
21746
21747 2015-10-17  Florian Weimer  <fweimer@redhat.com>
21748
21749         * sysdeps/unix/sysv/linux/kernel-features.h
21750         (__ASSUME_SOCK_CLOEXEC): Remove.
21751         * include/sys/socket.h (__have_sock_cloexec): Remove declaration.
21752         (__have_paccept): Remove unused macro.
21753         * include/unistd.h (__have_sock_cloexec): Remove declaration.
21754         * misc/syslog.c (openlog_internal): Remove fallback code for
21755         !__ASSUME_SOCK_CLOEXEC.
21756         * nis/ypclnt.c (yp_bind_client_create): Remove fallback code for
21757         missing SOCK_CLOEXEC.
21758         * nscd/connections.c (have_sock_cloexec): Remove definition.
21759         (nscd_init): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
21760         * nscd/nscd_helper.c (open_socket): Remove fallback code for
21761         !__ASSUME_SOCK_CLOEXEC.
21762         * resolv/res_send.c (__have_o_nonblock): Remove definition.
21763         (reopen): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
21764         * socket/have_sock_cloexec.c (__have_sock_cloexec): Remove
21765         definition.
21766         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Remove fallback
21767         code for !__ASSUME_SOCK_CLOEXEC.
21768
21769 2015-10-17  Florian Weimer  <fweimer@redhat.com>
21770
21771         [BZ #18982]
21772         * manual/stdio.texi (Variable Arguments Output): Add portability
21773         note, explaining that vfprintf clobbers the va_list pointer.
21774
21775 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
21776
21777         * math/libm-test.inc (fabs_test_data): Add more tests.
21778         (fdim_test_data): Likewise.
21779         (fma_test_data): Likewise.
21780         (fmax_test_data): Likewise.
21781         (fmin_test_data): Likewise.
21782         (fmod_test_data): Likewise.
21783
21784 2015-10-16  Steve Ellcey  <sellcey@imgtec.com>
21785
21786         * sysdeps/mips/memcpy.S (memcpy):  Add word copies for small aligned
21787         data.
21788
21789 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
21790
21791         * math/libm-test.inc (ceil_test_data): Add more tests and more
21792         expectations for "inexact".
21793         (floor_test_data): Add more tests.
21794         (round_test_data): Likewise.
21795         (trunc_test_data): Likewise.
21796
21797         * crypt/cert.c (good_bye): Convert to prototype-style function
21798         definition.
21799         (get8): Likewise.
21800         (put8): Likewise.
21801         * crypt/crypt-entry.c (crypt): Likewise.
21802         (__fcrypt): Likewise.
21803         * crypt/crypt_util.c (_ufc_prbits): Likewise.
21804         (_ufc_set_bits): Likewise.
21805         (_ufc_clearmem): Likewise.
21806         (__init_des_r): Likewise.
21807         (shuffle_sb): Likewise.
21808         (shuffle_sb): Likewise.
21809         (_ufc_setup_salt_r): Likewise.
21810         (_ufc_mk_keytab_r): Likewise.
21811         (_ufc_dofinalperm_r): Likewise.
21812         (encrypt): Likewise.
21813         (__setkey_r): Likewise.
21814         (setkey): Likewise.
21815         * crypt/md5.c (md5_init_ctx): Likewise.
21816         (md5_read_ctx): Likewise.
21817         (md5_finish_ctx): Likewise.
21818         (md5_stream): Likewise.
21819         (md5_buffer): Likewise.
21820         (md5_process_bytes): Likewise.
21821         * crypt/sha256.c (__sha256_init_ctx): Likewise.
21822         (__sha256_finish_ctx): Likewise.
21823         (__sha256_process_bytes): Likewise.
21824         * crypt/sha512.c (__sha512_init_ctx): Likewise.
21825         (__sha512_finish_ctx): Likewise.
21826         (__sha512_process_bytes): Likewise.
21827         * ctype/isctype.c (__isctype): Likewise.
21828         * debug/backtrace.c (__backtrace): Likewise.
21829         * debug/backtracesymsfd.c (__backtrace_symbols_fd): Likewise.
21830         * debug/fgets_chk.c (__fgets_chk): Likewise.
21831         * debug/fgets_u_chk.c (__fgets_unlocked_chk): Likewise.
21832         * debug/memcpy_chk.c (__memcpy_chk): Likewise.
21833         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
21834         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
21835         * debug/memset_chk.c (__memset_chk): Likewise.
21836         * debug/strcat_chk.c (__strcat_chk): Likewise.
21837         * debug/strncat_chk.c (__strncat_chk): Likewise.
21838         * debug/strncpy_chk.c (__strncpy_chk): Likewise.
21839         * debug/vsprintf_chk.c (_IO_str_chk_overflow): Likewise.
21840         * dirent/dirfd.c (dirfd): Likewise.
21841         * dirent/getdents.c (__getdirentries): Likewise.
21842         * dirent/getdents64.c (getdirentries64): Likewise.
21843         * dirent/rewinddir.c (__rewinddir): Likewise.
21844         * dirent/seekdir.c (seekdir): Likewise.
21845         * dirent/telldir.c (telldir): Likewise.
21846         * elf/sln.c (makesymlinks): Likewise.
21847         (makesymlink): Likewise.
21848         * gmon/gmon.c (__moncontrol): Likewise.
21849         (__monstartup): Likewise.
21850         (write_hist): Likewise.
21851         (write_call_graph): Likewise.
21852         (write_bb_counts): Likewise.
21853         * grp/setgroups.c (setgroups): Likewise.
21854         * inet/inet_lnaof.c (inet_lnaof): Likewise.
21855         * inet/inet_net.c (inet_network): Likewise.
21856         * inet/inet_netof.c (inet_netof): Likewise.
21857         * inet/rcmd.c (rresvport_af): Likewise.
21858         (rresvport): Likewise.
21859         * io/access.c (__access): Likewise.
21860         * io/chdir.c (__chdir): Likewise.
21861         * io/chmod.c (__chmod): Likewise.
21862         * io/chown.c (__chown): Likewise.
21863         * io/close.c (__close): Likewise.
21864         * io/creat.c (creat): Likewise.
21865         * io/creat64.c (creat64): Likewise.
21866         * io/dup.c (__dup): Likewise.
21867         * io/dup2.c (__dup2): Likewise.
21868         * io/dup3.c (__dup3): Likewise.
21869         * io/euidaccess.c (__euidaccess): Likewise.
21870         * io/faccessat.c (faccessat): Likewise.
21871         * io/fchmod.c (__fchmod): Likewise.
21872         * io/fchmodat.c (fchmodat): Likewise.
21873         * io/fchown.c (__fchown): Likewise.
21874         * io/fchownat.c (fchownat): Likewise.
21875         * io/fcntl.c (__fcntl): Likewise.
21876         * io/flock.c (__flock): Likewise.
21877         * io/fts.c (fts_load): Likewise.
21878         (fts_close): Likewise.
21879         (fts_read): Likewise.
21880         (fts_set): Likewise.
21881         (fts_children): Likewise.
21882         (fts_build): Likewise.
21883         (fts_stat): Likewise.
21884         (fts_sort): Likewise.
21885         (fts_alloc): Likewise.
21886         (fts_lfree): Likewise.
21887         (fts_palloc): Likewise.
21888         (fts_padjust): Likewise.
21889         (fts_maxarglen): Likewise.
21890         (fts_safe_changedir): Likewise.
21891         * io/getwd.c (getwd): Likewise.
21892         * io/isatty.c (__isatty): Likewise.
21893         * io/lchown.c (__lchown): Likewise.
21894         * io/link.c (__link): Likewise.
21895         * io/linkat.c (linkat): Likewise.
21896         * io/lseek.c (__libc_lseek): Likewise.
21897         * io/mkdir.c (__mkdir): Likewise.
21898         * io/mkdirat.c (mkdirat): Likewise.
21899         * io/mkfifo.c (mkfifo): Likewise.
21900         * io/mkfifoat.c (mkfifoat): Likewise.
21901         * io/open.c (__libc_open): Likewise.
21902         * io/open64.c (__libc_open64): Likewise.
21903         * io/readlink.c (__readlink): Likewise.
21904         * io/readlinkat.c (readlinkat): Likewise.
21905         * io/rmdir.c (__rmdir): Likewise.
21906         * io/symlink.c (__symlink): Likewise.
21907         * io/symlinkat.c (symlinkat): Likewise.
21908         * io/ttyname.c (ttyname): Likewise.
21909         * io/ttyname_r.c (__ttyname_r): Likewise.
21910         * io/umask.c (__umask): Likewise.
21911         * io/unlink.c (__unlink): Likewise.
21912         * io/unlinkat.c (unlinkat): Likewise.
21913         * io/utime.c (utime): Likewise.
21914         * libio/clearerr.c (clearerr): Likewise.
21915         * libio/clearerr_u.c (clearerr_unlocked): Likewise.
21916         * libio/feof.c (_IO_feof): Likewise.
21917         * libio/feof_u.c (feof_unlocked): Likewise.
21918         * libio/ferror.c (_IO_ferror): Likewise.
21919         * libio/ferror_u.c (ferror_unlocked): Likewise.
21920         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
21921         * libio/fileno.c (__fileno): Likewise.
21922         * libio/fputc.c (fputc): Likewise.
21923         * libio/fputc_u.c (fputc_unlocked): Likewise.
21924         * libio/fputwc.c (fputwc): Likewise.
21925         * libio/fputwc_u.c (fputwc_unlocked): Likewise.
21926         * libio/freopen.c (freopen): Likewise.
21927         * libio/freopen64.c (freopen64): Likewise.
21928         * libio/fseek.c (fseek): Likewise.
21929         * libio/fseeko.c (fseeko): Likewise.
21930         * libio/fseeko64.c (fseeko64): Likewise.
21931         * libio/ftello.c (__ftello): Likewise.
21932         * libio/ftello64.c (ftello64): Likewise.
21933         * libio/fwide.c (fwide): Likewise.
21934         * libio/genops.c (_IO_un_link): Likewise.
21935         (_IO_link_in): Likewise.
21936         (_IO_least_marker): Likewise.
21937         (_IO_switch_to_main_get_area): Likewise.
21938         (_IO_switch_to_backup_area): Likewise.
21939         (_IO_switch_to_get_mode): Likewise.
21940         (_IO_free_backup_area): Likewise.
21941         (_IO_switch_to_put_mode): Likewise.
21942         (__overflow): Likewise.
21943         (__underflow): Likewise.
21944         (__uflow): Likewise.
21945         (_IO_setb): Likewise.
21946         (_IO_doallocbuf): Likewise.
21947         (_IO_default_underflow): Likewise.
21948         (_IO_default_uflow): Likewise.
21949         (_IO_default_xsputn): Likewise.
21950         (_IO_sgetn): Likewise.
21951         (_IO_default_xsgetn): Likewise.
21952         (_IO_sync): Likewise.
21953         (_IO_default_setbuf): Likewise.
21954         (_IO_default_seekpos): Likewise.
21955         (_IO_default_doallocate): Likewise.
21956         (_IO_init): Likewise.
21957         (_IO_old_init): Likewise.
21958         (_IO_default_sync): Likewise.
21959         (_IO_default_finish): Likewise.
21960         (_IO_default_seekoff): Likewise.
21961         (_IO_sputbackc): Likewise.
21962         (_IO_sungetc): Likewise.
21963         (_IO_set_column): Likewise.
21964         (_IO_set_column): Likewise.
21965         (_IO_adjust_column): Likewise.
21966         (_IO_get_column): Likewise.
21967         (_IO_init_marker): Likewise.
21968         (_IO_remove_marker): Likewise.
21969         (_IO_marker_difference): Likewise.
21970         (_IO_marker_delta): Likewise.
21971         (_IO_seekmark): Likewise.
21972         (_IO_unsave_markers): Likewise.
21973         (_IO_nobackup_pbackfail): Likewise.
21974         (_IO_default_pbackfail): Likewise.
21975         (_IO_default_seek): Likewise.
21976         (_IO_default_stat): Likewise.
21977         (_IO_default_read): Likewise.
21978         (_IO_default_write): Likewise.
21979         (_IO_default_showmanyc): Likewise.
21980         (_IO_default_imbue): Likewise.
21981         (_IO_iter_next): Likewise.
21982         (_IO_iter_file): Likewise.
21983         * libio/getc.c (_IO_getc): Likewise.
21984         * libio/getwc.c (_IO_getwc): Likewise.
21985         * libio/iofclose.c (_IO_new_fclose): Likewise.
21986         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
21987         * libio/iofflush.c (_IO_fflush): Likewise.
21988         * libio/iofflush_u.c (__fflush_unlocked): Likewise.
21989         * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
21990         * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
21991         * libio/iofgets.c (_IO_fgets): Likewise.
21992         * libio/iofgets_u.c (__fgets_unlocked): Likewise.
21993         * libio/iofgetws.c (fgetws): Likewise.
21994         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
21995         * libio/iofopen64.c (_IO_fopen64): Likewise.
21996         * libio/iofopncook.c (_IO_cookie_read): Likewise.
21997         (_IO_cookie_write): Likewise.
21998         (_IO_cookie_seek): Likewise.
21999         (_IO_cookie_close): Likewise.
22000         (_IO_cookie_seekoff): Likewise.
22001         (_IO_old_cookie_seek): Likewise.
22002         * libio/iofputs.c (_IO_fputs): Likewise.
22003         * libio/iofputs_u.c (__fputs_unlocked): Likewise.
22004         * libio/iofputws.c (fputws): Likewise.
22005         * libio/iofputws_u.c (fputws_unlocked): Likewise.
22006         * libio/iofread.c (_IO_fread): Likewise.
22007         * libio/iofread_u.c (__fread_unlocked): Likewise.
22008         * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
22009         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
22010         * libio/ioftell.c (_IO_ftell): Likewise.
22011         * libio/iofwrite.c (_IO_fwrite): Likewise.
22012         * libio/iogetdelim.c (_IO_getdelim): Likewise.
22013         * libio/iogets.c (_IO_gets): Likewise.
22014         * libio/iopadn.c (_IO_padn): Likewise.
22015         * libio/iopopen.c (_IO_new_proc_open): Likewise.
22016         (_IO_new_popen): Likewise.
22017         (_IO_new_proc_close): Likewise.
22018         * libio/ioputs.c (_IO_puts): Likewise.
22019         * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
22020         (_IO_seekoff): Likewise.
22021         * libio/ioseekpos.c (_IO_seekpos_unlocked): Likewise.
22022         (_IO_seekpos): Likewise.
22023         * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
22024         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
22025         * libio/ioungetc.c (_IO_ungetc): Likewise.
22026         * libio/ioungetwc.c (ungetwc): Likewise.
22027         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
22028         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
22029         * libio/iowpadn.c (_IO_wpadn): Likewise.
22030         * libio/libc_fatal.c (__libc_fatal): Likewise.
22031         * libio/memstream.c (__open_memstream): Likewise.
22032         (_IO_mem_sync): Likewise.
22033         (_IO_mem_finish): Likewise.
22034         * libio/oldfileops.c (_IO_old_file_init): Likewise.
22035         (_IO_old_file_close_it): Likewise.
22036         (_IO_old_file_finish): Likewise.
22037         (_IO_old_file_fopen): Likewise.
22038         (_IO_old_file_attach): Likewise.
22039         (_IO_old_file_setbuf): Likewise.
22040         (_IO_old_do_write): Likewise.
22041         (old_do_write): Likewise.
22042         (_IO_old_file_underflow): Likewise.
22043         (_IO_old_file_overflow): Likewise.
22044         (_IO_old_file_sync): Likewise.
22045         (_IO_old_file_seekoff): Likewise.
22046         (_IO_old_file_write): Likewise.
22047         (_IO_old_file_xsputn): Likewise.
22048         * libio/oldiofclose.c (_IO_old_fclose): Likewise.
22049         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
22050         * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
22051         * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
22052         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
22053         * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
22054         * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
22055         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
22056         (_IO_old_popen): Likewise.
22057         (_IO_old_proc_close): Likewise.
22058         * libio/oldpclose.c (__old_pclose): Likewise.
22059         * libio/pclose.c (__new_pclose): Likewise.
22060         * libio/peekc.c (_IO_peekc_locked): Likewise.
22061         * libio/putc.c (_IO_putc): Likewise.
22062         * libio/putc_u.c (putc_unlocked): Likewise.
22063         * libio/putchar.c (putchar): Likewise.
22064         * libio/putchar_u.c (putchar_unlocked): Likewise.
22065         * libio/putwc.c (putwc): Likewise.
22066         * libio/putwc_u.c (putwc_unlocked): Likewise.
22067         * libio/putwchar.c (putwchar): Likewise.
22068         * libio/putwchar_u.c (putwchar_unlocked): Likewise.
22069         * libio/rewind.c (rewind): Likewise.
22070         * libio/setbuf.c (setbuf): Likewise.
22071         * libio/setlinebuf.c (setlinebuf): Likewise.
22072         * libio/vasprintf.c (_IO_vasprintf): Likewise.
22073         * libio/vscanf.c (_IO_vscanf): Likewise.
22074         * libio/vsnprintf.c (_IO_strn_overflow): Likewise.
22075         * libio/vswprintf.c (_IO_wstrn_overflow): Likewise.
22076         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
22077         * libio/wgenops.c (_IO_least_wmarker): Likewise.
22078         (_IO_switch_to_main_wget_area): Likewise.
22079         (_IO_switch_to_wbackup_area): Likewise.
22080         (_IO_wsetb): Likewise.
22081         (_IO_wdefault_pbackfail): Likewise.
22082         (_IO_wdefault_finish): Likewise.
22083         (_IO_wdefault_uflow): Likewise.
22084         (__woverflow): Likewise.
22085         (__wuflow): Likewise.
22086         (__wunderflow): Likewise.
22087         (_IO_wdefault_xsputn): Likewise.
22088         (_IO_wdefault_xsgetn): Likewise.
22089         (_IO_wdoallocbuf): Likewise.
22090         (_IO_wdefault_doallocate): Likewise.
22091         (_IO_switch_to_wget_mode): Likewise.
22092         (_IO_free_wbackup_area): Likewise.
22093         (_IO_switch_to_wput_mode): Likewise.
22094         (_IO_sputbackwc): Likewise.
22095         (_IO_sungetwc): Likewise.
22096         (_IO_adjust_wcolumn): Likewise.
22097         (_IO_init_wmarker): Likewise.
22098         (_IO_wmarker_delta): Likewise.
22099         (_IO_seekwmark): Likewise.
22100         (_IO_unsave_wmarkers): Likewise.
22101         * libio/wmemstream.c (open_wmemstream): Likewise.
22102         (_IO_wmem_sync): Likewise.
22103         (_IO_wmem_finish): Likewise.
22104         * locale/nl_langinfo.c (nl_langinfo): Likewise.
22105         * locale/nl_langinfo_l.c (__nl_langinfo_l): Likewise.
22106         * locale/programs/simple-hash.c (init_hash): Likewise.
22107         (delete_hash): Likewise.
22108         (insert_entry): Likewise.
22109         (set_entry): Likewise.
22110         (next_prime): Likewise.
22111         (is_prime): Likewise.
22112         * locale/programs/xmalloc.c (fixup_null_alloc): Likewise.
22113         (xmalloc): Likewise.
22114         (xrealloc): Likewise.
22115         * locale/programs/xstrdup.c (xstrdup): Likewise.
22116         * localedata/collate-test.c (xstrcoll): Likewise.
22117         * localedata/xfrm-test.c (xstrcmp): Likewise.
22118         * login/getlogin_r.c (__getlogin_r): Likewise.
22119         * login/getpt.c (__posix_openpt): Likewise.
22120         * login/login_tty.c (login_tty): Likewise.
22121         * login/setlogin.c (setlogin): Likewise.
22122         * mach/msg-destroy.c (__mach_msg_destroy): Likewise.
22123         (mach_msg_destroy_port): Likewise.
22124         (mach_msg_destroy_memory): Likewise.
22125         * malloc/mcheck.c (flood): Likewise.
22126         * misc/acct.c (acct): Likewise.
22127         * misc/brk.c (__brk): Likewise.
22128         * misc/chflags.c (chflags): Likewise.
22129         * misc/chroot.c (chroot): Likewise.
22130         * misc/fchflags.c (fchflags): Likewise.
22131         * misc/fstab.c (getfsspec): Likewise.
22132         (getfsfile): Likewise.
22133         * misc/fsync.c (fsync): Likewise.
22134         * misc/ftruncate.c (__ftruncate): Likewise.
22135         * misc/ftruncate64.c (__ftruncate64): Likewise.
22136         * misc/getdomain.c (getdomainname): Likewise.
22137         (getdomainname): Likewise.
22138         * misc/gethostname.c (__gethostname): Likewise.
22139         * misc/getpass.c (getpass): Likewise.
22140         * misc/getttyent.c (skip): Likewise.
22141         (value): Likewise.
22142         * misc/gtty.c (gtty): Likewise.
22143         * misc/hsearch.c (hsearch): Likewise.
22144         (hcreate): Likewise.
22145         * misc/hsearch_r.c (__hcreate_r): Likewise.
22146         (__hdestroy_r): Likewise.
22147         * misc/ioctl.c (__ioctl): Likewise.
22148         * misc/mkdtemp.c (mkdtemp): Likewise.
22149         * misc/mkostemp.c (mkostemp): Likewise.
22150         * misc/mkostemp64.c (mkostemp64): Likewise.
22151         * misc/mkostemps.c (mkostemps): Likewise.
22152         * misc/mkostemps64.c (mkostemps64): Likewise.
22153         * misc/mkstemp.c (mkstemp): Likewise.
22154         * misc/mkstemp64.c (mkstemp64): Likewise.
22155         * misc/mkstemps.c (mkstemps): Likewise.
22156         * misc/mkstemps64.c (mkstemps64): Likewise.
22157         * misc/mktemp.c (__mktemp): Likewise.
22158         * misc/preadv.c (preadv): Likewise.
22159         * misc/preadv64.c (preadv64): Likewise.
22160         * misc/pwritev.c (pwritev): Likewise.
22161         * misc/pwritev64.c (pwritev64): Likewise.
22162         * misc/readv.c (__readv): Likewise.
22163         * misc/revoke.c (revoke): Likewise.
22164         * misc/setdomain.c (setdomainname): Likewise.
22165         * misc/setegid.c (setegid): Likewise.
22166         * misc/seteuid.c (seteuid): Likewise.
22167         * misc/sethostid.c (sethostid): Likewise.
22168         * misc/sethostname.c (sethostname): Likewise.
22169         * misc/setregid.c (__setregid): Likewise.
22170         * misc/setreuid.c (__setreuid): Likewise.
22171         * misc/sstk.c (sstk): Likewise.
22172         * misc/stty.c (stty): Likewise.
22173         * misc/syscall.c (syscall): Likewise.
22174         * misc/syslog.c (setlogmask): Likewise.
22175         * misc/truncate.c (__truncate): Likewise.
22176         * misc/truncate64.c (truncate64): Likewise.
22177         * misc/ualarm.c (ualarm): Likewise.
22178         * misc/usleep.c (usleep): Likewise.
22179         * misc/ustat.c (ustat): Likewise.
22180         * misc/writev.c (__writev): Likewise.
22181         * nptl/cleanup_compat.c (_pthread_cleanup_pop): Likewise.
22182         * nptl/old_pthread_cond_broadcast.c
22183         (__pthread_cond_broadcast_2_0): Likewise.
22184         * nptl/old_pthread_cond_destroy.c (__pthread_cond_destroy_2_0):
22185         Likewise.
22186         * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0):
22187         Likewise.
22188         * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0):
22189         Likewise.
22190         * nptl/pt-raise.c (raise): Likewise.
22191         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy):
22192         Likewise.
22193         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Likewise.
22194         * nptl/pthread_barrierattr_destroy.c
22195         (pthread_barrierattr_destroy): Likewise.
22196         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
22197         Likewise.
22198         * nptl/pthread_barrierattr_setpshared.c
22199         (pthread_barrierattr_setpshared): Likewise.
22200         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
22201         Likewise.
22202         * nptl/pthread_cond_destroy.c (__pthread_cond_destroy): Likewise.
22203         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
22204         * nptl/pthread_cond_signal.c (__pthread_cond_signal): Likewise.
22205         * nptl/pthread_condattr_destroy.c (__pthread_condattr_destroy):
22206         Likewise.
22207         * nptl/pthread_condattr_getclock.c (pthread_condattr_getclock):
22208         Likewise.
22209         * nptl/pthread_condattr_getpshared.c
22210         (pthread_condattr_getpshared): Likewise.
22211         * nptl/pthread_condattr_init.c (__pthread_condattr_init):
22212         Likewise.
22213         * nptl/pthread_condattr_setpshared.c
22214         (pthread_condattr_setpshared): Likewise.
22215         * nptl/pthread_detach.c (pthread_detach): Likewise.
22216         * nptl/pthread_equal.c (__pthread_equal): Likewise.
22217         * nptl/pthread_getcpuclockid.c (pthread_getcpuclockid): Likewise.
22218         * nptl/pthread_getspecific.c (__pthread_getspecific): Likewise.
22219         * nptl/pthread_key_delete.c (pthread_key_delete): Likewise.
22220         * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent):
22221         Likewise.
22222         * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
22223         Likewise.
22224         * nptl/pthread_mutex_getprioceiling.c
22225         (pthread_mutex_getprioceiling): Likewise.
22226         * nptl/pthread_mutexattr_destroy.c (__pthread_mutexattr_destroy):
22227         Likewise.
22228         * nptl/pthread_mutexattr_getprotocol.c
22229         (pthread_mutexattr_getprotocol): Likewise.
22230         * nptl/pthread_mutexattr_getpshared.c
22231         (pthread_mutexattr_getpshared): Likewise.
22232         * nptl/pthread_mutexattr_getrobust.c
22233         (pthread_mutexattr_getrobust): Likewise.
22234         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
22235         Likewise.
22236         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init):
22237         Likewise.
22238         * nptl/pthread_mutexattr_setprioceiling.c
22239         (pthread_mutexattr_setprioceiling): Likewise.
22240         * nptl/pthread_mutexattr_setprotocol.c
22241         (pthread_mutexattr_setprotocol): Likewise.
22242         * nptl/pthread_mutexattr_setpshared.c
22243         (pthread_mutexattr_setpshared): Likewise.
22244         * nptl/pthread_mutexattr_setrobust.c
22245         (pthread_mutexattr_setrobust): Likewise.
22246         * nptl/pthread_mutexattr_settype.c (__pthread_mutexattr_settype):
22247         Likewise.
22248         * nptl/pthread_rwlock_destroy.c (__pthread_rwlock_destroy):
22249         Likewise.
22250         * nptl/pthread_rwlockattr_destroy.c (pthread_rwlockattr_destroy):
22251         Likewise.
22252         * nptl/pthread_rwlockattr_getkind_np.c
22253         (pthread_rwlockattr_getkind_np): Likewise.
22254         * nptl/pthread_rwlockattr_getpshared.c
22255         (pthread_rwlockattr_getpshared): Likewise.
22256         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init):
22257         Likewise.
22258         * nptl/pthread_rwlockattr_setkind_np.c
22259         (pthread_rwlockattr_setkind_np): Likewise.
22260         * nptl/pthread_rwlockattr_setpshared.c
22261         (pthread_rwlockattr_setpshared): Likewise.
22262         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate):
22263         Likewise.
22264         * nptl/pthread_setcanceltype.c (__pthread_setcanceltype):
22265         Likewise.
22266         * nptl/pthread_setconcurrency.c (pthread_setconcurrency):
22267         Likewise.
22268         * nptl/pthread_setschedprio.c (pthread_setschedprio): Likewise.
22269         * nptl/pthread_setspecific.c (__pthread_setspecific): Likewise.
22270         * nptl/pthread_spin_destroy.c (pthread_spin_destroy): Likewise.
22271         * nptl/pthread_tryjoin.c (pthread_tryjoin_np): Likewise.
22272         * nptl/sem_close.c (sem_close): Likewise.
22273         * nptl/sem_destroy.c (__new_sem_destroy): Likewise.
22274         * nptl/sem_init.c (__old_sem_init): Likewise.
22275         * nptl/sigaction.c (__sigaction): Likewise.
22276         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
22277         * posix/_exit.c (_exit): Likewise.
22278         * posix/alarm.c (alarm): Likewise.
22279         * posix/confstr.c (confstr): Likewise.
22280         * posix/fpathconf.c (__fpathconf): Likewise.
22281         * posix/getgroups.c (__getgroups): Likewise.
22282         * posix/getpgid.c (__getpgid): Likewise.
22283         * posix/group_member.c (__group_member): Likewise.
22284         * posix/pathconf.c (__pathconf): Likewise.
22285         * posix/sched_getaffinity.c (sched_getaffinity): Likewise.
22286         * posix/sched_setaffinity.c (sched_setaffinity): Likewise.
22287         * posix/setgid.c (__setgid): Likewise.
22288         * posix/setpgid.c (__setpgid): Likewise.
22289         * posix/setuid.c (__setuid): Likewise.
22290         * posix/sleep.c (__sleep): Likewise.
22291         * posix/sysconf.c (__sysconf): Likewise.
22292         * posix/times.c (__times): Likewise.
22293         * posix/uname.c (__uname): Likewise.
22294         * posix/waitid.c (__waitid): Likewise.
22295         * pwd/getpw.c (__getpw): Likewise.
22296         * resolv/base64.c (b64_pton): Likewise.
22297         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
22298         * resolv/gethnamaddr.c (Dprintf): Likewise.
22299         (gethostbyname): Likewise.
22300         (gethostbyname2): Likewise.
22301         (gethostbyaddr): Likewise.
22302         (_sethtent): Likewise.
22303         (_gethtbyname): Likewise.
22304         (_gethtbyname2): Likewise.
22305         (_gethtbyaddr): Likewise.
22306         (map_v4v6_address): Likewise.
22307         (map_v4v6_hostent): Likewise.
22308         (addrsort): Likewise.
22309         (ht_sethostent): Likewise.
22310         (ht_gethostbyname): Likewise.
22311         (ht_gethostbyaddr): Likewise.
22312         * resolv/inet_net_ntop.c (inet_net_ntop): Likewise.
22313         (inet_net_ntop_ipv4): Likewise.
22314         * resolv/inet_neta.c (inet_neta): Likewise.
22315         * resolv/inet_ntop.c (inet_ntop): Likewise.
22316         (inet_ntop4): Likewise.
22317         (inet_ntop6): Likewise.
22318         * resolv/inet_pton.c (__inet_pton): Likewise.
22319         (inet_pton4): Likewise.
22320         (inet_pton6): Likewise.
22321         * resolv/res_debug.c (loc_aton): Likewise.
22322         (loc_ntoa): Likewise.
22323         * resource/getpriority.c (__getpriority): Likewise.
22324         * resource/getrusage.c (__getrusage): Likewise.
22325         * resource/nice.c (nice): Likewise.
22326         * resource/setpriority.c (__setpriority): Likewise.
22327         * resource/setrlimit64.c (setrlimit64): Likewise.
22328         * resource/vlimit.c (vlimit): Likewise.
22329         * resource/vtimes.c (vtimes): Likewise.
22330         * rt/aio_error.c (aio_error): Likewise.
22331         * rt/aio_return.c (aio_return): Likewise.
22332         * rt/aio_sigqueue.c (__aio_sigqueue): Likewise.
22333         * signal/kill.c (__kill): Likewise.
22334         * signal/killpg.c (killpg): Likewise.
22335         * signal/raise.c (raise): Likewise.
22336         * signal/sigaction.c (__sigaction): Likewise.
22337         * signal/sigaddset.c (sigaddset): Likewise.
22338         * signal/sigaltstack.c (sigaltstack): Likewise.
22339         * signal/sigandset.c (sigandset): Likewise.
22340         * signal/sigblock.c (__sigblock): Likewise.
22341         * signal/sigdelset.c (sigdelset): Likewise.
22342         * signal/sigempty.c (sigemptyset): Likewise.
22343         * signal/sigfillset.c (sigfillset): Likewise.
22344         * signal/sighold.c (sighold): Likewise.
22345         * signal/sigignore.c (sigignore): Likewise.
22346         * signal/sigintr.c (siginterrupt): Likewise.
22347         * signal/sigisempty.c (sigisemptyset): Likewise.
22348         * signal/sigismem.c (sigismember): Likewise.
22349         * signal/signal.c (signal): Likewise.
22350         * signal/sigorset.c (sigorset): Likewise.
22351         * signal/sigpause.c (__sigpause): Likewise.
22352         * signal/sigpending.c (sigpending): Likewise.
22353         * signal/sigprocmask.c (__sigprocmask): Likewise.
22354         * signal/sigrelse.c (sigrelse): Likewise.
22355         * signal/sigreturn.c (__sigreturn): Likewise.
22356         * signal/sigset.c (sigset): Likewise.
22357         * signal/sigsetmask.c (__sigsetmask): Likewise.
22358         * signal/sigstack.c (sigstack): Likewise.
22359         * signal/sigsuspend.c (__sigsuspend): Likewise.
22360         * signal/sigvec.c (sigvec_wrapper_handler): Likewise.
22361         * signal/sysv_signal.c (__sysv_signal): Likewise.
22362         * socket/accept.c (accept): Likewise.
22363         * socket/accept4.c (__libc_accept4): Likewise.
22364         * socket/bind.c (__bind): Likewise.
22365         * socket/connect.c (__connect): Likewise.
22366         * socket/getpeername.c (getpeername): Likewise.
22367         * socket/getsockname.c (__getsockname): Likewise.
22368         * socket/getsockopt.c (getsockopt): Likewise.
22369         * socket/listen.c (__listen): Likewise.
22370         * socket/recv.c (__recv): Likewise.
22371         * socket/recvmsg.c (__recvmsg): Likewise.
22372         * socket/send.c (__send): Likewise.
22373         * socket/sendmsg.c (__sendmsg): Likewise.
22374         * socket/shutdown.c (shutdown): Likewise.
22375         * socket/sockatmark.c (sockatmark): Likewise.
22376         * socket/socket.c (__socket): Likewise.
22377         * stdio-common/ctermid.c (ctermid): Likewise.
22378         * stdio-common/cuserid.c (cuserid): Likewise.
22379         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
22380         * stdio-common/remove.c (remove): Likewise.
22381         * stdio-common/rename.c (rename): Likewise.
22382         * stdio-common/renameat.c (renameat): Likewise.
22383         * stdio-common/tempname.c (__gen_tempname): Likewise.
22384         * stdio-common/xbug.c (InitBuffer): Likewise.
22385         (AppendToBuffer): Likewise.
22386         (ReadFile): Likewise.
22387         * stdlib/a64l.c (a64l): Likewise.
22388         * stdlib/drand48_r.c (drand48_r): Likewise.
22389         * stdlib/getcontext.c (getcontext): Likewise.
22390         * stdlib/getenv.c (getenv): Likewise.
22391         * stdlib/l64a.c (l64a): Likewise.
22392         * stdlib/llabs.c (llabs): Likewise.
22393         * stdlib/lldiv.c (lldiv): Likewise.
22394         * stdlib/lrand48_r.c (lrand48_r): Likewise.
22395         * stdlib/mrand48_r.c (mrand48_r): Likewise.
22396         * stdlib/putenv.c (putenv): Likewise.
22397         * stdlib/random.c (__srandom): Likewise.
22398         (__initstate): Likewise.
22399         (__setstate): Likewise.
22400         * stdlib/random_r.c (__srandom_r): Likewise.
22401         (__setstate_r): Likewise.
22402         (__random_r): Likewise.
22403         * stdlib/secure-getenv.c (__libc_secure_getenv): Likewise.
22404         * stdlib/setcontext.c (setcontext): Likewise.
22405         * stdlib/setenv.c (setenv): Likewise.
22406         (unsetenv): Likewise.
22407         * stdlib/srand48.c (srand48): Likewise.
22408         * stdlib/srand48_r.c (__srand48_r): Likewise.
22409         * stdlib/swapcontext.c (swapcontext): Likewise.
22410         * stdlib/system.c (__libc_system): Likewise.
22411         * stdlib/tst-strtod.c (expand): Likewise.
22412         * stdlib/tst-strtol.c (expand): Likewise.
22413         * stdlib/tst-strtoll.c (expand): Likewise.
22414         * streams/fattach.c (fattach): Likewise.
22415         * streams/fdetach.c (fdetach): Likewise.
22416         * streams/getmsg.c (getmsg): Likewise.
22417         * streams/isastream.c (isastream): Likewise.
22418         * string/ffs.c (__ffs): Likewise.
22419         * string/ffsll.c (ffsll): Likewise.
22420         * string/memcmp.c (memcmp_common_alignment): Likewise.
22421         (memcmp_not_common_alignment): Likewise.
22422         (MEMCMP): Likewise.
22423         * string/memcpy.c (memcpy): Likewise.
22424         * string/memmove.c (MEMMOVE): Likewise.
22425         * string/memset.c (memset): Likewise.
22426         * string/rawmemchr.c (RAWMEMCHR): Likewise.
22427         * string/strchrnul.c (STRCHRNUL): Likewise.
22428         * string/strerror.c (strerror): Likewise.
22429         * string/strndup.c (__strndup): Likewise.
22430         * string/strverscmp.c (__strverscmp): Likewise.
22431         * sunrpc/clnt_raw.c (clntraw_freeres): Likewise.
22432         * sunrpc/clnt_tcp.c (clnttcp_geterr): Likewise.
22433         (clnttcp_freeres): Likewise.
22434         * sunrpc/clnt_unix.c (clntunix_freeres): Likewise.
22435         * sunrpc/pmap_prot.c (xdr_pmap): Likewise.
22436         * sunrpc/pmap_prot2.c (xdr_pmaplist): Likewise.
22437         * sunrpc/pmap_rmt.c (xdr_rmtcallres): Likewise.
22438         * sunrpc/rpc_prot.c (xdr_replymsg): Likewise.
22439         (xdr_callhdr): Likewise.
22440         * sunrpc/rpcinfo.c (udpping): Likewise.
22441         (tcpping): Likewise.
22442         (pstatus): Likewise.
22443         (pmapdump): Likewise.
22444         (brdcst): Likewise.
22445         (deletereg): Likewise.
22446         (getprognum): Likewise.
22447         (getvers): Likewise.
22448         (get_inet_address): Likewise.
22449         * sunrpc/svc_raw.c (svcraw_recv): Likewise.
22450         * sunrpc/svc_udp.c (svcudp_create): Likewise.
22451         (svcudp_stat): Likewise.
22452         (svcudp_recv): Likewise.
22453         (svcudp_reply): Likewise.
22454         (svcudp_getargs): Likewise.
22455         (svcudp_freeargs): Likewise.
22456         (svcudp_destroy): Likewise.
22457         * sunrpc/xdr.c (xdr_bytes): Likewise.
22458         (xdr_netobj): Likewise.
22459         (xdr_string): Likewise.
22460         (xdr_wrapstring): Likewise.
22461         * sunrpc/xdr_float.c (xdr_float): Likewise.
22462         (xdr_double): Likewise.
22463         * sunrpc/xdr_mem.c (xdrmem_setpos): Likewise.
22464         * sunrpc/xdr_ref.c (xdr_pointer): Likewise.
22465         * sysvipc/ftok.c (ftok): Likewise.
22466         * sysvipc/msgctl.c (msgctl): Likewise.
22467         * sysvipc/msgget.c (msgget): Likewise.
22468         * sysvipc/msgrcv.c (msgrcv): Likewise.
22469         * sysvipc/msgsnd.c (msgsnd): Likewise.
22470         * sysvipc/semget.c (semget): Likewise.
22471         * sysvipc/semop.c (semop): Likewise.
22472         * sysvipc/shmat.c (shmat): Likewise.
22473         * sysvipc/shmctl.c (shmctl): Likewise.
22474         * sysvipc/shmdt.c (shmdt): Likewise.
22475         * sysvipc/shmget.c (shmget): Likewise.
22476         * termios/cfmakeraw.c (cfmakeraw): Likewise.
22477         * termios/speed.c (cfgetospeed): Likewise.
22478         (cfgetispeed): Likewise.
22479         (cfsetospeed): Likewise.
22480         (cfsetispeed): Likewise.
22481         * termios/tcflow.c (tcflow): Likewise.
22482         * termios/tcflush.c (tcflush): Likewise.
22483         * termios/tcgetattr.c (__tcgetattr): Likewise.
22484         * termios/tcgetpgrp.c (tcgetpgrp): Likewise.
22485         * termios/tcgetsid.c (tcgetsid): Likewise.
22486         * termios/tcsendbrk.c (tcsendbreak): Likewise.
22487         * termios/tcsetpgrp.c (tcsetpgrp): Likewise.
22488         * time/adjtime.c (__adjtime): Likewise.
22489         * time/dysize.c (dysize): Likewise.
22490         * time/ftime.c (ftime): Likewise.
22491         * time/getitimer.c (__getitimer): Likewise.
22492         * time/gettimeofday.c (__gettimeofday): Likewise.
22493         * time/gmtime.c (__gmtime_r): Likewise.
22494         (gmtime): Likewise.
22495         * time/localtime.c (__localtime_r): Likewise.
22496         (localtime): Likewise.
22497         * time/offtime.c (__offtime): Likewise.
22498         * time/settimeofday.c (__settimeofday): Likewise.
22499         * time/stime.c (stime): Likewise.
22500         * time/strftime_l.c (tm_diff): Likewise.
22501         (iso_week_days): Likewise.
22502         * time/strptime.c (strptime): Likewise.
22503         * time/time.c (time): Likewise.
22504         * time/timespec_get.c (timespec_get): Likewise.
22505         * time/tzset.c (tzset_internal): Likewise.
22506         (compute_change): Likewise.
22507         (__tz_compute): Likewise.
22508         * wcsmbs/btowc.c (__btowc): Likewise.
22509         * wcsmbs/mbrlen.c (__mbrlen): Likewise.
22510         * wcsmbs/mbsinit.c (__mbsinit): Likewise.
22511         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
22512         * wcsmbs/wcpcpy.c (__wcpcpy): Likewise.
22513         * wcsmbs/wcpncpy.c (__wcpncpy): Likewise.
22514         * wcsmbs/wcscat.c (__wcscat): Likewise.
22515         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
22516         * wcsmbs/wcscmp.c (WCSCMP): Likewise.
22517         * wcsmbs/wcscpy.c (WCSCPY): Likewise.
22518         * wcsmbs/wcscspn.c (wcscspn): Likewise.
22519         * wcsmbs/wcsdup.c (wcsdup): Likewise.
22520         * wcsmbs/wcslen.c (__wcslen): Likewise.
22521         * wcsmbs/wcsncat.c (WCSNCAT): Likewise.
22522         * wcsmbs/wcsncmp.c (WCSNCMP): Likewise.
22523         * wcsmbs/wcsncpy.c (__wcsncpy): Likewise.
22524         * wcsmbs/wcsnlen.c (__wcsnlen): Likewise.
22525         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
22526         * wcsmbs/wcsrchr.c (WCSRCHR): Likewise.
22527         * wcsmbs/wcsspn.c (wcsspn): Likewise.
22528         * wcsmbs/wcsstr.c (wcsstr): Likewise.
22529         * wcsmbs/wcstok.c (wcstok): Likewise.
22530         * wcsmbs/wctob.c (wctob): Likewise.
22531         * wcsmbs/wmemchr.c (__wmemchr): Likewise.
22532         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
22533         * wcsmbs/wmemcpy.c (__wmemcpy): Likewise.
22534         * wcsmbs/wmemmove.c (__wmemmove): Likewise.
22535         * wcsmbs/wmempcpy.c (__wmempcpy): Likewise.
22536         * wcsmbs/wmemset.c (__wmemset): Likewise.
22537         * wctype/wcfuncs.c (__towlower): Likewise.
22538         (__towupper): Likewise.
22539
22540         * sysdeps/unix/sysv/linux/i386/lowlevellock.h
22541         (lll_unlock_elision): Add adapt_count parameter.
22542
22543 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
22544
22545         * sysdeps/nptl/configure.ac: Do not give errors based on the
22546         results of top-level configure tests.
22547         * sysdeps/nptl/configure: Regenerated.
22548
22549         * configure.ac (libc_cv_Bgroup): Remove configure test.
22550         * configure: Regenerated.
22551         * config.make.in (have-Bgroup): Remove variable.
22552
22553         * configure.ac (sizeof_long_double): Remove configure test.
22554         * configure: Regenerated.
22555         * config.make.in (sizeof-long-double): Remove variable.
22556
22557         * configure.ac (libc_cv_gcc_exceptions): Remove configure test.
22558         * configure: Regenerated.
22559         * sysdeps/arm/configure.ac (libc_cv_gcc_exceptions): Do not set
22560         variable.
22561         (exceptions): Likewise.
22562         * sysdeps/arm/configure: Regenerated.
22563         * config.make.in (exceptions): Remove variable.
22564         * Makeconfig (uses-callbacks): Use -fexceptions instead of
22565         $(exceptions).
22566         * debug/Makefile (CFLAGS-dprintf_chk.c): Likewise.
22567         (CFLAGS-vdprintf_chk.c): Likewise.
22568         (CFLAGS-printf_chk.c): Likewise.
22569         (CFLAGS-fprintf_chk.c): Likewise.
22570         (CFLAGS-vprintf_chk.c): Likewise.
22571         (CFLAGS-vfprintf_chk.c): Likewise.
22572         (CFLAGS-gets_chk.c): Likewise.
22573         (CFLAGS-fgets_chk.c): Likewise.
22574         (CFLAGS-fgets_u_chk.c): Likewise.
22575         (CFLAGS-fread_chk.c): Likewise.
22576         (CFLAGS-fread_u_chk.c): Likewise.
22577         (CFLAGS-wprintf_chk.c): Likewise.
22578         (CFLAGS-fwprintf_chk.c): Likewise.
22579         (CFLAGS-vwprintf_chk.c): Likewise.
22580         (CFLAGS-vfwprintf_chk.c): Likewise.
22581         (CFLAGS-fgetws_chk.c): Likewise.
22582         (CFLAGS-fgetws_u_chk.c): Likewise.
22583         * libio/Makefile (CFLAGS-fileops.c): Likewise.
22584         (CFLAGS-fputc.c): Likewise.
22585         (CFLAGS-fputwc.c): Likewise.
22586         (CFLAGS-freopen64.c): Likewise.
22587         (CFLAGS-freopen.c): Likewise.
22588         (CFLAGS-fseek.c): Likewise.
22589         (CFLAGS-fseeko64.c): Likewise.
22590         (CFLAGS-fseeko.c): Likewise.
22591         (CFLAGS-ftello64.c): Likewise.
22592         (CFLAGS-ftello.c): Likewise.
22593         (CFLAGS-fwide.c): Likewise.
22594         (CFLAGS-genops.c): Likewise.
22595         (CFLAGS-getc.c): Likewise.
22596         (CFLAGS-getchar.c): Likewise.
22597         (CFLAGS-getwc.c): Likewise.
22598         (CFLAGS-getwchar.c): Likewise.
22599         (CFLAGS-iofclose.c): Likewise.
22600         (CFLAGS-iofflush.c): Likewise.
22601         (CFLAGS-iofgetpos64.c): Likewise.
22602         (CFLAGS-iofgetpos.c): Likewise.
22603         (CFLAGS-iofgets.c): Likewise.
22604         (CFLAGS-iofgetws.c): Likewise.
22605         (CFLAGS-iofputs.c): Likewise.
22606         (CFLAGS-iofputws.c): Likewise.
22607         (CFLAGS-iofread.c): Likewise.
22608         (CFLAGS-iofsetpos64.c): Likewise.
22609         (CFLAGS-iofsetpos.c): Likewise.
22610         (CFLAGS-ioftell.c): Likewise.
22611         (CFLAGS-iofwrite.c): Likewise.
22612         (CFLAGS-iogetdelim.c): Likewise.
22613         (CFLAGS-iogetline.c): Likewise.
22614         (CFLAGS-iogets.c): Likewise.
22615         (CFLAGS-iogetwline.c): Likewise.
22616         (CFLAGS-ioputs.c): Likewise.
22617         (CFLAGS-ioseekoff.c): Likewise.
22618         (CFLAGS-ioseekpos.c): Likewise.
22619         (CFLAGS-iosetbuffer.c): Likewise.
22620         (CFLAGS-iosetvbuf.c): Likewise.
22621         (CFLAGS-ioungetc.c): Likewise.
22622         (CFLAGS-ioungetwc.c): Likewise.
22623         (CFLAGS-oldfileops.c): Likewise.
22624         (CFLAGS-oldiofclose.c): Likewise.
22625         (CFLAGS-oldiofgetpos64.c): Likewise.
22626         (CFLAGS-oldiofgetpos.c): Likewise.
22627         (CFLAGS-oldiofsetpos64.c): Likewise.
22628         (CFLAGS-oldiofsetpos.c): Likewise.
22629         (CFLAGS-peekc.c): Likewise.
22630         (CFLAGS-putc.c): Likewise.
22631         (CFLAGS-putchar.c): Likewise.
22632         (CFLAGS-putwc.c): Likewise.
22633         (CFLAGS-putwchar.c): Likewise.
22634         (CFLAGS-rewind.c): Likewise.
22635         (CFLAGS-wfileops.c): Likewise.
22636         (CFLAGS-wgenops.c): Likewise.
22637         (CFLAGS-oldiofopen.c): Likewise.
22638         (CFLAGS-iofopen.c): Likewise.
22639         (CFLAGS-iofopen64.c): Likewise.
22640         (CFLAGS-oldtmpfile.c): Likewise.
22641         * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
22642         (CFLAGS-fprintf.c): Likewise.
22643         (CFLAGS-printf.c): Likewise.
22644         (CFLAGS-vfwprintf.c): Likewise.
22645         (CFLAGS-vfscanf.c): Likewise.
22646         (CFLAGS-vfwscanf.c): Likewise.
22647         (CFLAGS-fscanf.c): Likewise.
22648         (CFLAGS-scanf.c): Likewise.
22649         (CFLAGS-isoc99_vfscanf.c): Likewise.
22650         (CFLAGS-isoc99_vscanf.c): Likewise.
22651         (CFLAGS-isoc99_fscanf.c): Likewise.
22652         (CFLAGS-isoc99_scanf.c): Likewise.
22653         * wcsmbs/Makefile (CFLAGS-isoc99_wscanf.c): Likewise.
22654         (CFLAGS-isoc99_fwscanf.c): Likewise.
22655         (CFLAGS-isoc99_vwscanf.c): Likewise.
22656         (CFLAGS-isoc99_vfwscanf.c): Likewise.
22657
22658         * io/test-lfs.c (do_prepare): Do not call add_temp_file until
22659         after mkstemp64.
22660         * login/tst-utmp.c (do_prepare): Likewise.
22661         * rt/tst-aio.c (do_prepare): Likewise.
22662         * rt/tst-aio64.c (do_prepare): Likewise.
22663
22664 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
22665
22666         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
22667         (__lll_lock_elision): Remove adapt_count decrement...
22668         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
22669         (__lll_trylock_elision): Likewise.
22670         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
22671         (__lll_unlock_elision): ... to here. And utilize
22672         new adapt_count parameter.
22673         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
22674         (__lll_unlock_elision): Update to include adapt_count
22675         parameter.
22676         (lll_unlock_elision): Pass pointer to adapt_count
22677         variable.
22678
22679 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
22680
22681         * nptl/pthread_mutex_unlock.c (lll_unlock_elision):
22682         Add elision adapt_count parameter to list of arguments.
22683         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
22684         (lll_unlock_elision): Update with new parameter list
22685         * sysdeps/unix/sysv/linux/s390/lowlevellock.h
22686         (lll_unlock_elision): Likewise.
22687         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
22688         (lll_unlock_elision): Likewise.
22689
22690 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
22691
22692         [BZ #19122]
22693         * include/sys/utsname.h [IS_IN (rtld)] (__uname): Add
22694         attribute_hidden.
22695
22696         * include/string.h [IS_IN (rtld)] (__stpcpy): Add
22697         attribute_hidden.
22698         [IS_IN (rtld)] (__strdup): Likewise.
22699         [IS_IN (rtld)] (__strerror_r): Likewise.
22700         [IS_IN (rtld)] (__strsep_g): Likewise.
22701         [IS_IN (rtld)] (memchr): Likewise.
22702         [IS_IN (rtld)] (memcmp): Likewise.
22703         [IS_IN (rtld)] (memcpy): Likewise.
22704         [IS_IN (rtld)] (memmove): Likewise.
22705         [IS_IN (rtld)] (memset): Likewise.
22706         [IS_IN (rtld)] (rawmemchr): Likewise.
22707         [IS_IN (rtld)] (stpcpy): Likewise.
22708         [IS_IN (rtld)] (strchr): Likewise.
22709         [IS_IN (rtld)] (strcmp): Likewise.
22710         [IS_IN (rtld)] (strlen): Likewise.
22711         [IS_IN (rtld)] (strnlen): Likewise.
22712         [IS_IN (rtld)] (strsep): Likewise.
22713
22714         * include/stdlib.h [IS_IN (rtld)] (unsetenv): Add
22715         attribute_hidden.
22716         [IS_IN (rtld)] (__strtoul_internal): Likewise.
22717
22718         * include/signal.h [IS_IN (rtld)] (__sigaction): Add
22719         attribute_hidden.
22720         [IS_IN (rtld)] (__libc_sigaction): Likewise.
22721
22722         * include/setjmp.h (__longjmp): Add attribute_hidden.
22723         [IS_IN (rtld)] (__sigsetjmp): Likewise.
22724
22725         * include/libc-internal.h [IS_IN (rtld)] (__profile_frequency):
22726         Add attribute_hidden.
22727
22728         * include/fcntl.h (__libc_fcntl): Add attribute_hidden.
22729         [IS_IN (rtld)] (__open): Likewise.
22730         [IS_IN (rtld)] (__fcntl): Likewise.
22731
22732         * include/dirent.h (__opendirat): Add attribute_hidden.
22733         (__getdents): Likewise.
22734         (__getdents64): Likewise.
22735         (__alloc_dir): Likewise.
22736         [IS_IN (rtld)] (__closedir): Likewise.
22737         [IS_IN (rtld)] (__fdopendir): Likewise.
22738         [IS_IN (rtld)] (__readdir): Likewise.
22739         [IS_IN (rtld)] (__readdir64): Likewise.
22740         [IS_IN (rtld)] (__rewinddir): Likewise.
22741
22742         * include/dlfcn.h (_dl_catch_error): Moved to ...
22743         * sysdeps/generic/ldsodefs.h (_dl_catch_error): Add
22744         attribute_hidden.
22745
22746         * sysdeps/generic/_itoa.h (_itoa): Add attribute_hidden.
22747         (_itoa_word): Likewise.
22748
22749         * elf/dl-runtime.c (_dl_fixup): Add attribute_hidden.
22750         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
22751         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
22752         * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Likewise.
22753         (_dl_higher_prime_number): Likewise.
22754         (_dl_debug_printf_c): Likewise.
22755         (_dl_signal_cerror): Likewise.
22756         (_dl_receive_error): Likewise.
22757         (_dl_reloc_bad_type): Likewise.
22758         (_dl_resolve_conflicts): Likewise.
22759         (_dl_check_all_versions): Likewise.
22760         (_dl_check_map_versions): Likewise.
22761         (_dl_sort_fini): Likewise.
22762         (_dl_debug_initialize): Likewise.
22763         (_dl_init_paths): Likewise.
22764         (_dl_show_auxv): Likewise.
22765         (_dl_next_ld_env_entry): Likewise.
22766         (_dl_important_hwcaps): Likewise.
22767         (_dl_load_cache_lookup): Likewise.
22768         (_dl_update_slotinfo): Likewise.
22769         (_dl_show_scope): Likewise.
22770
22771         * sysdeps/generic/memcopy.h (_wordcopy_fwd_aligned): Add
22772         attribute_hidden.
22773         (_wordcopy_fwd_dest_aligned): Likewise.
22774         (_wordcopy_bwd_aligned): Likewise.
22775         (_wordcopy_bwd_dest_aligned): Likewise.
22776
22777         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
22778         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
22779         Likewise.
22780         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
22781         Likewise.
22782         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
22783
22784 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
22785
22786         * sysdeps/unix/sysv/linux/i386/sysdep.h: Add comments for
22787         GCC 5 requirement.
22788
22789 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
22790
22791         * sysdeps/i386/configure.ac (libc_cv_as_i686): Remove configure
22792         test.
22793         * sysdeps/i386/configure: Regenerated.
22794         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]: Make
22795         code unconditional.
22796
22797         * configure.ac (libc_cv_asm_previous_directive): Remove configure
22798         test.
22799         (libc_cv_asm_popsection_directive): Likewise.
22800         * configure: Regenerated.
22801         * config.h.in (HAVE_ASM_PREVIOUS_DIRECTIVE): Remove #undef.
22802         (HAVE_ASM_POPSECTION_DIRECTIVE): Likewise.
22803         * include/libc-symbols.h [HAVE_ASM_PREVIOUS_DIRECTIVE]
22804         (__make_section_unallocated): Make definition unconditional.
22805         [HAVE_ASM_POPSECTION_DIRECTIVE] (__make_section_unallocated):
22806         Remove conditional definition.
22807         [!HAVE_ASM_PREVIOUS_DIRECTIVE && !HAVE_ASM_POPSECTION_DIRECTIVE]
22808         (__make_section_unallocated): Likewise.
22809
22810         * configure.ac (libc_cv_gcc_static_libgcc): Remove configure test.
22811         * configure: Regenerated.
22812         * config.make.in (static-libgcc): Remove variable.
22813         * Makerules (build-shlib-helper): Use -static-libgcc instead of
22814         $(static-libgcc).
22815         (build-module-helper): Likewise.
22816
22817         * configure.ac (libc_cv_friendly_stddef): Remove configure test.
22818         * configure: Regenerated.
22819
22820 2015-10-15  Florian Weimer  <fweimer@redhat.com>
22821
22822         * stdio-common/vfscanf.c (MEMCPY): Remove macro.
22823         (struct char_buffer): New type.
22824         (char_buffer_start, char_buffer_size, char_buffer_error)
22825         (char_buffer_rewind, char_buffer_add): New functions.
22826         (ADDW): Remove macro, replaced by the char_buffer_add function.
22827         (_IO_vfscanf_internal): Rewrite using struct char_buffer instead
22828         of extend_alloca.  Make control flow more explicit.
22829
22830 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
22831
22832         [BZ #19137]
22833         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
22834         Add -fomit-frame-pointer.
22835         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Remove file.
22836
22837 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
22838
22839         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S
22840         (__libc_do_syscall): Defined only if !__GNUC_PREREQ (5,0).
22841         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define assembler macros
22842         only if !__GNUC_PREREQ (5,0).
22843         (INTERNAL_SYSCALL_MAIN_6): Optimize for GCC 5.
22844         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
22845         (INTERNAL_SYSCALL_NCS): Likewise.
22846         (LOADREGS_0): New macro for GCC 5.
22847         (ASMARGS_0): Likewise.
22848         (LOADREGS_1): Likewise.
22849         (ASMARGS_1): Likewise.
22850         (LOADREGS_2): Likewise.
22851         (ASMARGS_2): Likewise.
22852         (LOADREGS_3): Likewise.
22853         (ASMARGS_3): Likewise.
22854         (LOADREGS_4): Likewise.
22855         (ASMARGS_4): Likewise.
22856         (LOADREGS_5): Likewise.
22857         (ASMARGS_5): Likewise.
22858         (LOADREGS_6): Likewise.
22859         (ASMARGS_6): Likewise.
22860
22861 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
22862
22863         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-mmap.c): Add
22864         -fomit-frame-pointer.
22865         (CFLAGS-mmap64.c): Likewise.
22866         (CFLAGS-semtimedop.c): Likewise.
22867         * sysdeps/unix/sysv/linux/i386/mmap.c: New file.
22868         * sysdeps/unix/sysv/linux/i386/mmap.S: Remove file.
22869         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
22870         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
22871
22872 2015-10-15  Florian Weimer  <fweimer@redhat.com>
22873
22874         [BZ #18928]
22875         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
22876         _dl_pointer_guard member.
22877         * elf/rtld.c (_rtld_global_ro): Remove _dl_pointer_guard
22878         initializer.
22879         (security_init): Always set up pointer guard.
22880         (process_envvars): Do not process LD_POINTER_GUARD.
22881
22882 2015-10-14  Joseph Myers  <joseph@codesourcery.com>
22883
22884         [BZ #19134]
22885         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (.LC1): New object.
22886         (.LC2): Likewise.
22887         (.LC3): Likewise.
22888         (__lround): Do not add 0.5 to integer or out-of-range arguments.
22889
22890 2015-10-14  Szabolcs Nagy  <szabolcs.nagy@arm.com>
22891
22892         [BZ #19129]
22893         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save and restore
22894         r0 and r1.
22895
22896 2015-10-14  Namhyung Kim  <namhyung@gmail.com>
22897
22898         * manaual/argp.texi (Specifying Argp Parsers): Fix typo.
22899
22900 2015-10-14  Carlos O'Donell  <carlos@redhat.com>
22901
22902         * include/stap-probe.h: Fix macro definition formatting.
22903
22904 2015-10-14  Florian Weimer  <fweimer@redhat.com>
22905
22906         [BZ #19074]
22907         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use atomics to
22908         load and store num_ifs.
22909
22910 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
22911
22912         [BZ #18822]
22913         * sysdeps/unix/sysv/linux/sched_getaffinity.c
22914         (__sched_getaffinity_new): Add libc_hidden_proto and
22915         libc_hidden_def.
22916
22917 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
22918
22919         [BZ #19007]
22920         * scripts/localplt.awk: Also allow GOT references.
22921         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark
22922         _Unwind_Find_FDE, calloc, memalign, realloc and __libc_memalign
22923         with "+ REL R_386_GLOB_DAT".
22924         * sysdeps/x86_64/localplt.data: Mark calloc, memalign, realloc
22925         and __libc_memalign with "+ RELA R_X86_64_GLOB_DAT".
22926
22927 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
22928
22929         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use
22930         INLINE_SYSCALL_ERROR_RETURN_VALUE.
22931         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat):
22932         Likewise.
22933         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
22934         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
22935         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
22936         INTERNAL_SYSCALLINTERNAL_SYSCALL and
22937         INLINE_SYSCALL_ERROR_RETURN_VALUE.
22938         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
22939         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
22940         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
22941         Likewise.
22942         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
22943
22944 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
22945
22946         [BZ #19125]
22947         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include <limits.h>,
22948         <math_private.h> and <stdint.h>.
22949         (__llround): Avoid conversions to and from long long int, and
22950         subtractions, where those might raise spurious exceptions.
22951         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
22952         <math_private.h> and <stdint.h>.
22953         (__llroundf): Avoid conversions to and from long long int, and
22954         subtractions, where those might raise spurious exceptions.
22955
22956 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
22957
22958         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Use
22959         INLINE_SYSCALL_ERROR_RETURN_VALUE.
22960         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
22961         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Likewise.
22962         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
22963         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
22964         * sysdeps/unix/sysv/linux/fcntl.c (do_fcntl): Likewise.
22965         * sysdeps/unix/sysv/linux/futimens.c (futimens): Likewise.
22966         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
22967         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
22968         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
22969         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
22970         * sysdeps/unix/sysv/linux/lutimes.c (lutimes): Likewise.
22971         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
22972         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
22973         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Likewise.
22974         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Likewise.
22975         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
22976         * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Likewise.
22977         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Likewise.
22978         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
22979         * sysdeps/unix/sysv/linux/signalfd.c (signalfd): Likewise.
22980         * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Likewise.
22981         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
22982         * sysdeps/unix/sysv/linux/ustat.c (ustat): Likewise.
22983         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
22984         * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
22985         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
22986         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
22987         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Likewise.
22988         (__xstat64_conv): Likewise.
22989         (__xstat32_conv): Likewise.
22990
22991 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
22992
22993         * sysdeps/unix/sysv/linux/sysdep.h: New file.
22994         * sysdeps/unix/sysv/linux/i386/sysdep.c: Likewise.
22995         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include
22996         <sysdeps/unix/sysv/linux/sysdep.h>.
22997         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
22998         * sysdeps/unix/sysv/linux/generic/sysdep.h: Likewise.
22999         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
23000         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
23001         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
23002         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Likewise.
23003         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Likewise.
23004         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
23005         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
23006         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
23007         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
23008         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
23009         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
23010         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
23011         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
23012         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
23013         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) == csu]
23014         (sysdep-dl-routines): Add sysdep.
23015         [$(subdir) == nptl] (libpthread-routines): Likewise.
23016         [$(subdir) == rt] (librt-routines): Likewise.
23017         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Don't check
23018         PIC when branching to SYSCALL_ERROR_LABEL.
23019         * sysdeps/unix/sysv/linux/i386/sysdep.S: Removed.
23020         * sysdeps/unix/sysv/linux/i386/sysdep.h: Include
23021         <sysdeps/unix/sysv/linux/sysdep.h>.
23022         (SYSCALL_ERROR_LABEL): Changed to __syscall_error.
23023         (SYSCALL_ERROR_ERRNO): Removed.
23024         (SYSCALL_ERROR_HANDLER): Changed to empty.
23025         (SYSCALL_ERROR_HANDLER_TLS_STORE): Likewise.
23026         (__syscall_error): New prototype.
23027         [IS_IN (libc)] (INLINE_SYSCALL): New macro.
23028         (INLINE_SYSCALL_ERROR_RETURN_VALUE): Likewise.
23029
23030 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
23031
23032         [BZ #19124]
23033         * sysdeps/x86_64/dl-trampoline.S [!HAVE_AVX512_ASM_SUPPORT]
23034         (_dl_runtime_resolve_avx512): Make it a hidden alias of
23035         _dl_runtime_resolve_avx.
23036         (_dl_runtime_profile_avx512): Make it a hidden alias of
23037         _dl_runtime_profile_avx.
23038
23039 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
23040
23041         * sysdeps/powerpc/fpu/s_llround.c: Move to ....
23042         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: ...here.
23043         * sysdeps/powerpc/fpu/s_llroundf.c: Move to ....
23044         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: ...here.
23045
23046         [BZ #16422]
23047         * sysdeps/powerpc/powerpc32/fpu/configure.ac (libc_cv_ppc_fctidz):
23048         New configure test.
23049         * sysdeps/powerpc/powerpc32/fpu/configure: Regenerated.
23050         * config.h.in [_LIBC] (HAVE_PPC_FCTIDZ): New macro.
23051         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include <limits.h>,
23052         <math_private.h> and <stdint.h>.
23053         (__llrint): Avoid conversions to long long int where those might
23054         raise spurious exceptions.
23055         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
23056         <math_private.h> and <stdint.h>.
23057         (__llrintf): Avoid conversions to long long int where those might
23058         raise spurious exceptions.
23059
23060 2015-10-12  Andreas Schwab  <schwab@suse.de>
23061
23062         [BZ #18969]
23063         * debug/Makefile (LOCALES): Define.  Include gen-locales.mk.
23064         ($(objpfx)tst-chk1.out): Depend on $(gen-locales).
23065         * iconvdata/Makefile (LOCALES): Define.  Include gen-locales.mk.
23066         ($(objpfx)bug-iconv6.out, $(objpfx)tst-iconv7.out): Depend on
23067         $(gen-locales).
23068         * intl/Makefile (LOCALES): Define.  Include gen-locales.mk.
23069         ($(objpfx)tst-codeset.out, $(objpfx)tst-gettext.out)
23070         ($(objpfx)tst-gettext2.out, $(objpfx)tst-gettext3.out)
23071         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext5.out)
23072         ($(objpfx)tst-gettext6.out, $(objpfx)tst-translit.out): Depend on
23073         $(gen-locales).
23074         * libio/Makefile (LOCALES): Define.  Include gen-locales.mk.
23075         ($(objpfx)bug-ftell.out, $(objpfx)bug-ungetwc1.out)
23076         ($(objpfx)bug-ungetwc2.out, $(objpfx)tst-fgetwc.out)
23077         ($(objpfx)tst-fgetws.out, $(objpfx)tst-fopenloc.out)
23078         ($(objpfx)tst-fputws.out, $(objpfx)tst-fseek.out)
23079         ($(objpfx)tst-ftell-active-handler.out)
23080         ($(objpfx)tst-ftell-append.out)
23081         ($(objpfx)tst-ftell-partial-wide.out, $(objpfx)tst-setvbuf1.out)
23082         ($(objpfx)tst-swscanf.out, $(objpfx)tst-ungetwc1.out)
23083         ($(objpfx)tst-ungetwc2.out, $(objpfx)tst-widetext.out)
23084         ($(objpfx)tst_wprintf2.out): Depend on $(gen-locales).
23085         * posix/Makefile (LOCALES): Define.  Include gen-locales.mk.
23086         ($(objpfx)bug-regex1.out, $(objpfx)bug-regex4.out)
23087         ($(objpfx)bug-regex5.out, $(objpfx)bug-regex6.out)
23088         ($(objpfx)bug-regex17.out, $(objpfx)bug-regex18.out)
23089         ($(objpfx)bug-regex19.out, $(objpfx)bug-regex20.out)
23090         ($(objpfx)bug-regex22.out, $(objpfx)bug-regex23.out)
23091         ($(objpfx)bug-regex25.out, $(objpfx)bug-regex26.out)
23092         ($(objpfx)bug-regex30.out, $(objpfx)bug-regex32.out)
23093         ($(objpfx)bug-regex33.out, $(objpfx)bug-regex34.out)
23094         ($(objpfx)bug-regex35.out, $(objpfx)tst-fnmatch.out)
23095         ($(objpfx)tst-fnmatch4.out, $(objpfx)tst-fnmatch5.out)
23096         ($(objpfx)tst-regex.out, $(objpfx)tst-regex2.out)
23097         ($(objpfx)tst-regexloc.out, $(objpfx)tst-rxspencer.out)
23098         ($(objpfx)tst-rxspencer-no-utf8.out): Depend on $(gen-locales).
23099         * stdio-common/Makefile (LOCALES): Define.  Include gen-locales.mk.
23100         ($(objpfx)bug14.out, $(objpfx)scanf13.out)
23101         ($(objpfx)test-vfprintf.out, $(objpfx)tst-grouping.out)
23102         ($(objpfx)tst-sprintf.out, $(objpfx)tst-sscanf.out)
23103         ($(objpfx)tst-swprintf.out): Depend on $(gen-locales).
23104         * stdlib/Makefile (LOCALES): Define.  Include gen-locales.mk.
23105         ($(objpfx)bug-strtod2.out, $(objpfx)testmb2.out)
23106         ($(objpfx)tst-strtod.out, $(objpfx)tst-strtod3.out)
23107         ($(objpfx)tst-strtod4.out, $(objpfx)tst-strtod5.out): Depend on
23108         $(gen-locales).
23109         * time/Makefile (LOCALES): Define.  Include gen-locales.mk.
23110         ($(objpfx)tst-ftime_l.out, $(objpfx)tst-strptime.out): Depend on
23111         $(gen-locales).
23112         * wcsmbs/Makefile (LOCALES): Define.  Include gen-locales.mk.
23113         ($(objpfx)tst-btowc.out, $(objpfx)tst-c16c32-1.out)
23114         ($(objpfx)tst-mbrtowc.out, $(objpfx)tst-mbrtowc2.out)
23115         ($(objpfx)tst-wcrtomb.out, $(objpfx)wcsmbs-tst1.out): Depend on
23116         $(gen-locales).
23117         * libio/tst_wprintf2.c (main): Use explicit locale.
23118         * wcsmbs/wcsmbs-tst1.c (main): Likewise.
23119
23120 2015-10-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23121
23122         * hurd/hurd-raise.c (_hurd_raise_signal): Return error returned by
23123         __msg_sig_post.
23124         * hurd/hurd/signal.h (_hurd_raise_signal): Add int return type.
23125
23126 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
23127
23128         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
23129         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
23130
23131         * sysdeps/arm/libm-test-ulps: Regenerated.
23132
23133         [BZ #15470]
23134         * sysdeps/arm/fix-fp-int-convert-overflow.h: New file.
23135
23136         [BZ #16399]
23137         * sysdeps/generic/fix-fp-int-convert-overflow.h: New file.
23138         * sysdeps/ieee754/dbl-64/s_llrint.c: Include <fenv.h>, <limits.h>
23139         and <fix-fp-int-convert-overflow.h>.
23140         (__llrint) [FE_INVALID]: Force FE_INVALID exception as needed if
23141         FIX_DBL_LLONG_CONVERT_OVERFLOW.
23142         * sysdeps/ieee754/dbl-64/s_llround.c: Include <fenv.h>, <limits.h>
23143         and <fix-fp-int-convert-overflow.h>.
23144         (__llround) [FE_INVALID]: Force FE_INVALID exception as needed if
23145         FIX_DBL_LLONG_CONVERT_OVERFLOW.
23146         * sysdeps/ieee754/dbl-64/s_lrint.c: Include
23147         <fix-fp-int-convert-overflow.h>.
23148         (__lrint) [FE_INVALID]: Force FE_INVALID exception as needed if
23149         FIX_DBL_LLONG_CONVERT_OVERFLOW.
23150         * sysdeps/ieee754/dbl-64/s_lround.c: Include
23151         <fix-fp-int-convert-overflow.h>.
23152         (__lround) [FE_INVALID]: Force FE_INVALID exception as needed if
23153         FIX_DBL_LLONG_CONVERT_OVERFLOW.
23154         * sysdeps/ieee754/flt-32/s_llrintf.c: Include <fenv.h>, <limits.h>
23155         and <fix-fp-int-convert-overflow.h>.
23156         (__llrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
23157         FIX_DBL_LLONG_CONVERT_OVERFLOW.
23158         * sysdeps/ieee754/flt-32/s_llroundf.c: Include <fenv.h>,
23159         <limits.h> and <fix-fp-int-convert-overflow.h>.
23160         (__llroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
23161         FIX_DBL_LLONG_CONVERT_OVERFLOW.
23162         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <fenv.h>, <limits.h>
23163         and <fix-fp-int-convert-overflow.h>.
23164         (__lrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
23165         FIX_DBL_LLONG_CONVERT_OVERFLOW.
23166         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <fenv.h>, <limits.h>
23167         and <fix-fp-int-convert-overflow.h>.
23168         (__lroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
23169         FIX_DBL_LLONG_CONVERT_OVERFLOW.
23170         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h: New file.
23171
23172 2015-10-09  Carlos O'Donell  <carlos@redhat.com>
23173
23174         [BZ #18589]
23175         * string/bug-strcoll2.c: Adjust copyright, and remove contributed by.
23176         * string/Makefile ($(objpfx)bug-strcoll2.out): Depend on
23177         $(gen-locales).
23178
23179 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23180             Phil Blundell <pb@pbcl.net>
23181
23182         * nptl/Makefile (tests): Add tst-cancel26.c and tst-cancel27.c.
23183         * nptl/tst-cancel26.c: New file.
23184         * nptl/tst-cancel27.c: Likewise.
23185
23186 2015-10-09  H.J. Lu  <hongjiu.lu@intel.com>
23187
23188         * sysdeps/x86_64/fpu/s_llrint.S (__lrint): Add alias only if
23189         __ILP32__ isn't defined.
23190         (lrint): Likewise.
23191         * sysdeps/x86_64/fpu/s_llrintf.S (__lrintf): Likewise.
23192         (lrintf): Likewise.
23193         * sysdeps/x86_64/fpu/s_llrintl.S (__lrintl): Likewise.
23194         (lrintl): Likewise.
23195         * sysdeps/x86_64/x32/fpu/s_lrint.S: New file.
23196         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Likewise.
23197         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Likewise.
23198
23199 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23200
23201         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
23202         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
23203
23204         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: Remove
23205         file.
23206         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Likewise.
23207         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
23208
23209 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
23210
23211         * sysdeps/i386/configure.ac (libc_cv_cc_novzeroupper): Remove
23212         configure test.
23213         * sysdeps/i386/configure: Regenerated.
23214         * sysdeps/x86_64/configure.ac (libc_cv_cc_novzeroupper): Remove
23215         configure test.
23216         * sysdeps/x86_64/configure: Regenerated.
23217         * sysdeps/x86_64/Makefile [$(config-cflags-novzeroupper) = yes]:
23218         Make code unconditional.
23219
23220         * sysdeps/i386/configure.ac (libc_cv_cc_fma4): Remove configure
23221         test.
23222         * sysdeps/i386/configure: Regenerated.
23223         * sysdeps/x86_64/configure.ac (libc_cv_cc_fma4): Remove configure
23224         test.
23225         * sysdeps/x86_64/configure: Regenerated.
23226         * sysdeps/x86_64/fpu/multiarch/Makefile [$(have-mfma4) = yes]:
23227         Make code unconditional.
23228         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
23229         Likewise.
23230         * sysdeps/x86_64/fpu/multiarch/e_atan2.c [HAVE_FMA4_SUPPORT]:
23231         Likewise.
23232         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
23233         * sysdeps/x86_64/fpu/multiarch/e_exp.c [HAVE_FMA4_SUPPORT]: Make
23234         code unconditional.
23235         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
23236         * sysdeps/x86_64/fpu/multiarch/e_log.c [HAVE_FMA4_SUPPORT]: Make
23237         code unconditional.
23238         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
23239         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]: Make
23240         code unconditional.
23241         * sysdeps/x86_64/fpu/multiarch/s_atan.c [HAVE_FMA4_SUPPORT]: Make
23242         code unconditional.
23243         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
23244         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_FMA4_SUPPORT]: Make
23245         code unconditional.
23246         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
23247         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_FMA4_SUPPORT]: Make
23248         code unconditional.
23249         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
23250         * sysdeps/x86_64/fpu/multiarch/s_sin.c [HAVE_FMA4_SUPPORT]: Make
23251         code unconditional.
23252         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
23253         * sysdeps/x86_64/fpu/multiarch/s_tan.c [HAVE_FMA4_SUPPORT]: Make
23254         code unconditional.
23255         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
23256         * config.h.in (HAVE_FMA4_SUPPORT): Remove #undef.
23257
23258         [BZ #19095]
23259         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Cast low part of
23260         mantissa to long int before shifting left.
23261
23262 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
23263
23264         [BZ #19094]
23265         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <fenv.h> and
23266         <limits.h>.
23267         (__lrint) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
23268         when result overflows but exception would not result from cast.
23269         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include <fenv.h> and
23270         <limits.h>.
23271         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
23272         when result overflows but exception would not result from cast.
23273         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include <fenv.h> and
23274         <limits.h>.
23275         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
23276         when result overflows but exception would not result from cast.
23277         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include <fenv.h> and
23278         <limits.h>.
23279         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
23280         when result overflows but exception would not result from cast.
23281         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include <fenv.h> and
23282         <limits.h>.
23283         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
23284         when result overflows but exception would not result from cast.
23285         * math/libm-test.inc (lrint_test_data): Add more tests.
23286         (llrint_test_data): Likewise.
23287
23288 2015-10-08  Roland McGrath  <roland@hack.frob.com>
23289
23290         [BZ #18872]
23291         * stdio-common/Makefile ($(objpfx)tst-unbputc.out):
23292         Move out from under [$(run-built-tests) = yes] conditional.
23293         ($(objpfx)tst-printf.out, $(objpfx)tst-printf-bz18872.c): Likewise.
23294         ($(objpfx)tst-printf-bz18872-mem.out): Likewise.
23295
23296 2015-10-08  Carlos O'Donell  <carlos@redhat.com>
23297
23298         [BZ #18589]
23299         * string/Makefile (tests): Add bug-strcoll2.
23300         (LOCALES): Add cs_CZ.UTF-8.
23301         * string/bug-strcoll2.c (test_cs_CZ): Fix typo in FAIL string.
23302
23303         [BZ #18589]
23304         * string/bug-strcoll2.c: New file.
23305         * locale/categories.def: Revert commit
23306         f13c2a8dff2329c6692a80176262ceaaf8a6f74e.
23307         * locale/langinfo.h: Likewise.
23308         * locale/localeinfo.h: Likewise.
23309         * locale/C-collate.c: Likewise.
23310         * locale/programs/ld-collate.c (collate_output): Likewise.
23311         * string/strcoll_l.c (STRDIFF): Likewise.
23312         (STRCOLL): Likewise.
23313         * wcsmbs/wcscoll_l.c: Likewise.
23314
23315 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
23316
23317         * math/libm-test.inc (lround_test_data): Do not expect the absence
23318         of "inexact" for some tests with non-integer arguments.
23319         (llround_test_data): Likewise.
23320
23321         * sysdeps/i386/configure.ac (libc_cv_cc_avx): Remove configure
23322         test.
23323         (libc_cv_cc_sse2avx): Likewise.
23324         * sysdeps/i386/configure: Regenerated.
23325         * sysdeps/i386/i686/multiarch/Makefile
23326         [$(subdir)$(config-cflags-avx) = mathyes]: Change conditional to
23327         [$(subdir) = math].
23328         * sysdeps/i386/i686/multiarch/s_fma-fma.c [HAVE_AVX_SUPPORT]: Make
23329         code unconditional.
23330         * sysdeps/i386/i686/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
23331         Likewise.
23332         * sysdeps/i386/i686/multiarch/s_fmaf-fma.c [HAVE_AVX_SUPPORT]:
23333         Likewise.
23334         * sysdeps/i386/i686/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
23335         Likewise.
23336         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx): Remove configure
23337         test.
23338         (libc_cv_cc_sse2avx): Likewise.
23339         * sysdeps/x86_64/configure: Regenerated.
23340         * sysdeps/x86_64/Makefile [$(config-cflags-avx) = yes]: Make code
23341         unconditional.
23342         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile)
23343         [HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT]: Make code
23344         unconditional.
23345         (_dl_runtime_profile)
23346         [!(HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT)]: Remove
23347         conditional code.
23348         * sysdeps/x86_64/fpu/multiarch/Makefile
23349         [$(config-cflags-sse2avx) = yes]: Make code unconditional.
23350         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
23351         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
23352         * sysdeps/x86_64/fpu/multiarch/e_exp.c
23353         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
23354         * sysdeps/x86_64/fpu/multiarch/e_log.c
23355         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
23356         * sysdeps/x86_64/fpu/multiarch/s_atan.c
23357         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
23358         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
23359         Likewise.
23360         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
23361         Likewise.
23362         * sysdeps/x86_64/fpu/multiarch/s_sin.c
23363         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
23364         * sysdeps/x86_64/fpu/multiarch/s_tan.c
23365         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
23366         * sysdeps/x86_64/multiarch/strcmp.S [HAVE_AVX_SUPPORT]: Likewise.
23367         * config.h.in (HAVE_AVX_SUPPORT): Remove #undef.
23368         (HAVE_SSE2AVX_SUPPORT): Likewise.
23369
23370 2015-10-07  Paul Pluzhnikov  <ppluzhnikov@google.com>
23371
23372         * stdio-common/tst-printf-bz18872.sh: Use attribute optimize
23373         instead of #pragma optimize.
23374
23375 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
23376
23377         [BZ #17195]
23378         * malloc/arena.c (heap_trim): Apply trim_treshold to top_chunck size,
23379         as is similarly done in systrim and _int_free already.
23380
23381 2015-10-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23382
23383         * sysdeps/mach/configure.ac (mach_interface_list): Add task_notify.
23384
23385 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
23386
23387         [BZ #19088]
23388         * sysdeps/ieee754/dbl-64/s_lround.c: Include <fenv.h> and
23389         <limits.h>.
23390         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
23391         overflows but exception would not result from cast.
23392         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include <fenv.h>
23393         and <limits.h>.
23394         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
23395         overflows but exception would not result from cast.
23396         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include <fenv.h> and
23397         <limits.h>.
23398         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
23399         overflows but exception would not result from cast.
23400         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include <fenv.h> and
23401         <limits.h>.
23402         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
23403         overflows but exception would not result from cast.
23404         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include <fenv.h> and
23405         <limits.h>.
23406         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
23407         overflows but exception would not result from cast.
23408         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include <fenv.h> and
23409         <limits.h>.
23410         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
23411         overflows but exception would not result from cast.
23412         * math/libm-test.inc (lround_test_data): Add more tests.
23413         (llround_test_data): Likewise.
23414
23415 2015-10-07  Steve Ellcey  <sellcey@imgtec.com>
23416
23417         * timezone/Makefile (CFLAGS-zic.c): Add -Wno-unused-variable.
23418         (CFLAGS-ialloc.c): Ditto.
23419         (CFLAGS-scheck.c): Ditto.
23420
23421 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
23422
23423         [BZ #19086]
23424         * manual/filesys.texi (Storage Allocation): Fix argument order for
23425         posix_fallocate64.
23426
23427 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
23428
23429         [BZ #19085]
23430         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Move test for
23431         exponent below 48 inside case for non-overflowing exponent.
23432         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
23433
23434 2015-10-07  Florian Weimer  <fweimer@redhat.com>
23435
23436         * iconvdata/cp737.h (from_idx): Add const.
23437         * iconvdata/cp775.h (from_idx): Likewise.
23438
23439 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
23440
23441         * sysdeps/mips/mips64/Implies: Use ieee754/dbl-64/wordsize-64.
23442         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
23443         (__issignaling) [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Remove #error.
23444
23445         [BZ #19079]
23446         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Restore previous
23447         file, conditioned on [!_LP64].
23448         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c
23449         [!_LP64] (__lround): Do not define as function or alias.
23450         [!_LP64] (lround): Likewise.
23451         [!_LP64] (__lroundl): Likewise.
23452         [!_LP64] (lroundl): Likewise.
23453         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Remove
23454         macro.
23455         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
23456         Likewise.
23457
23458 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
23459
23460         * math/libm-test.inc (lrint_test_data): Add more tests.
23461         (llrint_test_data): Likewise.
23462         (lround_test_data): Likewise.
23463         (llround_test_data): Likewise.
23464
23465         * math/libm-test.inc (lrint_test_data): Add tests used for llrint.
23466         (llrint_test_data): Add tests used for lrint.
23467
23468         * sysdeps/i386/configure.ac (libc_cv_cc_sse4): Remove configure
23469         test.
23470         * sysdeps/i386/configure: Regenerated.
23471         * sysdeps/i386/i686/multiarch/Makefile
23472         [$(config-cflags-sse4) = yes]: Make code unconditional.
23473         * sysdeps/i386/i686/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
23474         Likewise.
23475         * sysdeps/i386/i686/multiarch/strspn.S [HAVE_SSE4_SUPPORT]:
23476         Likewise.
23477         * sysdeps/x86_64/configure.ac (libc_cv_cc_sse4): Remove configure
23478         test.
23479         * sysdeps/x86_64/configure: Regenerated.
23480         * sysdeps/x86_64/multiarch/Makefile [$(config-cflags-sse4) = yes]:
23481         Make code unconditional.
23482         * sysdeps/x86_64/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
23483         Likewise.
23484         * sysdeps/x86_64/multiarch/strspn.S [HAVE_SSE4_SUPPORT]: Likewise.
23485         * config.h.in (HAVE_SSE4_SUPPORT): Remove #undef.
23486
23487         * scripts/rpm2dynsym.sh: Remove file.
23488
23489 2015-10-06  Florian Weimer  <fweimer@redhat.com>
23490
23491         * configure.ac (libc_cv_cxx_thread_local): Define.
23492         * configure: Regenerate.
23493         * config.make.in (have-cxx-thread_local): Define.
23494         * nptl/Makefile (CFLAGS-tst-thread_local1.o):
23495         (LDLIBS-tst-thread_local1): Define.
23496         (tests): Add tst-thread_local1.
23497         [have-cxx-thread_local != yes] (tests-unsupported): Add
23498         tst-thread_local1.
23499         * nptl/tst-thread_local1.cc: New file.
23500
23501 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
23502
23503         [BZ #19078]
23504         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (o_thres): Remove variable.
23505         (u_thres): Likewise.
23506         (__expl): Determine whether to call __kernel_standard_l based on
23507         value of result, not argument.
23508
23509         * math/libm-test.inc (scalb_test_data): Add more expectations for
23510         the "inexact" exception.
23511
23512         [BZ #19077]
23513         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Return
23514         0.0L for argument 1.0L.
23515
23516         [BZ #19076]
23517         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Divide by
23518         constant 0.0L when computing infinite result.
23519
23520 2015-10-06  Florian Weimer  <fweimer@redhat.com>
23521
23522         [BZ #10432]
23523         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Remove call to
23524         malloc_usable_size.
23525
23526 2015-10-06  Florian Weimer  <fweimer@redhat.com>
23527
23528         [BZ #19018]
23529         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
23530         Mangle function pointer before storing it.
23531         (__call_tls_dtors): Demangle function pointer before calling it.
23532
23533 2015-10-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
23534
23535         [BZ #19012]
23536         * iconv/gconv_db.c (gen_steps): Check for additional errors.
23537         Clean up on failure.
23538
23539 2015-10-05  Joseph Myers  <joseph@codesourcery.com>
23540
23541         [BZ #19071]
23542         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Use unsigned
23543         long int variable to store possibly incremented high part of
23544         mantissa.
23545         * math/libm-test.inc (lround_test_data): Add tests used for
23546         llround.  Use [LONG_MAX > 0x7fffffff] consistently as condition
23547         for tests requiring 64-bit long.  Do not condition tests on
23548         [TEST_FLOAT] unnecessarily.
23549         (llround_test_data): Add tests used for lround.  Add another
23550         expectation for the "inexact" exception.  Do not condition tests
23551         on [TEST_FLOAT] unnecessarily.
23552
23553         [BZ #887]
23554         [BZ #19049]
23555         [BZ #19050]
23556         * sysdeps/generic/fix-int-fp-convert-zero.h: New file.
23557         * sysdeps/ieee754/dbl-64/e_log10.c: Include
23558         <fix-int-fp-convert-zero.h>.
23559         (__ieee754_log10): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
23560         * sysdeps/ieee754/dbl-64/e_log2.c: Include
23561         <fix-int-fp-convert-zero.h>.
23562         (__ieee754_log2): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
23563         * sysdeps/ieee754/dbl-64/s_erf.c: Include
23564         <fix-int-fp-convert-zero.h>.
23565         (__erfc): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
23566         * sysdeps/ieee754/dbl-64/s_logb.c: Include
23567         <fix-int-fp-convert-zero.h>.
23568         (__logb): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
23569         * sysdeps/ieee754/flt-32/e_log10f.c: Include
23570         <fix-int-fp-convert-zero.h>.
23571         (__ieee754_log10f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
23572         * sysdeps/ieee754/flt-32/e_log2f.c: Include
23573         <fix-int-fp-convert-zero.h>.
23574         (__ieee754_log2f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
23575         * sysdeps/ieee754/flt-32/s_erff.c: Include
23576         <fix-int-fp-convert-zero.h>.
23577         (__erfcf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
23578         * sysdeps/ieee754/flt-32/s_logbf.c: Include
23579         <fix-int-fp-convert-zero.h>.
23580         (__logbf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
23581         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include
23582         <fix-int-fp-convert-zero.h>.
23583         (__erfcl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
23584         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Include
23585         <fix-int-fp-convert-zero.h>.
23586         (__logbl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
23587         * sysdeps/powerpc/powerpc32/fpu/configure.ac: New file.
23588         * sysdeps/powerpc/powerpc32/fpu/configure: New generated file.
23589         * sysdeps/powerpc/powerpc32/fpu/fix-int-fp-convert-zero.h: New
23590         file.
23591         * config.h.in [_LIBC] (HAVE_PPC_FCFID): New macro.
23592
23593 2015-10-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
23594
23595         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
23596
23597 2015-10-02  Joseph Myers  <joseph@codesourcery.com>
23598
23599         [BZ #19059]
23600         * math/s_nexttowardf.c (__nexttowardf): Do not return value from
23601         overflowing computation.
23602         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
23603         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
23604         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
23605         Likewise.
23606         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
23607         Likewise.
23608         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
23609         Likewise.
23610         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
23611         Likewise.
23612         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
23613         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
23614         Likewise.
23615         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
23616         Likewise.
23617         * math/libm-test.inc (nexttoward_test_data): Add more tests.
23618
23619         * nss/rewrite_field.c (__nss_rewrite_field): Use
23620         internal_function.
23621         * nss/valid_field.c (__nss_valid_field): Likewise.
23622         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
23623
23624 2015-10-02  Florian Weimer  <fweimer@redhat.com>
23625
23626         [BZ #18724]
23627         * include/nss.h (NSS_INVALID_FIELD_CHARACTERS): Define.
23628         (__nss_invalid_field_characters, __nss_valid_field)
23629         (__nss_valid_list_field, __nss_rewrite_field): Declare.
23630         * nss/valid_field.c, nss/valid_list_field, nss/rewrite_field.c,
23631         tst-field.c: New file.
23632         * nss/Makefile (routines): Add valid_field, rewrite_field.
23633         (tests-static): Define unconditionally.
23634         (tests): Include tests-static.
23635         [build-static-nss] (tests-static): Use append.
23636         [build-static-nss] (tests): Remove modification.
23637         * nss/getent.c (print_group): Call putgrent.  Report error.
23638         (print_gshadow): Call putsgent.  Report error.
23639         (print_passwd): Call putpwent.  Report error.
23640         (print_shadow): Call putspent.  Report error.
23641         * include/pwd.h: Include <nss.h> instead of <nss/nss.h>.
23642         * pwd/pwd.h (putpwent): Remove incorrect nonnull attribute.
23643         * pwd/putpwent.c (putpwent): Use ISO function definition.  Check
23644         name, password, directory, shell fields for valid syntax.  Rewrite
23645         GECOS field to match syntax.
23646         * pwd/Makefile (tests): Add tst-putpwent.
23647         * pwd/tst-putpwent.c: New file.
23648         * grp/putgrent.c (putgrent): Convert to ISO function definition.
23649         Check grName, grpasswd, gr_mem fields for valid syntax.
23650         Change loop variable i to size_t.
23651         * grp/Makefile (tests): Add tst-putgrent.
23652         * grp/tst-putgrent.c: New file.
23653         * shadow/putspent.c (putspent): Check sp_namp, sp_pwdp fields for
23654         valid syntax.
23655         * shadow/Makefile (tests): Add tst-putspent.
23656         * shadow/tst-putspent.c: New file.
23657         * gshadow/putsgent.c (putsgent): Check sg_namp, sg_passwd, sg_adm,
23658         sg_mem fields for valid syntax.
23659         * gshadow/Makefile (tests): Add tst-putsgent.
23660         * gshadow/tst-putsgent.c: New file.
23661
23662 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
23663
23664         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Added comments to some
23665         assembly instructions.
23666
23667 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
23668
23669         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Remove or add register
23670         prefix from operands.
23671
23672 2015-10-01  Joseph Myers  <joseph@codesourcery.com>
23673
23674         [BZ #16347]
23675         [BZ #19046]
23676         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Do not include
23677         <libc-internal.h>.
23678         (MAXLGM): Do not use diagnostic control macros.
23679         [LDBL_MANT_DIG == 106] (MAXLGM): Change value to overflow
23680         threshold for ldbl-128ibm.
23681         (__ieee754_lgammal_r): For large arguments, multiply by log - 1
23682         instead of multiplying by log then subtracting.
23683         * math/auto-libm-test-in: Add more tests of lgamma.
23684         * math/auto-libm-test-out: Regenerated.
23685
23686         * math/libm-test.inc (TYPE_DECIMAL_DIG): New macro.
23687         (TYPE_HEX_DIG): Likewise.
23688         (print_float): Use TYPE_DECIMAL_DIG - 1 and TYPE_HEX_DIG - 1 as
23689         precisions when printing floating-point numbers.
23690         (check_float_internal): Likewise.
23691
23692 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
23693
23694         [BZ #16620]
23695         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (log10_high): Use value
23696         of log (10) rounded downward to 48 bits.
23697         (log10_low): Use corresponding low part of log (10).
23698
23699         [BZ #19032]
23700         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): For arguments < 1,
23701         compute result as (x - x) / (x - x) not as 0 / 0.
23702         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
23703         * math/libm-test.inc (acosh_test_data): Add another test of acosh.
23704
23705         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
23706         atan, atan2, atanh, cbrt, cos, cosh, erf, erfc, exp, exp10, exp2
23707         and expm1.
23708         * math/auto-libm-test-out: Regenerated.
23709         * math/libm-test.inc (acos_test_data): Add more tests.
23710         (asin_test_data): Likewise.
23711         (asinh_test_data): Likewise.
23712         (atan_test_data): Likewise.
23713         (atanh_test_data): Likewise.
23714         (atan2_test_data): Likewise.
23715         (cbrt_test_data): Likewise.
23716         (ceil_test_data): Likewise.
23717         (copysign_test_data): Likewise.
23718         (cos_test_data): Likewise.
23719         (cosh_test_data): Likewise.
23720         (erf_test_data): Likewise.
23721         (erfc_test_data): Likewise.
23722         (exp_test_data): Likewise.
23723         (exp10_test_data): Likewise.
23724         (exp2_test_data): Likewise.
23725         (expm1_test_data): Likewise.
23726         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
23727
23728 2015-09-30  H.J. Lu  <hongjiu.lu@intel.com>
23729
23730         [BZ #19006]
23731         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved
23732         to ...
23733         * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Here.
23734         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: Moved
23735         to ...
23736         * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Here.
23737         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: Moved
23738         to ...
23739         * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Here.
23740         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved to ...
23741         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Here.
23742         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved
23743         to ...
23744         * sysdeps/unix/sysv/linux/i386/lowlevelrobustlock.S: Here.
23745         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
23746         Moved to ...
23747         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Here.
23748         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
23749         Moved to ...
23750         * sysdeps/unix/sysv/linux/i386/pthread_cond_broadcast.S: Here.
23751         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Moved
23752         to ...
23753         * sysdeps/unix/sysv/linux/i386/pthread_cond_signal.S: Here.
23754         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
23755         Moved to ...
23756         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Here.
23757         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved
23758         to ...
23759         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Here.
23760         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S:
23761         Removed.
23762         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c:
23763         Likewise.
23764         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c:
23765         Likewise.
23766         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Likewise.
23767         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S:
23768         Likewise.
23769         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
23770         Likewise.
23771         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
23772         Likewise.
23773         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
23774         Likewise.
23775         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
23776         Likewise.
23777         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S:
23778         Likewise.
23779         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S:
23780         Likewise.
23781         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c:
23782         Likewise.
23783         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c:
23784         Likewise.
23785         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Likewise.
23786         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S:
23787         Likewise.
23788         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
23789         Likewise.
23790         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
23791         Likewise.
23792         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
23793         Likewise.
23794         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S:
23795         Likewise.
23796         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
23797         Replace ../i486/pthread_cond_timedwait.S with
23798         ../pthread_cond_timedwait.S.
23799
23800 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
23801
23802         * math/libm-test.inc (acos_test_data): Refine expectations for
23803         errno and "inexact" exceptions.
23804         (acosh_test_data): Likewise.
23805         (asin_test_data): Likewise.
23806         (asinh_test_data): Likewise.
23807         (atan_test_data): Likewise.
23808         (atanh_test_data): Likewise.
23809         (atan2_test_data): Likewise.
23810         (cbrt_test_data): Likewise.
23811         (ceil_test_data): Likewise.
23812         (copysign_test_data): Likewise.
23813         (cosh_test_data): Likewise.
23814         (erf_test_data): Likewise.
23815         (erfc_test_data): Likewise.
23816         (exp_test_data): Likewise.
23817         (exp10_test_data): Likewise.
23818         (exp2_test_data): Likewise.
23819         (expm1_test_data): Likewise.
23820         (fabs_test_data): Likewise.
23821         (floor_test_data): Likewise.
23822         (fma_test_data): Likewise.
23823         (fmax_test_data): Likewise.
23824         (fmin_test_data): Likewise.
23825         (fmod_test_data): Likewise.
23826         (fpclassify_test_data): Likewise.
23827         (frexp_test_data): Likewise.
23828         (hypot_test_data): Likewise.
23829         (ilogb_test_data): Likewise.
23830         (isgreater_test_data): Likewise.
23831         (isgreaterequal_test_data): Likewise.
23832         (isinf_test_data): Likewise.
23833         (isless_test_data): Likewise.
23834         (islessequal_test_data): Likewise.
23835         (islessgreater_test_data): Likewise.
23836         (isnan_test_data): Likewise.
23837         (isnormal_test_data): Likewise.
23838         (issignaling_test_data): Likewise.
23839         (isunordered_test_data): Likewise.
23840         (j0_test_data): Likewise.
23841         (j1_test_data): Likewise.
23842         (jn_test_data): Likewise.
23843         (lgamma_test_data): Likewise.
23844         (lrint_test_data): Likewise.
23845         (llrint_test_data): Likewise.
23846         (log_test_data): Likewise.
23847         (log10_test_data): Likewise.
23848         (log1p_test_data): Likewise.
23849         (log2_test_data): Likewise.
23850         (logb_test_data): Likewise.
23851         (lround_test_data): Likewise.
23852         (llround_test_data): Likewise.
23853         (modf_test_data): Likewise.
23854         (nearbyint_test_data): Likewise.
23855         (nextafter_test_data): Likewise.
23856         (nexttoward_test_data): Likewise.
23857         (pow_test_data): Likewise.
23858         (remainder_test_data): Likewise.
23859         (remquo_test_data): Likewise.
23860         (rint_test_data): Likewise.
23861         (round_test_data): Likewise.
23862         (signbit_test_data): Likewise.
23863         (sinh_test_data): Likewise.
23864         (sqrt_test_data): Likewise.
23865         (tanh_test_data): Likewise.
23866         (tgamma_test_data): Likewise.
23867         (trunc_test_data): Likewise.
23868         (y0_test_data): Likewise.
23869         (y1_test_data): Likewise.
23870         (yn_test_data): Likewise.
23871         (significand_test_data): Likewise.
23872
23873 2015-09-29  Carlos O'Donell  <carlos@redhat.com>
23874
23875         * manual/filesys.texi (Storage Allocation): Document that
23876         posix_fallocate emulation fails when fd is open with O_WRONLY.
23877
23878 2015-09-28  Joseph Myers  <joseph@codesourcery.com>
23879
23880         [BZ #19016]
23881         * sysdeps/generic/math_private.h (__x2y2m1f): Update comment to
23882         allow more cases with X^2 + Y^2 >= 0.5.
23883         * sysdeps/ieee754/dbl-64/x2y2m1.c (__x2y2m1): Likewise.  Add -1 as
23884         normal element in sum instead of special-casing based on values of
23885         arguments.
23886         * sysdeps/ieee754/dbl-64/x2y2m1f.c (__x2y2m1f): Update comment.
23887         * sysdeps/ieee754/ldbl-128/x2y2m1l.c (__x2y2m1l): Likewise.  Add
23888         -1 as normal element in sum instead of special-casing based on
23889         values of arguments.
23890         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c (__x2y2m1l): Likewise.
23891         * sysdeps/ieee754/ldbl-96/x2y2m1.c [FLT_EVAL_METHOD != 0]
23892         (__x2y2m1): Update comment.
23893         * sysdeps/ieee754/ldbl-96/x2y2m1l.c (__x2y2m1l): Likewise.  Add -1
23894         as normal element in sum instead of special-casing based on values
23895         of arguments.
23896         * math/s_clog.c (__clog): Handle more cases using log1p without
23897         hypot.
23898         * math/s_clog10.c (__clog10): Likewise.
23899         * math/s_clog10f.c (__clog10f): Likewise.
23900         * math/s_clog10l.c (__clog10l): Likewise.
23901         * math/s_clogf.c (__clogf): Likewise.
23902         * math/s_clogl.c (__clogl): Likewise.
23903         * math/auto-libm-test-in: Add more tests of clog and clog10.
23904         * math/auto-libm-test-out: Regenerated.
23905         * sysdeps/i386/fpu/libm-test-ulps: Update.
23906         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23907
23908 2015-09-28  Martin Sebor  <msebor@redhat.com>
23909
23910         [BZ #18969]
23911         * string/Makefile (LOCALES): Define.
23912         (gen-locales.mk): Include.
23913         (test-strcasecmp.out, test-strncasecmp.out, tst-strxfrm.out)
23914         (tst-strxfrm2.out): Add deppendency on $(gen-locales).
23915         * string/tst-strxfrm2.c (do_test): Print the name of the locale
23916         on setlocale failure.
23917
23918 2015-09-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
23919
23920         [BZ #18985]
23921         * time/strftime_l.c (a_wkday, f_wkday, a_month, f_month): Range check.
23922         (__strftime_internal): Likewise.
23923         * time/tst-strftime.c (do_bz18985): New test.
23924         (do_test): Call it.
23925
23926 2015-09-26  Joseph Myers  <joseph@codesourcery.com>
23927
23928         [BZ #18956]
23929         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Add 0x00400000
23930         not 0x0040000 for high bit of mantissa.  Mask with 0xfffff000 when
23931         extracting high part.
23932         * math/auto-libm-test-in: Add another test of pow.
23933         * math/auto-libm-test-out: Regenerated.
23934         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
23935
23936 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
23937
23938         [BZ #18825]
23939         * sysdeps/i386/fpu/i386-math-asm.h (FLT_NARROW_EVAL_UFLOW_NONNAN):
23940         New macro.
23941         (DBL_NARROW_EVAL_UFLOW_NONNAN): Likewise.
23942         (LDBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
23943         * sysdeps/i386/fpu/e_pow.S: Use DEFINE_DBL_MIN.
23944         (__ieee754_pow): Use DBL_NARROW_EVAL_UFLOW_NONNAN instead of
23945         DBL_NARROW_EVAL, reloading the PIC register as needed.
23946         * sysdeps/i386/fpu/e_powf.S: Use DEFINE_FLT_MIN.
23947         (__ieee754_powf): Use FLT_NARROW_EVAL_UFLOW_NONNAN instead of
23948         FLT_NARROW_EVAL.  Use separate return path for case when first
23949         argument is NaN.
23950         * sysdeps/i386/fpu/e_powl.S: Include <i386-math-asm.h>.  Use
23951         DEFINE_LDBL_MIN.
23952         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN, reloading the
23953         PIC register.
23954         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use
23955         math_check_force_underflow_nonneg.
23956         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Force
23957         underflow for subnormal result.
23958         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
23959         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Use
23960         math_check_force_underflow_nonneg.
23961         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Use
23962         math_check_force_underflow.
23963         * sysdeps/x86_64/fpu/x86_64-math-asm.h
23964         (LDBL_CHECK_FORCE_UFLOW_NONNAN): New macro.
23965         * sysdeps/x86_64/fpu/e_powl.S: Include <x86_64-math-asm.h>.  Use
23966         DEFINE_LDBL_MIN.
23967         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN.
23968         * math/auto-libm-test-in: Add more tests of pow.
23969         * math/auto-libm-test-out: Regenerated.
23970
23971 2015-09-25  Florian Weimer  <fweimer@redhat.com>
23972
23973         * nss/bug17079.c (init_test_items): Add diagnostic for
23974         inconsistent entries.
23975         (test_buffer_size): Skip inconsistent entries.
23976
23977 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
23978
23979         [BZ #13304]
23980         * sysdeps/m68k/coldfire/nofpu/s_fma.c: New file.
23981         * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
23982         * sysdeps/m68k/coldfire/nofpu/sfp-machine.h: Likewise.
23983
23984         [BZ #13304]
23985         * sysdeps/microblaze/s_fma.c: New file.
23986         * sysdeps/microblaze/s_fmaf.c: Likewise.
23987         * sysdeps/microblaze/sfp-machine.h: Likewise.
23988
23989 2015-09-25  Maciej W. Rozycki  <macro@imgtec.com>
23990
23991         [BZ #17250]
23992         * elf/dl-support.c (_dl_main_map): Don't initialize l_flags_1
23993         member.
23994
23995 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
23996
23997         [BZ #18803]
23998         * sysdeps/i386/fpu/e_hypot.S: Use DEFINE_DBL_MIN.
23999         (MO): New macro.
24000         (__ieee754_hypot) [PIC]: Load PIC register.
24001         (__ieee754_hypot): Use DBL_NARROW_EVAL_UFLOW_NONNEG instead of
24002         DBL_NARROW_EVAL.
24003         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Use
24004         math_check_force_underflow_nonneg in case where result might be
24005         tiny.
24006         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
24007         Likewise.
24008         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
24009         Likewise.
24010         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
24011         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
24012         * math/auto-libm-test-in: Add more tests of hypot.
24013         * math/auto-libm-test-out: Regenerated.
24014
24015 2015-09-24  Steve Ellcey  <sellcey@imgtec.com>
24016
24017         * sysdeps/mips/math_private.h (libc_fesetenv_mips): Mark cw as unused.
24018
24019 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
24020
24021         * sysdeps/x86_64/fpu/x86_64-math-asm.h: New file.
24022         * sysdeps/x86_64/fpu/e_exp2l.S: Include <x86_64-math-asm.h>.
24023         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
24024         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
24025         * sysdeps/x86_64/fpu/e_expl.S: Include <x86_64-math-asm.h>.
24026         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
24027         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
24028
24029         * sysdeps/i386/fpu/e_atanh.S (__ieee754_atanh) [PIC]: Use
24030         LOAD_PIC_REG.
24031
24032         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_LDBL_MIN): New macro.
24033         (FLT_CHECK_FORCE_UFLOW): Likewise.
24034         (DBL_CHECK_FORCE_UFLOW): Likewise.
24035         (FLT_CHECK_FORCE_UFLOW_NARROW): Likewise.
24036         (DBL_CHECK_FORCE_UFLOW_NARROW): Likewise.
24037         (LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN): Likewise.
24038         (FLT_CHECK_FORCE_UFLOW_NONNAN): Likewise.
24039         (DBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
24040         (FLT_CHECK_FORCE_UFLOW_NONNEG): Likewise.
24041         (DBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
24042         (LDBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
24043         * sysdeps/i386/fpu/e_asin.S: Include <i386-math-asm.h>.
24044         (dbl_min): Replace with use of DEFINE_DBL_MIN.
24045         (__ieee754_asin): Use DBL_CHECK_FORCE_UFLOW.
24046         * sysdeps/i386/fpu/e_asinf.S: Include <i386-math-asm.h>.
24047         (flt_min): Replace with use of DEFINE_FLT_MIN.
24048         (__ieee754_asinf): Use FLT_CHECK_FORCE_UFLOW.
24049         * sysdeps/i386/fpu/e_atan2.S: Include <i386-math-asm.h>.
24050         (dbl_min): Replace with use of DEFINE_DBL_MIN.
24051         (__ieee754_atan2): Use DBL_CHECK_FORCE_UFLOW_NARROW.
24052         * sysdeps/i386/fpu/e_atan2f.S: Include <i386-math-asm.h>.
24053         (flt_min): Replace with use of DEFINE_FLT_MIN.
24054         (__ieee754_atan2f): Use FLT_CHECK_FORCE_UFLOW_NARROW.
24055         * sysdeps/i386/fpu/e_atanh.S: Include <i386-math-asm.h>.
24056         (dbl_min): Replace with use of DEFINE_DBL_MIN.
24057         (__ieee754_atanh): Use DBL_CHECK_FORCE_UFLOW_NONNEG.
24058         * sysdeps/i386/fpu/e_atanhf.S: Include <i386-math-asm.h>.
24059         (flt_min): Replace with use of DEFINE_FLT_MIN.
24060         (__ieee754_atanhf): Use FLT_CHECK_FORCE_UFLOW_NONNEG.
24061         * sysdeps/i386/fpu/e_exp2l.S: Include <i386-math-asm.h>.
24062         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
24063         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
24064         * sysdeps/i386/fpu/e_expl.S: Include <i386-math-asm.h>.
24065         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
24066         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
24067         * sysdeps/i386/fpu/s_atan.S: Include <i386-math-asm.h>.
24068         (dbl_min): Replace with use of DEFINE_DBL_MIN.
24069         (__atan): Use DBL_CHECK_FORCE_UFLOW.
24070         * sysdeps/i386/fpu/s_atanf.S: Include <i386-math-asm.h>.
24071         (flt_min): Replace with use of DEFINE_FLT_MIN.
24072         (__atanf): Use FLT_CHECK_FORCE_UFLOW.
24073         * sysdeps/i386/fpu/s_expm1.S: Include <i386-math-asm.h>.
24074         (dbl_min): Replace with use of DEFINE_DBL_MIN.
24075         (__expm1): Use DBL_CHECK_FORCE_UFLOW.  Move underflow check after
24076         main computation.
24077         * sysdeps/i386/fpu/s_expm1f.S: Include <i386-math-asm.h>.
24078         (flt_min): Replace with use of DEFINE_FLT_MIN.
24079         (__expm1f): Use FLT_CHECK_FORCE_UFLOW.  Move underflow check after
24080         main computation.
24081         * sysdeps/i386/fpu/s_log1p.S: Include <i386-math-asm.h>.
24082         (dbl_min): Replace with use of DEFINE_DBL_MIN.
24083         (MO): New macro.
24084         (__log1p): Use MO.  Use DBL_CHECK_FORCE_UFLOW_NONNAN.
24085         * sysdeps/i386/fpu/s_log1pf.S: Include <i386-math-asm.h>.
24086         (flt_min): Replace with use of DEFINE_FLT_MIN.
24087         (MO): New macro.
24088         (__log1pf): Use MO.  Use FLT_CHECK_FORCE_UFLOW_NONNAN.
24089         * sysdeps/i386/fpu/s_log1pl.S (MO): New macro.
24090         (__log1pl): Use MO.
24091
24092         [BZ #19003]
24093         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma4.c): Add
24094         $(config-cflags-nofma).
24095
24096 2015-09-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
24097
24098         * sysdeps/aarch64/libm-test-ulps: Regenerated.
24099
24100 2015-09-23  Joseph Myers  <joseph@codesourcery.com>
24101
24102         * sysdeps/ieee754/flt-32/e_exp2f.c (TWOM100): Remove volatile.
24103         (TWO127): Likewise.
24104
24105         * sysdeps/generic/math_private.h (fabs_tg): New macro.
24106         (min_of_type): Likewise.
24107         (math_check_force_underflow): Likewise.
24108         (math_check_force_underflow_nonneg): Likewise.
24109         (math_check_force_underflow_complex): Likewise.
24110         * math/e_exp2l.c (__ieee754_exp2l): Use
24111         math_check_force_underflow_nonneg.
24112         * math/k_casinh.c (__kernel_casinh): Likewise.
24113         * math/k_casinhf.c (__kernel_casinhf): Likewise.
24114         * math/k_casinhl.c (__kernel_casinhl): Likewise.
24115         * math/s_catan.c (__catan): Use
24116         math_check_force_underflow_complex.
24117         * math/s_catanf.c (__catanf): Likewise.
24118         * math/s_catanh.c (__catanh): Likewise.
24119         * math/s_catanhf.c (__catanhf): Likewise.
24120         * math/s_catanhl.c (__catanhl): Likewise.
24121         * math/s_catanl.c (__catanl): Likewise.
24122         * math/s_ccosh.c (__ccosh): Likewise.
24123         * math/s_ccoshf.c (__ccoshf): Likewise.
24124         * math/s_ccoshl.c (__ccoshl): Likewise.
24125         * math/s_cexp.c (__cexp): Likewise.
24126         * math/s_cexpf.c (__cexpf): Likewise.
24127         * math/s_cexpl.c (__cexpl): Likewise.
24128         * math/s_clog.c (__clog): Use math_check_force_underflow_nonneg.
24129         * math/s_clog10.c (__clog10): Likewise.
24130         * math/s_clog10f.c (__clog10f): Likewise.
24131         * math/s_clog10l.c (__clog10l): Likewise.
24132         * math/s_clogf.c (__clogf): Likewise.
24133         * math/s_clogl.c (__clogl): Likewise.
24134         * math/s_csin.c (__csin): Use math_check_force_underflow_complex.
24135         * math/s_csinf.c (__csinf): Likewise.
24136         * math/s_csinh.c (__csinh): Likewise.
24137         * math/s_csinhf.c (__csinhf): Likewise.
24138         * math/s_csinhl.c (__csinhl): Likewise.
24139         * math/s_csinl.c (__csinl): Likewise.
24140         * math/s_csqrt.c (__csqrt): Use math_check_force_underflow.
24141         * math/s_csqrtf.c (__csqrtf): Likewise.
24142         * math/s_csqrtl.c (__csqrtl): Likewise.
24143         * math/s_ctan.c (__ctan): Use math_check_force_underflow_complex.
24144         * math/s_ctanf.c (__ctanf): Likewise.
24145         * math/s_ctanh.c (__ctanh): Likewise.
24146         * math/s_ctanhf.c (__ctanhf): Likewise.
24147         * math/s_ctanhl.c (__ctanhl): Likewise.
24148         * math/s_ctanl.c (__ctanl): Likewise.
24149         * stdlib/strtod_l.c (round_and_return): Use math_force_eval
24150         instead of volatile.
24151         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use
24152         math_check_force_underflow.
24153         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
24154         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Do not use
24155         volatile when forcing underflow.
24156         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
24157         math_check_force_underflow_nonneg.
24158         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
24159         Likewise.
24160         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Use
24161         math_check_force_underflow.
24162         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
24163         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
24164         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
24165         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Use
24166         math_check_force_underflow_nonneg.
24167         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Use
24168         math_check_force_underflow.
24169         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
24170         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval
24171         instead of volatile.
24172         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Use
24173         math_check_force_underflow.
24174         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
24175         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
24176         math_check_force_underflow_nonneg.
24177         * sysdeps/ieee754/dbl-64/s_tanh.c (__tanh): Use
24178         math_check_force_underflow.
24179         * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
24180         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
24181         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Use
24182         math_check_force_underflow_nonneg.
24183         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
24184         Likewise.
24185         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Use
24186         math_check_force_underflow.
24187         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
24188         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
24189         * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
24190         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Likewise.
24191         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
24192         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Likewise.
24193         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
24194         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
24195         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
24196         * sysdeps/ieee754/flt-32/s_tanhf.c (__tanhf): Likewise.
24197         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
24198         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
24199         Likewise.
24200         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Use
24201         math_check_force_underflow_nonneg.
24202         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
24203         Likewise.
24204         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Use
24205         math_check_force_underflow.
24206         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
24207         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
24208         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
24209         Likewise.
24210         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
24211         * sysdeps/ieee754/ldbl-128/k_tanl.c (__kernel_tanl): Likewise.
24212         * sysdeps/ieee754/ldbl-128/s_asinhl.c (__asinhl): Likewise.
24213         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Likewise.
24214         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Likewise.
24215         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
24216         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use math_force_eval
24217         instead of volatile.
24218         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Use
24219         math_check_force_underflow.
24220         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
24221         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Use
24222         math_check_force_underflow.
24223         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl):
24224         Likewise.
24225         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
24226         Use math_check_force_underflow_nonneg.
24227         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Use
24228         math_check_force_underflow.
24229         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
24230         Likewise.
24231         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
24232         Likewise.
24233         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
24234         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
24235         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
24236         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
24237         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Likewise.
24238         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
24239         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
24240         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
24241         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r): Use
24242         math_check_force_underflow_nonneg.
24243         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Use
24244         math_check_force_underflow.
24245         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
24246         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
24247         * sysdeps/ieee754/ldbl-96/k_sinl.c (__kernel_sinl): Likewise.
24248         * sysdeps/ieee754/ldbl-96/k_tanl.c (__kernel_tanl): Use
24249         math_check_force_underflow_nonneg.
24250         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Use
24251         math_check_force_underflow.
24252         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
24253         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Use math_force_eval
24254         instead of volatile.
24255         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Use
24256         math_check_force_underflow.
24257
24258         * math/s_nexttowardf.c (__nexttowardf): Use math_narrow_eval.
24259         * stdlib/strtod_l.c: Include <math_private.h>.
24260         (overflow_value): Use math_narrow_eval.
24261         (underflow_value): Likewise.
24262         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
24263         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
24264         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
24265         (__ieee754_gamma_r): Likewise.
24266         * sysdeps/ieee754/dbl-64/gamma_productf.c (__gamma_productf):
24267         Likewise.
24268         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
24269         Likewise.
24270         * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
24271         * sysdeps/ieee754/dbl-64/s_erf.c (__erfc): Likewise.
24272         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
24273         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
24274         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
24275         (__ieee754_gammaf_r): Likewise.
24276         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
24277         Likewise.
24278         * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
24279         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Likewise.
24280         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
24281         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
24282         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Do not use
24283         volatile.
24284         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
24285         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Use
24286         math_narrow_eval.
24287         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
24288         Likewise.
24289         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
24290         Likewise.
24291         * sysdeps/ieee754/ldbl-96/gamma_product.c (__gamma_product):
24292         Likewise.
24293         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Do not use
24294         volatile.
24295         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
24296         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Use
24297         math_narrow_eval.
24298         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
24299         Likewise.
24300         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
24301         Likewise.
24302
24303 2015-09-22  H.J. Lu  <hongjiu.lu@intel.com>
24304
24305         * nptl/Versions: Remove ignored symbols.
24306
24307 2015-09-22  Florian Weimer  <fweimer@redhat.com>
24308
24309         * nss/bug17079.c: Renamed from nss/bug18287.c.  Add description.
24310         * nss/Makefile (tests): Update.
24311
24312 2015-09-22  Florian Weimer  <fweimer@redhat.com>
24313
24314         * nss/bug18287.c: New file.
24315         * nss/Makefile (tests): Add bug18287.
24316
24317 2015-09-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24318
24319         * mach/Versions (__mach_host_self_): Add symbol.
24320
24321 2015-09-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24322
24323         * sysdeps/mach/hurd/mmap.c (__mmap): Use __vm_page_size instead of
24324         vm_page_size.
24325
24326 2015-09-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24327
24328         Really fix sysdeps/i386/fpu/s_scalbn.S build
24329
24330         * math/Versions (libc: GLIBC_2_20): New (empty) version set.
24331         (libc: GLIBC_2_22): Remove unused version set.
24332
24333 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
24334
24335         * config.make.in (enable-timezone-tools): New variable.
24336         * configure.ac (AC_ARG_ENABLE(timezone-tools)): New configure flag.
24337         (enable_timezone_tools): Export to generated files.
24338         * configure: Regenerate.
24339         * INSTALL: Regenerate.
24340         * manual/install.texi (--disable-timezone-tools): Document new flag.
24341         * timezone/Makefile (install-sbin, install-bin-script): Wrap in a
24342         ifeq ($(enable-timezone-tools),yes) check.
24343
24344 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
24345
24346         * timezone/Makefile: Revert previous change.
24347
24348         [BZ #18980]
24349         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_FLT_MIN): New macro.
24350         (DEFINE_DBL_MIN): Likewise.
24351         (FLT_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
24352         (DBL_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
24353         (FLT_NARROW_EVAL_UFLOW_NONNEG): Likewise.
24354         (DBL_NARROW_EVAL_UFLOW_NONNEG): Likewise.
24355         * sysdeps/i386/fpu/e_exp.S: Include <i386-math-asm.h>.
24356         (dbl_min): Replace with use of DEFINE_DBL_MIN.
24357         (__ieee754_exp): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
24358         (__exp_finite): Use DBL_NARROW_EVAL_UFLOW_NONNEG.
24359         * sysdeps/i386/fpu/e_exp10.S: Include <i386-math-asm.h>.
24360         (dbl_min): Replace with use of DEFINE_DBL_MIN.
24361         (__ieee754_exp10): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
24362         * sysdeps/i386/fpu/e_exp10f.S: Include <i386-math-asm.h>.
24363         (flt_min): Replace with use of DEFINE_FLT_MIN.
24364         (__ieee754_exp10f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
24365         * sysdeps/i386/fpu/e_exp2.S: Include <i386-math-asm.h>.
24366         (dbl_min): Replace with use of DEFINE_DBL_MIN.
24367         (__ieee754_exp2): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
24368         * sysdeps/i386/fpu/e_exp2f.S: Include <i386-math-asm.h>.
24369         (flt_min): Replace with use of DEFINE_FLT_MIN.
24370         (__ieee754_exp2f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
24371         * sysdeps/i386/fpu/e_expf.S: Include <i386-math-asm.h>.
24372         (flt_min): Replace with use of DEFINE_FLT_MIN.
24373         (__ieee754_expf): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
24374         (__expf_finite): Use FLT_NARROW_EVAL_UFLOW_NONNEG.
24375         * sysdeps/i386/fpu/e_hypot.S: Include <i386-math-asm.h>.
24376         (__ieee754_hypot): Use DBL_NARROW_EVAL.
24377         * sysdeps/i386/fpu/e_hypotf.S: Include <i386-math-asm.h>.
24378         (__ieee754_hypotf): Use FLT_NARROW_EVAL.
24379         * sysdeps/i386/fpu/e_pow.S: Include <i386-math-asm.h>.
24380         (__ieee754_pow): Use DBL_NARROW_EVAL.
24381         * sysdeps/i386/fpu/e_powf.S: Include <i386-math-asm.h>.
24382         (__ieee754_powf): Use FLT_NARROW_EVAL.
24383         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S
24384         (__ieee754_expf_sse2): Convert double-precision result to single
24385         precision.
24386         * sysdeps/i386/fpu/libm-test-ulps: Update.
24387
24388 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
24389
24390         * timezone/Makefile: Ignore unused variable errors due to private.h
24391         (time_t_min) and (time_t_max).
24392         * timezone/private.h (time_t_min): Revert removal.  (time_t_max):
24393         Likewise.
24394
24395 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
24396
24397         [BZ #18981]
24398         * sysdeps/i386/fpu/i386-math-asm.h: New file.
24399         * sysdeps/i386/fpu/e_scalb.S: Include <i386-math-asm.h>.
24400         (__ieee754_scalb): Use DBL_NARROW_EVAL.
24401         * sysdeps/i386/fpu/e_scalbf.S: Include <i386-math-asm.h>.
24402         (__ieee754_scalbf): Use FLT_NARROW_EVAL.
24403         * sysdeps/i386/fpu/s_scalbn.S: Include <i386-math-asm.h>.
24404         (__scalbn): Use DBL_NARROW_EVAL.
24405         * sysdeps/i386/fpu/s_scalbnf.S: Include <i386-math-asm.h>.
24406         (__scalbnf): Use FLT_NARROW_EVAL.
24407
24408 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
24409
24410         * math/w_tgamma.c (__ieee754_gamma_r): Use explicit sign check.
24411         * math/w_tgammaf.c (__ieee754_gammaf_r): Likewise.
24412         * math/w_tgammal.c (__ieee754_gammal_r): Likewise.
24413         * stdio-common/printf_fp.c (___printf_fp):
24414         Use signbit to get the sign. Use isinf macro to allow inlining.
24415         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.
24416         * stdio-common/printf_size.c (__printf_size): Likewise.
24417
24418 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
24419
24420         * timezone/Makefile ($(testdata)/XT%): Call $(make-target-directory).
24421
24422 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
24423
24424         [BZ #18980]
24425         * sysdeps/generic/math_private.h: Include <float.h>.
24426         (math_narrow_eval): New macro.
24427         [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
24428         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Use
24429         math_narrow_eval on overflowing return value.
24430         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r):
24431         Likewise.
24432         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
24433         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Likewise.
24434         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r):
24435         Likewise.
24436         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
24437
24438 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
24439
24440         * include/math.h: Remove __isinf_ns, __isinf_nsf, __isinf_nsl.
24441         * math/Makefile: Remove isinf_ns.c.
24442         * math/divtc3.c (__divtc3): Replace __isinf_nsl with isinf.
24443         * math/multc3.c (__multc3): Likewise.
24444         * math/s_casin.c (__casin): Likewise.
24445         * math/s_casinf.c (__casinf): Likewise.
24446         * math/s_casinl.c (__casinl): Likewise.
24447         * math/s_cproj.c (__cproj): Likewise.
24448         * math/s_cprojf.c (__cprojf): Likewise.
24449         * math/s_cprojl.c (__cprofl): Likewise.
24450         * math/s_ctan.c (__ctan): Likewise.
24451         * math/s_ctanf.c (__ctanf): Likewise.
24452         * math/s_ctanh.c (__ctanh): Likewise.
24453         * math/s_ctanhf.c (__ctanhf): Likewise.
24454         * math/s_ctanhl.c (__ctanhl): Likewise.
24455         * math/s_ctanl.c (__ctanl): Likewise.
24456         * math/w_fmod.c (__fmod): Likewise.
24457         * math/w_fmodf.c (__fmodf): Likewise.
24458         * math/w_fmodl.c (_fmodl): Likewise.
24459         * math/w_remainder.c (__remainder): Likewise.
24460         * math/w_remainderf.c (__remainderf): Likewise.
24461         * math/w_remainderl.c (__remainderl): Likewise.
24462         * math/w_scalb.c (__scalb): Likewise.
24463         * math/w_scalbf.c (__scalbf): Likewise.
24464         * math/w_scalbl.c (__scalbl): Likewise.
24465         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Deleted file.
24466         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Replace __isinf_ns
24467         with isinf.
24468         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Deleted file.
24469         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Deleted file.
24470         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Replace
24471         __isinf_nsf with isinf.
24472         * sysdeps/ieee754/flt-32/math_private.h: Deleted file.
24473         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Deleted file.
24474         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Deleted file.
24475         * sysdeps/ieee754/ldbl-128/s_sincosl.c (__sincosl): Replace __isinf_nsl
24476         with isinf.
24477         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c(__cprojll): Replace
24478         __isinf_nsl with isinf.
24479         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c(__ctanl): Replace __isinf_nsl
24480         with isinf.
24481         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Deleted file.
24482         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Replace
24483         __isinf_nsl with isinf.
24484         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Deleted file.
24485         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Replace __isinf_nsl
24486         with isinf.
24487
24488 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
24489
24490         * resolv/base64.c (rcsid): Remove unused static.
24491         * sysdeps/ieee754/dbl-64/atnat2.h (qpi1): Remove unused
24492         static.  (tqpi1): Likewise.
24493         * sysdeps/ieee754/dbl-64/uexp.h (one): Likewise.
24494         * sysdeps/ieee754/dbl-64/upow.h (sqrt_2): Likewise.
24495         * sysdeps/ieee754/flt-32/e_log10f.c (one): Likewise.
24496         * sysdeps/ieee754/flt-32/s_cosf.c (one): Likewise.
24497         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (zero): Likewise.
24498         * sysdeps/ieee754/ldbl-128/s_erfl.c (half): Likewise.
24499         * sysdeps/ieee754/ldbl-128/s_log1pl.c (maxlog): Likewise.
24500         * timezone/private.h (time_t_min): Likewise.  (time_t_max):
24501         Likewise.
24502
24503 2015-09-18  H.J. Lu  <hongjiu.lu@intel.com>
24504
24505         * sysdeps/nptl/jmp-unwind.c: Include <libc-lock.h> instead of
24506         <nptl/pthreadP.h>.
24507         (_longjmp_unwind): Use __libc_ptf_call.
24508         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Likewise.
24509
24510 2015-09-18  David Lamparter  <equinox-gentoo@diac24.net>
24511
24512         * sysdeps/arm/setjmp.S: Change PIC to SHARED.
24513         * sysdeps/arm/__longjmp.S: Likewise.
24514
24515 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
24516
24517         * sysdeps/ieee754/dbl-64/s_signbit.c (__signbit):
24518         Use __builtin_signbit.
24519         * sysdeps/ieee754/flt-32/s_signbitf.c (__signbitf):
24520         Use __builtin_signbitf.
24521         * sysdeps/ieee754/ldbl-128/s_signbitl.c (__signbitl):
24522         Use __builtin_signbitl.
24523         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
24524         * sysdeps/ieee754/ldbl-96/s_signbitl.c (__signbitl): Likewise.
24525
24526 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
24527
24528         [BZ #15367]
24529         [BZ #17441]
24530
24531         * math/Makefile: Build test-snan.c with -fsignaling-nans.
24532         * math/math.h (fpclassify): Use __builtin_fpclassify when
24533         available.  (signbit): Use __builtin_signbit(f/l).
24534         (isfinite): Use__builtin_isfinite.  (isnormal): Use
24535         __builtin_isnormal.  (isnan): Use __builtin_isnan.
24536         (isinf): Use __builtin_isinf_sign.
24537
24538 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
24539
24540         * benchtests/Makefile: Add bench-math-inlines, link with libm.
24541         * benchtests/bench-math-inlines.c: New benchmark.
24542         * benchtests/bench-util.h: New file.
24543         * benchtests/bench-util.c: New file.
24544         * benchtests/bench-skeleton.c: Add include of bench-util.c/h.
24545
24546 2015-09-18  Carlos O'Donell  <carlos@redhat.com>
24547
24548         * elf/tst-dlmopen1.c: Define TEST_SO.
24549         (do_test): Use TEST_SO.
24550
24551         * elf/dl-load.c: Include libc-internal.h.
24552         (_dl_map_object_from_fd): Use ALIGN_UP and ALIGN_DOWN.
24553
24554 2015-09-18  Vincent Bernat  <vincent@bernat.im>
24555
24556         [BZ #17887]
24557         * time/strptime_l.c (__strptime_internal): Make %z accept
24558         [+-]HH:MM time zones.
24559
24560 2015-09-18  Vincent Bernat  <vincent@bernat.im>
24561
24562         [BZ #17886]
24563         * time/strptime_l.c (__strptime_internal): Make %z accept Z as a
24564         valid time zone.
24565
24566 2015-09-17  Mike Frysinger  <vapier@gentoo.org>
24567
24568         * sysdeps/unix/sysv/linux/alpha/Makefile (CFLAGS-fdatasync.c): Delete.
24569         * sysdeps/unix/sysv/linux/alpha/fdatasync.c: Delete.
24570         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
24571         (__ASSUME_FDATASYNC): Delete.
24572
24573 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
24574
24575         * conform/linknamespace.pl: Require weak undefined symbols to be
24576         in the standard namespace.
24577         (%strong_syms): Rename to %seen_syms.
24578         (%strong_seen): Rename to %seen_where.
24579
24580 2015-09-17  H.J. Lu  <hongjiu.lu@intel.com>
24581
24582         [BZ #18970]
24583         * misc/error.c (error): Replace pthread_setcancelstate with
24584         __pthread_setcancelstate.
24585         (error_at_line): Likewise.
24586         * posix/wordexp.c (parse_comm): Likewise.
24587         * stdlib/fmtmsg.c (fmtmsg): Likewise.
24588         * nptl/forward.c (pthread_setcancelstate): Renamed to ...
24589         (__pthread_setcancelstate): This.
24590         (pthread_setcancelstate): Add an alias.
24591         * nptl/nptl-init.c (pthread_functions): Replace
24592         ptr_pthread_setcancelstate with ptr___pthread_setcancelstate.
24593         * sysdeps/nptl/pthread-functions.h (pthread_functions): Likewise.
24594         * nptl/pthreadP.h (__pthread_setcancelstate): Mark it with
24595         hidden_proto.
24596         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate): Mark
24597         it with hidden_def.
24598         * sysdeps/nptl/libc-lockP.h (__pthread_setcancelstate): New.
24599         (pthread_setcancelstate): Renamed to ...
24600         (__pthread_setcancelstate): This.
24601         * sysdeps/unix/sysv/linux/fatal-prepare.h (FATAL_PREPARE): Use
24602         __libc_ptf_call with __pthread_setcancelstate.
24603
24604 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
24605             Andreas Schwab  <schwab@suse.de>
24606
24607         [BZ #17118]
24608         * math/s_ctan.c (__ctan): Determine sign of zero real part of
24609         result when imaginary part of argument is infinite using sine and
24610         cosine.
24611         * math/s_ctanf.c (__ctanf): Likewise.
24612         * math/s_ctanl.c (__ctanl): Likewise.
24613         * math/s_ctanh.c (__ctanh): Determine sign of zero imaginary part
24614         of result when real part of argument is infinite using sine and
24615         cosine.
24616         * math/s_ctanhf.c (__ctanhf): Likewise.
24617         * math/s_ctanhl.c (__ctanhl): Likewise.
24618         * math/libm-test.inc (ctan_test_data): Add more tests of ctan.
24619         (ctanh_test_data): Add more tests of ctanh.
24620
24621 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
24622
24623         [BZ #15384]
24624         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Use same constant as
24625         bit-mask as in subtraction.
24626         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c (__finite):
24627         Likewise.
24628         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
24629         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
24630         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (__finitel): Likewise.
24631
24632         [BZ #18951]
24633         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Force
24634         underflow exception for small results.
24635         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
24636         Likewise.
24637         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
24638         Likewise.
24639         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
24640         Likewise.
24641         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
24642         Likewise.
24643         * math/auto-libm-test-in: Add more tests of tgamma.
24644         * math/auto-libm-test-out: Regenerated.
24645
24646 2015-09-17  Andreas Schwab  <schwab@suse.de>
24647
24648         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Readd.
24649
24650 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
24651
24652         [BZ #18977]
24653         * math/bits/mathcalls.h
24654         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j0): Do
24655         not declare.
24656         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j1):
24657         Likewise.
24658         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (jn):
24659         Likewise.
24660         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y0):
24661         Likewise.
24662         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y1):
24663         Likewise.
24664         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (yn):
24665         Likewise.
24666         * conform/data/math.h-data
24667         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0f): Do not expect
24668         function.
24669         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1f): Likewise.
24670         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnf): Likewise.
24671         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0f): Likewise.
24672         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1f): Likewise.
24673         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynf): Likewise.
24674         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0l): Likewise.
24675         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1l): Likewise.
24676         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnl): Likewise.
24677         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0l): Likewise.
24678         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1l): Likewise.
24679         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynl): Likewise.
24680
24681         [BZ #6803]
24682         * math/s_ldexp.c (scalbn): Define as weak alias of __ldexp.
24683         [NO_LONG_DOUBLE] (scalbnl): Define as weak alias of __ldexp.
24684         * math/s_ldexpf.c (scalbnf): Define as weak alias of __ldexpf.
24685         * math/s_ldexpl.c (scalbnl): Define as weak alias of __ldexpl.
24686         * sysdeps/i386/fpu/s_scalbn.S (scalbn): Remove alias.
24687         * sysdeps/i386/fpu/s_scalbnf.S (scalbnf): Likewise.
24688         * sysdeps/i386/fpu/s_scalbnl.S (scalbnl): Likewise.
24689         * sysdeps/ieee754/dbl-64/s_scalbn.c (scalbn): Likewise.
24690         [NO_LONG_DOUBLE] (scalbnl): Likewise.
24691         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (scalbn):
24692         Likewise.
24693         [NO_LONG_DOUBLE] (scalbnl): Likewise.
24694         * sysdeps/ieee754/flt-32/s_scalbnf.c (scalbnf): Likewise.
24695         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (scalbnl): Likewise.
24696         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (scalbnl): Remove
24697         long_double_symbol calls.
24698         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c (scalbnl): Likewise.
24699         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (__ldexpl_2): Define as
24700         strong alias of __ldexpl.
24701         (scalbnl): Define using long_double_symbol.
24702         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(scalbn,suffix)):
24703         Remove alias.
24704         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c (scalbnl): Likewise.
24705         * sysdeps/x86_64/fpu/s_scalbnl.S (scalbnl): Likewise.
24706         * math/libm-test.inc (scalbn_test_data): Add errno expectations.
24707         (scalbln_test_data): Add more errno expectations.
24708
24709 2015-09-16  Justus Winter  <4winter@informatik.uni-hamburg.de>
24710
24711         Cache the host port like we cache the task port.  This way we do not
24712         need to call the kernel just to get the port.  Furthermore, we no
24713         longer increase the reference count on every invocation of
24714         `mach_host_self'.
24715
24716         * mach/mach/mach_traps.h (__mach_host_self, mach_host_self):
24717         Protect declarations against the macro expansion.
24718         * mach/mach_init.c (__mach_host_self_): New variable.
24719         (mach_init): Initialize `__mach_host_self_'.
24720         * mach/mach_init.h (__mach_host_self_): New declaration.
24721         (__mach_host_self, mach_host_self): New macros.
24722         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup):
24723         Release reference.
24724
24725 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
24726
24727         [BZ #4404]
24728         * po/de.po: Update from Translation Project.
24729
24730         [BZ #16415]
24731         * sysdeps/ieee754/ldbl-128/s_expm1l.c (maxlog): Remove variable.
24732         (__expm1l): Remove code to handle positive infinity and overflow.
24733         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (maxlog): Remove
24734         variable.
24735         (__expm1l): Remove code to handle positive infinity and overflow.
24736
24737 2015-09-16  Paul Eggert  <eggert@cs.ucla.edu>
24738             Paul Pluzhnikov  <ppluzhnikov@google.com>
24739
24740         [BZ #18872]
24741         * stdio-common/Makefile (tst-printf-bz18872): New test.
24742         (tst-printf-bz18872-mem.out): Likewise.
24743         * stdio-common/tst-printf-bz18872.sh: Generate new test.
24744         * stdio-common/vfprintf.c: Fix memory leaks.
24745
24746 2015-09-16  Andreas Schwab  <schwab@suse.de>
24747
24748         [BZ #17244]
24749         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
24750         Remove extra va_start/va_end calls.
24751
24752         [BZ #17243]
24753         * posix/execl.c (execl): Add missing va_end.
24754         * posix/execle.c (execle): Likewise.
24755         * posix/execlp.c (execlp): Likewise.
24756
24757 2015-09-15  Roland McGrath  <roland@hack.frob.com>
24758
24759         * misc/sys/param.h [!MAXHOSTNAMELEN && HOST_NAME_MAX]
24760         (MAXHOSTNAMELEN): Define it to HOST_NAME_MAX.
24761
24762 2015-09-15  Joseph Myers  <joseph@codesourcery.com>
24763
24764         [BZ #18967]
24765         * math/math.h (__MATH_DECLARING_DOUBLE): New macro.  Define and
24766         undefine around includes of <bits/mathcalls.h>.
24767         * math/bits/mathcalls.h [!__USE_MISC && __USE_XOPEN2K] (isnan): Do
24768         not declare function.
24769         [!__USE_MISC && __USE_XOPEN2K] (gamma): Likewise.
24770         [!__USE_MISC && (!__MATH_DECLARING_DOUBLE || __USE_XOPEN2K8)]
24771         (scalb): Likewise.
24772         * math/tgmath.h [!__USE_MISC && __USE_XOPEN_EXTENDED] (scalb): Do
24773         not define macro.
24774         * conform/Makefile (test-xfail-XOPEN2K/math.h/conform): Remove
24775         variable.
24776         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
24777         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
24778         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
24779
24780         [BZ #18857]
24781         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Just
24782         return non-finite argument without doing ordered comparisons on
24783         it.
24784
24785         [BZ #16296]
24786         * math/fenv.h (fegetround): Use __attribute_pure__.
24787         * include/fenv.h (__fegetround): Likewise.
24788
24789         [BZ #18595]
24790         * math/s_ctan.c (__ctan): Force underflow exception for results
24791         whose real or imaginary part has small absolute value.
24792         * math/s_ctanf.c (__ctanf): Likewise.
24793         * math/s_ctanh.c (__ctanh): Likewise.
24794         * math/s_ctanhf.c (__ctanhf): Likewise.
24795         * math/s_ctanhl.c (__ctanhl): Likewise.
24796         * math/s_ctanl.c (__ctanl): Likewise.
24797         * math/auto-libm-test-in: Do not allow missing underflow for ctan
24798         and ctanh.  Add more tests of ctan and ctanh.
24799
24800         [BZ #15918]
24801         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Simplify
24802         handling of cases where one argument is an infinity.
24803
24804         [BZ #18875]
24805         [BZ #18966]
24806         * sysdeps/i386/fpu/e_exp10.S (dbl_min): New object.
24807         (MO): New macro.
24808         (__ieee754_exp10): For small results, force underflow exception
24809         and remove excess range and precision from return value.
24810         * sysdeps/i386/fpu/e_exp10f.S (flt_min): New object.
24811         (MO): New macro.
24812         (__ieee754_exp10f): For small results, force underflow exception
24813         and remove excess range and precision from return value.
24814         * math/auto-libm-test-in: Add more tests of exp10.
24815         * math/auto-libm-test-out: Regenerated.
24816
24817 2015-09-14  Joseph Myers  <joseph@codesourcery.com>
24818
24819         [BZ #18875]
24820         [BZ #18961]
24821         * sysdeps/i386/fpu/e_exp.S (dbl_min): New object.
24822         (MO): New macro.
24823         (__ieee754_exp): For small results, force underflow exception and
24824         remove excess range and precision from return value.
24825         (__exp_finite): Likewise.
24826         * sysdeps/i386/fpu/e_expf.S (flt_min): New object.
24827         (MO): New macro.
24828         (__ieee754_expf): For small results, force underflow exception and
24829         remove excess range and precision from return value.
24830         (__expf_finite): Likewise.
24831         * math/auto-libm-test-in: Add more tests of exp.
24832         * math/auto-libm-test-out: Regenerated.
24833
24834         [BZ #16521]
24835         [BZ #18875]
24836         * math/e_exp2l.c (__ieee754_exp2l): Force underflow exception for
24837         small results.
24838         * sysdeps/i386/fpu/e_exp2.S (dbl_min): New object.
24839         (MO): New macro.
24840         (__ieee754_exp2): For small results, force underflow exception and
24841         remove excess range and precision from return value.
24842         * sysdeps/i386/fpu/e_exp2f.S (flt_min): New object.
24843         (MO): New macro.
24844         (__ieee754_exp2f): For small results, force underflow exception
24845         and remove excess range and precision from return value.
24846         * sysdeps/i386/fpu/e_exp2l.S (ldbl_min): New object.
24847         (MO): New macro.
24848         (__ieee754_exp2l): Force underflow exception for small results.
24849         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
24850         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
24851         * sysdeps/x86_64/fpu/e_exp2l.S (ldbl_min): New object.
24852         (MO): New macro.
24853         (__ieee754_exp2l): Force underflow exception for small results.
24854         * math/auto-libm-test-in: Add more tests or exp2.
24855         * math/auto-libm-test-out: Regenerated.
24856
24857 2015-09-14  Carlos O'Donell  <carlos@redhat.com>
24858
24859         * malloc/malloc.c (systrim): Use ALIGN_DOWN.
24860
24861         * Makefile ($(objpfx)check-local-headers.out): Redirect stdin from
24862         /dev/null.
24863
24864 2015-09-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24865
24866         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
24867         io fs process)): Drop spurious backslash.
24868
24869 2015-09-12  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
24870
24871         * sysdeps/unix/sysv/linux/getsysstats.c (__get_phys_pages):
24872         Use sysinfo system call instead of parsing /proc/meminfo.
24873         * sysdeps/unix/sysv/linux/getsysstats.c (__get_avphys_pages):
24874         Likewise.
24875
24876 2015-09-11  Mike Frysinger  <vapier@gentoo.org>
24877
24878         [BZ #16985]
24879         * programs/localedef.c (main): Display argv[remaining] when
24880         output_path is NULL.
24881
24882 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
24883
24884         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
24885         asinh, atan, atan2, atanh, cabs, carg, cos, csqrt, erfc, exp,
24886         exp10, exp2, log, log1p, log2, pow, sin, sincos, sinh, tan and
24887         tanh.
24888         * math/auto-libm-test-out: Regenerated.
24889         * sysdeps/i386/fpu/libm-test-ulps: Update.
24890         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
24891         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
24892         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24893
24894 2015-09-11  Roland McGrath  <roland@hack.frob.com>
24895
24896         * sysdeps/nacl/Makefile [$(subdir) = misc] (sysdep_headers):
24897         Use 'override' keyword to freeze the value here, preventing
24898         the addition of sys/mtio.h by sysdeps/gnu/Makefile.
24899
24900 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
24901
24902         [BZ #14912]
24903         * sysdeps/aarch64/bits/atomic.h: Move to ...
24904         * sysdeps/aarch64/atomic-machine.h: ...here.
24905         (_AARCH64_BITS_ATOMIC_H): Rename macro to
24906         _AARCH64_ATOMIC_MACHINE_H.
24907         * sysdeps/alpha/bits/atomic.h: Move to ...
24908         * sysdeps/alpha/atomic-machine.h: ...here.
24909         * sysdeps/arm/bits/atomic.h: Move to ...
24910         * sysdeps/arm/atomic-machine.h: ...here.  Update comments.
24911         * bits/atomic.h: Move to ...
24912         * sysdeps/generic/atomic-machine.h: ...here.
24913         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
24914         * sysdeps/i386/bits/atomic.h: Move to ...
24915         * sysdeps/i386/atomic-machine.h: ...here.
24916         * sysdeps/ia64/bits/atomic.h: Move to ...
24917         * sysdeps/ia64/atomic-machine.h: ...here.
24918         * sysdeps/m68k/coldfire/bits/atomic.h: Move to ...
24919         * sysdeps/m68k/coldfire/atomic-machine.h: ...here.
24920         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
24921         * sysdeps/m68k/m680x0/m68020/bits/atomic.h: Move to ...
24922         * sysdeps/m68k/m680x0/m68020/atomic-machine.h: ...here.
24923         * sysdeps/microblaze/bits/atomic.h: Move to ...
24924         * sysdeps/microblaze/atomic-machine.h: ...here.
24925         * sysdeps/mips/bits/atomic.h: Move to ...
24926         * sysdeps/mips/atomic-machine.h: ...here.
24927         (_MIPS_BITS_ATOMIC_H): Rename macro to _MIPS_ATOMIC_MACHINE_H.
24928         * sysdeps/powerpc/bits/atomic.h: Move to ...
24929         * sysdeps/powerpc/atomic-machine.h: ...here.  Update comments.
24930         * sysdeps/powerpc/powerpc32/bits/atomic.h: Move to ...
24931         * sysdeps/powerpc/powerpc32/atomic-machine.h: ...here.  Update
24932         comments.  Include <atomic-machine.h> instead of <bits/atomic.h>.
24933         * sysdeps/powerpc/powerpc64/bits/atomic.h: Move to ...
24934         * sysdeps/powerpc/powerpc64/atomic-machine.h: ...here.  Include
24935         <atomic-machine.h> instead of <bits/atomic.h>.
24936         * sysdeps/s390/bits/atomic.h: Move to ...
24937         * sysdeps/s390/atomic-machine.h: ...here.
24938         * sysdeps/sparc/sparc32/bits/atomic.h: Move to ...
24939         * sysdeps/sparc/sparc32/atomic-machine.h: ...here.
24940         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
24941         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Move to ...
24942         * sysdeps/sparc/sparc32/sparcv9/atomic-machine.h: ...here.
24943         * sysdeps/sparc/sparc64/bits/atomic.h: Move to ...
24944         * sysdeps/sparc/sparc64/atomic-machine.h: ...here.
24945         * sysdeps/tile/bits/atomic.h: Move to ...
24946         * sysdeps/tile/atomic-machine.h: ...here.
24947         * sysdeps/tile/tilegx/bits/atomic.h: Move to ...
24948         * sysdeps/tile/tilegx/atomic-machine.h: ...here.  Include
24949         <sysdeps/tile/atomic-machine.h> instead of
24950         <sysdeps/tile/bits/atomic.h>.
24951         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
24952         * sysdeps/tile/tilepro/bits/atomic.h: Move to ...
24953         * sysdeps/tile/tilepro/atomic-machine.h: ...here.  Include
24954         <sysdeps/tile/atomic-machine.h> instead of
24955         <sysdeps/tile/bits/atomic.h>.
24956         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
24957         * sysdeps/unix/sysv/linux/arm/bits/atomic.h: Move to ...
24958         * sysdeps/unix/sysv/linux/arm/atomic-machine.h: ...here.  Include
24959         <sysdeps/arm/atomic-machine.h> instead of
24960         <sysdeps/arm/bits/atomic.h>.
24961         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Move to ...
24962         * sysdeps/unix/sysv/linux/hppa/atomic-machine.h: ...here.
24963         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
24964         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Move to ...
24965         * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h: ...here.
24966         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
24967         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: Move to ...
24968         * sysdeps/unix/sysv/linux/nios2/atomic-machine.h: ...here.
24969         (_NIOS2_BITS_ATOMIC_H): Rename macro to _NIOS2_ATOMIC_MACHINE_H.
24970         * sysdeps/unix/sysv/linux/sh/bits/atomic.h: Move to ...
24971         * sysdeps/unix/sysv/linux/sh/atomic-machine.h: ...here.
24972         * sysdeps/x86_64/bits/atomic.h: Move to ...
24973         * sysdeps/x86_64/atomic-machine.h: ...here.
24974         * include/atomic.h: Include <atomic-machine.h> instead of
24975         <bits/atomic.h>.
24976
24977         * sysdeps/mips/mips32/libm-test-ulps: Update.
24978         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
24979
24980         [BZ #18952]
24981         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r): Do
24982         not convert non-integer negative arguments to int to determine the
24983         value of signgam.
24984         * math/auto-libm-test-in: Add more tests of lgamma.
24985         * math/auto-libm-test-out: Regenerated.
24986
24987         * math/auto-libm-test-in: Add more tests of acosh, atanh, cbrt,
24988         cosh, csqrt, erfc, expm1 and lgamma.
24989         * math/auto-libm-test-out: Regenerated.
24990         * sysdeps/i386/fpu/libm-test-ulps: Update.
24991         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24992
24993 2015-09-10  Joseph Myers  <joseph@codesourcery.com>
24994
24995         [BZ #2542]
24996         [BZ #2543]
24997         [BZ #2558]
24998         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r): Call
24999         __lgamma_neg for arguments from -28.0 to -2.0.
25000         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Call
25001         __lgamma_negf for arguments from -15.0 to -2.0.
25002         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
25003         Call __lgamma_negl for arguments from -48.0 or -50.0 to -2.0.
25004         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
25005         Call __lgamma_negl for arguments from -33.0 to -2.0.
25006         * sysdeps/ieee754/dbl-64/lgamma_neg.c: New file.
25007         * sysdeps/ieee754/dbl-64/lgamma_product.c: Likewise.
25008         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
25009         * sysdeps/ieee754/flt-32/lgamma_productf.c: Likewise.
25010         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
25011         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
25012         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
25013         * sysdeps/ieee754/ldbl-128ibm/lgamma_productl.c: Likewise.
25014         * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
25015         * sysdeps/ieee754/ldbl-96/lgamma_product.c: Likewise.
25016         * sysdeps/ieee754/ldbl-96/lgamma_productl.c: Likewise.
25017         * sysdeps/generic/math_private.h (__lgamma_negf): New prototype.
25018         (__lgamma_neg): Likewise.
25019         (__lgamma_negl): Likewise.
25020         (__lgamma_product): Likewise.
25021         (__lgamma_productl): Likewise.
25022         * math/Makefile (libm-calls): Add lgamma_neg and lgamma_product.
25023         * math/auto-libm-test-in: Add more tests of lgamma.
25024         * math/auto-libm-test-out: Regenerated.
25025         * sysdeps/i386/fpu/libm-test-ulps: Update.
25026         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25027
25028 2015-09-09  Justin Maggard  <jmaggard@netgear.com>
25029
25030         [BZ #18675]
25031         * sysdeps/posix/fpathconf.c (__fpathconf): Use __fstatvfs64.
25032
25033 2015-09-08  Joseph Myers  <joseph@codesourcery.com>
25034
25035         [BZ #14912]
25036         * bits/libc-lock.h: Move to ...
25037         * sysdeps/generic/libc-lock.h: ...here.
25038         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
25039         * sysdeps/mach/hurd/bits/libc-lock.h: Move to ...
25040         * sysdeps/mach/hurd/libc-lock.h: ...here.
25041         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
25042         [_LIBC]: Include <libc-lockP.h> instead of <bits/libc-lockP.h>.
25043         * sysdeps/mach/bits/libc-lock.h: Move to ...
25044         * sysdeps/mach/libc-lock.h: ...here.
25045         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
25046         * sysdeps/nptl/bits/libc-lock.h: Move to ...
25047         * sysdeps/nptl/libc-lock.h: ...here.
25048         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
25049         * sysdeps/nptl/bits/libc-lockP.h: Move to ...
25050         * sysdeps/nptl/libc-lockP.h: ...here.
25051         (_BITS_LIBC_LOCKP_H): Rename macro to _LIBC_LOCKP_H.
25052         * crypt/crypt_util.c: Include <libc-lock.h> instead of
25053         <bits/libc-lock.h>.
25054         * dirent/scandir-tail.c: Likewise.
25055         * dlfcn/dlerror.c: Likewise.
25056         * elf/dl-close.c: Likewise.
25057         * elf/dl-iteratephdr.c: Likewise.
25058         * elf/dl-lookup.c: Likewise.
25059         * elf/dl-open.c: Likewise.
25060         * elf/dl-support.c: Likewise.
25061         * elf/dl-writev.h: Likewise.
25062         * elf/rtld.c: Likewise.
25063         * grp/fgetgrent.c: Likewise.
25064         * gshadow/fgetsgent.c: Likewise.
25065         * gshadow/sgetsgent.c: Likewise.
25066         * iconv/gconv_conf.c: Likewise.
25067         * iconv/gconv_db.c: Likewise.
25068         * iconv/gconv_dl.c: Likewise.
25069         * iconv/gconv_int.h: Likewise.
25070         * iconv/gconv_trans.c: Likewise.
25071         * include/link.h: Likewise.
25072         * inet/getnameinfo.c: Likewise.
25073         * inet/getnetgrent.c: Likewise.
25074         * inet/getnetgrent_r.c: Likewise.
25075         * intl/bindtextdom.c: Likewise.
25076         * intl/dcigettext.c: Likewise.
25077         * intl/finddomain.c: Likewise.
25078         * intl/gettextP.h: Likewise.
25079         * intl/loadmsgcat.c: Likewise.
25080         * intl/localealias.c: Likewise.
25081         * intl/textdomain.c: Likewise.
25082         * libidn/idn-stub.c: Likewise.
25083         * libio/libioP.h: Likewise.
25084         * locale/duplocale.c: Likewise.
25085         * locale/freelocale.c: Likewise.
25086         * locale/newlocale.c: Likewise.
25087         * locale/setlocale.c: Likewise.
25088         * login/getutent_r.c: Likewise.
25089         * login/getutid_r.c: Likewise.
25090         * login/getutline_r.c: Likewise.
25091         * login/utmp-private.h: Likewise.
25092         * login/utmpname.c: Likewise.
25093         * malloc/mtrace.c: Likewise.
25094         * misc/efgcvt.c: Likewise.
25095         * misc/error.c: Likewise.
25096         * misc/fstab.c: Likewise.
25097         * misc/getpass.c: Likewise.
25098         * misc/mntent.c: Likewise.
25099         * misc/syslog.c: Likewise.
25100         * nis/nis_call.c: Likewise.
25101         * nis/nis_callback.c: Likewise.
25102         * nis/nss-default.c: Likewise.
25103         * nis/nss_compat/compat-grp.c: Likewise.
25104         * nis/nss_compat/compat-initgroups.c: Likewise.
25105         * nis/nss_compat/compat-pwd.c: Likewise.
25106         * nis/nss_compat/compat-spwd.c: Likewise.
25107         * nis/nss_nis/nis-alias.c: Likewise.
25108         * nis/nss_nis/nis-ethers.c: Likewise.
25109         * nis/nss_nis/nis-grp.c: Likewise.
25110         * nis/nss_nis/nis-hosts.c: Likewise.
25111         * nis/nss_nis/nis-network.c: Likewise.
25112         * nis/nss_nis/nis-proto.c: Likewise.
25113         * nis/nss_nis/nis-pwd.c: Likewise.
25114         * nis/nss_nis/nis-rpc.c: Likewise.
25115         * nis/nss_nis/nis-service.c: Likewise.
25116         * nis/nss_nis/nis-spwd.c: Likewise.
25117         * nis/nss_nisplus/nisplus-alias.c: Likewise.
25118         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
25119         * nis/nss_nisplus/nisplus-grp.c: Likewise.
25120         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
25121         * nis/nss_nisplus/nisplus-initgroups.c: Likewise.
25122         * nis/nss_nisplus/nisplus-network.c: Likewise.
25123         * nis/nss_nisplus/nisplus-proto.c: Likewise.
25124         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
25125         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
25126         * nis/nss_nisplus/nisplus-service.c: Likewise.
25127         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
25128         * nis/ypclnt.c: Likewise.
25129         * nptl/libc_pthread_init.c: Likewise.
25130         * nss/getXXbyYY.c: Likewise.
25131         * nss/getXXent.c: Likewise.
25132         * nss/getXXent_r.c: Likewise.
25133         * nss/nss_db/db-XXX.c: Likewise.
25134         * nss/nss_db/db-netgrp.c: Likewise.
25135         * nss/nss_db/nss_db.h: Likewise.
25136         * nss/nss_files/files-XXX.c: Likewise.
25137         * nss/nss_files/files-alias.c: Likewise.
25138         * nss/nsswitch.c: Likewise.
25139         * posix/regex_internal.h: Likewise.
25140         * posix/wordexp.c: Likewise.
25141         * pwd/fgetpwent.c: Likewise.
25142         * resolv/res_hconf.c: Likewise.
25143         * resolv/res_libc.c: Likewise.
25144         * shadow/fgetspent.c: Likewise.
25145         * shadow/lckpwdf.c: Likewise.
25146         * shadow/sgetspent.c: Likewise.
25147         * socket/opensock.c: Likewise.
25148         * stdio-common/reg-modifier.c: Likewise.
25149         * stdio-common/reg-printf.c: Likewise.
25150         * stdio-common/reg-type.c: Likewise.
25151         * stdio-common/vfprintf.c: Likewise.
25152         * stdio-common/vfscanf.c: Likewise.
25153         * stdlib/abort.c: Likewise.
25154         * stdlib/cxa_atexit.c: Likewise.
25155         * stdlib/fmtmsg.c: Likewise.
25156         * stdlib/random.c: Likewise.
25157         * stdlib/setenv.c: Likewise.
25158         * string/strsignal.c: Likewise.
25159         * sunrpc/auth_none.c: Likewise.
25160         * sunrpc/bindrsvprt.c: Likewise.
25161         * sunrpc/create_xid.c: Likewise.
25162         * sunrpc/key_call.c: Likewise.
25163         * sunrpc/rpc_thread.c: Likewise.
25164         * sysdeps/arm/backtrace.c: Likewise.
25165         * sysdeps/generic/ldsodefs.h: Likewise.
25166         * sysdeps/generic/stdio-lock.h: Likewise.
25167         * sysdeps/generic/unwind-dw2-fde.c: Likewise.
25168         * sysdeps/i386/backtrace.c: Likewise.
25169         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
25170         * sysdeps/m68k/backtrace.c: Likewise.
25171         * sysdeps/mach/hurd/cthreads.c: Likewise.
25172         * sysdeps/mach/hurd/dirstream.h: Likewise.
25173         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
25174         * sysdeps/nptl/malloc-machine.h: Likewise.
25175         * sysdeps/nptl/stdio-lock.h: Likewise.
25176         * sysdeps/posix/dirstream.h: Likewise.
25177         * sysdeps/posix/getaddrinfo.c: Likewise.
25178         * sysdeps/posix/system.c: Likewise.
25179         * sysdeps/pthread/aio_suspend.c: Likewise.
25180         * sysdeps/s390/s390-32/backtrace.c: Likewise.
25181         * sysdeps/s390/s390-64/backtrace.c: Likewise.
25182         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
25183         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
25184         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: Likewise.
25185         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: Likewise.
25186         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: Likewise.
25187         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
25188         * sysdeps/unix/sysv/linux/system.c: Likewise.
25189         * sysdeps/x86_64/backtrace.c: Likewise.
25190         * time/alt_digit.c: Likewise.
25191         * time/era.c: Likewise.
25192         * time/tzset.c: Likewise.
25193         * wcsmbs/wcsmbsload.c: Likewise.
25194         * nptl/tst-initializers1.c (do_test): Refer to <libc-lock.h>
25195         instead of <bits/libc-lock.h> in comment.
25196
25197 2015-09-08  Andrew Bennett  <andrew.bennett@imgtec.com>
25198
25199         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIO32] (MIPS_PUSH_MIPS2):
25200         Only use .set mips2 if the current ISA is below mips2.
25201         * sysdeps/mips/sys/tas.h [_MIPS_SIM == _ABIO32] (_test_and_set):
25202         Likewise.
25203         * sysdeps/mips/nptl/tls.h (READ_THREAD_POINTER): Only use .set
25204         mips32r2 if the current ISA is below mips32r2.
25205         * sysdeps/mips/tls-macros.h (TLS_RDHWR): New define.
25206         (TLS_IE): Updated to use the TLD_RDHWR macro.
25207         (TLS_LE): Likewise.
25208         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Moved out of #ifdef
25209         __ASSEMBLER__ condition.
25210
25211 2015-09-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25212
25213         Fix parallel build of before-compile targets.
25214
25215         * sysdeps/mach/Makefile ($(patsubst
25216         mach%,m\%h%,$(mach-before-compile))): Move rule to dedicated
25217         mach-before-compile target.
25218         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
25219         io fs process)): Move rule to dedicated hurd-before-compile target.
25220
25221 2015-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25222
25223         Fix rules generating headers in hurd/ and mach/ when initial make call
25224         has subdir= explicitly set.
25225
25226         * sysdeps/mach/Makefile ($(patsubst
25227         mach%,m\%h%,$(mach-before-compile))): Force subdir to mach when
25228         calling $(MAKE).
25229         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
25230         io fs process)): Force subdir to hurd when calling $(MAKE).
25231         ($(common-objpfx)hurd/../mach/RPC_task_get_sampled_pcs.c): Force
25232         subdir to mach when calling $(MAKE).
25233
25234 2015-09-06  Manolis Ragkousis  <manolis837@gmail.com>
25235
25236         Check sysheaders when looking for Mach and Hurd headers
25237
25238         * sysdeps/mach/configure.ac: Add sysheaders check.
25239         * sysdeps/mach/configure: Regenerate.
25240         * sysdeps/mach/hurd/configure.ac: Add sysheaders check.
25241         * sysdeps/mach/hurd/configure: Regenerate.
25242
25243 2015-09-04  Roland McGrath  <roland@hack.frob.com>
25244
25245         [BZ #18921]
25246         * sysdeps/posix/opendir.c (need_isdir_precheck) [O_DIRECTORY]:
25247         Fix inverted sense of test of 'o_directory_works' value.
25248         Reported by Pádraig Brady <P@draigBrady.com>, diagnosed by
25249         Bernhard Voelker <mail@bernhard-voelker.de>.
25250
25251 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
25252
25253         [BZ #14912]
25254         * bits/linkmap.h: Move to ...
25255         * sysdeps/generic/linkmap.h: ...here.
25256         * sysdeps/aarch64/bits/linkmap.h: Move to ...
25257         * sysdeps/aarch64/linkmap.h: ...here.
25258         * sysdeps/arm/bits/linkmap.h: Move to ...
25259         * sysdeps/arm/linkmap.h: ...here.
25260         * sysdeps/hppa/bits/linkmap.h: Move to ...
25261         * sysdeps/hppa/linkmap.h: ...here.
25262         * sysdeps/ia64/bits/linkmap.h: Move to ...
25263         * sysdeps/ia64/linkmap.h: ...here.
25264         * sysdeps/mips/bits/linkmap.h: Move to ...
25265         * sysdeps/mips/linkmap.h: ...here.
25266         * sysdeps/s390/bits/linkmap.h: Move to ...
25267         * sysdeps/s390/linkmap.h: ...here.
25268         * sysdeps/sh/bits/linkmap.h: Move to ...
25269         * sysdeps/sh/linkmap.h: ...here.
25270         * sysdeps/x86/bits/linkmap.h: Move to ...
25271         * sysdeps/x86/linkmap.h: ...here.
25272         * include/link.h: Include <linkmap.h> instead of <bits/linkmap.h>.
25273
25274 2015-09-04  Andreas Schwab  <schwab@suse.de>
25275
25276         [BZ #18635]
25277         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
25278         (__makecontext): Terminate FDE before return label.
25279         (__novec_makecontext): Likewise.
25280
25281 2015-09-04  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
25282
25283         * sysdeps/unix/sysv/linux/socketpair.c: Use the address of the
25284         first member of struct sv in syscall macro.
25285
25286 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
25287
25288         [BZ #14912]
25289         * bits/stdio-lock.h: Move to ...
25290         * sysdeps/generic/stdio-lock.h: ...here.
25291         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
25292         * sysdeps/nptl/bits/stdio-lock.h: Move to ...
25293         * sysdeps/nptl/stdio-lock.h: ...here.
25294         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
25295         * include/libio.h: Include <stdio-lock.h> instead of
25296         <bits/stdio-lock.h>.
25297         * sysdeps/nptl/fork.c: Likewise.
25298         * sysdeps/pthread/flockfile.c: Likewise.
25299         * sysdeps/pthread/ftrylockfile.c: Likewise.
25300         * sysdeps/pthread/funlockfile.c: Likewise.
25301
25302         [BZ #14912]
25303         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Move to ...
25304         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: ...here.
25305         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Include
25306         <m68k-vdso.h> instead of <bits/m68k-vdso.h>.
25307         * sysdeps/unix/sysv/linux/m68k/init-first.c: Likewise.
25308         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
25309         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
25310
25311 2015-09-03  Roland McGrath  <roland@hack.frob.com>
25312
25313         * elf/Makefile (test-xfail-tst-protected1a): New variable.
25314         (test-xfail-tst-protected1b): New variable.
25315
25316 2015-09-03  Joseph Myers  <joseph@codesourcery.com>
25317
25318         [BZ #14912]
25319         * bits/libc-tsd.h: Move to ...
25320         * sysdeps/generic/libc-tsd.h: ...here.
25321         (_GENERIC_BITS_LIBC_TSD_H): Rename macro to _GENERIC_LIBC_TSD_H.
25322         * sysdeps/mach/hurd/bits/libc-tsd.h: Move to ...
25323         * sysdeps/mach/hurd/libc-tsd.h: ...here.
25324         (_BITS_LIBC_TSD_H): Rename macro to _LIBC_TSD_H.
25325         * include/ctype.h: Include <libc-tsd.h> instead of
25326         <bits/libc-tsd.h>.
25327         * include/rpc/rpc.h: Likewise.
25328         * locale/localeinfo.h: Likewise.
25329         * sunrpc/rpc_thread.c: Likewise.
25330         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
25331         * sysdeps/nptl/malloc-machine.h: Likewise.
25332
25333         * Makefile (headers): Remove bits/libc-lock.h.
25334         * libio/Makefile (headers): Remove bits/stdio-lock.h.
25335
25336         * libio/libio.h [_IO_MTSAFE_IO]: Remove include of
25337         <bits/stdio-lock.h> and commented-out include of <comthread.h>.
25338         * include/libio.h [!_ISOMAC && _IO_MTSAFE_IO]: Include
25339         <bits/stdio-lock.h>.
25340         * stdio-common/scanf15.c (_IO_MTSAFE_IO): Undefine.
25341         * stdio-common/scanf17.c (_IO_MTSAFE_IO): Likewise.
25342
25343 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
25344
25345         [BZ #18757]
25346         * libio/iofopncook.c (_IO_fopencookie): Set errno on failure.
25347         * libio/test-fmemopen.c (do_bz18820): Extend the test to cover
25348         BZ #18757.
25349
25350 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
25351
25352         * malloc/mtrace.pl: Filter out NULL entries.
25353
25354 2015-09-01  Joseph Myers  <joseph@codesourcery.com>
25355
25356         * inet/netinet/in.h (IPPROTO_MPLS): New enum value and macro.
25357         * sysdeps/unix/sysv/linux/bits/in.h (IP_BIND_ADDRESS_NO_PORT): New
25358         macro.
25359
25360         * sysdeps/gnu/netinet/tcp.h (TCP_NOTSENT_LOWAT): New macro.
25361         (TCP_CC_INFO): Likewise.
25362         (TCP_SAVE_SYN): Likewise.
25363         (TCP_SAVED_SYN): Likewise.
25364
25365 2015-08-31  Brett Neumeier <brett@neumeier.us>
25366
25367         [BZ #18870]
25368         * sysdeps/sparc/sparc32/sem_open.c: Add missing #include
25369
25370 2015-08-31  Paul Eggert  <eggert@cs.ucla.edu>
25371
25372         [BZ #18873]
25373         Fix broken overflow check in posix_fallocate
25374         * sysdeps/posix/posix_fallocate.c (posix_fallocate):
25375         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
25376         Fix parenthesization typo.
25377
25378 2015-08-28  Mike Frysinger  <vapier@gentoo.org>
25379
25380         [BZ #18887]
25381         * misc/Makefile (tests): Add tst-mntent-blank-corrupt and
25382         tst-mntent-blank-passno.
25383         * misc/mntent_r.c (__getmntent_r): Do not read past buffer[0].
25384         * misc/tst-mntent-blank-corrupt.c: New test.
25385         * misc/tst-mntent-blank-passno.c: New test ripped from ...
25386         * misc/tst-mntent.c (do_test): ... here.
25387
25388 2015-08-29  Mike Frysinger  <vapier@gentoo.org>
25389
25390         [BZ #4404]
25391         * po/de.po: Fix SIGALRM typo.
25392
25393 2015-08-28  James Perkins  <james@loowit.net>
25394
25395         * time/tst-strptime2.c (tests): Replace short list of test
25396         strings for strptime %z specifier with code which exhaustively
25397         tests every combination of sign and 0 to 5 digits. Tests for
25398         rejection of invalid strings.
25399
25400 2015-08-28  James Perkins  <james@loowit.net>
25401
25402         [BZ #16141]
25403         * time/strptime_l.c (__strptime_internal): Fix %z minutes
25404         calculation, removing incorrect decimal time rounding, so that
25405         all minute values result in a valid seconds value.
25406         * time/strptime_l.c (__strptime_internal): Extend %z time zone
25407         offset range limits to UTC-99:59 through UTC+99:59 to parse
25408         current and historical use cases.
25409         * time/tst-strptime2.c (tests): Modify and add tests for the
25410         strptime %z input field descriptor, specifically conversion of
25411         minutes to seconds and validating an offset range of -9959 to
25412         +9959.
25413
25414 2015-08-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
25415             Dmitry V. Levin  <ldv@altlinux.org>
25416
25417         [BZ #18877]
25418         * posix/Makefile (tests): Add tst-mmap-offset.
25419         * posix/tst-mmap.c: New file.
25420         * sysdeps/unix/sysv/linux/generic/wordsize-32/mmap.c (__mmap): Fix
25421         offset calculation for negative values.
25422
25423 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
25424
25425         * sysdeps/i386/init-arch.h: New file.
25426         * sysdeps/i386/i586/init-arch.h: Likewise.
25427         * sysdeps/i386/i686/init-arch.h: Likewise.
25428         * sysdeps/x86/cpu-features.c (init_cpu_features): Set bit_I586
25429         bit if CX8 is available.  Set bit_I686 bit if CMOV is available.
25430         * sysdeps/x86/cpu-features.h (bit_I586): New.
25431         (bit_I686): Likewise.
25432         (bit_CX8): Likewise.
25433         (bit_CMOV): Likewise.
25434         (index_CX8): Likewise.
25435         (index_CMOV): Likewise.
25436         (index_I586): Likewise.
25437         (index_I686): Likewise.
25438         (reg_CX8): Likewise.
25439         (reg_CMOV): Likewise.
25440         (HAS_I586): Defined as HAS_ARCH_FEATURE (I586) if i586 isn't
25441         available at compile-time.
25442         (HAS_I686): Defined as HAS_ARCH_FEATURE (I686) if i686 isn't
25443         available at compile-time.
25444         * sysdeps/x86/init-arch.h (USE_I586): New macro.
25445         (USE_I686): Likewise.
25446
25447 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
25448
25449         * sysdeps/i386/bcopy.S: New file.
25450         * sysdeps/i386/bzero.S: Likewise.
25451         * sysdeps/i386/memcpy.S: Likewise.
25452         * sysdeps/i386/memmove.S: Likewise.
25453         * sysdeps/i386/mempcpy.S: Likewise.
25454         * sysdeps/i386/memset.S: Likewise.
25455         * sysdeps/i386/bzero.c: Removed.
25456         * sysdeps/i386/memset.c: Likewise.
25457         * sysdeps/i386/i586/memcpy_chk.S: Likewise.
25458         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
25459         * sysdeps/i386/i586/memset_chk.S: Likewise.
25460         * sysdeps/i386/i686/memcpy_chk.S: Moved to ...
25461         * sysdeps/i386/memcpy_chk.S: Here.
25462         * sysdeps/i386/i686/memmove_chk.S: Moved to ...
25463         * sysdeps/i386/memmove_chk.S: Here.
25464         * sysdeps/i386/i686/mempcpy_chk.S: Moved to ...
25465         * sysdeps/i386/mempcpy_chk.S: Likewise.
25466         * sysdeps/i386/i686/memset_chk.S: Moved to ...
25467         * sysdeps/i386/memset_chk.S: Likewise.
25468
25469 2015-08-27  Steve Ellcey  <sellcey@imgtec.com>
25470
25471         * soft-fp/fmasf4.c: Add include of sys/cdefs.h.
25472         Move DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT to front of
25473         file, move DIAG_POP_NEEDS_COMMENT to end of file.
25474         * soft-fp/fmadf4.c: Ditto.
25475         * soft-fp/fmatf4.c: Ditto.
25476
25477 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
25478
25479         * sysdeps/i386/i586/Implies: Removed.
25480         * sysdeps/i386/i686/Implies: Likewise.
25481
25482 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
25483
25484         * sysdeps/i386/i486/strlen.S: Moved to ...
25485         * sysdeps/i386/strlen.S: Here.
25486
25487 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
25488
25489         * sysdeps/i386/i486/strcat.S: Moved to ...
25490         * sysdeps/i386/strcat.S: Here.
25491
25492 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
25493
25494         * sysdeps/i386/i486/pthread_spin_trylock.S: Moved to ...
25495         * sysdeps/i386/pthread_spin_trylock.S: Here.
25496         * sysdeps/i386/i586/pthread_spin_trylock.S: Removed.
25497         * sysdeps/i386/i686/pthread_spin_trylock.S: Updated.
25498
25499 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
25500
25501         * sysdeps/i386/i486/string-inlines.c: Moved to ...
25502         * sysdeps/i386/string-inlines.c: Here.
25503
25504 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
25505
25506         * sysdeps/i386/i486/htonl.S: Moved ...
25507         * sysdeps/i386/htonl.S: here.
25508
25509 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
25510
25511         * sysdeps/i386/i486/bits/atomic.h: Moved to ...
25512         * sysdeps/i386/bits/atomic.h: Here.
25513
25514 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
25515
25516         * sysdeps/i386/i486/Versions: Removed.
25517
25518 2015-08-27  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
25519
25520         [BZ #2898]
25521         * misc/mktemp.c: Add mkdtemp to the link_warning message.
25522         Based on patch by Aurelien Jarno.
25523
25524 2015-08-26  Stan Shebs  <stanshebs@google.com>
25525
25526         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <libc-internal.h>.
25527         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
25528
25529 2015-08-26  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
25530
25531         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_HTM_NOSC.
25532         * sysdeps/powerpc/dl-procinfo.c:
25533         (_dl_powerpc_cap_flags): Added descriptor for this hwcap
25534         feature so it shows when LD_SHOW_AUXV=1.
25535
25536 2015-08-26  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
25537
25538         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
25539         (__arch_compare_and_exchange_val_32_acq): Remove and use common
25540         definition.  ISA 2.07B no longer requires full sync.
25541
25542 2015-08-26  Mike Frysinger  <vapier@gentoo.org>
25543
25544         [BZ #18863]
25545         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (siginfo_t): Add _sigsys.
25546         (si_call_addr): Define.
25547         (si_syscall): Define.
25548         (si_arch): Define.
25549
25550 2015-08-26  H.J. Lu  <hongjiu.lu@intel.com>
25551
25552         * sysdeps/i386/i586/bzero.S (USE_AS_BZERO): New.
25553         * sysdeps/i386/i686/bzero.S (USE_AS_BZERO): Likewise.
25554         * sysdeps/i386/i586/memset.S (BZERO_P): Removed.
25555         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
25556         (__memset_zero_constant_len_parameter): New.
25557         * sysdeps/i386/i686/memset.S (BZERO_P): Removed.
25558         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
25559         (__memset_zero_constant_len_parameter): Don't define if
25560         __memset_chk or USE_AS_BZERO are defined.
25561
25562         * sysdeps/i386/i586/memcpy.S (MEMPCPY_P): Removed.
25563         Check USE_AS_MEMPCPY/SHARED instead of MEMPCPY_P/PIC.
25564         * sysdeps/i386/i586/mempcpy.S (USE_AS_MEMPCPY): New.
25565
25566         * sysdeps/x86/Makefile [$(subdir) == elf] (CFLAGS-.os,
25567         tests-special, $(objpfx)tst-ld-sse-use.out): Moved to ...
25568         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os,
25569         tests-special, $(objpfx)tst-ld-sse-use.out): Here.  Update
25570         comments.
25571         * sysdeps/x86_64/Makefile [$(subdir) == elf] (CFLAGS-.os): Add
25572         -mno-mmx for $(all-rtld-routines).
25573         * sysdeps/x86/tst-ld-sse-use.sh: Moved to ...
25574         * sysdeps/i386/tst-ld-sse-use.sh: Here.  Replace x86-64 with
25575         i386.
25576
25577 2015-08-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
25578
25579         * sysdeps/generic/unwind.h
25580         (_Unwind_Word): Use __mode__(__unwind_word__)
25581         instead of __mode__(__word__).
25582         (_Unwind_Sword): Likewise.
25583
25584         * sysdeps/s390/s390-64/utf8-utf16-z9.c
25585         (MAX_NEEDED_INPUT): New define.
25586         (MAX_NEEDED_OUTPUT): New define.
25587
25588         * NEWS: New item for IBM z13 string optimizations.
25589
25590         * sysdeps/s390/multiarch/memrchr-c.c: New File.
25591         * sysdeps/s390/multiarch/memrchr-vx.S: Likewise.
25592         * sysdeps/s390/multiarch/memrchr.c: Likewise.
25593         * sysdeps/s390/multiarch/Makefile
25594         (sysdep_routines): Add memrchr functions.
25595         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
25596         (__libc_ifunc_impl_list_common): Add ifunc test for memrchr.
25597
25598         * sysdeps/s390/multiarch/wmemcmp-c.c: New File.
25599         * sysdeps/s390/multiarch/wmemcmp-vx.S: Likewise.
25600         * sysdeps/s390/multiarch/wmemcmp.c: Likewise.
25601         * sysdeps/s390/multiarch/Makefile
25602         (sysdep_routines): Add wmemcmp functions.
25603         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
25604         (__libc_ifunc_impl_list_common): Add ifunc test for wmemcmp.
25605         * benchtests/bench-wmemcmp.c: New File.
25606         * benchtests/Makefile (wcsmbs-bench): Add wmemcmp.
25607
25608         * sysdeps/s390/multiarch/wmemset-c.c: New File.
25609         * sysdeps/s390/multiarch/wmemset-vx.S: Likewise.
25610         * sysdeps/s390/multiarch/wmemset.c: Likewise.
25611         * sysdeps/s390/multiarch/Makefile
25612         (sysdep_routines): Add wmemset functions.
25613         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
25614         (__libc_ifunc_impl_list_common): Add ifunc test for wmemset.
25615         * wcsmbs/wmemset.c: Use WMEMSET if defined.
25616         * string/test-memset.c: Add wmemset support.
25617         * wcsmbs/test-wmemset.c: New File.
25618         * wcsmbs/Makefile (strop-tests): Add wmemset.
25619         * benchtests/bench-memset.c: Add wmemset support.
25620         * benchtests/bench-wmemset.c: New File.
25621         * benchtests/Makefile (wcsmbs-bench): Add wmemset.
25622
25623         * sysdeps/s390/multiarch/memccpy-c.c: New File.
25624         * sysdeps/s390/multiarch/memccpy-vx.S: Likewise.
25625         * sysdeps/s390/multiarch/memccpy.c: Likewise.
25626         * sysdeps/s390/multiarch/Makefile
25627         (sysdep_routines): Add memccpy functions.
25628         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
25629         (__libc_ifunc_impl_list_common): Add ifunc test for memccpy.
25630         * string/memccpy.c: Use MEMCCPY if defined.
25631
25632         * sysdeps/s390/multiarch/memchr-vx.S: New File.
25633         * sysdeps/s390/multiarch/memchr.c: Likewise.
25634         * sysdeps/s390/multiarch/rawmemchr-c.c: Likewise.
25635         * sysdeps/s390/multiarch/rawmemchr-vx.S: Likewise.
25636         * sysdeps/s390/multiarch/rawmemchr.c: Likewise.
25637         * sysdeps/s390/multiarch/wmemchr-c.c: Likewise.
25638         * sysdeps/s390/multiarch/wmemchr-vx.S: Likewise.
25639         * sysdeps/s390/multiarch/wmemchr.c: Likewise.
25640         * sysdeps/s390/s390-32/multiarch/memchr.c: Likewise.
25641         * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
25642         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memchr, wmemchr
25643         and rawmemchr functions.
25644         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
25645         (__libc_ifunc_impl_list_common): Add ifunc test for memchr, rawmemchr
25646         and wmemchr.
25647         * wcsmbs/wmemchr.c: Use WMEMCHR if defined.
25648         * string/test-memchr.c: Add wmemchr support.
25649         * wcsmbs/test-wmemchr.c: New File.
25650         * wcsmbs/Makefile (strop-tests): Add wmemchr.
25651         * benchtests/bench-memchr.c: Add wmemchr support.
25652         * benchtests/bench-wmemchr.c: New File.
25653         * benchtests/Makefile (wcsmbs-bench): wmemchr.
25654
25655         * sysdeps/s390/multiarch/strcspn-c.c: New File.
25656         * sysdeps/s390/multiarch/strcspn-vx.S: Likewise.
25657         * sysdeps/s390/multiarch/strcspn.c: Likewise.
25658         * sysdeps/s390/multiarch/wcscspn-c.c: Likewise.
25659         * sysdeps/s390/multiarch/wcscspn-vx.S: Likewise.
25660         * sysdeps/s390/multiarch/wcscspn.c: Likewise.
25661         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcspn and
25662         wcscspn functions.
25663         * sysdeps/s390/multiarch/ifunc-impl-list.c
25664         (__libc_ifunc_impl_list): Add ifunc test for strcspn, wcscspn.
25665         * wcsmbs/wcscspn.c: Use WCSCSPN if defined.
25666         * string/test-strcspn.c: Add wcscspn support.
25667         * wcsmbs/test-wcscspn.c: New File.
25668         * wcsmbs/Makefile (strop-tests): Add wcscspn.
25669         * benchtests/bench-strcspn.c: Add wcscspn support.
25670         * benchtests/bench-wcscspn.c: New File.
25671         * benchtests/Makefile (wcsmbs-bench): Add wcscspn.
25672
25673         * sysdeps/s390/multiarch/strpbrk-c.c: New File.
25674         * sysdeps/s390/multiarch/strpbrk-vx.S: Likewise.
25675         * sysdeps/s390/multiarch/strpbrk.c: Likewise.
25676         * sysdeps/s390/multiarch/wcspbrk-c.c: Likewise.
25677         * sysdeps/s390/multiarch/wcspbrk-vx.S: Likewise.
25678         * sysdeps/s390/multiarch/wcspbrk.c: Likewise.
25679         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strpbrk and
25680         wcspbrk functions.
25681         * sysdeps/s390/multiarch/ifunc-impl-list.c
25682         (__libc_ifunc_impl_list): Add ifunc test for strpbrk, wcspbrk.
25683         * wcsmbs/wcspbrk.c: Use WCSPBRK if defined.
25684         * string/test-strpbrk.c: Add wcspbrk support.
25685         * wcsmbs/test-wcspbrk.c: New File.
25686         * wcsmbs/Makefile (strop-tests): Add wcspbrk.
25687         * benchtests/bench-strpbrk.c: Add wcspbrk support.
25688         * benchtests/bench-wcspbrk.c: New File.
25689         * benchtests/Makefile (wcsmbs-bench): Add wcspbrk.
25690
25691         * sysdeps/s390/multiarch/strspn-c.c: New File.
25692         * sysdeps/s390/multiarch/strspn-vx.S: Likewise.
25693         * sysdeps/s390/multiarch/strspn.c: Likewise.
25694         * sysdeps/s390/multiarch/wcsspn-c.c: Likewise.
25695         * sysdeps/s390/multiarch/wcsspn-vx.S: Likewise.
25696         * sysdeps/s390/multiarch/wcsspn.c: Likewise.
25697         * wcsmbs/wcsspn.c: Use WCSSPN if defined.
25698         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strspn and
25699         wcsspn functions.
25700         * sysdeps/s390/multiarch/ifunc-impl-list.c
25701         (__libc_ifunc_impl_list): Add ifunc test for strspn, wcsspn.
25702         * string/test-strspn.c: Add wcsspn support.
25703         * wcsmbs/test-wcsspn.c: New File.
25704         * wcsmbs/Makefile (strop-tests): Add wcsspn.
25705         * benchtests/bench-strspn.c: Add wcsspn support.
25706         * benchtests/bench-wcsspn.c: New File.
25707         * benchtests/Makefile (wcsmbs-bench): Add wcsspn.
25708
25709         * sysdeps/s390/multiarch/strrchr-c.c: New File.
25710         * sysdeps/s390/multiarch/strrchr-vx.S: Likewise.
25711         * sysdeps/s390/multiarch/strrchr.c: Likewise.
25712         * sysdeps/s390/multiarch/wcsrchr-c.c: Likewise.
25713         * sysdeps/s390/multiarch/wcsrchr-vx.S: Likewise.
25714         * sysdeps/s390/multiarch/wcsrchr.c: Likewise.
25715         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strrchr and
25716         wcsrchr functions.
25717         * sysdeps/s390/multiarch/ifunc-impl-list.c
25718         (__libc_ifunc_impl_list): Add ifunc test for strrchr, wcsrchr.
25719         * benchtests/bench-wcsrchr.c: New File.
25720         * benchtests/Makefile (wcsmbs-bench): Add wcsrchr.
25721
25722         * sysdeps/s390/multiarch/strchrnul-c.c: New File.
25723         * sysdeps/s390/multiarch/strchrnul-vx.S: Likewise.
25724         * sysdeps/s390/multiarch/strchrnul.c: Likewise.
25725         * sysdeps/s390/multiarch/wcschrnul-c.c: Likewise.
25726         * sysdeps/s390/multiarch/wcschrnul-vx.S: Likewise.
25727         * sysdeps/s390/multiarch/wcschrnul.c: Likewise.
25728         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchrnul and
25729         wcschrnul functions.
25730         * sysdeps/s390/multiarch/ifunc-impl-list.c
25731         (__libc_ifunc_impl_list): Add ifunc test for strchrnul, wcschrnul.
25732         * wcsmbs/wcschrnul.c: Use WCSCHRNUL if defined.
25733         * string/test-strchr.c: Add wcschrnul support.
25734         * wcsmbs/test-wcschrnul.c: New File.
25735         * wcsmbs/Makefile (strop-tests): Add wcschrnul.
25736         * benchtests/bench-strchr.c: Add wcschrnul support.
25737         * benchtests/bench-wcschrnul.c: New File.
25738         * benchtests/Makefile (wcsmbs-bench): Add wcschrnul.
25739
25740         * sysdeps/s390/multiarch/strchr-c.c: New File.
25741         * sysdeps/s390/multiarch/strchr-vx.S: Likewise.
25742         * sysdeps/s390/multiarch/strchr.c: Likewise.
25743         * sysdeps/s390/multiarch/wcschr-c.c: Likewise.
25744         * sysdeps/s390/multiarch/wcschr-vx.S: Likewise.
25745         * sysdeps/s390/multiarch/wcschr.c: Likewise.
25746         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchr and
25747         wcschr functions.
25748         * sysdeps/s390/multiarch/ifunc-impl-list.c
25749         (__libc_ifunc_impl_list): Add ifunc test for strchr, wcschr.
25750         * string/strchr.c (STRCHR): Define and use macro.
25751         * benchtests/bench-wcschr.c: New File.
25752         * benchtests/Makefile (wcsmbs-bench): Add wcschr.
25753
25754         * sysdeps/s390/multiarch/strncmp-c.c: New File.
25755         * sysdeps/s390/multiarch/strncmp-vx.S: Likewise.
25756         * sysdeps/s390/multiarch/strncmp.c: Likewise.
25757         * sysdeps/s390/multiarch/wcsncmp-c.c: Likewise.
25758         * sysdeps/s390/multiarch/wcsncmp-vx.S: Likewise.
25759         * sysdeps/s390/multiarch/wcsncmp.c: Likewise.
25760         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncmp and
25761         wcsncmp functions.
25762         * sysdeps/s390/multiarch/ifunc-impl-list.c
25763         (__libc_ifunc_impl_list): Add ifunc test for strncmp, wcsncmp.
25764         * wcsmbs/wcsncmp.c (WCSNCMP): Define and use macro.
25765         * benchtests/bench-strncmp.c: Add wcsncmp support.
25766         * benchtests/bench-wcsncmp.c: New File.
25767         * benchtests/Makefile (wcsmbs-bench): Add wcsncmp.
25768
25769         * sysdeps/s390/multiarch/strcmp-vx.S: New File.
25770         * sysdeps/s390/multiarch/strcmp.c: Likewise.
25771         * sysdeps/s390/multiarch/wcscmp-c.c: Likewise.
25772         * sysdeps/s390/multiarch/wcscmp-vx.S: Likewise.
25773         * sysdeps/s390/multiarch/wcscmp.c: Likewise.
25774         * sysdeps/s390/s390-32/multiarch/strcmp.c: Likewise.
25775         * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
25776         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcmp and
25777         wcscmp functions.
25778         * sysdeps/s390/multiarch/ifunc-impl-list.c
25779         (__libc_ifunc_impl_list): Add ifunc test for strcmp, wcscmp.
25780         * string/strcmp.c (STRCMP): Define and use macro.
25781         * benchtests/bench-wcscmp.c: New File.
25782         * benchtests/Makefile (wcsmbs-bench): Add wcscmp.
25783         * sysdeps/s390/bits/string.h: Fix typo: _HAVE_STRING_ARCH_strcmp
25784         instead of _HAVE_STRING_ARCH_memchr.
25785
25786         * sysdeps/s390/multiarch/strncat-c.c: New File.
25787         * sysdeps/s390/multiarch/strncat-vx.S: Likewise.
25788         * sysdeps/s390/multiarch/strncat.c: Likewise.
25789         * sysdeps/s390/multiarch/wcsncat-c.c: Likewise.
25790         * sysdeps/s390/multiarch/wcsncat-vx.S: Likewise.
25791         * sysdeps/s390/multiarch/wcsncat.c: Likewise.
25792         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncat and
25793         wcsncat functions.
25794         * sysdeps/s390/multiarch/ifunc-impl-list.c
25795         (__libc_ifunc_impl_list): Add ifunc test for strncat, wcsncat.
25796         * wcsmbs/wcsncat.c (WCSNCAT): Define and use macro.
25797         * string/test-strncat.c: Add wcsncat support.
25798         * wcsmbs/test-wcsncat.c: New File.
25799         * wcsmbs/Makefile (strop-tests): Add wcsncat.
25800         * benchtests/bench-strncat.c: Add wcsncat support.
25801         * benchtests/bench-wcsncat.c: New File.
25802         * benchtests/Makefile (wcsmbs-bench): Add wcsncat.
25803
25804         * sysdeps/s390/multiarch/strcat-c.c: New File.
25805         * sysdeps/s390/multiarch/strcat-vx.S: Likewise.
25806         * sysdeps/s390/multiarch/strcat.c: Likewise.
25807         * sysdeps/s390/multiarch/wcscat-c.c: Likewise.
25808         * sysdeps/s390/multiarch/wcscat-vx.S: Likewise.
25809         * sysdeps/s390/multiarch/wcscat.c: Likewise.
25810         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcat and
25811         wcscat functions.
25812         * sysdeps/s390/multiarch/ifunc-impl-list.c
25813         (__libc_ifunc_impl_list): Add ifunc test for strcat, wcscat.
25814         * string/strcat.c (STRCAT): Define and use macro.
25815         * wcsmbs/wcscat.c: Use WCSCAT if defined.
25816         * string/test-strcat.c: Add wcscat support.
25817         * wcsmbs/test-wcscat.c: New File.
25818         * wcsmbs/Makefile (strop-tests): Add wcscat.
25819         * benchtests/bench-strcat.c: Add wcscat support.
25820         * benchtests/bench-wcscat.c: New File.
25821         * benchtests/Makefile (wcsmbs-bench): Add wcscat.
25822
25823         * sysdeps/s390/multiarch/stpncpy-c.c: New File.
25824         * sysdeps/s390/multiarch/stpncpy-vx.S: Likewise.
25825         * sysdeps/s390/multiarch/stpncpy.c: Likewise.
25826         * sysdeps/s390/multiarch/wcpncpy-c.c: Likewise.
25827         * sysdeps/s390/multiarch/wcpncpy-vx.S: Likewise.
25828         * sysdeps/s390/multiarch/wcpncpy.c: Likewise.
25829         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpncpy and
25830         wcpncpy functions.
25831         * sysdeps/s390/multiarch/ifunc-impl-list.c
25832         (__libc_ifunc_impl_list): Add ifunc test for stpncpy, wcpncpy.
25833         * wcsmbs/wcpncpy.c: Use WCPNCPY if defined.
25834         * string/test-stpncpy.c: Add wcpncpy support.
25835         * wcsmbs/test-wcpncpy.c: New File.
25836         * wcsmbs/Makefile (strop-tests): Add wcpncpy.
25837         * benchtests/bench-stpncpy.c: Add wcpncpy support.
25838         * benchtests/bench-wcpncpy.c: New File.
25839         * benchtests/Makefile (wcsmbs-bench): Add wcpncpy.
25840
25841         * sysdeps/s390/multiarch/strncpy-vx.S: New File.
25842         * sysdeps/s390/multiarch/strncpy.c: Likewise.
25843         * sysdeps/s390/multiarch/wcsncpy-c.c: Likewise.
25844         * sysdeps/s390/multiarch/wcsncpy-vx.S: Likewise.
25845         * sysdeps/s390/multiarch/wcsncpy.c: Likewise.
25846         * sysdeps/s390/s390-32/multiarch/strncpy.c: Likewise.
25847         * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
25848         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncpy and
25849         wcsncpy functions.
25850         * wcsmbs/wcsncpy.c: Use WCSNCPY if defined.
25851         * sysdeps/s390/multiarch/ifunc-impl-list.c
25852         (__libc_ifunc_impl_list): Add ifunc test for strncpy, wcsncpy.
25853         * string/test-strncpy.c: Add wcsncpy support.
25854         * wcsmbs/test-wcsncpy.c: New File.
25855         * wcsmbs/Makefile (strop-tests): Add wcsncpy.
25856         * benchtests/bench-strncpy.c: Add wcsncpy support.
25857         * benchtests/bench-wcsncpy.c: New File.
25858         * benchtests/Makefile (wcsmbs-bench): Add wcsncpy
25859
25860         * sysdeps/s390/multiarch/stpcpy-c.c: New File.
25861         * sysdeps/s390/multiarch/stpcpy-vx.S: Likewise.
25862         * sysdeps/s390/multiarch/stpcpy.c: Likewise.
25863         * sysdeps/s390/multiarch/wcpcpy-c.c: Likewise.
25864         * sysdeps/s390/multiarch/wcpcpy-vx.S: Likewise.
25865         * sysdeps/s390/multiarch/wcpcpy.c: Likewise.
25866         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpcpy and
25867         wcpcpy functions.
25868         * string/stpcpy.c: Use STPCPY if defined.
25869         * wcsmbs/wcpcpy.c: Use WCPCPY if defined.
25870         * sysdeps/s390/multiarch/ifunc-impl-list.c
25871         (__libc_ifunc_impl_list): Add ifunc test for stpcpy, wcpcpy.
25872         * string/test-stpcpy.c: Add wcpcpy support.
25873         * wcsmbs/test-wcpcpy.c: New File.
25874         * wcsmbs/Makefile (strop-tests): Add wcpcpy.
25875         * benchtests/bench-stpcpy.c: Add wcpcpy support.
25876         * benchtests/bench-wcpcpy.c: New File.
25877         * benchtests/Makefile (wcsmbs-bench): Add wcpcpy.
25878
25879         * sysdeps/s390/multiarch/strcpy-vx.S: New File.
25880         * sysdeps/s390/multiarch/strcpy.c: Likewise.
25881         * sysdeps/s390/multiarch/wcscpy-c.c: Likewise.
25882         * sysdeps/s390/multiarch/wcscpy-vx.S: Likewise.
25883         * sysdeps/s390/multiarch/wcscpy.c: Likewise.
25884         * sysdeps/s390/s390-32/multiarch/strcpy.c: Likewise.
25885         * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
25886         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcpy and
25887         wcscpy functions.
25888         * sysdeps/s390/multiarch/ifunc-impl-list.c
25889         (__libc_ifunc_impl_list): Add ifunc test for strcpy, wcscpy.
25890         * benchtests/bench-wcscpy.c: New File.
25891         * benchtests/Makefile (wcsmbs-bench): Add wcscpy.
25892
25893         * sysdeps/s390/multiarch/strnlen-c.c: New File.
25894         * sysdeps/s390/multiarch/strnlen-vx.S: Likewise.
25895         * sysdeps/s390/multiarch/strnlen.c: Likewise.
25896         * sysdeps/s390/multiarch/wcsnlen-c.c: Likewise.
25897         * sysdeps/s390/multiarch/wcsnlen-vx.S: Likewise.
25898         * sysdeps/s390/multiarch/wcsnlen.c: Likewise.
25899         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strnlen and
25900         wcsnlen functions.
25901         * sysdeps/s390/multiarch/ifunc-impl-list.c
25902         (__libc_ifunc_impl_list): Add ifunc test for strnlen, wcsnlen.
25903         * wcsmbs/wcsnlen.c: Use WCSNLEN if defined.
25904         * string/test-strnlen.c: Add wcsnlen support.
25905         * wcsmbs/test-wcsnlen.c: New File.
25906         * wcsmbs/Makefile (strop-tests): Add wcsnlen.
25907         * benchtests/bench-strnlen.c: Add wcsnlen support.
25908         * benchtests/bench-wcsnlen.c: New File.
25909         * benchtests/Makefile (wcsmbs-bench): Add wcsnlen.
25910
25911         * sysdeps/s390/multiarch/Makefile: New File.
25912         * sysdeps/s390/multiarch/strlen-c.c: Likewise.
25913         * sysdeps/s390/multiarch/strlen-vx.S: Likewise.
25914         * sysdeps/s390/multiarch/strlen.c: Likewise.
25915         * sysdeps/s390/multiarch/wcslen-c.c: Likewise.
25916         * sysdeps/s390/multiarch/wcslen-vx.S: Likewise.
25917         * sysdeps/s390/multiarch/wcslen.c: Likewise.
25918         * string/strlen.c (STRLEN): Define and use macro.
25919         * sysdeps/s390/multiarch/ifunc-impl-list.c
25920         (IFUNC_VX_IMPL): New macro function.
25921         (__libc_ifunc_impl_list): Add ifunc test for strlen, wcslen.
25922         * benchtests/Makefile (wcsmbs-bench): New variable.
25923         (string-bench-all): Added wcsmbs-bench.
25924         * benchtests/bench-wcslen.c: New File.
25925
25926         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_vx_libc_ifunc,
25927         s390_vx_libc_ifunc2): New macro function.
25928
25929         * config.h.in (HAVE_S390_VX_ASM_SUPPORT): New macro undefine.
25930         * sysdeps/s390/configure.ac: Add test for S390 vector instruction
25931         assembler support.
25932         * sysdeps/s390/configure: Regenerated.
25933
25934         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z13.
25935         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
25936
25937         * sysdeps/s390/dl-procinfo.c (_dl_s390_platforms): Add vector flag.
25938         * sysdeps/s390/dl-procinfo.h: Add vector capability.
25939         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h (HWCAP_S390_VX): Define.
25940
25941         * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
25942         Remove ifunc-resolve, add memset-s390, memcpy-s390, memcmp-s390.
25943         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Delete File.
25944         * sysdeps/s390/s390-32/multiarch/memcmp.S: Move to ...
25945         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: ... here.
25946         (memcmp, bcmp): Use __memcmp_default as alias source.
25947         * sysdeps/s390/s390-32/multiarch/memcmp.c: New File.
25948         * sysdeps/s390/s390-32/memcmp.S (__memcmp_g5):
25949         Rename to __memcmp_default.
25950         * sysdeps/s390/s390-32/multiarch/memcpy.S: Move to ...
25951         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: ... here.
25952         (memcpy): Use __memcpy_default as alias source.
25953         * sysdeps/s390/s390-32/multiarch/memcpy.c: New File.
25954         * sysdeps/s390/s390-32/memcpy.S (__memcpy_g5):
25955         Rename to __memcpy_default.
25956         * sysdeps/s390/s390-32/multiarch/memset.S: Move to ...
25957         * sysdeps/s390/s390-32/multiarch/memset-s390.S: ... here.
25958         (memset): Use __memset_default as alias source.
25959         * sysdeps/s390/s390-32/multiarch/memset.c: New File.
25960         * sysdeps/s390/s390-32/memset.S (__memset_g5):
25961         Rename to __memset_default.
25962         * sysdeps/s390/s390-64/multiarch/Makefile (sysdep_routines):
25963         Remove ifunc-resolve, add memset-s390x, memcpy-s390x, memcmp-s390x.
25964         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Delete File.
25965         * sysdeps/s390/s390-64/multiarch/memcmp.S: Move to ...
25966         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: ... here.
25967         (memcmp, bcmp): Use __memcmp_default as alias source.
25968         * sysdeps/s390/s390-64/multiarch/memcmp.c: New File.
25969         * sysdeps/s390/s390-64/memcmp.S (__memcmp_z900):
25970         Rename to __memcmp_default.
25971         * sysdeps/s390/s390-64/multiarch/memcpy.S: Move to ...
25972         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: ... here.
25973         (memcpy): Use __memcpy_default as alias source.
25974         * sysdeps/s390/s390-64/multiarch/memcpy.c: New File.
25975         * sysdeps/s390/s390-64/memcpy.S (__memcpy_z900):
25976         Rename to __memcpy_default.
25977         * sysdeps/s390/s390-64/multiarch/memset.S: Move to ...
25978         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: ... here.
25979         (memset): Use __memset_default as alias source.
25980         * sysdeps/s390/s390-64/multiarch/memset.c: New File.
25981         * sysdeps/s390/s390-64/memset.S (__memset_z900):
25982         Rename to __memset_default.
25983         * sysdeps/s390/multiarch/ifunc-resolve.h: New File.
25984         * sysdeps/s390/multiarch/ifunc-impl-list.c: New File.
25985
25986         [BZ #18610]
25987         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Rename
25988         __ieee_instruction_pointer to __unused.
25989         * sysdeps/s390/fpu/fesetenv.c (__fesetenv): Remove usage of
25990         __ieee_instruction_pointer.
25991         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Fix dxc-field handling.
25992         * sysdeps/s390/fpu/fgetexcptflg.c (fegetexceptflag): Likewise.
25993         * sysdeps/s390/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
25994         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
25995         * sysdeps/s390/fpu/fpu_control.h (_FPU_RESERVED):
25996         Mark dxc-field as reserved.
25997
25998 2015-08-25  Roland McGrath  <roland@hack.frob.com>
25999
26000         * sysdeps/nacl/start.c (_start): Call __nacl_main instead of main
26001         if the weak reference is not null.
26002
26003 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
26004
26005         * sysdeps/x86_64/strcmp.S: Remove "#if !IS_IN (libc)".
26006
26007         [BZ #11214]
26008         * sysdeps/unix/sysv/linux/Makefile (tst-getpid2-ENV): Removed.
26009
26010 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
26011
26012         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: Define new macros.
26013         * sysdeps/unix/sysv/linux/accept.c: Call direct system call.
26014         * sysdeps/unix/sysv/linux/bind.c: Call direct system call.
26015         * sysdeps/unix/sysv/linux/connect.c: Call direct system call.
26016         * sysdeps/unix/sysv/linux/getpeername.c: Call direct system call.
26017         * sysdeps/unix/sysv/linux/getsockname.c: Call direct system call.
26018         * sysdeps/unix/sysv/linux/getsockopt.c: Call direct system call.
26019         * sysdeps/unix/sysv/linux/listen.c: Call direct system call.
26020         * sysdeps/unix/sysv/linux/recv.c: Call direct system call.
26021         * sysdeps/unix/sysv/linux/recvfrom.c: Call direct system call.
26022         * sysdeps/unix/sysv/linux/recvmsg.c: Call direct system call.
26023         * sysdeps/unix/sysv/linux/send.c: Call direct system call.
26024         * sysdeps/unix/sysv/linux/sendmsg.c: Call direct system call.
26025         * sysdeps/unix/sysv/linux/sendto.c: Call direct system call.
26026         * sysdeps/unix/sysv/linux/setsockopt.c: Call direct system call.
26027         * sysdeps/unix/sysv/linux/shutdown.c: Call direct system call.
26028         * sysdeps/unix/sysv/linux/socket.c: Call direct system call.
26029         * sysdeps/unix/sysv/linux/socketpair.c: Call direct system call.
26030
26031 2015-08-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
26032
26033         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION): Use
26034         register other than r0 for tabort, it has special meaning.
26035         * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION): Likewise.
26036         * sysdeps/unix.sysv/linux/powerpc/syscall.S (syscall): Abort
26037         transaction before starting syscall.
26038
26039 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
26040
26041         * sysdeps/powerpc/powerpc64/power7/strstr.S: Handle worst case.
26042
26043 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
26044
26045         * sysdeps/x86_64/strlen.S: Replace %xmm[8-12] with %xmm[0-4].
26046
26047         * sysdeps/x86_64/rtld-memcmp.c: Removed.
26048         * sysdeps/x86_64/rtld-memset.S: Likewise.
26049         * sysdeps/x86_64/rtld-strchr.S: Likewise.
26050         * sysdeps/x86_64/rtld-strlen.S: Likewise.
26051         * sysdeps/x86_64/multiarch/rtld-memcmp.c: Likewise.
26052         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
26053
26054         * sysdeps/x86_64/memset.S: Replace %xmm8 with %xmm0.
26055
26056 2015-08-25  Ondřej Bílka  <neleai@seznam.cz>
26057
26058         * debug/strcpy_chk.c: Improve performance.
26059         * debug/stpcpy_chk.c: Likewise.
26060         * sysdeps/x86_64/strcpy_chk.S: Remove.
26061         * sysdeps/x86_64/stpcpy_chk.S: Remove.
26062
26063         [BZ #18240]
26064         * misc/hsearch_r.c (__hcreate_r): Handle overflow.
26065
26066 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
26067
26068         [BZ #15128]
26069         * sysdeps/x86_64/Makefile [$(subdir) == elf] (tests): Add
26070         ifuncmain8.
26071         (modules-names): Add ifuncmod8.
26072         ($(objpfx)ifuncmain8): New rule.
26073         * sysdeps/x86_64/dl-machine.h: Include <dl-procinfo.h> and
26074         <cpuid.h>.
26075         (elf_machine_runtime_setup): Use _dl_runtime_resolve_sse,
26076         _dl_runtime_resolve_avx, or _dl_runtime_resolve_avx512,
26077         _dl_runtime_profile_sse, _dl_runtime_profile_avx, or
26078         _dl_runtime_profile_avx512, based on HAS_ARCH_FEATURE.
26079         * sysdeps/x86_64/dl-trampoline.S: Rewrite.
26080         * sysdeps/x86_64/dl-trampoline.h: Likewise.
26081         * sysdeps/x86_64/ifuncmain8.c: New file.
26082         * sysdeps/x86_64/ifuncmod8.c: Likewise.
26083         * sysdeps/x86_64/nptl/tcb-offsets.sym (RTLD_SAVESPACE_SSE):
26084         Removed.
26085         * sysdeps/x86_64/nptl/tls.h (__128bits): Removed.
26086         (tcbhead_t): Change rtld_must_xmm_save to __glibc_unused1.
26087         Change rtld_savespace_sse to __glibc_unused2.
26088         (RTLD_CHECK_FOREIGN_CALL): Removed.
26089         (RTLD_ENABLE_FOREIGN_CALL): Likewise.
26090         (RTLD_PREPARE_FOREIGN_CALL): Likewise.
26091         (RTLD_FINALIZE_FOREIGN_CALL): Likewise.
26092
26093 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
26094
26095         * sysdeps/aarch64/bzero.S (__bzero): Remove.
26096
26097 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
26098
26099         * sysdeps/aarch64/fpu/math_private.h (libc_feholdsetround_aarch64_ctx):
26100         Unconditionally set __fpcr to avoid uninialized warning.
26101         (libc_feholdsetround_noex_aarch64_ctx): Likewise.
26102
26103 2015-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
26104
26105         * malloc/arena.c (arena_get_retry): Don't use main_arena if it
26106         is corrupt.
26107
26108         * malloc/arena.c (arena_get2): Drop unused argument.
26109         (arena_lock): Adjust.
26110         (arena_get_retry): Likewise.
26111
26112 2015-08-24  Andreas Schwab  <schwab@suse.de>
26113
26114         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_IPC64):
26115         Don't define.
26116         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
26117         (__ASSUME_IPC64): Don't undef.
26118         * sysdeps/unix/sysv/linux/msgctl.c: Don't check for __ASSUME_IPC64.
26119         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
26120         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
26121         * sysdeps/unix/sysv/linux/i386/msgctl.c: Remove.
26122         * sysdeps/unix/sysv/linux/i386/semctl.c: Remove.
26123         * sysdeps/unix/sysv/linux/i386/shmctl.c: Remove.
26124         * sysdeps/unix/sysv/linux/m68k/msgctl.c: Remove.
26125         * sysdeps/unix/sysv/linux/m68k/semctl.c: Remove.
26126         * sysdeps/unix/sysv/linux/m68k/shmctl.c: Remove.
26127         * sysdeps/unix/sysv/linux/s390/s390-32/msgctl.c: Remove.
26128         * sysdeps/unix/sysv/linux/s390/s390-32/semctl.c: Remove.
26129         * sysdeps/unix/sysv/linux/s390/s390-32/shmctl.c: Remove.
26130         * sysdeps/unix/sysv/linux/sh/msgctl.c: Remove.
26131         * sysdeps/unix/sysv/linux/sh/semctl.c: Remove.
26132         * sysdeps/unix/sysv/linux/sh/shmctl.c: Remove.
26133         * sysdeps/unix/sysv/linux/sparc/sparc32/msgctl.c: Remove.
26134         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Remove.
26135         * sysdeps/unix/sysv/linux/sparc/sparc32/shmctl.c: Remove.
26136         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Remove.
26137         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Remove.
26138         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Remove.
26139
26140 2015-08-21  Mike Frysinger  <vapier@gentoo.org>
26141
26142         * manual/Makefile (install): Only build manual when perl is available.
26143
26144 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
26145
26146         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Replace
26147         '#undef memcpy' by '#undef memchr'.
26148
26149 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
26150
26151         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: Make
26152         memchr not point to the internal __GI_memchr implementation.
26153
26154 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
26155
26156         * timezone/Makefile (CFLAGS-zdump.c): Remove
26157         -Wno-strict-prototypes.
26158         (CFLAGS-zic.c): Likewise.
26159         (CFLAGS-ialloc.c): Likewise.
26160         (CFLAGS-scheck.c): Likewise.
26161
26162         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Do not add
26163         -Wno-error=undef.
26164
26165 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
26166
26167         * i386/i686/multiarch/strcasestr-c.c: Removed.
26168         * x86_64/multiarch/strcasestr.c: Likewise.
26169         * x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
26170         Remove strcasestr.
26171
26172 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
26173
26174         * math/Makefile (CFLAGS): Don't add -Wno-uninitialized.
26175
26176         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Always initialize
26177         variables for high and low parts before possibly modifying them.
26178
26179 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
26180
26181         * sysdeps/i386/i686/multiarch/init-arch.h: Removed.
26182         * sysdeps/unix/sysv/linux/x86/init-arch.h: Likewise.
26183         * sysdeps/x86_64/cacheinfo.c: Include <init-arch.h> instead
26184         of "multiarch/init-arch.h".
26185         * sysdeps/x86_64/multiarch/init-arch.h: Renamed to ...
26186         * sysdeps/x86/init-arch.h: This.
26187
26188 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
26189
26190         * sysdeps/i386/i686/multiarch/init-arch.c: Removed.
26191         * sysdeps/unix/sysv/linux/x86/init-arch.c: Likewise.
26192
26193 2015-08-20  Ondřej Bílka  <neleai@seznam.cz>
26194
26195         [BZ #17787]
26196         * manual/macros.texi: Add twoexp macro.
26197         * manual/filesys.texi: Fix exponents.
26198         * manual/llio.texi: Likewise.
26199         * manual/stdio.texi: Likewise.
26200
26201 2015-08-20  Florian Weimer  <fweimer@redhat.com>
26202
26203         * sysdeps/x86/elide.h (ELIDE_UNLOCK): Document crash due to
26204         incorrect use.
26205
26206 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
26207
26208         [BZ #18370]
26209         * math/s_csqrt.c (__csqrt): Force underflow exception for results
26210         whose real or imaginary part has small absolute value.
26211         * math/s_csqrtf.c (__csqrtf): Likewise.
26212         * math/s_csqrtl.c (__csqrtl): Likewise.
26213         * math/auto-libm-test-in: Add more tests of csqrt.
26214         * math/auto-libm-test-out: Regenerated.
26215         * sysdeps/i386/fpu/libm-test-ulps: Update.
26216
26217 2015-08-19  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
26218
26219         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_set_ppr_med_high,
26220         __ppc_set_ppr_very_low): New functions.
26221         * manual/platform.texi: Add documentation about
26222         __ppc_set_ppr_med_high and __ppc_set_ppr_very_low.
26223
26224 2015-08-19  Wilco Dijkstra  <wdijkstr@arm.com>
26225
26226         * string/stpncpy.c (stpncpy): Improve performance using
26227         __strnlen/memcpy/memset.
26228
26229 2015-08-19  Andrew Senkevich  <andrew.senkevich@intel.com>
26230
26231         [BZ #18796]
26232         * scripts/test-installation.pl: Don't add -lmvec to build options if
26233         libmvec wasn't built.
26234
26235 2015-08-19   Petar Jovanovic  <petar.jovanovic@rt-rk.com>
26236
26237         [BZ #14341]
26238         * elf/dynamic-link.h (elf_machine_lazy_rel): Properly handle the
26239         case when there is a gap between DT_REL and DT_JMPREL sections.
26240         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc.
26241         (LDFLAGS-tst-split-dynreloc): New.
26242         (tst-split-dynreloc-ENV): Likewise.
26243         * sysdeps/x86_64/tst-split-dynreloc.c: New file.
26244         * sysdeps/x86_64/tst-split-dynreloc.lds: Likewise.
26245
26246 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
26247
26248         [BZ #18822]
26249         * sysdeps/unix/sysv/linux/xstatconv.h (__xstat_conv): Add
26250         attribute_hidden.
26251         (__xstat64_conv): Likewise.
26252         (__xstat32_conv): Likewise.
26253
26254 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
26255
26256         [BZ #18822]
26257         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
26258         Don't load %ebx when calling __setcontext.  Call __setcontext
26259         with HIDDEN_JUMPTARGET.
26260         * sysdeps/unix/sysv/linux/i386/setcontext.S (__setcontext): Add
26261         libc_hidden_def.
26262
26263 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
26264
26265         * sysdeps/i386/i686/Makefile
26266         [$(subdir) == string] (sysdep_routines): Moved to ...
26267         * sysdeps/i386/Makefile: Here.
26268         * sysdeps/i386/i686/cacheinfo.c: Moved to ...
26269         * sysdeps/i386/cacheinfo.c: Here.
26270         * sysdeps/unix/sysv/linux/i386/sysconf.c: Removed.
26271         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: Likewise.
26272         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Moved to ...
26273         * sysdeps/unix/sysv/linux/x86/sysconf.c: Here.
26274
26275 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
26276
26277         * sysdeps/x86/cpu-features.h (HAS_I586): Defined to 1 if
26278         __i586__ is defined.
26279         (HAS_I686): Defined to 1 if __i686__ is defined.
26280
26281 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
26282
26283         * elf/Makefile [$(have-z-execstack) = yes]
26284         (CPPFLAGS-tst-execstack.c): New variable.
26285
26286         * login/tst-utmp.c [_HAVE_UT_TYPE || defined UTMPX]: Change
26287         conditional to [defined UTMPX || _HAVE_UT_TYPE].
26288         [_HAVE_UT_TV || defined UTMPX]: Change conditional to [defined
26289         UTMPX || _HAVE_UT_TV].
26290         [_HAVE_UT_TV - 0 || defined UTMPX]: Change conditional to [defined
26291         UTMPX || _HAVE_UT_TV - 0].
26292
26293 2015-08-18  Joseph Myers  <joseph@codesourcery.com>
26294
26295         * sysdeps/mips/dl-machine.h [__mips_isa_rev < 6]: Change
26296         conditionals to [!defined __mips_isa_rev || __mips_isa_rev < 6].
26297         * sysdeps/mips/machine-gmon.h [__mips_isa_rev < 6]: Likewise.
26298
26299 2015-08-18  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
26300
26301         * sysdeps/powerpc/dl-procinfo.c:
26302         (_dl_powerpc_cap_flags): Added missing strings for some
26303         hwcap features.
26304         * sysdeps/powerpc/dl-procinfo.h: Updated hwcap bit count.
26305
26306 2015-08-18  Paul Eggert  <eggert@cs.ucla.edu>
26307
26308         Port the 0x7efe...feff pattern to GCC 6.
26309         See Steve Ellcey's bug report in:
26310         https://sourceware.org/ml/libc-alpha/2015-07/msg00673.html
26311         * string/memrchr.c (MEMRCHR):
26312         * string/rawmemchr.c (RAWMEMCHR):
26313         * string/strchr.c (strchr):
26314         * string/strchrnul.c (STRCHRNUL):
26315         Rewrite code to avoid issues with signed shift overflow.
26316
26317 2015-08-18  H.J. Lu  <hongjiu.lu@intel.com>
26318
26319         * sysdeps/x86/cpu-features.c (init_cpu_features): Check
26320         whether cpuid is available only if HAS_CPUID is 0.
26321         * sysdeps/x86/cpu-features.h (HAS_CPUID): New.
26322         (HAS_I586): Likewise.
26323         (HAS_I686): Likewise.
26324
26325 2015-08-18  Zack Weinberg  <zackw@panix.com>
26326
26327         * misc/Versions (libc): Add GLIBC_2.23.
26328
26329 2015-08-18  Alan Modra  <amodra@gmail.com>
26330
26331         [BZ #18421]
26332         * sysdeps/hppa/start.S [SHARED]: Use .section .data.rel.ro and define
26333         .Lp__global.
26334         (_start): Load %dp via .Lp__global.
26335         [!SHARED]: Use .section .rodata.
26336
26337 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
26338
26339         * sysdeps/unix/sysv/linux/hppa/bits/timerfd.h: New file.
26340         * sysdeps/unix/sysv/linux/hppa/sys/timerfd.h: Delete.
26341
26342 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
26343
26344         * sysdeps/unix/sysv/linux/hppa/bits/signalfd.h: New file.
26345         * sysdeps/unix/sysv/linux/hppa/sys/signalfd.h: Delete.
26346
26347 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
26348
26349         * sysdeps/unix/sysv/linux/hppa/bits/inotify.h: New file.
26350         * sysdeps/unix/sysv/linux/hppa/sys/inotify.h: Delete.
26351
26352 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
26353
26354         * sysdeps/unix/sysv/linux/hppa/bits/eventfd.h: New file.
26355         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Delete.
26356
26357 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
26358
26359         * sysdeps/unix/sysv/linux/hppa/bits/epoll.h: New file.
26360         * sysdeps/unix/sysv/linux/hppa/sys/epoll.h: Delete.
26361
26362 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
26363
26364         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h (SA_RESETHAND,
26365         SA_NODEFER, SA_RESTART): Define when __USE_XOPEN2K8 is defined.
26366
26367 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
26368
26369         * sysdeps/unix/sysv/linux/hppa/bits/shm.h (SHM_EXEC): Define.
26370
26371 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
26372
26373         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Delete
26374         kernel-features.h include.  Delete __ASSUME_LWS_CAS checks.
26375         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
26376         (__ASSUME_LWS_CAS): Delete.
26377
26378 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
26379
26380         * sysdeps/hppa/configure.ac: Delete binutils tls checks.
26381         * sysdeps/hppa/configure: Regenerated.
26382         * sysdeps/hppa/dl-machine.h: Delete USE_TLS and USE___THREAD checks.
26383         * sysdeps/hppa/libc-tls.c: Delete USE_TLS checks.
26384         * sysdeps/hppa/nptl/tls.h: Likewise.
26385
26386 2015-08-17  Joseph Myers  <joseph@codesourcery.com>
26387
26388         [BZ #18823]
26389         * math/s_csqrt.c (__csqrt): Increase threshold and scale factor
26390         for scaling up small arguments.
26391         * math/s_csqrtf.c (__csqrtf): Likewise.
26392         * math/s_csqrtl.c (__csqrtl): Likewise.
26393         * math/auto-libm-test-in: Add more tests of csqrt.
26394         * math/auto-libm-test-out: Regenerated.
26395
26396 2015-08-17  Andreas Schwab  <schwab@suse.de>
26397
26398         * sysdeps/unix/sysv/linux/powerpc/Versions (libm): Add empty
26399         version set GLIBC_2.19.
26400
26401 2015-08-16  Zack Weinberg  <zackw@panix.com>
26402
26403         [BZ #18681]
26404         * misc/regexp.h: This interface is no longer supported.
26405         Remove all contents, leaving only an #error directive.
26406         * misc/regexp.c (loc1, loc2, locs, step, advance):
26407         Demote to compatibility symbols.
26408
26409 2015-08-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
26410
26411         [BZ #18084]
26412         * debug/tst-backtrace2.c (do_test): Add test for BZ #18084.
26413         * sysdeps/arm/backtrace.c (__backtrace): Handle size <= 0.
26414         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
26415         * sysdeps/m68k/backtrace.c (__backtrace): Likewise.
26416         * sysdeps/microblaze/backtrace.c (__backtrace): Likewise.
26417         * sysdeps/s390/s390-32/backtrace.c (__backtrace): Likewise.
26418         * sysdeps/s390/s390-64/backtrace.c (__backtrace): Likewise.
26419         * sysdeps/sparc/backtrace.c (__backtrace): Likewise.
26420         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
26421
26422 2015-08-15  Zack Weinberg  <zackw@panix.com>
26423
26424         [BZ #18795]
26425         * string/bits/string3.h (stpncpy): Call __stpncpy_chk if the
26426         buffer length is known to be too large, not if it's known to be
26427         small enough.
26428         * debug/tst-chk1.c (do_test): Do all tests for catching a buffer
26429         overflow at runtime, involving a length parameter, twice: once
26430         with a compile-time constant length parameter, once without.
26431
26432 2015-08-14  Joseph Myers  <joseph@codesourcery.com>
26433
26434         [BZ #18824]
26435         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Increase threshold for
26436         scaling x * y up instead of down.
26437         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
26438         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
26439         * math/auto-libm-test-in: Add more tests of fma.
26440         * math/auto-libm-test-out: Regenerated.
26441
26442 2015-08-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
26443
26444         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
26445
26446 2015-08-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
26447
26448         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf): Remove
26449         unnecessary movq.
26450         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S (__nearbyint):
26451         Likewise.
26452
26453 2015-08-13  Joseph Myers  <joseph@codesourcery.com>
26454
26455         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
26456         asinh, atan, atan2, atanh, cabs, cbrt, cosh, csqrt, erf, erfc,
26457         exp, exp2, lgamma, log, log1p, log2, pow, sin, sincos, tan, tanh
26458         and tgamma.
26459         * math/auto-libm-test-out: Regenerated.
26460         * sysdeps/i386/fpu/libm-test-ulps: Update.
26461         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26462
26463         [BZ #16520]
26464         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <float.h>.
26465         (__tanh): Force underflow exception for arguments with small
26466         absolute value.
26467         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <float.h>.
26468         (__tanhf): Force underflow exception for arguments with small
26469         absolute value.
26470         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include <float.h>.
26471         (__tanhl): Force underflow exception for arguments with small
26472         absolute value.
26473         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Include <float.h>.
26474         (__tanhl): Force underflow exception for arguments with small
26475         absolute value.
26476         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include <float.h>.
26477         (__tanhl): Force underflow exception for arguments with small
26478         absolute value.
26479         * math/auto-libm-test-in: Add more tests of tanh.
26480         * math/auto-libm-test-out: Regenerated.
26481         * sysdeps/i386/fpu/libm-test-ulps: Update.
26482
26483 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
26484
26485         * sysdeps/x86/cpu-features.c (init_cpu_features): Call
26486         __get_cpuid_max if not compiling for i586, i686 nor x86-64.
26487
26488 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
26489
26490         * sysdeps/unix/sysv/linux/x86/elision-conf.h: Don't include
26491         <cpuid.h>.
26492
26493 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
26494
26495         * sysdeps/unix/sysv/linux/x86/elision-conf.c (elision_init):
26496         Replace HAS_RTM with HAS_CPU_FEATURE (RTM).
26497
26498 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
26499
26500         * math/Makefile ($(addprefix $(objpfx), $(libm-vec-tests))):
26501         Remove $(objpfx)init-arch.o.
26502         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Remove
26503         init-arch.
26504         * sysdeps/x86_64/fpu/math-tests-arch.h (avx_usable): Removed.
26505         (INIT_ARCH_EXT): Defined as empty.
26506         (CHECK_ARCH_EXT): Replace HAS_XXX with HAS_ARCH_FEATURE (XXX).
26507         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Remove
26508         __init_cpu_features call.  Replace HAS_XXX with
26509         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
26510         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Likewise.
26511         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Likewise.
26512         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Likewise.
26513         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Likewise.
26514         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
26515         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Likewise.
26516         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Likewise.
26517         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
26518         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Likewise.
26519         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Likewise.
26520         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
26521         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Likewise.
26522         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Likewise.
26523         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
26524         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Likewise.
26525         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Likewise.
26526         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
26527         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
26528         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: Likewise.
26529         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: Likewise.
26530         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
26531         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: Likewise.
26532         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: Likewise.
26533         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
26534         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: Likewise.
26535         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: Likewise.
26536         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
26537         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: Likewise.
26538         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: Likewise.
26539         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
26540         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S: Likewise.
26541         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S: Likewise.
26542         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
26543         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: Likewise.
26544         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: Likewise.
26545
26546 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
26547
26548         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Replace HAS_XXX
26549         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
26550         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
26551         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
26552         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Likewise.
26553         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Likewise.
26554         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Likewise.
26555         * sysdeps/i386/i686/multiarch/s_fma.c: Likewise.
26556         * sysdeps/i386/i686/multiarch/s_fmaf.c: Likewise.
26557         * sysdeps/i386/i686/multiarch/bcopy.S: Remove __init_cpu_features
26558         call.  Merge SHARED and !SHARED.  Add LOAD_GOT_AND_RTLD_GLOBAL_RO.
26559         Use LOAD_FUNC_GOT_EAX to load function address.  Replace HAS_XXX
26560         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
26561         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
26562         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
26563         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
26564         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
26565         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
26566         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
26567         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
26568         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
26569         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
26570         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
26571         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
26572         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
26573         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
26574         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
26575         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
26576         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
26577         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
26578         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
26579         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
26580         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
26581         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
26582         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
26583         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
26584         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
26585         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
26586         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
26587         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
26588         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
26589         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
26590         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
26591
26592 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
26593
26594         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Replace HAS_XXX with
26595         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
26596         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
26597         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
26598         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
26599         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
26600         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
26601         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Likewise.
26602         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
26603         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
26604         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
26605         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Use
26606         LOAD_RTLD_GLOBAL_RO_RDX and HAS_CPU_FEATURE (SSE4_1).
26607         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Likewise.
26608         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Likewise.
26609         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Likewise.
26610         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S : Likewise.
26611         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Likewise.
26612         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Likewise.
26613         * sysdeps/x86_64/fpu/multiarch/s_rintf.S : Likewise.
26614         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
26615         * sysdeps/x86_64/multiarch/sched_cpucount.c: Likewise.
26616         * sysdeps/x86_64/multiarch/strstr.c: Likewise.
26617         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
26618         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
26619         * sysdeps/x86_64/multiarch/test-multiarch.c: Likewise.
26620         * sysdeps/x86_64/multiarch/memcmp.S: Remove __init_cpu_features
26621         call.  Add LOAD_RTLD_GLOBAL_RO_RDX.  Replace HAS_XXX with
26622         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
26623         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
26624         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
26625         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
26626         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
26627         * sysdeps/x86_64/multiarch/memset.S: Likewise.
26628         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
26629         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
26630         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
26631         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
26632         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
26633         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
26634         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
26635         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
26636         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
26637
26638 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
26639
26640         * sysdeps/i386/dl-machine.h: Include <cpu-features.c>.
26641         (dl_platform_init): Call init_cpu_features.
26642         * sysdeps/i386/dl-procinfo.c (_dl_x86_cpu_features): New.
26643         * sysdeps/i386/i686/cacheinfo.c
26644         (DISABLE_PREFERRED_MEMORY_INSTRUCTION): Removed.
26645         * sysdeps/i386/i686/multiarch/Makefile (aux): Remove init-arch.
26646         * sysdeps/i386/i686/multiarch/Versions: Removed.
26647         * sysdeps/i386/i686/multiarch/ifunc-defines.sym (KIND_OFFSET):
26648         Removed.
26649         * sysdeps/i386/ldsodefs.h: Include <cpu-features.h>.
26650         * sysdeps/unix/sysv/linux/x86/Makefile
26651         (libpthread-sysdep_routines): Remove init-arch.
26652         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Include
26653         <sysdeps/x86_64/dl-procinfo.c> instead of
26654         sysdeps/generic/dl-procinfo.c>.
26655         * sysdeps/x86/Makefile [$(subdir) == csu] (gen-as-const-headers):
26656         Add cpu-features-offsets.sym and rtld-global-offsets.sym.
26657         [$(subdir) == elf] (sysdep-dl-routines): Add dl-get-cpu-features.
26658         [$(subdir) == elf] (tests): Add tst-get-cpu-features.
26659         [$(subdir) == elf] (tests-static): Add
26660         tst-get-cpu-features-static.
26661         * sysdeps/x86/Versions: New file.
26662         * sysdeps/x86/cpu-features-offsets.sym: Likewise.
26663         * sysdeps/x86/cpu-features.c: Likewise.
26664         * sysdeps/x86/cpu-features.h: Likewise.
26665         * sysdeps/x86/dl-get-cpu-features.c: Likewise.
26666         * sysdeps/x86/libc-start.c: Likewise.
26667         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
26668         * sysdeps/x86/tst-get-cpu-features-static.c: Likewise.
26669         * sysdeps/x86/tst-get-cpu-features.c: Likewise.
26670         * sysdeps/x86_64/dl-procinfo.c: Likewise.
26671         * sysdeps/x86_64/cacheinfo.c (__cpuid_count): Removed.
26672         Assume USE_MULTIARCH is defined and don't check it.
26673         (is_intel): Replace __cpu_features with GLRO(dl_x86_cpu_features).
26674         (is_amd): Likewise.
26675         (max_cpuid): Likewise.
26676         (intel_check_word): Likewise.
26677         (__cache_sysconf): Don't call __init_cpu_features.
26678         (__x86_preferred_memory_instruction): Removed.
26679         (init_cacheinfo): Don't call __init_cpu_features. Replace
26680         __cpu_features with GLRO(dl_x86_cpu_features).
26681         * sysdeps/x86_64/dl-machine.h: <cpu-features.c>.
26682         (dl_platform_init): Call init_cpu_features.
26683         * sysdeps/x86_64/ldsodefs.h: Include <cpu-features.h>.
26684         * sysdeps/x86_64/multiarch/Makefile (aux): Remove init-arch.
26685         * sysdeps/x86_64/multiarch/Versions: Removed.
26686         * sysdeps/x86_64/multiarch/cacheinfo.c: Likewise.
26687         * sysdeps/x86_64/multiarch/init-arch.c: Likewise.
26688         * sysdeps/x86_64/multiarch/ifunc-defines.sym (KIND_OFFSET):
26689         Removed.
26690         * sysdeps/x86_64/multiarch/init-arch.h: Rewrite.
26691
26692 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
26693
26694         [BZ #18820]
26695         * libio/Makefile (test-fmemopen-mem): New test.
26696         * libio/test-fmemopen.c (do_bz18820): New test.
26697         * libio/fmemopen.c (__fmemopen): Fix memory leak.
26698         * libio/oldfmemopen.c (__old_fmemopen): Likewise.
26699
26700 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
26701
26702         [BZ #16734]
26703         * libio/libioP.h (ROUND_TO_PAGE, ALLOC_BUF, ALLOC_WBUF): Delete.
26704         (FREE_BUF): Delete.
26705         * libio/libio.h (_IO_FILE_complete): Delete unused _freeres_size.
26706         * libio/genops.c (_IO_setb): Use malloc and free directly.
26707         (_IO_default_doallocate, _IO_default_finish): Likewise.
26708         ( _IO_unbuffer_all): Likewise.
26709         ( libc_freeres_fn): Likewise.
26710         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
26711         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
26712         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Likewise.
26713         (_IO_wdefault_doallocate): Likewise.
26714
26715 2015-08-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
26716
26717         [BZ #18086]
26718         * sysdeps/posix/nice.c (nice): Restore old errno.
26719         * posix/tst-nice.c (do_test): Add test for BZ #18086.
26720
26721 2015-08-10  Ondrej Bilka  <neleai@seznam.cz>
26722
26723         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Fix ifunc.
26724
26725 2015-08-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
26726
26727         * sysdeps/powerpc/powerpc64/power7/memmove.S (bcopy): Changing to
26728         __bcopy and add a weak_alias to bcopy.
26729         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Use __strnlen
26730         for static build.
26731
26732         * string/stpcpy.c (__stpcpy): Use STPCPY to redefine symbol name and
26733         cleanup macro usage.
26734         * string/strcpy.c (strcpt): Use STRCPY to redefine symbol name.
26735         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.S: Remove file.
26736         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
26737         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.S: Likewise.
26738         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
26739         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: Likewise.
26740         * sysdeps/powerpc/powerpc64/power7/strcpy.S: Likewise.
26741         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
26742         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
26743         * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
26744         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
26745         [SHARED && IS_IN (libc)]: Include <string/strcpy.c>.
26746         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
26747         [SHARED && IS_IN (libc)]: Include <string/stpcpy.c>.
26748         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
26749         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: Likewise.
26750         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: Likewise.
26751         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: Likewise.
26752         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
26753
26754         * sysdeps/powerpc/powerpc64/power7/strnlen.S (__strnlen): Add
26755         libc_hidden_def.
26756         (strnlen): Remove libc_hidden_builtin_def and add libc_hidden_def.
26757
26758         * sysdeps/powerpc/powerpc64/power7/Makefile [$(subdir) = string]
26759         (sysdep_routines): Add strstr-ppc64.
26760         * sysdeps/powerpc/powerpc64/power7/strstr-ppc64.c: New file.
26761
26762 2015-08-10  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
26763
26764         [BZ #18778]
26765         * elf/Makefile (tests): Add Add tst-nodelete2.
26766         (modules-names): Add tst-nodelete2mod.
26767         (tst-nodelete2mod.so-no-z-defs): New.
26768         ($(objpfx)tst-nodelete2): Likewise.
26769         ($(objpfx)tst-nodelete2.out): Likewise.
26770         (LDFLAGS-tst-nodelete2): Likewise.
26771         * elf/dl-close.c (_dl_close_worker): Move DF_1_NODELETE clearing
26772         out of loop through all loaded libraries.
26773         * elf/tst-nodelete2.c: New file.
26774         * elf/tst-nodelete2mod.c: Likewise.
26775         * elf/tst-znodelete-zlib.cc: Delete.
26776
26777 2015-08-11  Andreas Schwab  <schwab@suse.de>
26778
26779         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Don't define.
26780         * sysdeps/unix/sysv/linux/wordsize-64/openat.c
26781         (__openat64_nocancel): Likewise.
26782
26783 2015-08-11  Joseph Myers  <joseph@codesourcery.com>
26784
26785         * math/auto-libm-test-in: Add more tests of acosh, asin, asinh,
26786         atanh, cabs, carg, cbrt, cosh, csqrt, erf, erfc, exp, exp10,
26787         expm1, hypot, log, log10, log1p, log2, pow, sinh, tan and tgamma.
26788         * math/auto-libm-test-out: Regenerated.
26789         * sysdeps/i386/fpu/libm-test-ulps: Update.
26790         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26791
26792 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
26793
26794         [BZ #18790]
26795         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Increase
26796         threshold for returning +/- 1.
26797         * math/auto-libm-test-in: Add more tests of tanh.
26798         * math/auto-libm-test-out: Regenerated.
26799         * sysdeps/i386/fpu/libm-test-ulps: Update.
26800
26801 2015-08-10  Andreas Schwab  <schwab@suse.de>
26802
26803         [BZ #18781]
26804         * sysdeps/unix/sysv/linux/openat.c (__OPENAT) [MORE_OFLAGS]: Add
26805         MORE_OFLAGS to oflag.
26806         * io/test-lfs.c (do_test): Test openat64.
26807
26808 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
26809
26810         [BZ #18789]
26811         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Use
26812         smaller threshold for returning the argument.
26813         * math/auto-libm-test-in: Add more tests of sinh.
26814         * math/auto-libm-test-out: Regenerated.
26815         * sysdeps/i386/fpu/libm-test-ulps: Update.
26816
26817 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
26818
26819         [BZ #18674]
26820         * sysdeps/i386/tst-auditmod3b.c (la_objsearch): Add a missing
26821         break.
26822
26823 2015-08-09  Andreas Schwab  <schwab@linux-m68k.org>
26824
26825         * timezone/Makefile (tzbases, tzlinks, tzfiles): Don't define.
26826         (generated): Don't add $(addprefix z.,$(tzfiles)).
26827
26828 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
26829
26830         * nptl/tst-cancel-wrappers.sh: Change 3rd arg to gensub to 1.
26831         * scripts/sysd-rules.awk: Likewise.
26832
26833 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
26834
26835         * iconvdata/tst-tables.sh: Change echo -n to printf.
26836         * nss/db-Makefile: Likewise.
26837         * posix/tst-getconf.sh: Likewise.
26838         * stdio-common/tst-unbputc.sh: Likewise.
26839
26840 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
26841
26842         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]: Move all
26843         MADV_*_PAGES defines behind this feature check.
26844
26845 2015-08-09  John David Anglin  <danglin@gcc.gnu.org>
26846
26847         [BZ #18480]
26848         * sysdeps/unix/sysv/linux/hppa/sysdep.h (LOAD_ARGS_0, LOAD_ARGS_1,
26849         LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4, LOAD_ARGS_5, LOAD_ARGS_6):
26850         Define.
26851         (LOAD_REGS_0, LOAD_REGS_1, LOAD_REGS_2, LOAD_REGS_3, LOAD_REGS_4,
26852         LOAD_REGS_5, LOAD_REGS_6): Update.
26853         (INTERNAL_SYSCALL): Update using new LOAD defines.
26854         (INTERNAL_SYSCALL_NCS): Likewise.
26855         * sysdeps/unix/sysv/linux/hppa/syscall.c (syscall): Likewise.
26856
26857 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
26858
26859         [BZ #16734]
26860         * libio/genops.c (_IO_unbuffer_all): Free wide buffer as well.
26861
26862 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
26863
26864         [BZ #17905]
26865         * catgets/Makefile (tst-catgets-mem): New test.
26866         * catgets/catgets.c (catopen): Don't use unbounded alloca.
26867         * catgets/open_catalog.c (__open_catalog): Likewise.
26868         * catgets/tst-catgets.c (do_bz17905): Test unbounded alloca.
26869
26870 2015-08-08  John David Anglin  <danglin@gcc.gnu.org>
26871
26872         [BZ #18787]
26873         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (_LWS_CLOBBER): Revise
26874         clobber registers.
26875         (atomic_compare_and_exchange_val_acq): Use register asms to assign
26876         operand registers.  Use register %r20 for EAGAIN and EDEADLOCK checks.
26877         Cast return to __typeof (oldval).
26878
26879 2015-08-08  Mike Frysinger  <vapier@gentoo.org>
26880
26881         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Wrap the whole file
26882         in _LINUX_MICROBLAZE_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h
26883         and delete sys/syscall.h include.
26884
26885 2015-08-07  Joseph Myers  <joseph@codesourcery.com>
26886
26887         [BZ #16517]
26888         * sysdeps/ieee754/dbl-64/s_tan.c: Include <float.h>.
26889         (tan): Force underflow exception for arguments with small absolute
26890         value.
26891         * sysdeps/ieee754/flt-32/k_tanf.c: Include <float.h>.
26892         (__kernel_tanf): Force underflow exception for arguments with
26893         small absolute value.
26894         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <float.h>.
26895         (__kernel_tanl): Force underflow exception for arguments with
26896         small absolute value.
26897         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <float.h>.
26898         (__kernel_tanl): Force underflow exception for arguments with
26899         small absolute value.
26900         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <float.h>.
26901         (__kernel_tanl): Force underflow exception for arguments with
26902         small absolute value.
26903         * math/auto-libm-test-in: Add more tests of tan.
26904         * math/auto-libm-test-out: Regenerated.
26905
26906 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26907
26908         Fix sysdeps/i386/fpu/s_scalbn.S build
26909
26910         * math/Versions (libc: GLIBC_2_22): New (empty) version set.
26911
26912 2015-08-07  Mike Frysinger  <vapier@gentoo.org>
26913
26914         * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
26915
26916 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26917
26918         Fix gcrt0.o compilation
26919
26920         When static-start-installed-name is different from
26921         start-installed-name, we must not use the shared objects.
26922
26923         * csu/Makefile
26924         (extra-objs): Add gmon-start.o when building shared library and
26925         $(static-start-installed-name) is different from
26926         $(start-installed-name).
26927         $(objpfx)g$(static-start-installed-name): When building shared
26928         library and $(static-start-installed-name) is different from
26929         $(static-start-installed-name), revert to non-shared rule,
26930         i.e. using $(objpfx)% and gmon-start.o.
26931
26932 2015-08-06  Joseph Myers  <joseph@codesourcery.com>
26933
26934         [BZ #16519]
26935         * sysdeps/ieee754/dbl-64/e_sinh.c: Include <float.h>.
26936         (__ieee754_sinh): Force underflow exception for arguments with
26937         small absolute value.
26938         * sysdeps/ieee754/flt-32/e_sinhf.c: Include <float.h>.
26939         (__ieee754_sinhf): Force underflow exception for arguments with
26940         small absolute value.
26941         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Include <float.h>.
26942         (__ieee754_sinhl): Force underflow exception for arguments with
26943         small absolute value.
26944         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Include <float.h>.
26945         (__ieee754_sinhl): Force underflow exception for arguments with
26946         small absolute value.
26947         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Include <float.h>.
26948         (__ieee754_sinhl): Force underflow exception for arguments with
26949         small absolute value.
26950         * math/auto-libm-test-in: Add more tests of sinh.
26951         * math/auto-libm-test-out: Regenerated.
26952         * sysdeps/i386/fpu/libm-test-ulps: Update.
26953
26954 2015-08-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
26955
26956         * libio/oldfileops.c: Include unistd.h.
26957
26958 2015-08-06  Mike Frysinger  <vapier@gentoo.org>
26959
26960         * stdlib/isomac.c: Include ctype.h.
26961
26962 2015-08-06  Arjun Shankar  <arjun.is@lostca.se>
26963
26964         * dirent/tst-seekdir.c (main): Converted to ...
26965         (do_test): ... this.
26966         (TEST_FUNCTION): New macro.
26967         Include test-skeleton.c.
26968         * elf/tst-dlmodcount.c (main): Converted to ...
26969         (do_test): ... this.
26970         (TEST_FUNCTION): New macro.
26971         Include test-skeleton.c.
26972         * elf/tst-order-main.c (main): Converted to ...
26973         (do_test): ... this.
26974         (TEST_FUNCTION): New macro.
26975         Include test-skeleton.c.
26976         * elf/tst-pie2.c (main): Converted to ...
26977         (do_test): ... this.
26978         (TEST_FUNCTION): New macro.
26979         Include test-skeleton.c.
26980         * inet/tst-ether_aton.c (main): Converted to ...
26981         (do_test): ... this.
26982         (TEST_FUNCTION): New macro.
26983         Include test-skeleton.c.
26984         * misc/tst-mntent.c (main): Converted to ...
26985         (do_test): ... this.
26986         (TEST_FUNCTION): New macro.
26987         Include test-skeleton.c.
26988         * misc/tst-tsearch.c (main): Converted to ...
26989         (do_test): ... this.
26990         (TEST_FUNCTION): New macro.
26991         Include test-skeleton.c.
26992         * posix/tst-regexloc.c (main): Converted to ...
26993         (do_test): ... this.
26994         (TEST_FUNCTION): New macro.
26995         Include test-skeleton.c.
26996         * resolv/tst-aton.c (main): Converted to ...
26997         (do_test): ... this.
26998         (TEST_FUNCTION): New macro.
26999         Include test-skeleton.c.
27000         * stdio-common/test-fwrite.c (main): Converted to ...
27001         (do_test): ... this.
27002         (TEST_FUNCTION): New macro.
27003         Include test-skeleton.c.
27004         * stdio-common/tst-ferror.c (main): Converted to ...
27005         (do_test): ... this.
27006         (TEST_FUNCTION): New macro.
27007         Include test-skeleton.c.
27008         * stdio-common/tst-printf.c (main): Converted to ...
27009         (do_test): ... this.
27010         (TEST_FUNCTION): New macro.
27011         Include test-skeleton.c.
27012         * stdio-common/tst-printfsz.c (main): Converted to ...
27013         (do_test): ... this.
27014         (TEST_FUNCTION): New macro.
27015         Include test-skeleton.c.
27016         * stdlib/tst-strtod.c (main): Converted to ...
27017         (do_test): ... this.
27018         (TEST_FUNCTION): New macro.
27019         Include test-skeleton.c.
27020         * string/tst-strlen.c (main): Converted to ...
27021         (do_test): ... this.
27022         (TEST_FUNCTION): New macro.
27023         Include test-skeleton.c.
27024         * string/tst-svc.c (main): Converted to ...
27025         (do_test): ... this.
27026         (TEST_FUNCTION): New macro.
27027         Include test-skeleton.c.
27028         * time/tst-strptime.c (main): Converted to ...
27029         (do_test): ... this.
27030         (TEST_FUNCTION): New macro.
27031         Include test-skeleton.c.
27032         * timezone/tst-timezone.c (main): Converted to ...
27033         (do_test): ... this.
27034         (TEST_FUNCTION): New macro.
27035         Include test-skeleton.c.
27036
27037 2015-08-05  Zack Weinberg  <zackw@panix.com>
27038
27039         * misc/regexp.h: Update comments.
27040
27041 2015-08-05  Andreas Schwab  <schwab@linux-m68k.org>
27042
27043         [BZ #18635]
27044         * sysdeps/unix/sysv/linux/m68k/m680x0/makecontext.S: Add nop
27045         before return label.
27046
27047 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
27048
27049         [BZ #18661]
27050         * sysdeps/x86_64/fpu/s_cosf.S (__cosf): Align stack to 16 bytes
27051         when calling __errno_location.
27052         * sysdeps/x86_64/fpu/s_sincosf.S (__sincosf): Likewise.
27053         * sysdeps/x86_64/fpu/s_sinf.S (__sinf): Likewise.
27054
27055 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
27056
27057         [BZ #18661]
27058         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
27059         (__lll_timedwait_tid): Align stack to 16 bytes when calling
27060         __gettimeofday.
27061
27062 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
27063
27064         [BZ #18661]
27065         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
27066         (__start_context): Don't use pop to restore %rdi so that stack
27067         is aligned to 16 bytes when calling __setcontext.
27068
27069 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
27070
27071         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Compile
27072         only for libc.
27073         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
27074
27075 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
27076
27077         * string/string.h: (mempcpy): Redirect to __mempcpy_inline.
27078         (__mempcpy): Likewise.  (__mempcpy_inline): New inline function.
27079         * sysdeps/sparc/bits/string.h: (_HAVE_STRING_ARCH_mempcpy): Define.
27080
27081 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
27082
27083         * string/memccpy.c (memccpy):
27084         Improve performance by using memchr/memcpy/__mempcpy.
27085
27086 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
27087
27088         * string/strncpy.c (strncpy):
27089         Improve performance by using __strnlen/memcpy.
27090
27091 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
27092
27093         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
27094         Optimize to avoid an unnecessary FPCR read.
27095
27096 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
27097
27098         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
27099         Optimize to reduce FPCR/FPSR accesses.
27100
27101 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
27102
27103         * locale/loadarchive.c (_nl_archive_subfreeres): Also check
27104         dead->data[category] != NULL.
27105
27106 2015-08-05  Joseph Myers  <joseph@codesourcery.com>
27107
27108         [BZ #18647]
27109         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): For large y
27110         and |x| close to 1, use absolute value of x when computing log.
27111         * math/auto-libm-test-in: Add more tests of pow.
27112         * math/auto-libm-test-out: Regenerated.
27113
27114 2015-08-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
27115
27116         * sysdeps/unix/sysv/linux/arm/mmap.c: Add file.
27117         * sysdeps/unix/sysv/linux/arm/mmap.S: Remove file.
27118         * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise.
27119
27120 2015-08-05  Marko Myllynen  <myllynen@redhat.com>
27121
27122         [BZ #18525]
27123         * locales/km_KH: Remove timezone definition.
27124         * locales/lo_LA: Likewise.
27125         * locales/my_MM: Likewise.
27126         * locales/nan_TW@latin: Likewise.
27127         * locales/th_TH: Likewise.
27128         * locales/uk_UA: Likewise.
27129
27130 2015-08-05  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
27131
27132         [BZ #18265]
27133         * wcsmbs/wchar.h (wcscat): Add __nonnull attribute.
27134         (wcsncat): Likewise.
27135         (wcscmp): Likewise.
27136         (wcsncmp): Likewise.
27137
27138 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
27139
27140         * test-skeleton.c (usage): New function.
27141         (main): Call usage when opt is '?'.
27142
27143 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
27144
27145         * sysdeps/unix/sysv/linux/mmap64.c: Move MMAP2_PAGE_SHIFT define
27146         before first use.
27147
27148 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
27149
27150         * nptl/allocatestack.c (allocate_stack): Move stacktop decl down to
27151         bottom and under _STACK_GROWS_DOWN.  Move the stacktop assignment
27152         in there too.
27153
27154 2015-08-05  Carlos O'Donell  <carlos@systemhalted.org>
27155
27156         * version.h (RELEASE): Set to "development".
27157         (VERSION): Set to "2.22.90"
27158
27159         * version.h (RELEASE): Set to "stable".
27160         (VERSION): Set to "2.22"
27161         * include/features.h (__GLIBC_MINOR__): Set to 22.
27162
27163 2015-08-04  Chris Metcalf  <cmetcalf@ezchip.com>
27164
27165         * sysdeps/tile/tilepro/bits/atomic.h (__atomic_update):
27166         Restructure macro to avoid "value computed is not used" warning.
27167         (atomic_compare_and_exchange_val_acq): Likewise.
27168
27169 2015-08-04  Andreas Schwab  <schwab@suse.de>
27170
27171         [BZ #18635]
27172         * sysdeps/unix/sysv/linux/i386/makecontext.S: Terminate FDE before
27173         ret.
27174         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext): Remove.
27175
27176 2015-08-01  Carlos O'Donell  <carlos@redhat.com>
27177
27178         * po/pl.po: Updated translation.
27179         * po/uk.po: Likewise.
27180         * po/fi.po: Likewise.
27181         * po/ko.po: Likewise.
27182         * po/ru.po: Likewise.
27183         * po/vi.po: Likewise.
27184
27185 2015-07-31  Zack Weinberg  <zackw@panix.com>
27186
27187         [BZ #18681]
27188         * regexp.h: Add unconditional #warning stating that this header
27189         will be removed soon.  Revise banner comment to match.
27190         (compile): Consistently use ERROR instead of RETURN to report
27191         errors (partial fix for BZ #18681).
27192         * regexp.c: Don't include regexp.h. Remove some unnecessary
27193         declarations.
27194
27195 2015-07-31  Carlos O'Donell  <carlos@redhat.com>
27196
27197         * po/libc.pot: Regenerated.
27198
27199 2015-07-30  Andrew Senkevich  <andrew.senkevich@intel.com>
27200
27201         [BZ #18740]
27202         * sysdeps/x86_64/fpu/Makefile (double-vlen2-arch-ext-cflags,
27203         float-vlen4-arch-ext-cflags): Removed.
27204         * math/Makefile (CFLAGS-test-double-vlen2-wrappers.c,
27205         CFLAGS-test-float-vlen4-wrappers.c): Likewise.
27206
27207 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
27208
27209         [BZ #14113]
27210         * sysdeps/hppa/nptl/bits/pthreadtypes.h (pthread_mutex_t): Change
27211         aligned to __aligned__.
27212         (pthread_cond_t, pthread_rwlock_t): Likewise.
27213
27214 2015-07-30  Torvald Riegel  <triegel@redhat.com>
27215
27216         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: Remove file.
27217
27218 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
27219
27220         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Include bits/wordsize.h.
27221         (struct sigaction): Change sa_flags from a long to an int, and add
27222         __glibc_reserved0 before it for padding when __WORDSIZE is 64.
27223
27224 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
27225
27226         * hppa/sysdep.h: Delete sys/syscall.h and config.h includes.
27227         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Delete
27228         sysdeps/generic/sysdep.h include.
27229         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Wrap the whole file in
27230         _LINUX_HPPA_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h and
27231         sysdeps/hppa/sysdep.h.
27232         (ENTRY, PSEUDO): Undefine before defining.
27233
27234 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
27235
27236         * sysdeps/unix/sysv/linux/hppa/sysdep.h (INLINE_SYSCALL): Rewrite
27237         from scratch to use INTERNAL_SYSCALL.
27238
27239 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
27240
27241         [BZ #18078]
27242         * scripts/check-localplt.awk: Support alternate relocations.
27243         * scripts/localplt.awk: Also check relocations in DT_RELA/DT_REL
27244         sections.
27245         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark free and
27246         malloc entries with + REL R_386_GLOB_DAT.
27247         * sysdeps/x86_64/localplt.data: New file.
27248
27249 2015-07-29  Andrew Senkevich  <andrew.senkevich@intel.com>
27250
27251         [BZ #18731]
27252         * sysdeps/x86_64/fpu/math-tests-arch.h: Added AVX runtime check.
27253         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
27254         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
27255
27256 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
27257
27258         * sysdeps/unix/sysv/linux/ia64/localplt.data: Delete __tls_get_addr.
27259
27260 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
27261
27262         * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Define
27263         directly in terms of __sync_fetch_and_add and delete (int) cast.
27264
27265 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
27266
27267         * sysdeps/unix/sysv/linux/ia64/Makefile (CPPFLAGS): Delete
27268         the -D_ASM_IA64_CURRENT_H flag.
27269
27270 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
27271
27272         [BZ #18641]
27273         * pwd/pwd.h (putpwent): Delete __nonnull markings.
27274
27275 2015-07-27  Andreas Schwab  <schwab@suse.de>
27276
27277         * conform/conformtest.pl (checknamespace): Filter out string
27278         literals while tokenizing.
27279
27280 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
27281
27282         * sysdeps/nios2/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
27283         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Handle
27284         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
27285
27286 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
27287
27288         * nptl/tst-join7mod.c: Add #include <string.h>.
27289
27290 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
27291
27292         * sysdeps/nios2/libm-test-ulps: Update.
27293
27294 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
27295
27296         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__setcontext):
27297         Fix order of arguments to the rt_sigprocmask syscall.
27298         * sysdeps/unix/sysv/linux/nios2/swapcontext.S (__swapcontext):
27299         Likewise.
27300
27301 2015-07-24  Roland McGrath  <roland@hack.frob.com>
27302
27303         * sysdeps/nacl/bits/fcntl.h (O_SHLOCK, O_EXLOCK): Macros removed.
27304
27305 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
27306
27307         [BZ #18457]
27308         * nptl/Makefile (tests): New test case tst-join7.
27309         (modules-names): New test case module tst-join7mod.
27310         * nptl/tst-join7.c: New file.
27311         * nptl/tst-join7mod.c: New file.
27312         * Makeconfig (tls-model): Pass -ftls-model=initial-exec for
27313         all translation units in libc.so, libpthread.so and rtld.
27314
27315 2015-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
27316
27317         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
27318
27319 2015-07-24  Andrew Senkevich  <andrew.senkevich@intel.com>
27320
27321         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Fixed AVX512 IFUNC.
27322         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
27323         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
27324         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
27325         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
27326         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
27327         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
27328         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
27329         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
27330         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
27331         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
27332         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
27333         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Fixed wrappers to AVX2.
27334         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
27335         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: Fixed KNL
27336         implementation.
27337
27338 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
27339
27340         [BZ #17711]
27341         * sysdeps/aarch64/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
27342         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Handle
27343         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
27344         * sysdeps/arm/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
27345         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Handle
27346         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
27347
27348 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
27349
27350         * stdlib/cxa_thread_atexit_impl.c: Use the lock name dl_load_lock
27351         instead of just saying load lock in the comments.
27352
27353 2015-07-23  Roland McGrath  <roland@hack.frob.com>
27354
27355         * sysdeps/unix/Subdirs: Moved ...
27356         * sysdeps/posix/Subdirs: ... here.
27357         * login/pty.h (struct termios, struct winsize): Add forward decls.
27358         * login/openpty.c (openpty): Put ioctl call under [TIOCSWINSZ].
27359         * sysdeps/nacl/glob.c: Just #include <sysdeps/wordsize-64/glob.c>.
27360         * sysdeps/arm/nacl/libc.abilist: Updated.
27361         * sysdeps/nacl/libutil.abilist: New file.
27362
27363         * bits/signum.h: Update comments to mention 1003.1-2013 too.
27364         (SIGWINCH): New macro.
27365
27366         * sysdeps/nacl/getdtsz.c (getdtablesize): Add missing weak_alias.
27367         * sysdeps/arm/nacl/libc.abilist: Add it.
27368
27369 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
27370
27371         * conform/linknamespace.pl (@whitelist): Add matherrf and matherrl.
27372
27373 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
27374
27375         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
27376         Swap __glibc_reserved0 and sa_flags order.
27377
27378 2015-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
27379
27380         [BZ #18657]
27381         * elf/dl-close.c (_dl_close_worker): Don't unload DSO if there
27382         are pending TLS destructor calls.
27383         * include/link.h (struct link_map): Add concurrency note for
27384         L_TLS_DTOR_COUNT.
27385         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
27386         Don't touch the link map flag.  Atomically increment
27387         l_tls_dtor_count.
27388         (__call_tls_dtors): Atomically decrement l_tls_dtor_count.
27389         Avoid taking the load lock and don't touch the link map flag.
27390         * stdlib/tst-tls-atexit-nodelete.c: New test case.
27391         * stdlib/Makefile (tests): Use it.
27392         * stdlib/tst-tls-atexit.c (do_test): dlopen
27393         tst-tls-atexit-lib.so again before dlclose.  Add conditionals
27394         to allow tst-tls-atexit-nodelete test case to use it.
27395
27396 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
27397
27398         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Change sys/types.h include
27399         to bits/types.h.
27400         (msgqnum_t): New typedef.
27401         (msglen_t): Likewise.
27402         (struct msqid_ds): Update comment.  Change msg_qnum type to msgqnum_t
27403         and msg_qbytes type to msglen_t.
27404
27405 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
27406
27407         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat): Rename
27408         pad0 to __glibc_reserved0.
27409         (struct stat64): Likewise.
27410
27411 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
27412
27413         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
27414         Change sa_flags from a long to an int and add __glibc_reserved0 before
27415         it for padding.
27416
27417 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
27418
27419         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (siginfo_t): Make struct
27420         anonymous by deleting "siginfo" name.
27421
27422 2015-07-21  Roland McGrath  <roland@hack.frob.com>
27423
27424         * sysdeps/nacl/nacl-interface-list.h: Remove nacl_irt_filename.
27425         * sysdeps/nacl/open.c (__libc_open): Use __nacl_irt_dev_filename
27426         rather than __nacl_irt_filename.
27427         * sysdeps/nacl/xstat.c (__xstat): Likewise.
27428
27429         * NEWS: New item for arm-nacl port.
27430         * sysdeps/arm/nacl/libc.abilist: New file.
27431         * sysdeps/nacl/ld.abilist: New file.
27432         * sysdeps/nacl/libBrokenLocale.abilist: New file.
27433         * sysdeps/nacl/libanl.abilist: New file.
27434         * sysdeps/nacl/libcrypt.abilist: New file.
27435         * sysdeps/nacl/libdl.abilist: New file.
27436         * sysdeps/nacl/libm.abilist: New file.
27437         * sysdeps/nacl/libpthread.abilist: New file.
27438         * sysdeps/nacl/libresolv.abilist: New file.
27439         * sysdeps/nacl/librt.abilist: New file.
27440
27441 2015-07-21  Chris Metcalf  <cmetcalf@ezchip.com>
27442
27443         * sysdeps/unix/sysv/linux/tile/makecontext.c (__makecontext): Call
27444         __startcontext to initialize the new context.
27445         * sysdeps/unix/sysv/linux/tile/setcontext.S (__startcontext): Set
27446         up CFI directive to forbid further backtracing.
27447
27448 2015-07-21  Marko Myllynen  <myllynen@redhat.com>
27449
27450         * charmaps/ANSI_X3.110-1983: Remove obsolete repertoire map
27451         reference.
27452         * charmaps/ANSI_X3.4-1968: Likewise.
27453         * charmaps/BS_4730: Likewise.
27454         * charmaps/BS_VIEWDATA: Likewise.
27455         * charmaps/CP1250: Likewise.
27456         * charmaps/CP1251: Likewise.
27457         * charmaps/CP1252: Likewise.
27458         * charmaps/CP1253: Likewise.
27459         * charmaps/CP1254: Likewise.
27460         * charmaps/CP1255: Likewise.
27461         * charmaps/CP1256: Likewise.
27462         * charmaps/CSN_369103: Likewise.
27463         * charmaps/EBCDIC-DK-NO: Likewise.
27464         * charmaps/GB_1988-80: Likewise.
27465         * charmaps/GREEK-CCITT: Likewise.
27466         * charmaps/GREEK7: Likewise.
27467         * charmaps/INIS-8: Likewise.
27468         * charmaps/ISIRI-3342: Likewise.
27469         * charmaps/ISO_2033-1983: Likewise.
27470         * charmaps/ISO_5427-EXT: Likewise.
27471         * locales/POSIX: Likewise.
27472         * locales/ar_SA: Likewise.
27473         * locales/be_BY: Likewise.
27474         * locales/be_BY@latin: Likewise.
27475         * locales/ca_ES: Likewise.
27476         * locales/cs_CZ: Likewise.
27477         * locales/da_DK: Likewise.
27478         * locales/de_BE: Likewise.
27479         * locales/de_CH: Likewise.
27480         * locales/de_LU: Likewise.
27481         * locales/en_AU: Likewise.
27482         * locales/en_BW: Likewise.
27483         * locales/en_CA: Likewise.
27484         * locales/en_DK: Likewise.
27485         * locales/en_GB: Likewise.
27486         * locales/en_IE: Likewise.
27487         * locales/en_NZ: Likewise.
27488         * locales/en_ZA: Likewise.
27489         * locales/en_ZW: Likewise.
27490         * locales/es_AR: Likewise.
27491         * locales/es_BO: Likewise.
27492         * locales/es_CL: Likewise.
27493         * locales/es_CO: Likewise.
27494         * locales/es_DO: Likewise.
27495         * locales/es_EC: Likewise.
27496         * locales/es_ES: Likewise.
27497         * locales/es_HN: Likewise.
27498         * locales/es_MX: Likewise.
27499         * locales/es_PA: Likewise.
27500         * locales/es_PE: Likewise.
27501         * locales/es_PY: Likewise.
27502         * locales/es_SV: Likewise.
27503         * locales/es_US: Likewise.
27504         * locales/es_UY: Likewise.
27505         * locales/es_VE: Likewise.
27506         * locales/et_EE: Likewise.
27507         * locales/fa_IR: Likewise.
27508         * locales/fo_FO: Likewise.
27509         * locales/fr_CA: Likewise.
27510         * locales/fr_CH: Likewise.
27511         * locales/gv_GB: Likewise.
27512         * locales/he_IL: Likewise.
27513         * locales/hr_HR: Likewise.
27514         * locales/id_ID: Likewise.
27515         * locales/is_IS: Likewise.
27516         * locales/it_CH: Likewise.
27517         * locales/iw_IL: Likewise.
27518         * locales/kl_GL: Likewise.
27519         * locales/ko_KR: Likewise.
27520         * locales/kw_GB: Likewise.
27521         * locales/lg_UG: Likewise.
27522         * locales/lt_LT: Likewise.
27523         * locales/lv_LV: Likewise.
27524         * locales/mi_NZ: Likewise.
27525         * locales/nhn_MX: Likewise.
27526         * locales/nl_BE: Likewise.
27527         * locales/pl_PL: Likewise.
27528         * locales/sk_SK: Likewise.
27529         * locales/sl_SI: Likewise.
27530         * locales/sv_FI: Likewise.
27531         * locales/tl_PH: Likewise.
27532         * locales/tr_TR: Likewise.
27533         * locales/vi_VN: Likewise.
27534
27535 2015-07-21  Khem Raj  <raj.khem@gmail.com>
27536
27537         [BZ #17475]
27538         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Adjust for rename
27539         of tu_IN and bh_IN.
27540
27541 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
27542
27543         [BZ #18694]
27544         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Include
27545         bits/wordsize.h.
27546         (sigaction): Declare __glibc_reserved0 only when __WORDSIZE is 64.
27547
27548 2015-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
27549
27550         * stdlib/tst-tls-atexit-lib.c (do_foo): Rename to reg_dtor.
27551         * stdlib/tst-tls-atexit.c: (is_loaded): New function.
27552         (spawn_thread): New function.
27553         (load): Rename to reg_dtor_and_close.  Move dlopen to...
27554         (do_test): ... here.  Use IS_LOADED to test for its
27555         availability.
27556
27557 2015-07-21  Andreas Schwab  <schwab@linux-m68k.org>
27558
27559         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
27560
27561 2015-07-20  H.J. Lu  <hongjiu.lu@intel.com>
27562
27563         [BZ #18696]
27564         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (_sigfault): Add
27565         si_addr_bnd.
27566         (si_lower): New.
27567         (si_upper): Likewise.
27568
27569 2015-07-16  David S. Miller  <davem@davemloft.net>
27570
27571         * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
27572
27573 2015-07-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
27574
27575         * libio/fmemopen.c (__fmemopen): Fix 'w' openmode with provided
27576         buffer.
27577         * stdio-common/tst-fmemopen2.c (do_test_with_buffer): Fix typo and
27578         fail output information.
27579
27580 2015-07-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
27581
27582         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strstr-power7
27583         and strstr-ppc64..
27584         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
27585         * sysdeps/powerpc/powerpc64/power7/strstr.S: New File.
27586         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: New File.
27587         * sysdeps/powerpc/powerpc64/multiarch/strstr-ppc64.c: New File.
27588         * sysdeps/powerpc/powerpc64/multiarch/strstr.c: New File.
27589
27590 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
27591
27592         * sysdeps/hppa/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
27593         * sysdeps/hppa/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
27594         * sysdeps/ia64/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
27595         * sysdeps/ia64/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
27596
27597 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
27598
27599         * elf/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
27600         * sysdeps/hppa/dl-lookupcfg.h (_dl_symbol_address): Add
27601         rtld_hidden_proto.
27602         * sysdeps/ia64/dl-lookupcfg.h (_dl_symbol_address): Likewise.
27603
27604 2015-07-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
27605
27606         * tst-nodelete-opened.c (do_test): Add comment to clarify how
27607         the test can fail.
27608
27609         * stdlib/cxa_thread_atexit_impl.c: Whitespace fixup.
27610
27611         [BZ #18676]
27612         * elf/tst-nodelete-opened.c: New test case.
27613         * elf/tst-nodelete-opened-lib.c: New test case module.
27614         * elf/Makefile (tests, modules-names): Use them.
27615         * elf/dl-open.c (dl_open_worker): Set DF_1_NODELETE flag
27616         early.
27617
27618 2015-07-15  David S. Miller  <davem@davemloft.net>
27619
27620         * sysdeps/sparc/nptl/pthread_barrier_init.c: Include
27621         futex-intenal.h
27622         * sysdeps/sparc/sparc32/sparcv9/Makefile (nscd): Add cpu_relax.
27623         * sysdeps/sparc/sparc64/Makefile: Likewise.
27624         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
27625         Remove space from macro define.
27626         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_spin_nop): Likewise.
27627
27628 2015-07-15  Pravin Satpute  <psatpute@redhat.com>
27629
27630         [BZ #17475]
27631         * locale/iso-639.def: Update Bhili and Tulu language codes as
27632         per iso639-3.
27633
27634 2015-07-15  Arjun Shankar  <arjun.is@lostca.se>
27635
27636         * elf/tst-leaks1.c (main): Converted to ...
27637         (do_test): ... this.
27638         (TEST_FUNCTION): New macro.
27639         Include test-skeleton.c.
27640         * localedata/tst-langinfo.c (main): Converted to ...
27641         (do_test): ... this.
27642         (TEST_FUNCTION): New macro.
27643         Include test-skeleton.c.
27644         * math/test-fpucw.c (main): Converted to ...
27645         (do_test): ... this.
27646         (TEST_FUNCTION): New macro.
27647         Include test-skeleton.c.
27648         * math/test-tgmath.c (main): Converted to ...
27649         (do_test): ... this.
27650         (TEST_FUNCTION): New macro.
27651         Include test-skeleton.c.
27652         * math/test-tgmath2.c (main): Converted to ...
27653         (do_test): ... this.
27654         (TEST_FUNCTION): New macro.
27655         Include test-skeleton.c.
27656         * setjmp/tst-setjmp.c (main): Converted to ...
27657         (do_test): ... this.
27658         (TEST_FUNCTION): New macro.
27659         Include test-skeleton.c.
27660         * stdio-common/tst-sscanf.c (main): Converted to ...
27661         (do_test): ... this.
27662         (TEST_FUNCTION): New macro.
27663         Include test-skeleton.c.
27664         * sysdeps/x86_64/tst-audit6.c (main): Converted to ...
27665         (do_test): ... this.
27666         (TEST_FUNCTION): New macro.
27667         Include test-skeleton.c.
27668
27669         * elf/tst-audit9.c (main): Converted to ...
27670         (do_test): ... this.
27671         (TEST_FUNCTION): New macro.
27672         Include test-skeleton.c.
27673
27674 2015-07-15  Mike Frysinger  <vapier@gentoo.org>
27675
27676         * timezone/tst-tzset.c (TIMEOUT): Define to 5.
27677
27678 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
27679
27680         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext):
27681         New variable.
27682
27683 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
27684
27685         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
27686
27687 2015-07-14  Roland McGrath  <roland@hack.frob.com>
27688
27689         * sysdeps/generic/dl-fileid.h: New file.
27690         * sysdeps/posix/dl-fileid.h: New file.
27691         * sysdeps/nacl/dl-fileid.h: New file.
27692         * include/link.h: Include <dl-fileid.h>.
27693         (struct link_map): Replace l_dev and l_ino with l_file_id.
27694         * elf/dl-load.c (_dl_map_object_from_fd): Use _dl_get_file_id rather
27695         than __fxstat64.  Use _dl_file_id_match_p rather than comparing l_dev
27696         and l_ino directly.  Initialize l_file_id rather than l_dev and l_ino.
27697
27698 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
27699
27700         * stdlib/tst-tls-atexit.c (do_test): Fix typo.
27701
27702 2015-07-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
27703
27704         * elf/Makefile [ifeq (yes,$(build-shared)) (tests)] (tst-nodelete):
27705         Add iff $CXX is set.
27706         [ifeq (yes,$(build-shared)) (modules-names)] (tst-nodelete-rtldmod):
27707         Likewise.
27708         (tst-nodelete-zmodiff): Likewise.
27709         * nptl/Makefile [[ifeq (,$(CXX))] (tests-unsupported)]: Add tst-once5.
27710
27711 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
27712
27713         * stdlib/tst-tls-atexit.c (load): Fix up whitespace.
27714
27715 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
27716
27717         * sysdeps/aarch64/fpu/math_private.h
27718         (define math_opt_barrier): Add AArch64 version.
27719         (math_force_eval): Likewise.
27720
27721 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
27722
27723         * sysdeps/aarch64/strlen.S (strlen): Optimize strlen.
27724
27725 2015-07-11  H.J. Lu  <hongjiu.lu@intel.com>
27726
27727         * stdio-common/tst-fmemopen2.c (do_test_without_buffer): Replace
27728         %ld with %jd and cast to intmax_t.
27729         (do_test_length_zero): Likewise.
27730
27731 2015-07-10  Roland McGrath  <roland@hack.frob.com>
27732
27733         * sysdeps/nacl/pthread_condattr_setclock.c: New file.
27734
27735 2015-07-10  Chris Metcalf  <cmetcalf@ezchip.com>
27736
27737         * sysdeps/tile/libm-test-ulps: Regenerated.
27738
27739         * math/test-fenvinline.c (feenable_test) [FE_ALL_EXCEPT == 0]:
27740         Comment out the whole function, not just its body.
27741
27742 2015-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
27743
27744         * stdlib/tst-tls-atexit.c (load): Remove unnecessary mutex
27745         locks.
27746
27747         * stdlib/tst-tls-atexit.c (load): Avoid boolean coercion.
27748
27749 2015-07-10  Torvald Riegel  <triegel@redhat.com>
27750
27751         * nptl/sem_waitcommon.c (__new_sem_wait_slow): Update comments.
27752         (sem_assume_only_signals_cause_futex_EINTR): Remove.
27753
27754 2015-07-10  Torvald Riegel  <triegel@redhat.com>
27755
27756         * sysdeps/nptl/futex-internal.h: New file.
27757         * sysdeps/nacl/futex-internal.h: New file.
27758         * sysdeps/unix/sysv/linux/futex-internal.h: New file.
27759         * nptl/allocatestack.c (setxid_mark_thread): Use futex wrappers with
27760         error checking.
27761         (setxid_unmark_thread): Likewise.
27762         (__nptl_setxid): Likewise.
27763         (__wait_lookup_done): Likewise.
27764         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
27765         * nptl/nptl-init.c (sighandler_setxid): Likewise.
27766         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
27767         * nptl/pthread_once.c (clear_once_control): Likewise.
27768         (__pthread_once_slow): Likewise.
27769         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
27770         * sysdeps/nacl/exit-thread.h (__exit_thread): Likewise.
27771         * sysdeps/nptl/aio_misc.h (AIO_MISC_NOTIFY, AIO_MISC_WAIT): Likewise.
27772         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
27773         * sysdeps/nptl/gai_misc.h (GAI_MISC_NOTIFY, GAI_MISC_WAIT): Likewise.
27774         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock_slow):
27775         Likewise.
27776         (__pthread_rwlock_rdlock): Likewise.
27777         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
27778         Likewise.
27779         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
27780         Likewise.
27781         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
27782         Likewise.
27783         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Likewise.
27784         * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock_slow:
27785         Likewise.
27786         * nptl/pthread_rwlock_init (__pthread_rwlock_init): Remove
27787         __ASSUME_PRIVATE_FUTEX check.
27788         * nptl/pthread_rwlockattr_setpshared (pthread_rwlockattr_setpshared):
27789         Check that shared futexes are supported.
27790         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Use futex
27791         wrappers with error checking.
27792         * nptl/pthread_barrier_init.c (pthread_barrier_init): Add comments,
27793         remove attribute sanity check and __ASSUME_PRIVATE_FUTEX check.
27794         * nptl/pthread_barrierattr_setpshared.c
27795         (pthread_barrierattr_setpshared): Check that shared futexes are
27796         supported.
27797         * nptl/pthread_condattr_setpshared.c (pthread_condattr_setpshared):
27798         Likewise.
27799         * nptl/pthread_mutexattr_setpshared.c (pthread_mutexattr_setpshared):
27800         Likewise.
27801         * nptl/sem_init.c (futex_private_if_supported): Remove.
27802         (__new_sem_init): Adapt and check that shared futexes are supported.
27803         * nptl/sem_open.c (sem_open): Likewise.
27804         * nptl/sem_post.c (futex_wake): Remove.
27805         * nptl/sem_waitcommon.c (futex_abstimed_wait, futex_wake): Remove.
27806         (do_futex_wait): Use futex wrappers with error checking.
27807         * nptl/sem_wait.c: Include lowlevellock.h.
27808         * sysdeps/sparc/nptl/pthread_barrier_init.c (__pthread_barrier_init):
27809         Use futex_supports_pshared.
27810         * sysdeps/sparc/nptl/pthread_barrier_wait.c (pthread_barrier_wait):
27811         Use futex wrappers with error checking.
27812         * sysdeps/sparc/sparc32/pthread_barrier_wait.c (pthread_barrier_wait):
27813         Likewise.
27814         * sysdeps/sparc/sparc32/sem_init.c (futex_private_if_supported): Remove.
27815         * sysdeps/sparc/sparc32/sem_post.c (futex_wake): Likewise.
27816         * sysdeps/sparc/sparc32/sem_open.c (sem_open): Use FUTEX_SHARED.
27817         * sysdeps/sparc/sparc32/sem_waitcommon.c (futex_abstimed_wait): Remove.
27818         (futex_wake): Likewise.
27819         (sem_assume_only_signals_cause_futex_EINTR): Likewise.
27820         (do_futex_wait): Use futex wrappers with error checking.
27821         (__new_sem_wait_slow): Update EINTR handling.
27822         * sysdeps/sparc/sparc32/sem_wait.c: Include lowlevellock.h.
27823
27824 2015-07-09  Martin Sebor  <msebor@redhat.com>
27825
27826         [BZ #18435]
27827         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
27828         Revert commit ed225df3ad9cbac3c22ec3f0fbbed1f9c61d1c54.
27829         * nptl/Makefile (test-xfail-tst-once5): Define.
27830
27831 2015-07-09  Roland McGrath  <roland@hack.frob.com>
27832
27833         * include/stdio.h: Add rtld_hidden_proto (__libc_fatal).
27834         * elf/dl-minimal.c: For readability, reorder some definitions and
27835         introduce more page breaks.  Include <stdio.h>.
27836         (__libc_fatal): New function.
27837
27838         * include/unistd.h: Add rtld_hidden_proto for _exit.
27839         * posix/_exit.c: Add rtld_hidden_def.
27840         * sysdeps/mach/hurd/_exit.c: Likewise.
27841         * sysdeps/nacl/_exit.c: Likewise.
27842         * sysdeps/unix/sysv/linux/_exit.c: Likewise.
27843         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
27844
27845 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
27846
27847         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Improve
27848         bndmov encoding with zero displacement.
27849
27850 2015-07-09  Igor Zamyatin  <igor.zamyatin@intel.com>
27851             H.J. Lu  <hongjiu.lu@intel.com>
27852
27853         [BZ #18134]
27854         * sysdeps/i386/configure.ac: Set HAVE_MPX_SUPPORT.
27855         * sysdeps/i386/configure: Regenerated.
27856         * sysdeps/i386/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
27857         (_dl_runtime_profile): Save and restore Intel MPX return bound
27858         registers when calling _dl_call_pltexit.  Add
27859         PRESERVE_BND_REGS_PREFIX before return.
27860         * sysdeps/i386/link-defines.sym (LRV_BND0_OFFSET): New.
27861         (LRV_BND1_OFFSET): Likewise.
27862         * sysdeps/x86/bits/link.h (La_i86_retval): Add lrv_bnd0 and
27863         lrv_bnd1.
27864         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
27865         typo in bndmov encoding.
27866         * sysdeps/x86_64/dl-trampoline.h: Properly save and restore
27867         Intel MPX bound registers.  Add PRESERVE_BND_REGS_PREFIX before
27868         branch instructions to preserve bounds.
27869
27870 2015-07-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
27871
27872         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
27873         [GLIBC_2.22]: Add fmemopen.
27874
27875 2015-07-09  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27876
27877         * sysdeps/mach/hurd/mlock.c (mlock): When __get_privileged_ports
27878         returns an error, also try to use host port from __mach_host_self for
27879         the __vm_wire call.
27880         * sysdeps/mach/hurd/munlock.c (munlock): Likewise.
27881
27882 2015-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
27883
27884         [BZ #18400]
27885         [BZ #18648]
27886         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (struct elf_prpsinfo):
27887         Fix pr_uid and pr_gid members.
27888         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (greg_t): Change the
27889         definition to elf_greg_t.
27890
27891 2015-07-08  Roland McGrath  <roland@hack.frob.com>
27892
27893         [BZ #18383]
27894         * sysdeps/arm/configure.ac (libc_cv_arm_tpoff_addend): New check.
27895         Emit test-xfail-tst-tlsalign{,-static}=yes if it fails.
27896         * sysdeps/arm/configure: Regenerated.
27897         * elf/Makefile (test-xfail-tst-tlsalign): Variable removed.
27898         (test-xfail-tst-tlsalign-static): Variable removed.
27899
27900         * Makerules (do-install-so): Use $(LN_S) rather than explicit 'ln -s'.
27901         * elf/Makefile ($(objpfx)$(rtld-installed-name)): Use $(make-link)
27902         rather than explicit 'ln -s'.
27903
27904         * resolv/rpc/netdb.h: New file.
27905         * resolv/Makefile [sunrpc not in $(subdirs)] (headers): Add it.
27906
27907 2015-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
27908
27909         * stdio-common/tst-fmemopen2.c (do_test): Add test for NULL and zero
27910         length buffers.
27911         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
27912         test-skeleton.c.
27913
27914         [BZ #6544]
27915         [BZ #11216]
27916         [BZ #12836]
27917         [BZ #13151]
27918         [BZ #13152]
27919         [BZ #14292]
27920         * include/stdio.h (fmemopen): Remove hidden prototype.
27921         (__fmemopen): Add new hidden prototype.
27922         * libio/Makefile: Add oldfmemopen object.
27923         * libio/Versions [GLIBC_2.22]: Add new fmemopen symbol.
27924         * libio/fmemopen.c (__fmemopen): Function rewrite to be POSIX
27925         compliance.
27926         * libio/oldfmemopen.c: New file: old fmemopen implementation for
27927         symbol compatibility.
27928         * stdio-common/Makefile [tests]: Add new tst-fmemopen3.
27929         * stdio-common/psiginfo.c [psiginfo]: Call __fmemopen instead of
27930         fmemopen.
27931         * stdio-common/tst-fmemopen3.c: New file: more fmemopen tests, focus
27932         on append and read mode.
27933         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.22]: Add
27934         fmemopen.
27935         * sysdeps/unix/sysv/linux/alpha/libc.abilist [GLIBC_2.22]: Likewise.
27936         * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.22]: Likewise.
27937         * sysdeps/unix/sysv/linux/i386/libc.abilist [GLIBC_2.22]: Likewise.
27938         * sysdeps/unix/sysv/linux/ia64/libc.abilist [GLIBC_2.22]:
27939         Likewise.
27940         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
27941         [GLIBC_2.22]: Likewise.
27942         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist [GLIBC_2.22]:
27943         Likewise.
27944         * sysdeps/unix/sysv/linux/microblaze/libc.abilist [GLIBC_2.22]:
27945         Likewise.
27946         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
27947         [GLIBC_2.22]: Likewise.
27948         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
27949         [GLIBC_2.22]: Likewise.
27950         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
27951         [GLIBC_2.22]: Likewise.
27952         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
27953         [GLIBC_2.22]: Likewise.
27954         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
27955         [GLIBC_2.22]: Likewise.
27956         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
27957         [GLIBC_2.22]: Likewise.
27958         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
27959         [GLIBC_2.22]: Likewise.
27960         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist [GLIBC_2.22]:
27961         Likewise.
27962         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist [GLIBC_2.22]:
27963         Likewise.
27964         * sysdeps/unix/sysv/linux/sh/libc.abilist [GLIBC_2.22]: Likewise.
27965         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
27966         [GLIBC_2.22]: Likewise.
27967         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
27968         [GLIBC_2.22]: Likewise.
27969         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
27970         [GLIBC_2.22]: Likewise.
27971         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
27972         [GLIBC_2.22]: Likewise.
27973         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist [GLIBC_2.22]:
27974         Likewise.
27975         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist [GLIBC_2.22]:
27976         Likewise.
27977         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist [GLIBC_2.22]:
27978         Likewise.
27979         * sysdeps/unix/sysv/linux/hppa/libc.abilist [GLIBC_2.22]: Likewise.
27980         * sysdeps/unix/sysv/linux/nios2/libc.abilist [GLIBC_2.22]: Likewise.
27981
27982 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
27983
27984         [BZ #18643]
27985         * sysdeps/unix/sysv/linux/bits/in.h: Define IPV6_RECVPATHMTU,
27986         IPV6_PATHMTU, and IPV6_DONTFRAG.
27987
27988 2015-07-08  Feng Gao  <gfree.wind@gmail.com>
27989
27990         * libio/fileops.c: Use "|" instead of "+" when combine _IO_LINE_BUF
27991         and _IO_UNBUFFERED.
27992         * libio/oldfileops.c: Likewise.
27993         * libio/wfileops.c: Likewise.
27994
27995 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
27996
27997         * nscd/selinux.c: Delete selinux/flask.h include.
27998
27999 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
28000
28001         [BZ #18641]
28002         * pwd/pwd.h (fgetpwent): Add __nonnull markings.
28003         (putpwent): Likewise.
28004         (getpwnam): Likewise.
28005         (getpwent_r): Likewise.
28006         (getpwuid_r): Likewise.
28007         (getpwnam_r): Likewise.
28008         (fgetpwent_r): Likewise.
28009
28010 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
28011
28012         [BZ #18557]
28013         * inet/rcmd.c (__validuser2_sa): Check user first to
28014         short-circuit host check.
28015
28016 2015-07-07  Pavel Kopyl  <p.kopyl@samsung.com>
28017             Mikhail Ilin  <m.ilin@samsung.com>
28018
28019         [BZ #17833]
28020         * elf/Makefile (tests): Add tst-nodelete.
28021         (modules-names): Add tst-nodelete-uniquemod.
28022         (tst-nodelete-uniquemod.so-no-z-defs): New.
28023         (tst-nodelete-rtldmod.so-no-z-defs): Likewise.
28024         (tst-nodelete-zmod.so-no-z-defs): Likewise.
28025         ($(objpfx)tst-nodelete): Likewise.
28026         ($(objpfx)tst-nodelete.out): Likewise.
28027         (LDFLAGS-tst-nodelete): Likewise.
28028         (LDFLAGS-tst-nodelete-zmod.so): Likewise.
28029         * elf/dl-close.c (_dl_close_worker): Add a parameter to
28030         implement forced object deletion.
28031         (_dl_close): Pass false to _dl_close_worker.
28032         * elf/dl-open.c (_dl_open): Pass true to _dl_close_worker.
28033         * elf/tst-nodelete.cc: New file.
28034         * elf/tst-nodeletelib.cc: Likewise.
28035         * elf/tst-znodeletelib.cc: Likewise.
28036         * include/dlfcn.h (_dl_close_worker): Add a new parameter.
28037
28038 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
28039
28040         [BZ #18508]
28041         * stdlib/Makefile ($(objpfx)tst-makecontext3):
28042         Depend on $(libdl).
28043         * stdlib/tst-makecontext.c (cf): Test if _Unwind_Backtrace
28044         is not called infinitely times.
28045         (backtrace_helper): New function.
28046         (trace_arg): New struct.
28047         (st1): Enlarge stack size.
28048         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
28049         (__makecontext_ret): Omit cfi_startproc and cfi_endproc.
28050         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
28051         Likewise.
28052
28053 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
28054
28055         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
28056
28057 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
28058
28059         * sysdeps/unix/sysv/linux/s390/bits/sem.h:
28060         Include sys/types.h instead of bits/types.h.
28061         Remove inclusion of bits/wordsize.h.
28062
28063 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
28064
28065         * sysdeps/x86_64/tst-auditmod10b.c (la_symbind32): New.
28066         * sysdeps/x86_64/tst-auditmod4b.c (la_symbind32): Likewise.
28067         * sysdeps/x86_64/tst-auditmod5b.c (la_symbind32): Likewise.
28068         * sysdeps/x86_64/tst-auditmod6b.c (la_symbind32): Likewise.
28069         * sysdeps/x86_64/tst-auditmod6c.c (la_symbind32): Likewise.
28070         * sysdeps/x86_64/tst-auditmod7b.c (la_symbind32): Likewise.
28071
28072 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
28073
28074         * sysdeps/i386/Makefile (gen-as-const-headers)[elf]: Add
28075         link-defines.sym.
28076         * sysdeps/i386/dl-trampoline.S: Include <link-defines.h>.
28077         (_dl_runtime_profile): Use LONG_DOUBLE_SIZE, LRV_SIZE,
28078         LRV_EAX_OFFSET, LRV_EDX_OFFSET, LRV_ST0_OFFSET, LRV_ST1_OFFSET
28079         and LR_SIZE.
28080         * sysdeps/i386/link-defines.sym: New file.
28081
28082 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
28083
28084         * sysdeps/i386/Makefile (tests)[elf]: Add tst-audit3.
28085         (modules-names): Add tst-auditmod3a tst-auditmod3b.
28086         ($(objpfx)tst-audit3): New rule.
28087         ($(objpfx)tst-audit3.out): Likewise.
28088         * sysdeps/i386/tst-audit3.c: New file.
28089         * sysdeps/i386/tst-audit3.h: Likewise.
28090         * sysdeps/i386/tst-auditmod3a.c: Likewise.
28091         * sysdeps/i386/tst-auditmod3b.c: Likewise.
28092
28093 2015-07-07  Torvald Riegel  <triegel@redhat.com>
28094
28095         [BZ #18633]
28096         * sysdeps/x86/bits/string.h (__memmove_g): Do not create invalid
28097         pointer in C code.
28098         (__strcat_c): Likewise.
28099         (__strcat_g): Likewise.
28100
28101 2015-07-07  Cyril Hrubis <chrubis@suse.cz>
28102
28103         [BZ #18592]
28104         * misc/sbrk.c: Set errno to ENOMEM on overflow.
28105
28106 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
28107
28108         * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt):
28109         New function.  (__ieee754_sqrtf): New function.
28110         * sysdeps/aarch64/fpu/e_sqrt.c (__ieee754_sqrt):
28111         New function.
28112         * sysdeps/aarch64/fpu/e_sqrtf.c (__ieee754_sqrtf):
28113         New function.
28114
28115 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
28116
28117         * sysdeps/ieee754/support.c: Remove unused file.
28118
28119 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28120
28121         * sysdeps/unix/sysv/linux/aarch64/getcontext.S (__getcontext): Use q
28122         registers instead of d ones so the layout is kernel abi compatible.
28123         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext): Likewise.
28124         * sysdeps/unix/sysv/linux/aarch64/swapcontext.S (__swapcontext):
28125         Likewise.
28126
28127 2015-07-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28128
28129         * sysdeps/aarch64/libm-test-ulps: Regenerated.
28130
28131 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
28132
28133         [BZ #18619]
28134         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Force underflow
28135         and return argument in case of subnormal argument.
28136
28137 2015-07-01  Martin Sebor  <msebor@redhat.com>
28138
28139         [BZ #18435]
28140         * nptl/Makefile: Add tst-once5.cc.
28141         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
28142         Remove macro redefinitions.
28143         * nptl/tst-once5.cc: New test.
28144
28145 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
28146
28147         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
28148
28149         * sysdeps/arm/libm-test-ulps: Regenerated.
28150
28151         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
28152         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
28153
28154 2015-06-30  Torvald Riegel  <triegel@redhat.com>
28155
28156         * nptl/DESIGN-systemtap-probes.txt: Remove lll_lock_wait,
28157         lll_lock_wait_private and lll_futex_wake probes.
28158
28159         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (BUSY_WAIT_NOP): Remove.
28160         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (BUSY_WAIT_NOP):
28161         Likewise.
28162         * sysdeps/i386/i486/bits/atomic.h (atomic_delay): Rename to
28163         atomic_spin_nop.
28164         * sysdeps/x86_64/bits/atomic.h: Likewise.
28165         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (BUSY_WAIT_NOP): Rename
28166         to atomic_spin_nop and move ...
28167         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
28168         ... here and ...
28169         * sysdeps/sparc/sparc64/bits/atomic.h: ... here.
28170         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
28171         atomic_spin_nop instead of BUSY_WAIT_NOP.
28172         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock):
28173         Likewise.
28174         * sysdeps/nacl/lll_timedwait_tid.c (__lll_timedwait_tid): Likewise.
28175         * sysdeps/nacl/lowlevellock.h (BUSY_WAIT_NOP): Remove.
28176         (lll_wait_tid): Use atomic_spin_nop instead of BUSY_WAIT_NOP.
28177         * nscd/nscd-client.h (__nscd_acquire_maplock): Use atomic_spin_nop
28178         instead of atomic_delay.
28179
28180 2015-06-29  Joseph Myers  <joseph@codesourcery.com>
28181
28182         [BZ #18613]
28183         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Take log of
28184         X_ADJ not X when adjusting exponent.
28185         (__ieee754_gamma_r): Do intermediate computations in
28186         round-to-nearest then adjust overflowing and underflowing results
28187         as needed.
28188         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Take log
28189         of X_ADJ not X when adjusting exponent.
28190         (__ieee754_gammaf_r): Do intermediate computations in
28191         round-to-nearest then adjust overflowing and underflowing results
28192         as needed.
28193         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Take
28194         log of X_ADJ not X when adjusting exponent.
28195         (__ieee754_gammal_r): Do intermediate computations in
28196         round-to-nearest then adjust overflowing and underflowing results
28197         as needed.  Use 1.0L not 1.0f as numerator of division.
28198         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Take
28199         log of X_ADJ not X when adjusting exponent.
28200         (__ieee754_gammal_r): Do intermediate computations in
28201         round-to-nearest then adjust overflowing and underflowing results
28202         as needed.  Use 1.0L not 1.0f as numerator of division.
28203         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Take log
28204         of X_ADJ not X when adjusting exponent.
28205         (__ieee754_gammal_r): Do intermediate computations in
28206         round-to-nearest then adjust overflowing and underflowing results
28207         as needed.  Use 1.0L not 1.0f as numerator of division.
28208         * math/libm-test.inc (tgamma_test_data): Remove one test.  Moved
28209         to auto-libm-test-in.
28210         (tgamma_test): Use ALL_RM_TEST.
28211         * math/auto-libm-test-in: Add one test of tgamma.  Mark some other
28212         tests of tgamma with spurious-overflow.
28213         * math/auto-libm-test-out: Regenerated.
28214         * math/gen-libm-have-vector-test.sh: Do not check for START.
28215         * sysdeps/i386/fpu/libm-test-ulps: Update.
28216         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28217
28218         [BZ #18612]
28219         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): For small
28220         arguments, just return 0.5 times the argument, with underflow
28221         forced as needed.
28222         * math/auto-libm-test-in: Add more tests of j1.
28223         * math/auto-libm-test-out: Regenerated.
28224
28225         [BZ #16559]
28226         * sysdeps/ieee754/dbl-64/e_j1.c: Include <float.h>.
28227         (__ieee754_j1): Force underflow exception for small results.
28228         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
28229         * sysdeps/ieee754/flt-32/e_j1f.c: Include <float.h>.
28230         (__ieee754_j1f): Force underflow exception for small results.
28231         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
28232         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
28233         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
28234         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <float.h>.
28235         (__ieee754_j1l): Force underflow exception for small results.
28236         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
28237         * math/auto-libm-test-in: Add more tests of j1 and jn.
28238         * math/auto-libm-test-out: Regenerated.
28239
28240         * sysdeps/unix/sysv/linux/bits/in.h (IP_CHECKSUM): New macro.
28241         * sysdeps/unix/sysv/linux/bits/socket.h (PF_IB): Likewise.
28242         (PF_MPLS): Likewise.
28243         (AF_IB): Likewise.
28244         (AF_MPLS): Likewise.
28245         * sysdeps/unix/sysv/linux/sys/mount.h (MS_LAZYTIME): New enum
28246         value and macro.
28247         (MS_RMT_MASK): Include MS_LAZYTIME.
28248
28249 2015-06-26  Mel Gorman  <mgorman@suse.de>
28250
28251         [BZ #18502]
28252         * malloc/arena.c (heap_trim): Don't try to shrink a heap that is
28253         already minimal.
28254
28255 2015-06-26  Matthew Fortune  <matthew.fortune@imgtec.com>
28256
28257         * elf/elf.h (DT_MIPS_RLD_MAP_REL): New macro.
28258         (DT_MIPS_NUM): Update.
28259         * sysdeps/mips/dl-machine.h (ELF_MACHINE_DEBUG_SETUP): Handle
28260         DT_MIPS_RLD_MAP_REL.
28261
28262 2015-06-25  Joseph Myers  <joseph@codesourcery.com>
28263
28264         [BZ #16559]
28265         [BZ #18602]
28266         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Set
28267         round-to-nearest internally then recompute results that
28268         underflowed to zero in the original rounding mode.
28269         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
28270         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
28271         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
28272         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
28273         * math/libm-test.inc (jn_test): Use ALL_RM_TEST.
28274         * sysdeps/i386/fpu/libm-test-ulps: Update.
28275         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28276
28277 2015-06-25  Andrew Senkevich  <andrew.senkevich@intel.com>
28278
28279         * NEWS: Fixed description of link with vector math library.
28280
28281 2015-06-25  Andreas Schwab  <schwab@suse.de>
28282
28283         [BZ #18549]
28284         * libio/fmemopen.c (fmemopen_write): Fix bounds check for ENOSPC.
28285         * libio/test-fmemopen.c (do_test): Add test for it.
28286
28287 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
28288
28289         [BZ #17841]
28290         * Makeconfig (no-pie-ldflag): New.
28291         (+link): Set to $(+link-pie) if default to PIE.
28292         (+link-tests): Set to $(+link-pie-tests) if default to PIE.
28293         * config.make.in (build-pie-default): New.
28294         * configure.ac (libc_cv_pie_default): New.  Set to yes if -fPIE
28295         is default.  AC_SUBST.
28296         * configure: Regenerated.
28297         * elf/Makefile (LDFLAGS-tst-dlopen-aout): New.
28298
28299 2015-06-24  Roland McGrath  <roland@hack.frob.com>
28300
28301         * nptl/descr.h (struct pthread): Change type of field setxid_futex
28302         to 'unsigned int'.
28303
28304         * resolv/gai_misc.h (struct waitlist): Change type of field
28305         counterp to 'volatile unsigned int *'.
28306         * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Use unsigned types for
28307         FUTEXADDR and OLDVAL.
28308         * resolv/getaddrinfo_a.c (getaddrinfo_a):
28309         Give local variable TOTAL type 'volatile unsigned int'.
28310         (struct async_waitlist): Change type of field counter to 'unsigned int'.
28311         * resolv/gai_suspend.c (gai_suspend):
28312         Give local variable CNTR type 'unsigned int'.
28313
28314         * sysdeps/pthread/aio_misc.h (struct waitlist): Change type of field
28315         counterp to 'volatile unsigned int *'.
28316         * sysdeps/pthread/aio_suspend.c [DONT_NEED_AIO_MISC_COND]
28317         (do_aio_misc_wait): Give argument CNTR type 'unsigned int *'.
28318         (aio_suspend): Give local variable CNTR type 'unsigned int'.
28319         * sysdeps/pthread/lio_listio.c (lio_listio_internal):
28320         Give local variable TOTAL type 'volatile unsigned int'.
28321         (struct async_waitlist): Change type of field counter to 'unsigned int'.
28322
28323 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
28324
28325         [BZ #18383]
28326         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Align
28327         TCB_OFFSET to MAX_ALIGN, not just TCBALIGN.  Add comment.
28328         * elf/Makefile (test-xfail-tst-tlsalign{,-static}): Remove
28329         comment for i386/x86-64.
28330         (test-xfail-tst-tlsalign-extern-static): Removed.
28331
28332 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
28333
28334         * math/test-double.h: New file.
28335         * math/test-float.h: Likewise.
28336         * math/test-ldouble.h: Likewise.
28337         * math/test-math-inline.h: Likewise.
28338         * math/test-math-no-inline.h: Likewise.
28339         * math/test-math-scalar.h: Likewise.
28340         * math/test-math-vector.h: Likewise.
28341         * math/test-vec-loop.h: Remove file.  Contents moved into
28342         test-math-vector.h.
28343         * math/libm-test.inc (MATHCONST): Do not document macro.
28344         * math/test-double.c: Include test-double.h, test-math-no-inline.h
28345         and test-math-scalar.h.
28346         (FUNC): Remove macro.
28347         (FUNC_TEST): Likewise.
28348         (FLOAT): Likewise.
28349         (MATHCONST): Likewise.
28350         (PRINTF_EXPR): Likewise.
28351         (PRINTF_XEXPR): Likewise.
28352         (PRINTF_NEXPR): Likewise.
28353         (TEST_DOUBLE): Likewise.
28354         (TEST_MATHVEC): Likewise.
28355         (__NO_MATH_INLINES): Likewise.
28356         * math/test-float.c: Include test-float.h, test-math-no-inline.h
28357         and test-math-scalar.h.
28358         (FUNC): Remove macro.
28359         (FUNC_TEST): Likewise.
28360         (FLOAT): Likewise.
28361         (MATHCONST): Likewise.
28362         (PRINTF_EXPR): Likewise.
28363         (PRINTF_XEXPR): Likewise.
28364         (PRINTF_NEXPR): Likewise.
28365         (TEST_FLOAT): Likewise.
28366         (TEST_MATHVEC): Likewise.
28367         (__NO_MATH_INLINES): Likewise.
28368         * math/test-idouble.c: Include test-double.h, test-math-inline.h
28369         and test-math-scalar.h.
28370         (FUNC): Remove macro.
28371         (FUNC_TEST): Likewise.
28372         (FLOAT): Likewise.
28373         (MATHCONST): Likewise.
28374         (PRINTF_EXPR): Likewise.
28375         (PRINTF_XEXPR): Likewise.
28376         (PRINTF_NEXPR): Likewise.
28377         (TEST_DOUBLE): Likewise.
28378         (TEST_MATHVEC): Likewise.
28379         (TEST_INLINE): Likewise.
28380         (__NO_MATH_INLINES): Likewise.
28381         * math/test-ifloat.c: Include test-float.h, test-math-inline.h and
28382         test-math-scalar.h.
28383         (FUNC): Remove macro.
28384         (FUNC_TEST): Likewise.
28385         (FLOAT): Likewise.
28386         (MATHCONST): Likewise.
28387         (PRINTF_EXPR): Likewise.
28388         (PRINTF_XEXPR): Likewise.
28389         (PRINTF_NEXPR): Likewise.
28390         (TEST_FLOAT): Likewise.
28391         (TEST_MATHVEC): Likewise.
28392         (TEST_INLINE): Likewise.
28393         (__NO_MATH_INLINES): Likewise.
28394         * math/test-ildoubl.c: Include test-ldouble.h, test-math-inline.h
28395         and test-math-scalar.h.
28396         (FUNC): Remove macro.
28397         (FUNC_TEST): Likewise.
28398         (FLOAT): Likewise.
28399         (MATHCONST): Likewise.
28400         (PRINTF_EXPR): Likewise.
28401         (PRINTF_XEXPR): Likewise.
28402         (PRINTF_NEXPR): Likewise.
28403         (TEST_LDOUBLE): Likewise.
28404         (TEST_MATHVEC): Likewise.
28405         (TEST_INLINE): Likewise.
28406         (__NO_MATH_INLINES): Likewise.
28407         * math/test-ldouble.c: Include test-ldouble.h,
28408         test-math-no-inline.h and test-math-scalar.h.
28409         (FUNC): Remove macro.
28410         (FUNC_TEST): Likewise.
28411         (FLOAT): Likewise.
28412         (MATHCONST): Likewise.
28413         (PRINTF_EXPR): Likewise.
28414         (PRINTF_XEXPR): Likewise.
28415         (PRINTF_NEXPR): Likewise.
28416         (TEST_LDOUBLE): Likewise.
28417         (TEST_MATHVEC): Likewise.
28418         (__NO_MATH_INLINES): Likewise.
28419         * math/test-double-vlen2.h: Include test-double.h,
28420         test-math-no-inline.h and test-math-vector.h.
28421         (FLOAT): Remove macro.
28422         (FUNC): Likewise.
28423         (MATHCONST): Likewise.
28424         (PRINTF_EXPR): Likewise.
28425         (PRINTF_XEXPR): Likewise.
28426         (PRINTF_NEXPR): Likewise.
28427         (TEST_DOUBLE): Likewise.
28428         (TEST_MATHVEC): Likewise.
28429         (__NO_MATH_INLINES): Likewise.
28430         (CNCT): Likewise.
28431         (CONCAT): Likewise.
28432         (WRAPPER_NAME): Likewise.
28433         (WRAPPER_DECL): Likewise.
28434         (WRAPPER_DECL_ff): Likewise.
28435         (WRAPPER_DECL_fFF): Likewise.
28436         (VECTOR_WRAPPER): Likewise.
28437         (VECTOR_WRAPPER_ff): Likewise.
28438         (VECTOR_WRAPPER_fFF): Likewise.
28439         (VEC_LEN): New macro.
28440         * math/test-double-vlen4.h: Include test-double.h,
28441         test-math-no-inline.h and test-math-vector.h.
28442         (FLOAT): Remove macro.
28443         (FUNC): Likewise.
28444         (MATHCONST): Likewise.
28445         (PRINTF_EXPR): Likewise.
28446         (PRINTF_XEXPR): Likewise.
28447         (PRINTF_NEXPR): Likewise.
28448         (TEST_DOUBLE): Likewise.
28449         (TEST_MATHVEC): Likewise.
28450         (__NO_MATH_INLINES): Likewise.
28451         (CNCT): Likewise.
28452         (CONCAT): Likewise.
28453         (WRAPPER_NAME): Likewise.
28454         (WRAPPER_DECL): Likewise.
28455         (WRAPPER_DECL_ff): Likewise.
28456         (WRAPPER_DECL_fFF): Likewise.
28457         (VECTOR_WRAPPER): Likewise.
28458         (VECTOR_WRAPPER_ff): Likewise.
28459         (VECTOR_WRAPPER_fFF): Likewise.
28460         (VEC_LEN): New macro.
28461         * math/test-double-vlen8.h: Include test-double.h,
28462         test-math-no-inline.h and test-math-vector.h.
28463         (FLOAT): Remove macro.
28464         (FUNC): Likewise.
28465         (MATHCONST): Likewise.
28466         (PRINTF_EXPR): Likewise.
28467         (PRINTF_XEXPR): Likewise.
28468         (PRINTF_NEXPR): Likewise.
28469         (TEST_DOUBLE): Likewise.
28470         (TEST_MATHVEC): Likewise.
28471         (__NO_MATH_INLINES): Likewise.
28472         (CNCT): Likewise.
28473         (CONCAT): Likewise.
28474         (WRAPPER_NAME): Likewise.
28475         (WRAPPER_DECL): Likewise.
28476         (WRAPPER_DECL_ff): Likewise.
28477         (WRAPPER_DECL_fFF): Likewise.
28478         (VECTOR_WRAPPER): Likewise.
28479         (VECTOR_WRAPPER_ff): Likewise.
28480         (VECTOR_WRAPPER_fFF): Likewise.
28481         (VEC_LEN): New macro.
28482         * math/test-float-vlen4.h: Include test-float.h,
28483         test-math-no-inline.h and test-math-vector.h.
28484         (FLOAT): Remove macro.
28485         (FUNC): Likewise.
28486         (MATHCONST): Likewise.
28487         (PRINTF_EXPR): Likewise.
28488         (PRINTF_XEXPR): Likewise.
28489         (PRINTF_NEXPR): Likewise.
28490         (TEST_FLOAT): Likewise.
28491         (TEST_MATHVEC): Likewise.
28492         (__NO_MATH_INLINES): Likewise.
28493         (CNCT): Likewise.
28494         (CONCAT): Likewise.
28495         (WRAPPER_NAME): Likewise.
28496         (WRAPPER_DECL): Likewise.
28497         (WRAPPER_DECL_ff): Likewise.
28498         (WRAPPER_DECL_fFF): Likewise.
28499         (VECTOR_WRAPPER): Likewise.
28500         (VECTOR_WRAPPER_ff): Likewise.
28501         (VECTOR_WRAPPER_fFF): Likewise.
28502         (VEC_LEN): New macro.
28503         * math/test-float-vlen8.h: Include test-float.h,
28504         test-math-no-inline.h and test-math-vector.h.
28505         (FLOAT): Remove macro.
28506         (FUNC): Likewise.
28507         (MATHCONST): Likewise.
28508         (PRINTF_EXPR): Likewise.
28509         (PRINTF_XEXPR): Likewise.
28510         (PRINTF_NEXPR): Likewise.
28511         (TEST_FLOAT): Likewise.
28512         (TEST_MATHVEC): Likewise.
28513         (__NO_MATH_INLINES): Likewise.
28514         (CNCT): Likewise.
28515         (CONCAT): Likewise.
28516         (WRAPPER_NAME): Likewise.
28517         (WRAPPER_DECL): Likewise.
28518         (WRAPPER_DECL_ff): Likewise.
28519         (WRAPPER_DECL_fFF): Likewise.
28520         (VECTOR_WRAPPER): Likewise.
28521         (VECTOR_WRAPPER_ff): Likewise.
28522         (VECTOR_WRAPPER_fFF): Likewise.
28523         (VEC_LEN): New macro.
28524         * math/test-float-vlen16.h: Include test-float.h,
28525         test-math-no-inline.h and test-math-vector.h.
28526         (FLOAT): Remove macro.
28527         (FUNC): Likewise.
28528         (MATHCONST): Likewise.
28529         (PRINTF_EXPR): Likewise.
28530         (PRINTF_XEXPR): Likewise.
28531         (PRINTF_NEXPR): Likewise.
28532         (TEST_FLOAT): Likewise.
28533         (TEST_MATHVEC): Likewise.
28534         (__NO_MATH_INLINES): Likewise.
28535         (CNCT): Likewise.
28536         (CONCAT): Likewise.
28537         (WRAPPER_NAME): Likewise.
28538         (WRAPPER_DECL): Likewise.
28539         (WRAPPER_DECL_ff): Likewise.
28540         (WRAPPER_DECL_fFF): Likewise.
28541         (VECTOR_WRAPPER): Likewise.
28542         (VECTOR_WRAPPER_ff): Likewise.
28543         (VECTOR_WRAPPER_fFF): Likewise.
28544         (VEC_LEN): New macro.
28545         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Do not include
28546         test-vec-loop.h.
28547         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
28548         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
28549         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
28550         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
28551         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
28552         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
28553         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
28554
28555 2015-06-24  Roland McGrath  <roland@hack.frob.com>
28556
28557         * sysdeps/nacl/glob.c (getlogin_r): Macro renamed to ...
28558         (__getlogin_r): ... this.
28559
28560 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
28561
28562         [BZ #18594]
28563         * math/s_ccosh.c (__ccosh): Compare with least normal value
28564         instead of comparing class with FP_SUBNORMAL.
28565         * math/s_ccoshf.c (__ccoshf): Likewise.
28566         * math/s_ccoshl.c (__ccoshl): Likewise.
28567         * math/s_cexp.c (__cexp): Likewise.
28568         * math/s_cexpf.c (__cexpf): Likewise.
28569         * math/s_cexpl.c (__cexpl): Likewise.
28570         * math/s_csin.c (__csin): Likewise.
28571         * math/s_csinf.c (__csinf): Likewise.
28572         * math/s_csinh.c (__csinh): Likewise.
28573         * math/s_csinhf.c (__csinhf): Likewise.
28574         * math/s_csinhl.c (__csinhl): Likewise.
28575         * math/s_csinl.c (__csinl): Likewise.
28576         * math/s_ctan.c (__ctan): Likewise.
28577         * math/s_ctanf.c (__ctanf): Likewise.
28578         * math/s_ctanh.c (__ctanh): Likewise.
28579         * math/s_ctanhf.c (__ctanhf): Likewise.
28580         * math/s_ctanhl.c (__ctanhl): Likewise.
28581         * math/s_ctanl.c (__ctanl): Likewise.
28582         * math/auto-libm-test-in: Add more tests of ccos, ccosh, cexp,
28583         csin, csinh, ctan and ctanh.
28584         * math/auto-libm-test-out: Regenerated.
28585         * math/libm-test.inc (cexp_test): Use ALL_RM_TEST.
28586         * sysdeps/i386/fpu/libm-test-ulps: Update.
28587         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28588
28589 2015-06-24  Roland McGrath  <roland@hack.frob.com>
28590
28591         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): When sched_getcpu
28592         return value is wrong, print the expected value too.
28593
28594 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
28595
28596         [BZ #18585]
28597         * elf/readlib.c (is_gdb_python_file): New.
28598         (process_file): Don't issue errors on filenames with -gdb.py
28599         suffix.
28600
28601 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
28602
28603         * math/auto-libm-test-in: Add more tests of csin and csinh.
28604         * math/auto-libm-test-out: Regenerated.
28605         * math/libm-test.inc (csin_test_data): Remove tests moved to
28606         auto-libm-test-in.
28607         (csinh_test_data): Likewise.
28608
28609         [BZ #18593]
28610         * math/s_csin.c (__csin): Negate before rather than after possibly
28611         overflowing multiplication.
28612         * math/s_csinf.c (__csinf): Likewise.
28613         * math/s_csinh.c (__csinh): Likewise.
28614         * math/s_csinhf.c (__csinhf): Likewise.
28615         * math/s_csinhl.c (__csinhl): Likewise.
28616         * math/s_csinl.c (__csinl): Likewise.
28617         * math/auto-libm-test-in: Add some tests of csin and csinh.
28618         * math/auto-libm-test-out: Regenerated.
28619         * math/libm-test.inc (csin_test_data): Use AUTO_TESTS_c_c.
28620         (csinh_test_data): Likewise.
28621         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
28622
28623         [BZ #18586]
28624         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Force
28625         underflow exception for small results.
28626
28627 2015-06-24  Andrew Senkevich  <andrew.senkevich@intel.com>
28628
28629         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
28630         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: Renamed
28631         variable and included header.
28632         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: Likewise.
28633         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: Likewise.
28634         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: Likewise.
28635         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: Likewise.
28636         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: Likewise.
28637         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
28638         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
28639         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S: Likewise.
28640         * sysdeps/x86_64/fpu/svml_s_trig_data.S: New file.
28641         * sysdeps/x86_64/fpu/svml_s_trig_data.h: Likewise.
28642         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: Removed file.
28643         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: Likewise.
28644         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: Likewise.
28645         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: Likewise.
28646         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: Likewise.
28647         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: Likewise.
28648
28649 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
28650
28651         [BZ #16526]
28652         [BZ #16538]
28653         * sysdeps/ieee754/dbl-64/s_sin.c: Include <float.h>.
28654         (__sin): Force underflow exception for arguments with small
28655         absolute value.
28656         * sysdeps/ieee754/flt-32/k_sinf.c: Include <float.h>.
28657         (__kernel_sinf): Force underflow exception for arguments with
28658         small absolute value.
28659         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Include <float.h>.
28660         (__kernel_sincosl): Force underflow exception for arguments with
28661         small absolute value.
28662         * sysdeps/ieee754/ldbl-128/k_sinl.c: Include <float.h>.
28663         (__kernel_sinl): Force underflow exception for arguments with
28664         small absolute value.
28665         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Include <float.h>.
28666         (__kernel_sincosl): Force underflow exception for arguments with
28667         small absolute value.
28668         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Include <float.h>.
28669         (__kernel_sinl): Force underflow exception for arguments with
28670         small absolute value.
28671         * sysdeps/ieee754/ldbl-96/k_sinl.c: Include <float.h>.
28672         (__kernel_sinl): Force underflow exception for arguments with
28673         small absolute value.
28674         * sysdeps/powerpc/fpu/k_sinf.c: Include <float.h>.
28675         (__kernel_sinf): Force underflow exception for arguments with
28676         small absolute value.
28677         * math/auto-libm-test-in: Add more tests of sin and sincos.
28678         * math/auto-libm-test-out: Regenerated.
28679
28680         [BZ #18245]
28681         [BZ #18583]
28682         * sysdeps/ieee754/k_standardl.c: Include <fenv.h>.
28683         (__kernel_standard_l): Use feholdexcept and fesetenv around
28684         conversion to double instead of special-casing overflow and
28685         underflow.
28686         * math/libm-test.inc (fmod_test_data): Add more tests.
28687         (remainder_test_data): Likewise.
28688         (sqrt_test_data): Likewise.
28689
28690 2015-06-23  Torvald Riegel  <triegel@redhat.com>
28691
28692         [BZ #17403]
28693         * sysdeps/x86_64/bits/atomic.h: (atomic_full_barrier,
28694         atomic_read_barrier, atomic_write_barrier): Define.
28695         * sysdeps/i386/i486/bits/atomic.h (atomic_full_barrier,
28696         atomic_read_barrier, atomic_write_barrier): Define.
28697
28698 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
28699
28700         * math/Makefile [$(PERL) != no]
28701         ($(addprefix $(objpfx), $(addsuffix .o, $(libm-vec-tests)))): Move
28702         dependency on libm-test.stmp below the inclusion of Rules.
28703
28704 2015-06-23  Andrew Senkevich  <andrew.senkevich@intel.com>
28705
28706         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
28707         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: Renamed variable
28708         and included header.
28709         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: Likewise.
28710         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Likewise.
28711         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: Likewise.
28712         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: Likewise.
28713         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: Likewise.
28714         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Likewise.
28715         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
28716         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
28717         * sysdeps/x86_64/fpu/svml_d_trig_data.S: New file.
28718         * sysdeps/x86_64/fpu/svml_d_trig_data.h: Likewise.
28719         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: Removed unneeded include.
28720         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: Likewise.
28721         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: Likewise.
28722         * sysdeps/x86_64/fpu/svml_d_cos_data.S: Removed file.
28723         * sysdeps/x86_64/fpu/svml_d_cos_data.h: Likewise.
28724         * sysdeps/x86_64/fpu/svml_d_sin_data.S: Likewise.
28725         * sysdeps/x86_64/fpu/svml_d_sin_data.h: Likewise.
28726         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: Likewise.
28727         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: Likewise.
28728
28729 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
28730
28731         [BZ #18371]
28732         * math/s_csqrt.c (__csqrt): Avoid multiplication by 0.5 where
28733         intermediate but not final result might underflow.
28734         * math/s_csqrtf.c (__csqrtf): Likewise.
28735         * math/s_csqrtl.c (__csqrtl): Likewise.
28736         * math/auto-libm-test-in: Add more tests of csqrt.
28737         * math/auto-libm-test-out: Regenerated.
28738         * sysdeps/i386/fpu/libm-test-ulps: Update.
28739
28740         [BZ #18219]
28741         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Reduce
28742         threshold on absolute value of exponent for which scaling is used.
28743         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
28744         * math/auto-libm-test-in: Add more tests of exp2.
28745         * math/auto-libm-test-out: Regenerated.
28746
28747 2015-06-23  Dmitry V. Levin  <ldv@altlinux.org>
28748
28749         [BZ #17977]
28750         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix unlocking
28751         when initializing interface list, based on the bug analysis
28752         and the patch proposed by Eric Newton.
28753         * resolv/tst-res_hconf_reorder.c: New test.
28754         * resolv/Makefile [$(have-thread-library) = yes] (tests): Add
28755         tst-res_hconf_reorder.
28756         ($(objpfx)tst-res_hconf_reorder): Depend on $(libdl)
28757         and $(shared-thread-library).
28758         (tst-res_hconf_reorder-ENV): New variable.
28759
28760         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix typo
28761         in comment.
28762
28763 2015-06-22  Joseph Myers  <joseph@codesourcery.com>
28764
28765         [BZ #16353]
28766         * sysdeps/i386/fpu/s_expm1.S (dbl_min): New object.
28767         (__expm1): Force underflow exception for arguments with small
28768         absolute value.
28769         * sysdeps/i386/fpu/s_expm1f.S (flt_min): New object.
28770         (__expm1f): Force underflow exception for arguments with small
28771         absolute value.
28772         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <float.h>.
28773         (__expm1): Force underflow exception for arguments with small
28774         absolute value.
28775         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <float.h>.
28776         (__expm1f): Force underflow exception for arguments with small
28777         absolute value.
28778         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
28779         Check for small arguments before calling __expm1.
28780         * math/auto-libm-test-in: Do not mark underflow exceptions as
28781         possibly missing for bug 16353.
28782         * math/auto-libm-test-out: Regenerated.
28783
28784 2015-06-22  Andreas Schwab  <schwab@suse.de>
28785
28786         [BZ #18513]
28787         * resolv/nss_dns/dns-host.c (getanswer_r): Record TTL also for
28788         PTR queries.
28789
28790 2015-06-22  Leonhard Holz  <leonhard.holz@web.de>
28791
28792         * string/strcoll_l.c (STRCOLL): Remove unnecessary memset.
28793
28794         * string/strcoll_l.c: Remove unused struct element idxnow.
28795
28796 2015-06-21  Joseph Myers  <joseph@codesourcery.com>
28797
28798         [BZ #18569]
28799         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Force
28800         underflow and return argument in case of subnormal argument.
28801         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
28802         Likewise.
28803         * math/auto-libm-test-in: Add more tests of expm1.
28804         * math/auto-libm-test-out: Regenerated.
28805
28806         [BZ #16361]
28807         * sysdeps/i386/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
28808         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
28809         tiny results.
28810         * sysdeps/x86_64/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
28811         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
28812         tiny results.
28813         * math/auto-libm-test-in: Add more tests of exp and exp10.  Do not
28814         mark underflow exceptions as possibly missing for bug 16361.
28815         * math/auto-libm-test-out: Regenerated.
28816
28817 2015-06-19  Joseph Myers  <joseph@codesourcery.com>
28818
28819         * conform/data/sys/select.h-data [XOPEN2K8] (pselect): Expect.
28820         * conform/Makefile (test-xfail-XOPEN2K8/sys/select.h/conform):
28821         Remove variable.
28822         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
28823         (test-xfail-XOPEN2K8/utmpx.h/conform).
28824
28825         * conform/conformtest.pl ($xerrors): New variable.
28826         (note_error): New function.
28827         (compiletest): New argument $xfail.  Use not_error.
28828         (runtest): Likewise.
28829         (top level): Handle xfail- lines.  Update calls to compiletest and
28830         runtest.  Handle xfail- and optional- in headers listed with
28831         allow-header.
28832         * conform/data/fcntl.h-data (O_TTY_INIT): Use xfail-.
28833         (O_EXEC): Likewise.
28834         (O_SEARCH): Likewise.
28835         * conform/data/stropts.h-data (ioctl): Likewise.
28836         * conform/data/sys/ipc.h-data (ipc_perm.mode): Likewise.
28837         * conform/data/sys/sem.h-data (semid_ds.sem_nsems): Likewise.
28838         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Likewise.
28839         (msghdr.msg_controllen): Likewise.
28840         (cmsghdr.cmsg_len): Likewise.
28841         * conform/data/utmpx.h-data (utmpx.ut_tv): Likewise.
28842         * conform/Makefile (test-xfail-XPG3/sys/ipc.h/conform): Remove
28843         variable.
28844         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
28845         (test-xfail-XPG4/stropts.h/conform): Likewise.
28846         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
28847         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
28848         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
28849         (test-xfail-UNIX98/stropts.h/conform): Likewise.
28850         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
28851         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
28852         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
28853         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
28854         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
28855         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
28856         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
28857         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
28858         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
28859         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
28860         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
28861         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
28862         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
28863         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
28864         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
28865
28866 2015-06-19  Andrew Senkevich  <andrew.senkevich@intel.com>
28867
28868         * sysdeps/ieee754/ldbl-opt/s_sin.c (__DECL_SIMD_sincos_disable,
28869         __DECL_SIMD_sincos_disablef, __DECL_SIMD_sincos_disablel): Added empty
28870         definitions for proper unfolding of __MATHDECL_VEC.
28871
28872 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
28873
28874         * benchtests/bench-strcoll.c:
28875         Include string.h.
28876         (main): Remove unused variable res.
28877
28878 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
28879
28880         * timezone/Makefile (%/UTC %/Universal):
28881         Generate test-result files for UTC and Universal.
28882
28883 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
28884
28885         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
28886
28887 2015-06-18  Joseph Myers  <joseph@codesourcery.com>
28888
28889         [BZ #16350]
28890         * sysdeps/i386/fpu/s_asinh.S (__asinh): Force underflow exception
28891         for arguments with small absolute value.
28892         * sysdeps/i386/fpu/s_asinhf.S (__asinhf): Likewise.
28893         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Likewise.
28894         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <float.h>.
28895         (__asinh): Force underflow exception for arguments with small
28896         absolute value.
28897         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <float.h>.
28898         (__asinhf): Force underflow exception for arguments with small
28899         absolute value.
28900         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include <float.h>.
28901         (__asinhl): Force underflow exception for arguments with small
28902         absolute value.
28903         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Include <float.h>.
28904         (__asinhl): Force underflow exception for arguments with small
28905         absolute value.
28906         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include <float.h>.
28907         (__asinhl): Force underflow exception for arguments with small
28908         absolute value.
28909         * math/auto-libm-test-in: Do not mark underflow exceptions as
28910         possibly missing for bug 16350.
28911         * math/auto-libm-test-out: Regenerated.
28912
28913         * include/bits/ipc.h: Remove file.
28914         * conform/Makefile (test-xfail-XPG3/sys/msg.h/conform): Remove
28915         variable.
28916         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
28917         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
28918         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
28919         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
28920         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
28921         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
28922         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
28923         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
28924         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
28925
28926         * math/auto-libm-test-in: Remove spurious underflow allowance for
28927         tests of cexp.
28928         * math/auto-libm-test-out: Regenerated.
28929
28930         [BZ #18558]
28931         * sysdeps/unix/sysv/linux/bits/in.h (MCAST_JOIN_GROUP): Remove
28932         unconditional definition.
28933         (MCAST_BLOCK_SOURCE): Likewise.
28934         (MCAST_UNBLOCK_SOURCE): Likewise.
28935         (MCAST_LEAVE_GROUP): Likewise.
28936         (MCAST_JOIN_SOURCE_GROUP): Likewise.
28937         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
28938         (MCAST_MSFILTER): Likewise.
28939         * conform/Makefile (test-xfail-XOPEN2K/arpa/inet.h/conform):
28940         Remove variable.
28941         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
28942         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
28943         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
28944         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
28945         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
28946
28947 2015-06-18  Andrew Senkevich  <andrew.senkevich@intel.com>
28948
28949         * NEWS: Mention addition of x86_64 vector sincosf.
28950         * math/test-float-vlen16.h: Added wrapper for sincosf tests.
28951         * math/test-float-vlen4.h: Likewise.
28952         * math/test-float-vlen8.h: Likewise.
28953         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
28954         * sysdeps/x86/fpu/bits/math-vector.h: Added sincosf SIMD declaration.
28955         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
28956         * sysdeps/x86_64/fpu/Versions: New versions added.
28957         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
28958         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
28959         Added build of SSE, AVX2 and AVX512 IFUNC versions.
28960         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S
28961         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
28962         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S
28963         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
28964         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S
28965         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
28966         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S
28967         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S
28968         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S
28969         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S
28970         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: New file.
28971         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: New file.
28972         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 3 argument wrappers.
28973         * sysdeps/x86_64/fpu/test-float-vlen16.c: : Vector sincosf tests.
28974         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
28975         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
28976         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
28977         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
28978         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
28979         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
28980         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
28981
28982         * NEWS: Mention addition of x86_64 vector sincos.
28983         * bits/libm-simd-decl-stubs.h: Added stubs for sincos.
28984         * math/math.h (__MATHDECL_VEC): New macro.
28985         * math/bits/mathcalls.h: Added sincos declaration with __MATHDECL_VEC.
28986         * math/gen-libm-have-vector-test.sh: Added generation of sincos wrapper
28987         declaration under condition.
28988         * math/test-vec-loop.h (TEST_VEC_LOOP): Refactored.
28989         * math/test-double-vlen2.h: Added wrapper for sincos tests, reflected
28990         TEST_VEC_LOOP change.
28991         * math/test-double-vlen4.h: Likewise.
28992         * math/test-double-vlen8.h: Likewise.
28993         * math/test-float-vlen16.h: Reflected TEST_VEC_LOOP change.
28994         * math/test-float-vlen4.h: Likewise.
28995         * math/test-float-vlen8.h: Likewise.
28996         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
28997         * sysdeps/x86/fpu/bits/math-vector.h: Added sincos SIMD declaration.
28998         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
28999         * sysdeps/x86_64/fpu/Versions: New versions added.
29000         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
29001         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
29002         Added build of SSE, AVX2 and AVX512 IFUNC versions.
29003         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: New file.
29004         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: New file.
29005         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: New file.
29006         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: New file.
29007         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: New file.
29008         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: New file.
29009         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: New file.
29010         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: New file.
29011         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: New file.
29012         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: New file.
29013         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: New file.
29014         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: New file.
29015         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added wrappers for sincos.
29016         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Vector sincos tests.
29017         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
29018         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
29019         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
29020         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
29021         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
29022         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
29023         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
29024
29025         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
29026         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
29027         redirections for powf.
29028         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
29029         * sysdeps/x86_64/fpu/Versions: New versions added.
29030         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
29031         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
29032         Added build of SSE, AVX2 and AVX512 IFUNC versions.
29033         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 2 argument wrappers.
29034         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: New file.
29035         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S: New file.
29036         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: New file.
29037         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S: New file.
29038         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: New file.
29039         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S: New file.
29040         * sysdeps/x86_64/fpu/svml_s_powf16_core.S: New file.
29041         * sysdeps/x86_64/fpu/svml_s_powf4_core.S: New file.
29042         * sysdeps/x86_64/fpu/svml_s_powf8_core.S: New file.
29043         * sysdeps/x86_64/fpu/svml_s_powf8_core_avx.S: New file.
29044         * sysdeps/x86_64/fpu/svml_s_powf_data.S: New file.
29045         * sysdeps/x86_64/fpu/svml_s_powf_data.h: New file.
29046         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector powf tests.
29047         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
29048         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
29049         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
29050         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
29051         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
29052         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
29053         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
29054         * math/test-float-vlen16.h: Fixed 2 argument macro.
29055         * math/test-float-vlen4.h: Likewise.
29056         * math/test-float-vlen8.h: Likewise.
29057         * NEWS: Mention addition of x86_64 vector powf.
29058
29059 2015-06-17  Joseph Myers  <joseph@codesourcery.com>
29060
29061         * math/s_ctanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
29062         and redefine.
29063         * math/s_ctanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
29064         and redefine.
29065         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c: Remove file.
29066         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
29067         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
29068
29069         [BZ #18553]
29070         * resource/getpriority.c (getpriority): Rename to __getpriority
29071         and define as weak alias of __getpriority.
29072         * resource/setpriority.c (setpriority): Rename to __setpriority
29073         and define as weak alias of __setpriority.
29074         * sysdeps/mach/hurd/getpriority.c (getpriority): Rename to
29075         __getpriority and define as weak alias of __getpriority.
29076         * sysdeps/mach/hurd/setpriority.c (setpriority): Rename to
29077         __setpriority and define as weak alias of __setpriority.
29078         * sysdeps/unix/syscalls.list (getpriority): Use __getpriority as
29079         strong name.
29080         (setpriority): Use __setpriority as strong name.
29081         * sysdeps/unix/sysv/linux/getpriority.c (getpriority): Rename to
29082         __getpriority and define as weak alias of __getpriority.
29083         * include/sys/resource.h (__getpriority): Declare.  Use
29084         libc_hidden_proto.
29085         (__setpriority): Likewise.
29086         (getpriority): Don't use libc_hidden_proto.
29087         (setpriority): Likewise.
29088         * sysdeps/posix/nice.c (nice): Call __getpriority instead of
29089         getpriority.  Call __setpriority instead of setpriority.
29090         * conform/Makefile (test-xfail-XPG3/unistd.h/linknamespace):
29091         Remove variable.
29092
29093         [BZ #18547]
29094         * misc/getttyent.c (getttynam): Rename to __getttynam and define
29095         as weak alias of __getttynam.  Use prototype function definition.
29096         Call __setttyent, __getttyent and __endttyent instead of
29097         setttyent, getttyent and endttyent.
29098         (getttyent): Rename to __getttyent and define as weak alias of
29099         __getttyent.  Call __setttyent instead of setttyent.  Call
29100         __fgets_unlocked instead of fgets_unlocked.
29101         (setttyent): Rename to __setttyent and define as weak alias of
29102         __setttyent.
29103         (endttyent): Rename to __endttyent and define as weak alias of
29104         __endttyent.
29105         * include/ttyent.h (__getttyent): Declare.  Use libc_hidden_proto.
29106         (__setttyent): Likewise.
29107         (__endttyent): Likewise.
29108         (getttyent): Don't use libc_hidden_proto.
29109         (setttyent): Likewise.
29110         (endttyent): Likewise.
29111         * misc/ttyslot.c (ttyslot): Call __setttyent, __getttyent and
29112         __endttyent instead of setttyent, getttyent and endttyent.
29113         * conform/Makefile (test-xfail-XPG4/unistd.h/linknamespace):
29114         Remove variable.
29115
29116         [BZ #18546]
29117         * socket/recv.c (__recv): Use libc_hidden_def.
29118         * socket/socket.c (__socket): Likewise.
29119         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
29120         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
29121         * sysdeps/unix/sysv/linux/generic/recv.c (__recv): Likewise.
29122         * sysdeps/unix/sysv/linux/recv.c (__recv): Use libc_hidden_weak.
29123         * sysdeps/unix/sysv/linux/socket.c (__socket): Use
29124         libc_hidden_def.
29125         * sysdeps/unix/sysv/linux/x86_64/recv.c (__recv): Use
29126         libc_hidden_weak.
29127         * include/sys/socket.h (__socket): Do not use attribute_hidden.
29128         Use libc_hidden_proto.
29129         (__recv): Likewise.
29130         * socket/Versions (libc): Export __recv and __socket at version
29131         GLIBC_PRIVATE.
29132         * sysdeps/unix/sysv/linux/mq_notify.c (helper_thread): Call __recv
29133         instead of recv.
29134         (init_mq_netlink): Call __socket instead of socket.
29135         * conform/Makefile (test-xfail-POSIX/mqueue.h/linknamespace):
29136         Remove variable.
29137
29138         [BZ #18545]
29139         * rt/mq_timedreceive.c (mq_timedreceive): Rename to
29140         __mq_timedreceive and define as alias of __mq_timedreceive.  Use
29141         hidden_weak.
29142         * rt/mq_timedsend.c (mq_timedsend): Rename to __mq_timedsend and
29143         define as alias of __mq_timedsend.  Use hidden_weak.
29144         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Use
29145         __mq_timedsend as strong name.
29146         (mq_timedreceive): Use __mq_timedreceive as strong name.
29147         * include/mqueue.h (__mq_timedsend): Declare.  Use hidden_proto.
29148         (__mq_timedreceive): Likewise.
29149         * sysdeps/unix/sysv/linux/mq_receive.c (mq_receive): Call
29150         __mq_timedreceive instead of mq_timedreceive.
29151         * sysdeps/unix/sysv/linux/mq_send.c (mq_send): Call __mq_timedsend
29152         instead of mq_timedsend.
29153         * conform/Makefile (test-xfail-UNIX98/mqueue.h/linknamespace):
29154         Remove variable.
29155
29156         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use
29157         hidden_def and hidden_weak instead of libc_hidden_def and
29158         libc_hidden_weak.
29159         (top level): Refer to hidden_def in comment.
29160         * sysdeps/unix/syscall-template.S (syscall_hidden_def): New
29161         macro.  Use it instead of libc_hidden_def.
29162         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Do not
29163         specify __GI_* name explicitly.
29164         (mq_timedreceive): Likewise.
29165         (mq_setattr): Likewise.
29166
29167         [BZ #18544]
29168         * nptl/pthread_barrier_init.c (pthread_barrier_init): Rename to
29169         __pthread_barrier_init and define as weak alias of
29170         __pthread_barrier_init.
29171         * sysdeps/sparc/nptl/pthread_barrier_init.c
29172         (pthread_barrier_init): Likewise.
29173         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Rename to
29174         __pthread_barrier_wait and define as weak alias of
29175         __pthread_barrier_wait.
29176         * sysdeps/sparc/nptl/pthread_barrier_wait.c
29177         (pthread_barrier_wait): Likewise.
29178         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
29179         (pthread_barrier_wait): Likewise.
29180         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
29181         (pthread_barrier_wait): Likewise.
29182         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S
29183         (pthread_barrier_wait): Likewise.
29184         * nptl/Versions (libpthread): Export __pthread_barrier_init and
29185         __pthread_barrier_wait at version GLIBC_PRIVATE.
29186         * include/pthread.h (__pthread_barrier_init): Declare.
29187         (__pthread_barrier_wait): Likewise.
29188         * sysdeps/unix/sysv/linux/mq_notify.c (notification_function):
29189         Call __pthread_barrier_wait instead of pthread_barrier_wait.
29190         (helper_thread): Likewise.
29191         (init_mq_netlink): Call __pthread_barrier_init instead of
29192         pthread_barrier_init.
29193
29194         [BZ #18542]
29195         * libio/iovswscanf.c (__vswscanf): Use libc_hidden_def.
29196         (vswscanf): Use ldbl_weak_alias instead of ldbl_strong_alias
29197         * include/wchar.h (__vswscanf): Declare.  Use libc_hidden_proto.
29198         * libio/swscanf.c (__swscanf): Call __vswscanf instead of
29199         vswscanf.
29200         * conform/Makefile (test-xfail-UNIX98/wchar.h/linknamespace):
29201         Remove variable.
29202
29203         [BZ #18540]
29204         * libio/iofflush.c [!_IO_MTSAFE_IO] (__fflush_unlocked): Define as
29205         strong alias of _IO_fflush.  Use libc_hidden_def.
29206         * libio/iofflush_u.c (fflush_unlocked): Rename to
29207         __fflush_unlocked and define as weak alias of __fflush_unlocked.
29208         Use libc_hidden_weak.
29209         * include/stdio.h (__fflush_unlocked): Declare.  Use
29210         libc_hidden_proto.
29211         * misc/getpass.c (getpass): Call __fflush_unlocked instead of
29212         fflush_unlocked.
29213         * conform/Makefile (test-xfail-UNIX98/unistd.h/linknamespace):
29214         Remove variable.
29215
29216         [BZ #18539]
29217         * stdlib/fmtmsg.c (addseverity): Rename to __addseverity and
29218         define as weak alias of __addseverity.
29219         * conform/Makefile (test-xfail-XPG4/fmtmsg.h/linknamespace):
29220         Remove variable.
29221         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
29222         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
29223         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
29224
29225         [BZ #18536]
29226         * misc/tsearch.c (__tsearch): Use libc_hidden_def.
29227         (__tfind): Likewise.
29228         (__tdelete): Likewise.
29229         (__twalk): Likewise.
29230         * misc/Versions (libc): Add __tdelete, __tfind, __tsearch and
29231         __twalk to GLIBC_PRIVATE.
29232         * include/search.h (__tsearch): Use libc_hidden_proto.
29233         (__tfind): Likewise.
29234         (__tdelete): Likewise.
29235         (__twalk): Likewise.
29236         * nptl/sem_close.c (sem_close): Call __twalk instead of twalk.
29237         Call __tdelete instead of tdelete.
29238         * nptl/sem_open.c (check_add_mapping): Call __tfind instead of
29239         tfind.  Call __tsearch instead of tsearch.
29240         * sysdeps/sparc/sparc32/sem_open.c (check_add_mapping): Likewise.
29241         * conform/Makefile (test-xfail-POSIX/semaphore.h/linknamespace):
29242         Remove variable.
29243         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
29244
29245         [BZ #18534]
29246         * stdio-common/dprintf.c (__dprintf): Use libc_hidden_def.
29247         (dprintf): Define as a weak alias of __dprintf, not a strong
29248         alias.
29249         * include/stdio.h (__dprintf): Declare.  Use libc_hidden_proto.
29250         * misc/syslog.c (__vsyslog_chk): Call __dprintf instead of
29251         dprintf.
29252         * conform/Makefile (test-xfail-XPG4/syslog.h/linknamespace):
29253         Remove variable.
29254         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
29255         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
29256
29257         [BZ #18533]
29258         * misc/syslog.c (vsyslog): Define as a weak alias of __vsyslog,
29259         not a strong alias.
29260         * conform/Makefile (test-xfail-XOPEN2K8/syslog.h/linknamespace):
29261         Remove variable.
29262
29263         [BZ #18532]
29264         * inet/in6_addr.c (in6addr_any): Rename to __in6addr_any and
29265         define as weak alias of __in6addr_any.  Use libc_hidden_data_weak.
29266         (in6addr_loopback): Rename to __in6addr_loopback and define as
29267         weak alias of __in6addr_loopback.  Use libc_hidden_data_weak.
29268         * include/netinet/in.h (__in6addr_loopback): Declare.  Use
29269         libc_hidden_proto.
29270         (__in6addr_any): Likewise.
29271         * inet/gethstbyad_r.c (PREPROCESS): Use __in6addr_any instead of
29272         in6addr_any.
29273         * conform/Makefile (test-xfail-XPG4/netdb.h/linknamespace): Remove
29274         variable.
29275         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
29276
29277 2015-06-17  Andrew Senkevich  <andrew.senkevich@intel.com>
29278
29279         * bits/libm-simd-decl-stubs.h: Added stubs for pow.
29280         * math/bits/mathcalls.h: Added pow declaration with __MATHCALL_VEC.
29281         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
29282         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
29283         redirections for pow.
29284         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
29285         * sysdeps/x86_64/fpu/Versions: New versions added.
29286         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
29287         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
29288         build of SSE, AVX2 and AVX512 IFUNC versions.
29289         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added 2 argument wrappers.
29290         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: New file.
29291         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S: New file.
29292         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: New file.
29293         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S: New file.
29294         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: New file.
29295         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S: New file.
29296         * sysdeps/x86_64/fpu/svml_d_pow2_core.S: New file.
29297         * sysdeps/x86_64/fpu/svml_d_pow4_core.S: New file.
29298         * sysdeps/x86_64/fpu/svml_d_pow4_core_avx.S: New file.
29299         * sysdeps/x86_64/fpu/svml_d_pow8_core.S: New file.
29300         * sysdeps/x86_64/fpu/svml_d_pow_data.S: New file.
29301         * sysdeps/x86_64/fpu/svml_d_pow_data.h: New file.
29302         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector pow test.
29303         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
29304         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
29305         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
29306         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
29307         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
29308         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
29309         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
29310         * NEWS: Mention addition of x86_64 vector pow.
29311
29312         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
29313         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
29314         redirections for expf.
29315         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
29316         * sysdeps/x86_64/fpu/Versions: New versions added.
29317         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
29318         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
29319         build of SSE, AVX2 and AVX512 IFUNC versions.
29320         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: New file.
29321         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: New file.
29322         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: New file.
29323         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S: New file.
29324         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: New file.
29325         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S: New file.
29326         * sysdeps/x86_64/fpu/svml_s_expf16_core.S: New file.
29327         * sysdeps/x86_64/fpu/svml_s_expf4_core.S: New file.
29328         * sysdeps/x86_64/fpu/svml_s_expf8_core.S: New file.
29329         * sysdeps/x86_64/fpu/svml_s_expf8_core_avx.S: New file.
29330         * sysdeps/x86_64/fpu/svml_s_expf_data.S: New file.
29331         * sysdeps/x86_64/fpu/svml_s_expf_data.h: New file.
29332         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector expf tests.
29333         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
29334         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
29335         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
29336         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
29337         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
29338         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
29339         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
29340         * NEWS: Mention addition of x86_64 vector expf.
29341
29342         * bits/libm-simd-decl-stubs.h: Added stubs for exp.
29343         * math/bits/mathcalls.h: Added exp declaration with __MATHCALL_VEC.
29344         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
29345         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
29346         redirections for exp.
29347         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
29348         * sysdeps/x86_64/fpu/Versions: New versions added.
29349         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
29350         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
29351         build of SSE, AVX2 and AVX512 IFUNC versions.
29352         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: New file.
29353         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S: New file.
29354         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: New file.
29355         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S: New file.
29356         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: New file.
29357         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S: New file.
29358         * sysdeps/x86_64/fpu/svml_d_exp2_core.S: New file.
29359         * sysdeps/x86_64/fpu/svml_d_exp4_core.S: New file.
29360         * sysdeps/x86_64/fpu/svml_d_exp4_core_avx.S: New file.
29361         * sysdeps/x86_64/fpu/svml_d_exp8_core.S: New file.
29362         * sysdeps/x86_64/fpu/svml_d_exp_data.S: New file.
29363         * sysdeps/x86_64/fpu/svml_d_exp_data.h: New file.
29364         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector exp test.
29365         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
29366         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
29367         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
29368         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
29369         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
29370         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
29371         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
29372         * NEWS: Mention addition of x86_64 vector exp.
29373
29374         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
29375         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
29376         redirections for logf.
29377         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
29378         * sysdeps/x86_64/fpu/Versions: New versions added.
29379         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
29380         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
29381         build of SSE, AVX2 and AVX512 IFUNC versions.
29382         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: New file.
29383         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S: New file.
29384         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: New file.
29385         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S: New file.
29386         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: New file.
29387         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S: New file.
29388         * sysdeps/x86_64/fpu/svml_s_logf16_core.S: New file.
29389         * sysdeps/x86_64/fpu/svml_s_logf4_core.S: New file.
29390         * sysdeps/x86_64/fpu/svml_s_logf8_core.S: New file.
29391         * sysdeps/x86_64/fpu/svml_s_logf8_core_avx.S: New file.
29392         * sysdeps/x86_64/fpu/svml_s_logf_data.S: New file.
29393         * sysdeps/x86_64/fpu/svml_s_logf_data.h: New file.
29394         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector logf tests.
29395         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
29396         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
29397         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
29398         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
29399         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
29400         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
29401         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
29402         * NEWS: Mention addition of x86_64 vector logf.
29403
29404         * bits/libm-simd-decl-stubs.h: Added stubs for log.
29405         * math/bits/mathcalls.h: Added log declaration with __MATHCALL_VEC.
29406         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
29407         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
29408         redirections for log.
29409         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
29410         * sysdeps/x86_64/fpu/Versions: New versions added.
29411         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
29412         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
29413         build of SSE, AVX2 and AVX512 IFUNC versions.
29414         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: New file.
29415         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S: New file.
29416         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: New file.
29417         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S: New file.
29418         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: New file.
29419         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S: New file.
29420         * sysdeps/x86_64/fpu/svml_d_log2_core.S: New file.
29421         * sysdeps/x86_64/fpu/svml_d_log4_core.S: New file.
29422         * sysdeps/x86_64/fpu/svml_d_log4_core_avx.S: New file.
29423         * sysdeps/x86_64/fpu/svml_d_log8_core.S: New file.
29424         * sysdeps/x86_64/fpu/svml_d_log_data.S: New file.
29425         * sysdeps/x86_64/fpu/svml_d_log_data.h: New file.
29426         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector log
29427         test.
29428         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
29429         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
29430         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
29431         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
29432         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
29433         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
29434         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
29435         * NEWS: Mention addition of x86_64 vector log.
29436
29437 2015-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29438
29439         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Fix
29440         cfi_adjust_cfa_offset argument.
29441         (_dl_tlsdesc_undefweak, _dl_tlsdesc_dynamic): Likewise.
29442         (_dl_tlsdesc_resolve_rela, _dl_tlsdesc_resolve_hold): Likewise.
29443
29444         [BZ #18034]
29445         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Declare.
29446         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Define.
29447         (_dl_tlsdesc_undefweak): Guarantee TLSDESC entry and argument load-load
29448         ordering using ldar.
29449         (_dl_tlsdesc_dynamic): Likewise.
29450         (_dl_tlsdesc_return_lazy): Likewise.
29451         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Use
29452         relaxed atomics instead of volatile and synchronize with release store.
29453         (_dl_tlsdesc_resolve_hold_fixup): Use relaxed atomics instead of
29454         volatile.
29455         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
29456
29457 2015-06-15  Andrew Senkevich  <andrew.senkevich@intel.com>
29458
29459         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
29460         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for sinf.
29461         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
29462         * sysdeps/x86_64/fpu/Versions: New versions added.
29463         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
29464         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
29465         build of SSE, AVX2 and AVX512 IFUNC versions.
29466         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: New file.
29467         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: New file.
29468         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: New file.
29469         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: New file.
29470         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: New file.
29471         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: New file.
29472         * sysdeps/x86_64/fpu/svml_s_sinf16_core.S: New file.
29473         * sysdeps/x86_64/fpu/svml_s_sinf4_core.S: New file.
29474         * sysdeps/x86_64/fpu/svml_s_sinf8_core.S: New file.
29475         * sysdeps/x86_64/fpu/svml_s_sinf8_core_avx.S: New file.
29476         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: New file.
29477         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: New file.
29478         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector sinf tests.
29479         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
29480         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
29481         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
29482         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
29483         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
29484         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
29485         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
29486         * NEWS: Mention addition of x86_64 vector sinf.
29487
29488 2015-06-14  Joseph Myers  <joseph@codesourcery.com>
29489
29490         * conform/list-header-symbols.pl (%extra_syms): Add in6addr_any
29491         and in6addr_loopback for XOPEN2K, XOPEN2K8 and POSIX2008.
29492         * conform/Makefile (test-xfail-XOPEN2K/netdb.h/linknamespace):
29493         Remove variable.
29494         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
29495         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
29496
29497 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
29498
29499         [BZ #18530]
29500         * libio/iofputs.c [!_IO_MTSAFE_IO] (__fputs_unlocked): Define as
29501         strong alias of _IO_fputs.  Use libc_hidden_def.
29502         * libio/iofputs_u.c (fputs_unlocked): Rename to __fputs_unlocked
29503         and define as weak alias of __fputs_unlocked.  Use
29504         libc_hidden_weak.
29505         * include/stdio.h (__fputs_unlocked): Declare.  Use
29506         libc_hidden_proto.
29507         * misc/syslog.c (__vsyslog_chk): Call __fputs_unlocked instead of
29508         fputs_unlocked.
29509
29510         [BZ #18529]
29511         * resolv/netdb.h [__USE_POSIX]: Change condition to
29512         [__USE_XOPEN2K].
29513         * conform/data/netdb.h-data [XPG4 || UNIX98] (struct addrinfo): Do
29514         not expect.
29515         [XPG4 || UNIX98] (AI_PASSIVE): Likewise.
29516         [XPG4 || UNIX98] (AI_CANONNAME): Likewise.
29517         [XPG4 || UNIX98] (AI_NUMERICHOST): Likewise.
29518         [XPG4 || UNIX98] (AI_V4MAPPED): Likewise.
29519         [XPG4 || UNIX98] (AI_ALL): Likewise.
29520         [XPG4 || UNIX98] (AI_ADDRCONFIG): Likewise.
29521         [XPG4 || UNIX98] (AI_NUMERICSERV): Likewise.
29522         [XPG4 || UNIX98] (NI_NOFQDN): Likewise.
29523         [XPG4 || UNIX98] (NI_NUMERICHOST): Likewise.
29524         [XPG4 || UNIX98] (NI_NAMEREQD): Likewise.
29525         [XPG4 || UNIX98] (NI_NUMERICSERV): Likewise.
29526         [XPG4 || UNIX98] (NI_DGRAM): Likewise.
29527         [XPG4 || UNIX98] (EAI_AGAIN): Likewise.
29528         [XPG4 || UNIX98] (EAI_BADFLAGS): Likewise.
29529         [XPG4 || UNIX98] (EAI_FAIL): Likewise.
29530         [XPG4 || UNIX98] (EAI_FAMILY): Likewise.
29531         [XPG4 || UNIX98] (EAI_MEMORY): Likewise.
29532         [XPG4 || UNIX98] (EAI_NONAME): Likewise.
29533         [XPG4 || UNIX98] (EAI_SERVICE): Likewise.
29534         [XPG4 || UNIX98] (EAI_SOCKTYPE): Likewise.
29535         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
29536         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
29537         [XPG4 || UNIX98] (freeaddrinfo): Likewise.
29538         [XPG4 || UNIX98] (gai_strerror): Likewise.
29539         [XPG4 || UNIX98] (getaddrinfo): Likewise.
29540         [XPG4 || UNIX98] (getnameinfo): Likewise.
29541
29542         [BZ #18528]
29543         * grp/grp.h (endgrent): Condition on [__USE_MISC ||
29544         __USE_XOPEN_EXTENDED], not [__USE_XOPEN_EXTENDED ||
29545         __USE_XOPEN2K8].
29546         (getgrent): Likewise.
29547         * conform/data/grp.h-data [XPG3 || POSIX2008] (getgrent): Do not
29548         expect.
29549         [XPG3 || POSIX2008] (endgrent): Likewise.
29550         [XPG3] (setgrent): Likewise.
29551         * conform/Makefile (test-xfail-XPG3/grp.h/conform): Remove
29552         variable.
29553         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
29554
29555         [BZ #18527]
29556         * login/getlogin_r.c (getlogin_r): Rename to __getlogin_r and
29557         define as weak alias of __getlogin_r.  Use libc_hidden_weak.
29558         * sysdeps/mach/hurd/getlogin_r.c (getlogin_r): Likewise.
29559         * sysdeps/unix/getlogin_r.c (getlogin_r): Likewise.
29560         * sysdeps/unix/sysv/linux/getlogin_r.c (getlogin_r): Likewise.
29561         * include/unistd.h (__getlogin_r): Declare.  Use
29562         libc_hidden_proto.
29563         * posix/glob.c (glob): Call __getlogin_r instead of getlogin_r.
29564         * conform/Makefile (test-xfail-XPG3/glob.h/linknamespace): Remove
29565         variable.
29566         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
29567         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
29568         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
29569
29570 2015-06-12  Martin Sebor  <msebor@redhat.com>
29571
29572         [BZ #18512]
29573         * Makerules (check-install-supported): New target.
29574         (install): Add check-install-supported as a dependency.
29575         * manual/install.texi (Installing the C Library): Document
29576         that overriding prefix and exec_prefix is not supported.
29577         Mention DESTDIR.
29578         * INSTALL: Regenerate from the above.
29579
29580 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
29581
29582         [BZ #18519]
29583         * posix/Versions (libc): Export __libc_pread at version
29584         GLIBC_PRIVATE.
29585         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Call __libc_pread
29586         instead of pread.
29587         * conform/Makefile (test-xfail-POSIX/aio.h/linknamespace): Remove
29588         variable.
29589
29590         [BZ #18522]
29591         * misc/efgcvt_r.c
29592         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0) && !LONG_DOUBLE_CVT]
29593         (cvt_symbol): Use weak_alias instead of strong_alias.
29594         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0)] (cvt_symbol): Likewise.
29595         * conform/Makefile (test-xfail-XPG4/stdlib.h/linknamespace):
29596         Remove variable.
29597         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
29598         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
29599
29600         [BZ #18520]
29601         * inet/herrno.c (h_errno): Rename to __h_errno.
29602         (__libc_h_errno): Define as alias of __h_errno not h_errno.
29603         * include/netdb.h [IS_IN_LIB && !IS_IN (libc)] (h_errno): Define
29604         to __h_errno instead of h_errno.
29605         * nptl/herrno.c (h_errno): Rename to __h_errno.
29606         (__h_errno_location): Refer to __h_errno not h_errno.
29607         * resolv/Versions (h_errno): Rename to __h_errno.
29608         * conform/Makefile (test-xfail-XOPEN2K8/grp.h/linknamespace):
29609         Remove variable.
29610         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
29611
29612 2015-06-11  Andrew Senkevich  <andrew.senkevich@intel.com>
29613
29614         * configure.ac: More strict check for AVX512 assembler support.
29615         * configure: Regenerated.
29616
29617         * bits/libm-simd-decl-stubs.h: Added stubs for sin.
29618         * math/bits/mathcalls.h: Added sin declaration with __MATHCALL_VEC.
29619         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
29620         * sysdeps/x86/fpu/bits/math-vector.h: SIMD declaration for sin.
29621         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
29622         * sysdeps/x86_64/fpu/Versions: New versions added.
29623         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
29624         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
29625         Added build of SSE, AVX2 and AVX512 IFUNC versions.
29626         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: New file.
29627         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: New file.
29628         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: New file.
29629         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: New file.
29630         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: New file.
29631         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: New file.
29632         * sysdeps/x86_64/fpu/svml_d_sin2_core.S: New file.
29633         * sysdeps/x86_64/fpu/svml_d_sin4_core.S: New file.
29634         * sysdeps/x86_64/fpu/svml_d_sin4_core_avx.S: New file.
29635         * sysdeps/x86_64/fpu/svml_d_sin8_core.S: New file.
29636         * sysdeps/x86_64/fpu/svml_d_sin_data.S: New file.
29637         * sysdeps/x86_64/fpu/svml_d_sin_data.h: New file.
29638         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector sin
29639         test.
29640         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
29641         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
29642         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
29643         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
29644         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
29645         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
29646         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
29647         * NEWS: Mention addition of x86_64 vector sin.
29648
29649 2015-06-11  Florian Weimer  <fweimer@redhat.com>
29650
29651         * nptl/pthread_key_create.c (__pthread_key_create): Fix typo in
29652         comment.
29653
29654 2015-06-10  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
29655
29656         [BZ #18479]
29657         * nptl/pt-interp.c: New file.
29658         * nptl/Makefile (libpthread-routines, libpthread-shared-only-routines):
29659         Add pt-interp.
29660         [[$(build-shared) = yes] ($(objpfx)pt-interp.os): Depend on
29661         $(common-objpfx)runtime-linker.h.
29662
29663 2015-06-10  Dmitry V. Levin  <ldv@altlinux.org>
29664
29665         * Makeconfig (+interp): Remove unused variable.
29666         * elf/Makefile ($(objpfx)interp.os): Define for [$(build-shared) = yes]
29667         only.  Depend on $(common-objpfx)runtime-linker.h instead of
29668         $(elf-objpfx)runtime-linker.h.
29669         ($(elf-objpfx)runtime-linker.h): Rename to
29670         $(common-objpfx)runtime-linker.h and move ...
29671         * Makerules [$(build-shared) = yes]: ... here.
29672         * elf/interp.c: Include <runtime-linker.h> instead of
29673         <elf/runtime-linker.h>.
29674
29675 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
29676
29677         * sysdeps/unix/sysv/linux/i386/gettimeofday.c
29678         (__gettimeofday_syscall): Remove vsyscall fallback.
29679         * sysdeps/unix/sysv/linux/i386/time.c (__time_syscall): Likewise.
29680         * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday_syscall):
29681         Add syscall fallback function.
29682         (gettimeofday_ifunc): Use __gettimeofday_syscall as fallback mechanism
29683         if vDSO is not present.
29684         * sysdeps/unix/sysv/linux/x86/time.c (__time_syscall): Add syscall
29685         fallback function.
29686         (time_ifunc): Use __time_syscall as fallback mechanism if vDSO is not
29687         present.
29688         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Remove file.
29689         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
29690
29691 2015-06-09  Joseph Myers  <joseph@codesourcery.com>
29692
29693         [BZ #18497]
29694         * wcsmbs/wcscmp.c [!WCSCMP] (WCSCMP): Define as __wcscmp instead
29695         of wcscmp.
29696         (wcscmp): Define as weak alias of WCSCMP.
29697         * wcsmbs/wcscoll.c (STRCOLL): Define as __wcscoll instead of
29698         wcscoll.
29699         (USE_HIDDEN_DEF): Define.
29700         [!USE_IN_EXTENDED_LOCALE_MODEL] (wcscoll): Define as weak alias of
29701         __wcscoll.  Don't use libc_hidden_weak.
29702         * wcsmbs/wcscoll_l.c (STRCMP): Define as __wcscmp instead of
29703         wcscmp.
29704         * sysdeps/i386/i686/multiarch/wcscmp-c.c
29705         [SHARED] (libc_hidden_def): Define __GI___wcscmp instead of
29706         __GI_wcscmp.
29707         (weak_alias): Undefine and redefine.
29708         * sysdeps/i386/i686/multiarch/wcscmp.S (wcscmp): Rename to
29709         __wcscmp and define as weak alias of __wcscmp.
29710         * sysdeps/x86_64/wcscmp.S (wcscmp): Likewise.
29711         * include/wchar.h (__wcscmp): Declare.  Use libc_hidden_proto.
29712         (__wcscoll): Likewise.
29713         (wcscmp): Don't use libc_hidden_proto.
29714         (wcscoll): Likewise.
29715         * posix/regcomp.c (build_range_exp): Call __wcscoll instead of
29716         wcscoll.
29717         * posix/regexec.c (check_node_accept_bytes): Likewise.
29718         * conform/Makefile (test-xfail-XPG3/regex.h/linknamespace): Remove
29719         variable.
29720         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
29721         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
29722
29723         [BZ #18507]
29724         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Rename to
29725         __fstatvfs and define as weak alias of __fstatvfs.  Use
29726         libc_hidden_weak.
29727         * sysdeps/unix/sysv/linux/statvfs.c (statvs): Rename to __statvfs
29728         and define as weak alias of __statvfs.  Use libc_hidden_weak.
29729         * sysdeps/unix/sysv/linux/wordsize-64/fstatvfs.c (__fstatvfs64):
29730         Define as alias of __fstatvfs, not fstatvfs.
29731         (fstatvfs64): Likewise.
29732         * sysdeps/unix/sysv/linux/wordsize-64/statvfs.c (__statvfs64):
29733         Define as alias of __statvfs, not statvfs.
29734         (statvfs64): Likewise.
29735         * conform/Makefile (test-xfail-POSIX/unistd.h/linknamespace):
29736         Remove variable.
29737
29738 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
29739
29740         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
29741         (HAVE_GETCPU_VSYSCALL): Define.
29742         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
29743         (HAVE_GETCPU_VSYSCALL): Likewise.
29744         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Remove file.
29745         * sysdeps/unix/sysv/linux/sched_getcpu.c
29746         (HAVE_VSYSCALL) [HAVE_GETCPU_VSYSCALL]: Define.
29747         (sched_getcpu): Use INLINE_VSYSCALL instead of INLINE_SYSCALL.
29748         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (getcpu): Add vDSO
29749         prototype.
29750         * sysdeps/unix/sysv/linux/x86_64/init-first.c
29751         (__vdso_platform_setup): Remove vsyscall getcpu fallback.
29752         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Remove file.
29753         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (HAVE_GETCPU_VSYSCALL):
29754         Define.
29755         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: Remove file.
29756         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
29757         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c: Likewise.
29758         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
29759
29760 2015-06-09  Andrew Senkevich  <andrew.senkevich@intel.com>
29761
29762         * sysdeps/x86_64/fpu/Makefile: New file.
29763         * sysdeps/x86_64/fpu/Versions: New file.
29764         * sysdeps/x86_64/fpu/svml_d_cos_data.S: New file.
29765         * sysdeps/x86_64/fpu/svml_d_cos_data.h: New file.
29766         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: New file.
29767         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: New file.
29768         * sysdeps/x86_64/fpu/svml_d_cos4_core_avx.S: New file.
29769         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: New file.
29770         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: New file.
29771         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: New file.
29772         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: New file.
29773         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: New file.
29774         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: New file.
29775         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: New file.
29776         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: New file.
29777         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
29778         Added build of SSE, AVX2 and AVX512 IFUNC versions.
29779         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cos.
29780         * math/bits/mathcalls.h: Added cos declaration with __MATHCALL_VEC.
29781         * sysdeps/x86_64/configure.ac: Options for libmvec build.
29782         * sysdeps/x86_64/configure: Regenerated.
29783         * sysdeps/x86_64/sysdep.h (cfi_offset_rel_rsp): New macro.
29784         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New file.
29785         * manual/install.texi (Configuring and compiling): Document
29786         --disable-mathvec.
29787         * INSTALL: Regenerated.
29788         * NEWS: Mention addition of libmvec and x86_64 vector cos.
29789
29790         * math/Makefile: Added rules for vector tests.
29791         * math/gen-libm-have-vector-test.sh: Added generation of wrapper
29792         declaration under condition.
29793         * math/test-double-vlen2.h: New file.
29794         * math/test-double-vlen4.h: New file.
29795         * math/test-double-vlen8.h: New file.
29796         * math/test-vec-loop.h: Added initialization macro.
29797         * sysdeps/x86_64/fpu/Makefile: Added variables for vector tests.
29798         * sysdeps/x86_64/fpu/libm-test-ulps: Regenarated.
29799         * sysdeps/x86_64/fpu/math-tests-arch.h: New file.
29800         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: New file.
29801         * sysdeps/x86_64/fpu/test-double-vlen2.c: New file.
29802         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: New file.
29803         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: New file.
29804         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: New file.
29805         * sysdeps/x86_64/fpu/test-double-vlen4.c: New file.
29806         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: New file.
29807         * sysdeps/x86_64/fpu/test-double-vlen8.c: New file.
29808
29809         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
29810         * sysdeps/x86_64/fpu/Versions: New versions added.
29811         * sysdeps/x86_64/fpu/svml_s_cosf4_core.S: New file.
29812         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: New file.
29813         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: New file.
29814         * sysdeps/x86_64/fpu/svml_s_cosf8_core_avx.S: New file.
29815         * sysdeps/x86_64/fpu/svml_s_cosf8_core.S: New file.
29816         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: New file.
29817         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: New file.
29818         * sysdeps/x86_64/fpu/svml_s_cosf16_core.S: New file.
29819         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: New file.
29820         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: New file.
29821         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: New file.
29822         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: New file.
29823         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: New file.
29824         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
29825         Added build of SSE, AVX2 and AVX512 IFUNC versions.
29826         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
29827         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cosf.
29828         * NEWS: Mention addition of x86_64 vector cosf.
29829
29830         * math/Makefile: Added CFLAGS for new tests.
29831         * math/test-float-vlen16.h: New file.
29832         * math/test-float-vlen4.h: New file.
29833         * math/test-float-vlen8.h: New file.
29834         * math/test-double-vlen2.h: Fixed 2 argument macro and comment.
29835         * sysdeps/x86_64/fpu/Makefile: Added new tests and variables.
29836         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
29837         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: New file.
29838         * sysdeps/x86_64/fpu/test-float-vlen16.c: New file.
29839         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: New file.
29840         * sysdeps/x86_64/fpu/test-float-vlen4.c: New file.
29841         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: New file.
29842         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: New file.
29843         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: New file.
29844         * sysdeps/x86_64/fpu/test-float-vlen8.c: New file.
29845
29846 2015-06-09 Marko Myllynen  <myllynen@redhat.com>
29847
29848         * locale/C-ctype.c (PREDEFINED_CLASSES): Remove.
29849         * locale/programs/ld-ctype.c: Likewise.
29850
29851 2015-06-08  Andrew Senkevich  <andrew.senkevich@intel.com>
29852
29853         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX512F_Usable,
29854         bit_AVX512DQ_Usable, bit_Opmask_state, bit_ZMM0_15_state,
29855         bit_ZMM16_31_state): New macro.
29856         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
29857         Check and set bit_AVX512F_Usable, bit_AVX512DQ_Usable.
29858
29859 2015-06-08  Joseph Myers  <joseph@codesourcery.com>
29860
29861         * include/stdio.h (__open_memstream): Say "C++ tests" in comment.
29862
29863 2015-06-06  Justus Winter  <4winter@informatik.uni-hamburg.de>
29864
29865         * mach/mach/mach_traps.h (thread_switch): Fix typo in comment.
29866
29867 2015-06-05  Joseph Myers  <joseph@codesourcery.com>
29868
29869         [BZ #18498]
29870         * libio/memstream.c (open_memstream): Rename to __open_memstream
29871         and define as weak alias of __open_memstream.
29872         * include/stdio.h (__open_memstream): Declare.  Use
29873         libc_hidden_proto.
29874         (open_memstream): Don't use libc_hidden_proto.
29875         * misc/syslog.c (__vsyslog_chk): Call __open_memstream instead of
29876         open_memstream.
29877         * posix/getopt.c (_getopt_internal_r): Likewise.
29878         * conform/Makefile (test-xfail-XPG3/stdio.h/linknamespace): Remove
29879         variable.
29880         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
29881         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
29882         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
29883
29884         [BZ #18496]
29885         * posix/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
29886         instead of wcrtomb.
29887
29888         [BZ #18483]
29889         * signal/signal.h [__USE_XOPEN2K] (psignal): Change condition to
29890         [__USE_XOPEN2K8].  Remove redundant #endif.
29891         [__USE_XOPEN2K] (psiginfo): Change condition to [__USE_XOPEN2K8].
29892         Remove redundant #if.
29893         * conform/Makefile (test-xfail-XOPEN2K/signal.h/linknamespace):
29894         Remove variable.
29895         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
29896         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
29897
29898         [BZ #18495]
29899         * wctype/wcfuncs.c (__iswalnum): Use libc_hidden_def.
29900         (__iswlower): Likewise.
29901         * include/wctype.h (__iswalnum): Declare.  Use libc_hidden_proto.
29902         (__iswlower): Likewise.
29903         * posix/regcomp.c (re_compile_fastmap_iter): Call __towlower
29904         instead of towlower.
29905         * posix/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
29906         instead of iswlower.  Call __towupper instead of towupper.
29907         * posix/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
29908         instead of iswalnum.
29909
29910 2015-06-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
29911
29912         * malloc/tst-malloc-backtrace.c (do_test): Redirect libc fatal
29913         errors to stderr.
29914
29915 2015-06-05  Florian Weimer  <fweimer@redhat.com>
29916
29917         [BZ #15661]
29918         [BZ #17322]
29919         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
29920         Check for overflow properly.  Check for O_APPEND.  Ignore large
29921         file system block sizes.  Add comments about problems.
29922         * sysdeps/posix/posix_fallocate.c (posix_fallocate): Likewise.
29923         * manual/filesys.texi (Storage Allocation): New node.
29924
29925 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
29926
29927         * sysdeps/unix/sysdep.h [SYSCALL_CANCEL]: New macro: define
29928         cancellable syscalls.
29929         (SYS_ify): Add guard to no redefine it.
29930         (INLINE_SYSCALL): Likewise.
29931         * sysdeps/unix/sysv/linux/accept4.c (accept4): Remove
29932         LIBC_CANCEL_ASYNC/INLINE_SYSCALL/LIBC_CANCEL_RESET and use
29933         SYSCALL_CANCEL instead.
29934         * sysdeps/unix/sysv/linux/alpha/fdatasync.c (__fdatasync): Likewise.
29935         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
29936         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
29937         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
29938         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
29939         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Likewise.
29940         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Likewise.
29941         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Likewise.
29942         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
29943         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
29944         * sysdeps/unix/sysv/linux/generic/pause.c (__libc_pause): Likewise.
29945         * sysdeps/unix/sysv/linux/generic/poll.c (__poll): Likewise.
29946         * sysdeps/unix/sysv/linux/generic/recv.c (__libc_recv): Likewise.
29947         * sysdeps/unix/sysv/linux/generic/select.c (__select): Likewise.
29948         * sysdeps/unix/sysv/linux/generic/send.c (__libc_send): Likewise.
29949         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
29950         Likewise.
29951         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
29952         (__libc_pread64): Likewise.
29953         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c
29954         (__libc_preadv): Likewise.
29955         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c
29956         (__libc_readv64): Likewise.
29957         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
29958         (__libc_pwrite): Likewise.
29959         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
29960         (__libc_pwrite64): Likewise.
29961         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c
29962         (__libc_pwritev): Likewise.
29963         * sysdeps/sysv/linux/generic/wordsize-32/pwritev64.c
29964         (__libc_pwritev64): Likewise.
29965         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Likewise.
29966         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
29967         (sync_file_range): Likewise.
29968         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c (fallocate):
29969         Likewise.
29970         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c (fallocate64):
29971         Likewise.
29972         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
29973         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
29974         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
29975         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
29976         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
29977         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
29978         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
29979         * sysdeps/unix/sysv/linux/openat.c (__libc_openat): Likewise.
29980         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
29981         Likewise.
29982         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
29983         (__libc_read64): Likewise.
29984         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_write):
29985         Likewise.
29986         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c (__libc_write64):
29987         Likewise.
29988         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c (__libc_fcntl):
29989         Likewise.
29990         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c (__libc_pread):
29991         Likewise.
29992         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
29993         (__libc_pread64): Likewise.
29994         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c (__libc_pwrite):
29995         Likewise.
29996         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
29997         (__libc_pwrite64): Likewise.
29998         * sysdeps/sysv/linux/powerpc/powerpc64/sync_file_range.c
29999         (sync_file_range): Likewise.
30000         * sysdeps/unix/sysv/linux/ppoll.c (ppoll): Likewise.
30001         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
30002         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
30003         * sysdeps/unix/sysv/linux/preadv.c (__libc_preadv): Likewise.
30004         * sysdeps/unix/sysv/linux/pselect.c (__pselect): Likewise.
30005         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
30006         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
30007         * sysdeps/unix/sysv/linux/pwritev.c (PWRITEV): Likewise.
30008         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Likewise.
30009         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
30010         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
30011         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
30012         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
30013         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
30014         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_pwrite64): Likewise.
30015         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
30016         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
30017         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
30018         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
30019         Likewise.
30020         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
30021         Likewise.
30022         * sysdeps/unix/sysv/linux/tcdrain.c (__libc_tcdrain): Likewise.
30023         * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
30024         Likewise.
30025         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Likewise.
30026         * sysdeps/unix/sysv/linux/waitid.c (__waitid): Likewise.
30027         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Likewise.
30028         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c (fallocate):
30029         Likewise.
30030         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c (preadv): Likewise.
30031         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c (pwritev): Likewise.
30032         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
30033         * sysdeps/unix/sysv/linux/x86_64/recv.c (__libc_recv): Likewise.
30034         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Likewise.
30035
30036 2015-06-04  Nathan Lynch  <nathan_lynch@codesourcery.com>
30037
30038         * sysdeps/unix/sysv/linux/arm/Makefile: (sysdep_routines):
30039         Include dl-vdso.
30040         * sysdeps/unix/sysv/linux/arm/init-first.c: New file:
30041         Use VDSO routines for gettimeofday, clock_gettime if
30042         available.
30043         * sysdeps/unix/sysv/linux/arm/libc-vdso.h: New file:
30044         Declare VDSO symbols.
30045         * sysdeps/unix/sysv/linux/arm/sysdep.h:
30046         [HAVE_GETTIMEOFDAY_VSYSCALL]: Define.
30047         [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
30048         * sysdeps/unix/sysv/linux/arm/Versions: Add
30049         __vdso_clock_gettime.
30050
30051 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
30052
30053         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Rewrite to
30054         be an inline implementation regardless of library is built within.
30055         (open_not_cancel_2): Likewise.
30056         (__read_nocancel): Likewise.
30057         (__write_nocancel): Likewise.
30058         (openat_not_cancel): Likewise.
30059         (openat_not_cancel_3): Likewise.
30060         (openat64_not_cancel): Likewise.
30061         (openat64_not_cancel_3): Likewise.
30062         (__close_nocancel): Likewise.
30063         (pause_not_cancel): Likewise.
30064         (nanosleep_not_cancel): Likewise.
30065         (sigsuspend_not_cancel): Likewise.
30066
30067 2015-06-04  Torvald Riegel  <triegel@redhat.com>
30068
30069         [BZ #14958]
30070         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Add missing
30071         wake-up.
30072         (__pthread_rwlock_rdlock_slow): Likewise.
30073         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
30074         Likewise.
30075         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
30076         Likewise.
30077         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Add comments.
30078         * nptl/tst-rwlock16.c: New file.
30079         * nptl/Makefile (tests): Add new test.
30080
30081 2015-06-04  Torvald Riegel  <triegel@redhat.com>
30082
30083         [BZ #18324]
30084         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock): Add
30085         missing wake-up of readers.
30086         * nptl/tst-rwlock15.c: New file.
30087         * nptl/Makefile (tests): Add new test.
30088
30089 2015-06-03  Roland McGrath  <roland@hack.frob.com>
30090
30091         * sysdeps/nacl/nacl-interfaces.c (try_supply): New static function.
30092         (PASTE_NAME (__nacl_supply_interface_, MODULE_NAME)): New function.
30093         * sysdeps/nacl/nacl-interfaces.h: Declare __nacl_supply_interface_libc
30094         and __nacl_supply_interface_rtld.
30095         * sysdeps/nacl/nacl_interface_ext_supply.c: New file.
30096         * sysdeps/nacl/Makefile [$(subdir) = csu] (sysdep_routines): Add it.
30097         * sysdeps/nacl/Versions (ld: GLIBC_PRIVATE):
30098         Add __nacl_supply_interface_rtld.
30099         (libc: GLIBC_2.22): Add nacl_interface_ext_supply.
30100
30101 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
30102
30103         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Replace finite with
30104         isfinite.
30105         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
30106         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c (__finitel): Likewise.
30107
30108 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
30109
30110         * math/e_exp10.c: Replace __isinf*, __isnan*, __finite* and
30111         __signbit* with standard C99 macros.
30112         * math/e_exp10l.c: Likewise.
30113         * math/e_exp2l.c: Likewise.
30114         * math/e_scalb.c: Likewise.
30115         * math/e_scalbf.c: Likewise.
30116         * math/e_scalbl.c: Likewise.
30117         * math/s_ldexp.c: Likewise.
30118         * math/s_ldexpf.c: Likewise.
30119         * math/s_ldexpl.c: Likewise.
30120         * math/w_atan2.c: Likewise.
30121         * math/w_atan2f.c: Likewise.
30122         * math/w_atan2l.c: Likewise.
30123         * math/w_cosh.c: Likewise.
30124         * math/w_coshf.c: Likewise.
30125         * math/w_coshl.c: Likewise.
30126         * math/w_exp10.c: Likewise.
30127         * math/w_exp10f.c: Likewise.
30128         * math/w_exp10l.c: Likewise.
30129         * math/w_exp2.c: Likewise.
30130         * math/w_exp2f.c: Likewise.
30131         * math/w_exp2l.c: Likewise.
30132         * math/w_fmod.c: Likewise.
30133         * math/w_fmodf.c: Likewise.
30134         * math/w_fmodl.c: Likewise.
30135         * math/w_hypot.c: Likewise.
30136         * math/w_hypotf.c: Likewise.
30137         * math/w_hypotl.c: Likewise.
30138         * math/w_jnl.c: Likewise.
30139         * math/w_lgamma.c: Likewise.
30140         * math/w_lgamma_r.c: Likewise.
30141         * math/w_lgammaf.c: Likewise.
30142         * math/w_lgammaf_r.c: Likewise.
30143         * math/w_lgammal.c: Likewise.
30144         * math/w_lgammal_r.c: Likewise.
30145         * math/w_pow.c: Likewise.
30146         * math/w_powf.c: Likewise.
30147         * math/w_powl.c: Likewise.
30148         * math/w_remainder.c: Likewise.
30149         * math/w_remainderf.c: Likewise.
30150         * math/w_remainderl.c: Likewise.
30151         * math/w_scalb.c: Likewise.
30152         * math/w_scalbf.c: Likewise.
30153         * math/w_scalbl.c: Likewise.
30154         * math/w_scalbln.c: Likewise.
30155         * math/w_scalblnf.c: Likewise.
30156         * math/w_scalblnl.c: Likewise.
30157         * math/w_sinh.c: Likewise.
30158         * math/w_sinhf.c: Likewise.
30159         * math/w_sinhl.c: Likewise.
30160         * math/w_tgamma.c: Likewise.
30161         * math/w_tgammaf.c: Likewise.
30162         * math/w_tgammal.c: Likewise.
30163         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
30164         * sysdeps/ieee754/dbl-64/e_exp10.c: Likewise.
30165         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
30166         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
30167         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
30168         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
30169         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
30170         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
30171         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
30172         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
30173         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
30174         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
30175         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
30176         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
30177         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
30178         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
30179         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
30180         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
30181         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
30182         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
30183         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
30184         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
30185         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
30186         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
30187         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
30188         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
30189         * sysdeps/ieee754/ldbl-128ibm/w_expl.c: Likewise.
30190         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
30191         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
30192         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
30193         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c: Likewise.
30194         * sysdeps/ieee754/ldbl-opt/nldbl-isinf.c: Likewise.
30195         * sysdeps/ieee754/ldbl-opt/nldbl-isnan.c: Likewise.
30196         * sysdeps/ieee754/ldbl-opt/nldbl-signbit.c: Likewise.
30197         * stdio-common/printf_fp.c: Likewise.
30198         * stdio-common/printf_fphex.c: Likewise.
30199         * stdio-common/printf_size.c: Likewise.
30200
30201 2015-06-03  Joseph Myers  <joseph@codesourcery.com>
30202
30203         [BZ #18470]
30204         * posix/fnmatch.c (fnmatch) [_LIBC]: Call __strnlen instead of
30205         strnlen.
30206         * conform/Makefile (test-xfail-XPG3/fnmatch.h/linknamespace):
30207         Remove variable.
30208         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
30209         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
30210         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
30211         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
30212         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
30213         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
30214         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
30215         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
30216         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
30217         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
30218
30219         [BZ #18468]
30220         * wcsmbs/wmemchr.c (wmemchr): Rename to __wmemchr and define as
30221         weak alias of __wmemchr.  Use libc_hidden_weak.
30222         * include/wchar.h (__wmemchr): Declare.  Use libc_hidden_proto.
30223         * posix/fnmatch.c [HANDLE_MULTIBYTE] (MEMCHR): Use __wmemchr
30224         instead of wmemchr.
30225
30226 2015-06-02  Roland McGrath  <roland@hack.frob.com>
30227
30228         [BZ #18383]
30229         * elf/tst-tlsalign-extern.c: New file.
30230         * elf/tst-tlsalign-extern-static.c: New file.
30231         * elf/tst-tlsalign-vars.c: New file.
30232         * elf/Makefile (tests-static): Add tst-tlsalign-extern-static.
30233         [$(build-shared) = yes] (tests): Add tst-tlsalign-extern.
30234         ($(objpfx)tst-tlsalign-extern): Depend on tst-tlsalign-vars.o.
30235         ($(objpfx)tst-tlsalign-extern-static): Likewise.
30236         (test-xfail-tst-tlsalign-extern-static): New variable.
30237
30238 2015-06-02  Joseph Myers  <joseph@codesourcery.com>
30239
30240         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h (INLINE_SYSCALL):
30241         Use variable name _sc_err instead of err.
30242         [__mips16] (INTERNAL_SYSCALL_NCS): Use variable name _sc_ret
30243         instead of ret.
30244         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
30245         (INLINE_SYSCALL): Use variable name _sc_err instead of err.
30246         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
30247         (INLINE_SYSCALL): Likewise.
30248
30249         * string/strnlen.c [!STRNLEN] (__strnlen): Use libc_hidden_def.
30250         * include/string.h (__strnlen): Use libc_hidden_proto.
30251         * sysdeps/aarch64/strnlen.S (__strnlen): Use libc_hidden_def.
30252         * sysdeps/i386/i686/multiarch/strnlen-c.c [SHARED]
30253         (libc_hidden_def): Define __GI___strnlen as well as __GI_strnlen.
30254         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-power7.S
30255         (libc_hidden_def): Undefine and redefine.
30256         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c
30257         [SHARED] (libc_hidden_def): Define __GI___strnlen as well as
30258         __GI_strnlen.
30259         * sysdeps/powerpc/powerpc32/power7/strnlen.S (__strnlen): Use
30260         libc_hidden_def.
30261         * sysdeps/tile/tilegx/strnlen.c (__strnlen): Likewise.
30262
30263         [BZ #18469]
30264         * wctype/wcfuncs.c (towlower): Rename to __towlower and define as
30265         weak alias of __towlower.  Use libc_hidden_weak.
30266         (towupper): Rename to __towupper and define as weak alias of
30267         __towupper.  Use libc_hidden_weak.
30268         * include/wctype.h (__towlower): Declare.  Use libc_hidden_proto.
30269         (__towupper): Likewise.
30270         * posix/fnmatch.c [HANDLE_MULTIBYTE && _LIBC] (FOLD): Use
30271         __towlower instead of towlower.
30272
30273 2015-06-02  Roland McGrath  <roland@hack.frob.com>
30274
30275         * stdlib/setenv.c [__GNUC__,__GNUC_MINOR__ < 4,7]: Use
30276         "-Wuninitialized" rather than "-Wmaybe-uninitialized" in pragma.
30277
30278 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
30279
30280         * sysdeps/aarch64/libm-test-ulps: Update.
30281
30282 2015-06-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
30283
30284         * sysdeps/unix/sysv/linux/i386/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL):
30285         Define.
30286         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
30287         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
30288         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
30289         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
30290         * sysdeps/unix/sysv/linux/timespec_get.c: Include errno.h.
30291         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: Remove file.
30292         * sysdeps/unix/sysv/linux/x86/timespec_get.c: Likewise.
30293
30294 2015-06-01  Martin Sebor  <msebor@redhat.com>
30295
30296         [BZ #18116]
30297         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
30298         (__setcontext): Use extended four-operand version of mtsf whenever
30299         possible.
30300         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
30301         (__novec_swapcontext): Likewise.
30302
30303 2015-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
30304
30305         * benchtests/scripts/compare_bench.py: New file.
30306         * benchtests/scripts/import_bench.py (mean): New function.
30307         (split_list): Likewise.
30308         (do_for_all_timings): Likewise.
30309         (compress_timings): Likewise.
30310
30311         * benchtests/scripts/import_bench.py: New file.
30312         * benchtests/scripts/validate_benchout.py: Import import_bench
30313         instead of jsonschema.
30314         (validate_bench): Remove function.
30315         (main): Use import_bench.
30316
30317 2015-06-01  Steve Ellcey  <sellcey@imgtec.com>
30318
30319         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use a union to
30320         copy data from cur_ifr->ifr_addr and cur_ifr->ifr_netmask.
30321
30322 2015-05-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
30323
30324         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
30325
30326 2015-05-28  Roland McGrath  <roland@hack.frob.com>
30327
30328         * sysdeps/nacl/exit-thread.h (__exit_thread): If not detached,
30329         set THREAD_SELF->tid to a magic value and futex-wake it.
30330         Pass its address to the thread_exit system call.
30331         * sysdeps/nacl/pthread-pids.h (__nacl_get_tid): Assert that TID's low
30332         bit is clear.
30333         * sysdeps/nacl/lowlevellock.h: New file.
30334         * sysdeps/nacl/lll_timedwait_tid.c: New file.
30335
30336         * sysdeps/nacl/lowlevellock-futex.h (lll_futex_timed_wait):
30337         Add TIMEOUT to current time, don't subtract it.
30338
30339 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
30340
30341         [BZ #2981]
30342         [BZ #18422]
30343         * Makefile ($(objpfx)tst-audit2): Depend on $(libdl).
30344         ($(objpfx)tst-audit2.out): Also depend on
30345         $(objpfx)tst-auditmod9b.so.
30346         * elf/tst-audit2.c: Include <dlfcn.h>.
30347         (calloc_called): New.
30348         (calloc): Allow to be called more than once.
30349         (do_test): dllopen/dlclose $ORIGIN/tst-auditmod9b.so.
30350
30351 2015-05-28  Wilco Dijkstra  <wdijkstr@arm.com>
30352
30353         * sysdeps/ieee754/dbl-64/s_fabs.c: (__fabs): Call __builtin_fabs.
30354         * sysdeps/ieee754/flt-32/s_fabsf.c: (__fabsf): Likewise.
30355
30356 2015-05-27  Marko Myllynen  <myllynen@redhat.com>
30357
30358         * stdlib/monetary.h: Fix comment.
30359
30360 2015-05-26  Chris Metcalf  <cmetcalf@ezchip.com>
30361
30362         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_SYSCALL):
30363         Avoid using variables in #defines that might cause shadowing.
30364         (INTERNAL_VSYSCALL_CALL): Likewise.
30365
30366 2015-05-26  Roland McGrath  <roland@hack.frob.com>
30367
30368         * sysdeps/nacl/lll_timedlock_wait.c: New file.
30369
30370         * nptl/lowlevellock.c (__lll_timedlock_wait): Moved ...
30371         * nptl/lll_timedlock_wait.c: ... to this new file.
30372         * nptl/Makefile (libpthread-routines): Add it.
30373         * nptl/lowlevellock.c (__lll_timedwait_tid): Moved ...
30374         * nptl/lll_timedwait_tid.c: ... to this new file.
30375         * nptl/Makefile (libpthread-routines): Add it.
30376         * sysdeps/sparc/sparc32/lll_timedlock_wait.c: New file.
30377         * sysdeps/sparc/sparc32/lll_timedwait_tid.c: New file.
30378         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: New file.
30379         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c: New file.
30380         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c: New file.
30381         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: New file.
30382         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c: New file.
30383         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c: New file.
30384         * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: New file.
30385         * sysdeps/unix/sysv/linux/x86_64/lll_timedwait_tid.c: New file.
30386
30387 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
30388
30389         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: Remove file.
30390         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
30391         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
30392         * sysdeps/unix/sysv/linux/aarch64/sysdep.h
30393         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
30394         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
30395         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
30396         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
30397         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
30398         * sysdeps/unix/sysv/linux/tile/sysdep.h
30399         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
30400         * sysdeps/unix/sysv/linux/gettimeofday.c: New file: gettimeofday
30401         using vDSO syscall macro.
30402
30403 2015-05-26  Andriy Rysin  <arysin@gmail.com>
30404
30405         [BZ #17293]
30406         * uk_UA: Fix sorting order for Ukrainian locale
30407
30408 2015-05-26  Marko Myllynen  <myllynen@redhat.com>
30409
30410         * stdlib/monetary.h: Fix comment.
30411
30412 2015-05-26  Szabolcs Nagy  <szabolcs.nagy@arm.com>
30413
30414         [BZ #18234]
30415         * conform/data/sys/stat.h-data (struct stat): Add tests for st_atim,
30416         st_mtim and st_ctim members.
30417         * sysdeps/nacl/bits/stat.h (struct stat, struct stat64): Make
30418         st_atim, st_ctim, st_mtim visible under __USE_XOPEN2K8 only.
30419         * sysdeps/unix/sysv/linux/generic/bits/stat.h (struct stat,):
30420         (struct stat64): Likewise.
30421         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat,):
30422         (struct stat64): Likewise.
30423         * sysdeps/unix/sysv/linux/microblaze/bits/stat.h (struct stat,):
30424         (struct stat64): Likewise.
30425
30426 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
30427
30428         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (HAVE_VSYSCALL):
30429         Define and include sysdep-vdso.h.
30430         * sysdeps/unix/sysv/linux/s390/gettimeofday.c (HAVE_VSYSCALL):
30431         Likewise.
30432         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (HAVE_VSYSCALL):
30433         Likewise.
30434         * sysdeps/unix/sysv/linux/aarch64/init-first.c (__vdso_gettimeofday):
30435         Define with VDSO_SYMBOL and use PTR_MANGLE.
30436         (__vdso_clock_gettime): Likewise.
30437         (__vdso_clock_getres): Likewise.
30438         (_libc_vdso_platform_setup): Likewise.
30439         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
30440         Likewise.
30441         (_libc_vdso_platform_setup): Likewise.
30442         * sysdeps/unix/sysv/linux/powerpc/init-first.c (__vdso_gettimeofday):
30443         Likewise.
30444         (__vdso_clock_gettime): Likewise.
30445         (__vdso_clock_getres): Likewise.
30446         (__vdso_get_tbfreq): Likewise.
30447         (__vdso_getcpu): Likewise.
30448         (__vdso_time): Likewise.
30449         (__vdso_sigtramp_rt64): Likewise.
30450         (__vdso_signtramp32): Likewise.
30451         (__vdso_sigtramp_rt32): Likewise.
30452         (_libc_vdso_platform_setup): Likewise.
30453         * sysdeps/unix/sysv/linux/s390/init-first.c (__vdso_gettimeofay):
30454         Likewise.
30455         (__vdso_clock_gettime): Likewise.
30456         (__vdso_clock_getres): Likewise.
30457         (_libc_vdso_platform_setup): Likewise.
30458         * sysdeps/unix/sysv/linux/tile/init-first.c (__vdso_gettimeofday):
30459         Likewise.
30460         (__vdso_clock_gettime): Likewise.
30461         (_libc_vdso_platform_setup): Likewise.
30462         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
30463         Likewise.
30464         (__vdso_getcpu): Likewise.
30465         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h (__vdso_gettimeoday):
30466         Use VDSO_SYMBOL macro to define.
30467         (__vdso_clock_gettime): Likewise.
30468         (__vdso_clock_getres): Likewise.
30469         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h (__vdso_gettimeofday):
30470         Likewise.
30471         (__vdso_clock_gettime): Likewise.
30472         (__vdso_clock_getres): Likewise.
30473         (__vdso_get_tbfreq): Likewise.
30474         (__vdso_getcpu): Likewise.
30475         (__vdso_time): Likewise.
30476         (__vdso_sigtramp_rt64): Likewise.
30477         (__vdso_signtramp32): Likewise.
30478         (__vdso_sigtramp_rt32): Likewise.
30479         * sysdeps/unix/sysv/linux/s390/libc-vdso.h (__vdso_gettimeofday):
30480         Likewise.
30481         (__vdso_clock_gettime): Likewise.
30482         (__vdso_clock_getres): Likewise.
30483         * sysdeps/unix/sysv/linux/tile/libc-vdso.h (__vdso_gettimeofday):
30484         Likewise.
30485         (__vdso_clock_gettime): Likewise.
30486         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
30487         Likewise.
30488         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INLINE_VSYSCALL):  Remove
30489         macro.
30490         (INTERNAL_VSYSCALL): Likewise.
30491         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL):
30492         Remove macro.
30493         (INTERNAL_VSYSCALL): Likewise.
30494         (INTERNAL_VSYSCALL_NCS): Likewise.
30495         (INTERNAL_VSYSCALL_CALL): New macro.
30496         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
30497         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INLINE_VSYSCALL):
30498         Likewise.
30499         (INTERNAL_VSYSCALL): Likewise.
30500         (INTERNAL_VSYSCALL_NCS): Likewise.
30501         (INTERNAL_VSYSCALL_CALL): New macro.
30502         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
30503         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
30504         (INLINE_VSYSCALL): Remove macro.
30505         (INTERNAL_VSYSCALL): Remove macro.
30506         (INTERNAL_VSYSCALL_NCS): Remove macro.
30507         (INTERNAL_VSYSCALL_CALL): New macro.
30508         (INTERNAL_VSYSCALL_CALL_TYPE): New macro.
30509         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL.
30510         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
30511         (HAVE_CLOCK_GETRES_VSYSCALL): New define.
30512         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
30513         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
30514         (INLINE_VSYSCALL): Remove macro.
30515         (INTERNAL_VSYSCALL): Likewise.
30516         (INTERNAL_VSYSCALL_NCS): Likewise.
30517         (INTERNAL_VSYSCALL_CALL): New macro.
30518         (INTERNAL_VSYSCALL_CALL_TYPE): Likewise.
30519         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL and
30520         PTR_DEMANGLE on vDSO pointer.
30521         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
30522         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Remove
30523         macro.
30524         (INTERNAL_SYSCALL): Likewise.
30525         (INTERNAL_VSYSCALL_NCS): Remove macro.
30526         (INTERNAL_VSYSCALL_CALL): New macro.
30527         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
30528         Remove macro.
30529         (INTERNAL_VSYSCALL): Likewise.
30530         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Include
30531         sysdep-vdso.h instead of libc-vdso.h.
30532         * sysdeps/unix/sysv/linux/clock_getres.c (INTERNAL_VSYSCALL): Remove
30533         definition.
30534         (INLINE_VSYSCALL): Likewise.
30535         (HAVE_VSYSCALL) [HAVE_CLOCK_GETRES_VSYSCALL]: Define.
30536         * sysdeps/unix/sysv/linux/clock_gettime.c (INTERNAL_VSYSCALL): Remove
30537         definition.
30538         (INLINE_VSYSCALL): Likewise.
30539         (INTERNAL_VSYSCALL): Likewise.
30540         (HAVE_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
30541         * sysdeps/unix/sysv/linux/timespec_get.c
30542         (INTERNAL_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
30543         (timespec_get): Use ANSI prototype.
30544         * sysdeps/unix/sysv/linux/sysdep-vdso.h: New file: default vDSO macros
30545         and definition for Linux.
30546
30547 2015-05-25  Andrew Senkevich  <andrew.senkevich@intel.com>
30548
30549         * elf/Makefile (localplt-built-dso): libmvec added to localplt test.
30550         * include/libc-symbols.h: libmvec_hidden_* macro series added.
30551
30552 2015-05-22  H.J. Lu  <hongjiu.lu@intel.com>
30553
30554         [BZ #2981]
30555         [BZ #18410]
30556         * elf/dl-reloc.c (_dl_relocate_object): Don't issue an error
30557         for missing DT_PLTRELSZ.
30558
30559 2015-05-22  Paul Eggert  <eggert@cs.ucla.edu>
30560
30561         Remove obsolete aliases that broke 'locale -a'
30562         [BZ #18412]
30563         * intl/locale.alias: Remove obsolete aliases "bokmål" and "français"
30564         which caused 'locale -a' to output Latin-1 data in UTF-8 locales,
30565         breaking some applications that use 'locale -a' output.
30566         Change the encoding of this file from Latin-1 to ASCII to avoid
30567         other potential problems with people grepping this file.
30568
30569 2015-05-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
30570
30571         * nptl/Makefile (CFLAGS-accept.c): Add -fexceptions and
30572         -fasynchronous-unwind-tables.
30573         (CFLAGS-sendto.c): Likewise.
30574         (CFLAGS-sendmsg.c): Likewise.
30575         (CFLAGS-connect.c): Likewise.
30576         (CFLAGS-recvmsg.c): Likewise.
30577         (CFLAGS-recvfrom.c): Likewise.
30578         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_invalid): Define.
30579         (SOCKETCALL): New macro: non-cancellable socketcall.
30580         (SOCKETCALL_CANCEL): New macro: cancellable socketcall.
30581         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = socket]: Remove
30582         internal_accept4, internal_recvmmsg, and internal_sendmmsg rules.
30583         * sysdeps/unix/sysv/linux/accept.c: New file.
30584         * sysdeps/unix/sysv/linux/bind.c: Likewise.
30585         * sysdeps/unix/sysv/linux/connect.c: Likewise.
30586         * sysdeps/unix/sysv/linux/getpeername.c: Likewise.
30587         * sysdeps/unix/sysv/linux/getsockname.c: Likewise.
30588         * sysdeps/unix/sysv/linux/getsockopt.c: Likewise.
30589         * sysdeps/unix/sysv/linux/listen.c: Likewise.
30590         * sysdeps/unix/sysv/linux/recv.c: Likewise.
30591         * sysdeps/unix/sysv/linux/recvfrom.c: Likewise.
30592         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
30593         * sysdeps/unix/sysv/linux/send.c: Likewise.
30594         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
30595         * sysdeps/unix/sysv/linux/sendto.c: Likewise.
30596         * sysdeps/unix/sysv/linux/setsockopt.c: Likewise.
30597         * sysdeps/unix/sysv/linux/shutdown.c: Likewise.
30598         * sysdeps/unix/sysv/linux/socket.c: Likewise.
30599         * sysdeps/unix/sysv/linux/socketpair.c: Likewise.
30600         * sysdeps/unix/sysv/linux/recvmmsg.c (__internal_recvmmsg): Remove
30601         prototype.
30602         (recvmmsg) [__ASSUME_RECVMMSG_SOCKETCALL]: Add C based implementation.
30603         (recvmmsg) [!__ASSUME_RECVMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
30604         instead of __internal_xxx function.
30605         * sysdeps/unix/sysv/linux/accept4.c (__internal_accept4): Remove
30606         prototype.
30607         (accept4) [__ASSUME_ACCEPT4_SOCKETCALL]: Add C based implementation.
30608         (accept4) [!__ASSUME_ACCEPT4_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
30609         instead of __internal_xxx function.
30610         * sysdeps/unix/sysv/linux/sendmmsg.c (__internal_sendmmsg): Remove
30611         prototype.
30612         (sendmmsg) [__ASSUME_SENDMMSG_SOCKETCALL]: Add C based implementation.
30613         (sendmmsg) [!__ASSUME_SENDMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
30614         instead of __internal_xxx function.
30615         * sysdeps/unix/sysv/linux/accept.S: Remove file.
30616         * sysdeps/unix/sysv/linux/bind.S: Likewise.
30617         * sysdeps/unix/sysv/linux/connect.S: Likewise.
30618         * sysdeps/unix/sysv/linux/getpeername.S: Likewise.
30619         * sysdeps/unix/sysv/linux/getsockname.S: Likewise.
30620         * sysdeps/unix/sysv/linux/getsockopt.S: Likewise.
30621         * sysdeps/unix/sysv/linux/arm/internal_accept4.S: Likewise.
30622         * sysdeps/unix/sysv/linux/arm/internal_recvmmsg.S: Likewise.
30623         * sysdeps/unix/sysv/linux/arm/internal_sendmmsg.S: Likewise.
30624         * sysdeps/unix/sysv/linux/i386/accept4.S: Likewise.
30625         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: Likewise.
30626         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
30627         * sysdeps/unix/sysv/linux/internal_accept4.S: Likewise.
30628         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: Likewise.
30629         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: Likewise.
30630         * sysdeps/unix/sysv/linux/listen.S: Likewise.
30631         * sysdeps/unix/sysv/linux/microblaze/socket.S: Likewise.
30632         * sysdeps/unix/sysv/linux/mips/mips32/internal_accept4.S: Likewise.
30633         * sysdeps/unix/sysv/linux/mips/mips32/internal_recvmmsg.S: Likewise.
30634         * sysdeps/unix/sysv/linux/mips/mips32/internal_sendmmsg.S: Likewise.
30635         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Likewise.
30636         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Likewise.
30637         * sysdeps/unix/sysv/linux/recv.S: Likewise.
30638         * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
30639         * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
30640         * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Likewise.
30641         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
30642         * sysdeps/unix/sysv/linux/send.S: Likewise.
30643         * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
30644         * sysdeps/unix/sysv/linux/sendto.S: Likewise.
30645         * sysdeps/unix/sysv/linux/setsockopt.S: Likewise.
30646         * sysdeps/unix/sysv/linux/sh/socket.S: Likewise.
30647         * sysdeps/unix/sysv/linux/shutdown.S: Likewise.
30648         * sysdeps/unix/sysv/linux/socketpair.S: Likewise.
30649         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Likewise.
30650         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: Likewise.
30651         * sysdeps/unix/sysv/linux/m68k/socket.S: Likewise.
30652         * sysdeps/unix/sysv/linux/hppa/socket.S: Likewise.
30653         * sysdeps/unix/sysv/linux/kernel-features.h: Adjust comment on how
30654         socketcall is implemented in GLIBC.
30655
30656 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
30657
30658         * soft-fp/fmadf4.c: Include <libc-internal.h>.
30659         (__fma): Ignore uninitialized warnings around packing.
30660         * soft-fp/fmasf4.c: Include <libc-internal.h>.
30661         (__fmaf): Ignore uninitialized warnings around packing.
30662         * soft-fp/fmatf4.c: Include <libc-internal.h>.
30663         (__fmal): Ignore uninitialized warnings around packing.
30664
30665         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <libc-internal.h>.
30666         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
30667         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <libc-internal.h>.
30668         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
30669
30670         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Make case 9 in
30671         switch statement into default case.
30672         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Likewise.
30673
30674         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Don't use
30675         a conditional in forcing "inexact".
30676         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
30677         Likewise.
30678
30679 2015-05-22  Roland McGrath  <roland@hack.frob.com>
30680
30681         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
30682         Use a separate INTERNAL_SYSCALL_DECL (err); in a local scope
30683         for each INTERNAL_SYSCALL use.
30684
30685 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
30686
30687         [BZ #438]
30688         * posix/unistd.h (_POSIX2_C_VERSION): New macro.
30689         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): Remove
30690         variable.
30691
30692         [BZ #18444]
30693         * string/basename.c (basename): Rename to __basename and define as
30694         weak alias of __basename.  Use libc_hidden_weak.
30695         * include/string.h (__basename): Declare.  Use libc_hidden_proto.
30696         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Call
30697         __basename instead of basename.
30698         * conform/Makefile (test-xfail-POSIX2008/unistd.h/linknamespace):
30699         Remove variable.
30700         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
30701
30702 2015-05-18  Florian Weimer  <fweimer@redhat.com>
30703
30704         * libio/libioP.h (_IO_MEMBER_TYPE, _IO_CAST_FIELD_ACCESS)
30705         (_IO_JUMPS_FILE_plus): New.
30706         (_IO_WIDE_JUMPS, _IO_CHECK_WIDE, _IO_JUMPS_FUNC): Use
30707         _IO_CAST_FIELD_ACCESS.
30708         * libio/fileops.c (libc_hidden_def, _IO_file_setbuf_mmap,
30709         mmap_remap_check, decide_maybe_mmap): Use _IO_JUMPS_FILE_plus.
30710         * libio/freopen.c (freopen): Likewise.
30711         * libio/freopen64.c (freopen64): Likewise.
30712         * libio/iofopen.c (__fopen_maybe_mmap): Likewise.
30713         * libio/iofopncook.c (_IO_old_fopencookie): Likewise.
30714         * libio/iofwide.c (_IO_fwide): Likewise.
30715         * libio/memstream.c (open_memstream): Likewise.
30716         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
30717         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
30718         * libio/oldiopopen.c (_IO_old_popen): Likewise.
30719
30720 2015-05-21  Joseph Myers  <joseph@codesourcery.com>
30721
30722         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Include <libc-internal.h>.
30723         (__ieee754_lgamma_r): Ignore uninitialized warnings around use of
30724         NADJ.
30725         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Include <libc-internal.h>.
30726         (__ieee754_lgammaf_r): Ignore uninitialized warnings around use of
30727         NADJ.
30728         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Include <libc-internal.h>.
30729         (__ieee754_lgammal_r): Ignore uninitialized warnings around use of
30730         NADJ.
30731
30732         * sysdeps/ieee754/dbl-64/mpa.c (norm): Remove if condition on
30733         (p == 4) case.
30734
30735         * conform/linknamespace.pl (@whitelist): Add re_syntax_options.
30736         * conform/Makefile (test-xfail-UNIX98/regex.h/linknamespace):
30737         Remove variable.
30738         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
30739         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
30740         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
30741
30742 2015-05-21  Florian Weimer  <fweimer@redhat.com>
30743
30744         * stdio-common/vfprintf.c (LABEL, JUMP_TABLE_BASE_LABEL, REF):
30745         Adjust jump table label generation macros.
30746
30747 2015-05-21  Florian Weimer  <fweimer@redhat.com>
30748
30749         * stdio-common/vfprintf.c (vfprintf): Move local variables
30750         args_malloced, specs, specs_malloced, and the code after
30751         do_positional to the printf_positional function.
30752         (printf_positional): New function.
30753
30754 2015-05-21  Florian Weimer  <fweimer@redhat.com>
30755
30756         * stdio-common/vfprintf.c (jump_table): Move out of the vfprintf
30757         function.
30758         (NOT_IN_JUMP_RANGE, CHAR_CLASS, LABEL, REF, JUMP, STEP0_3_TABLE,
30759         STEP4_TABLE, process_arg): Move macro definitions
30760         out of the vfprintf function.  (Cosmetic change only.)
30761
30762 2015-05-21  Carlos O'Donell  <carlos@redhat.com>
30763
30764         * benchtests/Makefile (stdio-common-bench): Define.
30765         (benchset): Add stdio-common-bench.
30766         * sprintf-inputs: New file.
30767         * sprintf-source.c: New file.
30768
30769 2015-05-21  Andreas Schwab  <schwab@suse.de>
30770
30771         [BZ #13028]
30772         [BZ #17053]
30773         * resolv/res_init.c (__res_vinit): Remove use of ext.nsmap member
30774         of struct __res_state.
30775         * resolv/res_send.c (__libc_res_nsend): Likewise.
30776         (get_nsaddr): New function.
30777         (res_ourserver_p, send_vc, reopen): Use it instead of accessing
30778         statp directly.
30779
30780 2015-05-20  Joseph Myers  <joseph@codesourcery.com>
30781
30782         * conform/GlibcConform.pm ($CFLAGS{"POSIX"}): Use
30783         -D_POSIX_C_SOURCE=199506L.
30784
30785         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Require.
30786
30787         * conform/data/unistd.h-data (_POSIX_VERSION): Require.
30788         (_POSIX2_C_VERSION): Require if [POSIX || XPG3 || XPG4 || UNIX98].
30789         Do not mention otherwise.
30790         [POSIX] (_XOPEN_VERSION): Do not expect.
30791         [POSIX] (_XOPEN_XCU_VERSION): Likewise.
30792         [POSIX] (_POSIX2_C_BIND): Likewise.
30793         [POSIX] (_POSIX2_VERSION): Likewise.
30794         [POSIX] (_XOPEN_XPG2): Likewise.
30795         [POSIX] (_XOPEN_XPG3): Likewise.
30796         [POSIX] (_XOPEN_XPG4): Likewise.
30797         [POSIX] (_XOPEN_UNIX): Likewise.
30798         [POSIX] (_POSIX_ADVISORY_INFO): Likewise.
30799         [POSIX] (_POSIX_BARRIERS): Likewise.
30800         [POSIX] (_POSIX_CLOCK_SELECTION): Likewise.
30801         [POSIX] (_POSIX_CPUTIME): Likewise.
30802         [POSIX] (_POSIX_MONOTONIC_CLOCK): Likewise.
30803         [POSIX] (_POSIX_READER_WRITER_LOCKS): Likewise.
30804         [POSIX] (_POSIX_SHELL): Likewise.
30805         [POSIX] (_POSIX_SPAWN): Likewise.
30806         [POSIX] (_POSIX_SPIN_LOCKS): Likewise.
30807         [POSIX] (_POSIX_SPORADIC_SERVER): Likewise.
30808         [POSIX] (_POSIX_THREAD_CPUTIME): Likewise.
30809         [POSIX] (_POSIX_TYPED_MEMORY_OBJECTS): Likewise.
30810         [POSIX] (_POSIX_THREAD_SPORADIC_SERVER): Likewise.
30811         [POSIX] (_XBS5_ILP32_OFF32): Likewise.
30812         [POSIX] (_XBS5_ILP32_OFBIG): Likewise.
30813         [POSIX] (_XBS5_LP64_OFF64): Likewise.
30814         [POSIX] (_XBS5_LPBIG_OFFBIG): Likewise.
30815         [POSIX] (_POSIX_TIMEOUTS): Likewise.
30816         [POSIX] (_POSIX2_PBS): Likewise.
30817         [POSIX] (_POSIX2_PBS_ACCOUNTING): Likewise.
30818         [POSIX] (_POSIX2_PBS_CHECKPOINT): Likewise.
30819         [POSIX] (_POSIX2_PBS_LOCATE): Likewise.
30820         [POSIX] (_POSIX2_PBS_MESSAGE): Likewise.
30821         [POSIX] (_POSIX2_PBS_TRACK): Likewise.
30822         [POSIX] (_POSIX_TIMESTAMP_RESOLUTION): Likewise.
30823         [POSIX] (_CS_XBS5_ILP32_OFF32_CFLAGS): Likewise.
30824         [POSIX] (_CS_XBS5_ILP32_OFF32_LDFLAGS): Likewise.
30825         [POSIX] (_CS_XBS5_ILP32_OFF32_LIBS): Likewise.
30826         [POSIX] (_CS_XBS5_ILP32_OFF32_LINTFLAGS): Likewise.
30827         [POSIX] (_CS_XBS5_ILP32_OFFBIG_CFLAGS): Likewise.
30828         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LDFLAGS): Likewise.
30829         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LIBS): Likewise.
30830         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LINTFLAGS): Likewise.
30831         [POSIX] (_CS_XBS5_LP64_OFF64_CFLAGS): Likewise.
30832         [POSIX] (_CS_XBS5_LP64_OFF64_LDFLAGS): Likewise.
30833         [POSIX] (_CS_XBS5_LP64_OFF64_LIBS): Likewise.
30834         [POSIX] (_CS_XBS5_LP64_OFF64_LINTFLAGS): Likewise.
30835         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_CFLAGS): Likewise.
30836         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LDFLAGS): Likewise.
30837         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LIBS): Likewise.
30838         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS): Likewise.
30839         [POSIX] (_SC_2_C_BIND): Likewise.
30840         [POSIX] (_SC_2_C_VERSION): Likewise.
30841         [POSIX] (_SC_2_PBS): Likewise.
30842         [POSIX] (_SC_2_PBS_ACCOUNTING): Likewise.
30843         [POSIX] (_SC_2_PBS_CHECKPOINT): Likewise.
30844         [POSIX] (_SC_2_PBS_LOCATE): Likewise.
30845         [POSIX] (_SC_2_PBS_MESSAGE): Likewise.
30846         [POSIX] (_SC_2_PBS_TRACK): Likewise.
30847         [POSIX] (_SC_ATEXIT_MAX): Likewise.
30848         [POSIX] (_SC_BARRIERS): Likewise.
30849         [POSIX] (_SC_BASE): Likewise.
30850         [POSIX] (_SC_CLOCK_SELECTION): Likewise.
30851         [POSIX] (_SC_DEVICE_IO): Likewise.
30852         [POSIX] (_SC_DEVICE_SPECIFIC): Likewise.
30853         [POSIX] (_SC_DEVICE_SPECIFIC_R): Likewise.
30854         [POSIX] (_SC_FD_MGMT): Likewise.
30855         [POSIX] (_SC_FIFO): Likewise.
30856         [POSIX] (_SC_FILE_ATTRIBUTES): Likewise.
30857         [POSIX] (_SC_FILE_LOCKING): Likewise.
30858         [POSIX] (_SC_FILE_SYSTEM): Likewise.
30859         [POSIX] (_SC_IOV_MAX): Likewise.
30860         [POSIX] (_SC_MONOTONIC_CLOCK): Likewise.
30861         [POSIX] (_SC_NETWORKING): Likewise.
30862         [POSIX] (_SC_PAGE_SIZE): Likewise.
30863         [POSIX] (_SC_PASS_MAX): Likewise.
30864         [POSIX] (_SC_PIPE): Likewise.
30865         [POSIX] (_SC_READER_WRITER_LOCKS): Likewise.
30866         [POSIX] (_SC_REGEXP): Likewise.
30867         [POSIX] (_SC_SHELL): Likewise.
30868         [POSIX] (_SC_SIGNALS): Likewise.
30869         [POSIX] (_SC_SINGLE_PROCESS): Likewise.
30870         [POSIX] (_SC_SPIN_LOCKS): Likewise.
30871         [POSIX] (_SC_TYPED_MEMORY_OBJECTS): Likewise.
30872         [POSIX] (_SC_USER_GROUPS): Likewise.
30873         [POSIX] (_SC_USER_GROUPS_R): Likewise.
30874         [POSIX] (_SC_STREAMS): Likewise.
30875         [POSIX] (_SC_XBS5_ILP32_OFF32): Likewise.
30876         [POSIX] (_SC_XBS5_ILP32_OFFBIG): Likewise.
30877         [POSIX] (_SC_XBS5_LP64_OFF64): Likewise.
30878         [POSIX] (_SC_XBS5_LPBIG_OFFBIG): Likewise.
30879         [POSIX] (_SC_THREAD_ROBUST_PRIO_INHERIT): Likewise.
30880         [POSIX] (_SC_THREAD_ROBUST_PRIO_PROTECT): Likewise.
30881         [POSIX] (_PC_FILESIZEBITS): Likewise.
30882         [POSIX] (_PC_REC_INCR_XFER_SIZE): Likewise.
30883         [POSIX] (_PC_REC_MAX_XFER_SIZE): Likewise.
30884         [POSIX] (_PC_REC_MIN_XFER_SIZE): Likewise.
30885         [POSIX] (_PC_REC_XFER_ALIGN): Likewise.
30886         [POSIX] (uid_t): Likewise.
30887         [POSIX] (gid_t): Likewise.
30888         [POSIX] (off_t): Likewise.
30889         [POSIX] (pid_t): Likewise.
30890         [POSIX] (cuserid): Allow.
30891         (_SC_2_CHAR_TERM): Require constant.
30892         (_POSIX_ASYNCHRONOUS_IO): Remove duplicate optional-constant.
30893         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): New
30894         variable.
30895
30896 2015-05-20  Roland McGrath  <roland@hack.frob.com>
30897
30898         * sysdeps/nacl/pthread-pids.h: New file.
30899         * sysdeps/nacl/createthread.c: Include <pthread-pids.h>.
30900         (create_thread): Use __nacl_get_tid to initialize PD->tid.
30901
30902         * nptl/pthread-pids.h: New file.
30903         * sysdeps/unix/sysv/linux/pthread-pids.h: New file.
30904         * nptl/nptl-init.c: Include <pthread-pids.h>.
30905         (__pthread_initialize_minimal_internal):
30906         Call __pthread_initialize_pids instead of set_tid_address syscall.
30907
30908         * sysdeps/unix/sysv/linux/usleep.c: Moved to ...
30909         * sysdeps/posix/usleep.c: ... here.
30910
30911 2015-05-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
30912
30913         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = misc)]: Remove
30914         call_pselect6 object.
30915         [$(subdir) = io]: Remove call_sync_file_range object.
30916         * sysdeps/unix/sysv/linux/i386/call_pselect6.S: Remove file.
30917         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Remove file.
30918         * sysdeps/unix/sysv/linux/i386/pselect.c: Remove file.
30919         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: Remove file.
30920
30921 2015-05-20  Wilco Dijkstra  <wdijkstr@arm.com>
30922
30923         * math/s_cproj.c: Add include "math_private.h".
30924         * math/s_cprojf.c: Likewise.
30925         * math/s_cprojl.c: Likewise.
30926
30927 2015-05-19  Joseph Myers  <joseph@codesourcery.com>
30928
30929         [BZ #18244]
30930         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Ignore explicit
30931         high mantissa bit when testing whether P is a NaN.
30932         * math/libm-test.inc (remainder_test_data): Add more tests.
30933         (remquo_test_data): Likewise.
30934
30935         [BZ #18049]
30936         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): For exponents
30937         below -32, return the argument, with underflow if subnormal.
30938         * math/auto-libm-test-in: Add more tests of atanh.
30939         * math/auto-libm-test-out: Regenerated.
30940
30941 2015-05-19  Roland McGrath  <roland@hack.frob.com>
30942
30943         [BZ #18434]
30944         * nptl/tst-sem15.c: New file.
30945         * nptl/Makefile (tests): Add it.
30946         * nptl/sem_post.c (__new_sem_post) [!__HAVE_64B_ATOMICS]:
30947         s/<</>>/ to fix typo in EOVERFLOW check.
30948         * sysdeps/sparc/sparc32/sem_post.c (__new_sem_post): Likewise.
30949
30950 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
30951
30952         * manual/strings.texi (envz_remove): Fix typo in safety
30953         annotations.
30954
30955 2015-05-19  Paul Eggert  <eggert@cs.ucla.edu>
30956             Steve Ellcey  <sellcey@imgtec.com>
30957
30958         * inet/rcmd.c (rresvport_af): Change ss to anonymous union
30959         in order to avoid strict alias warnings.
30960         (iruserok_af): Ditto for ra.
30961
30962 2015-05-19  James Lemke  <jwlemke@codesourcery.com>
30963
30964         [BZ #17581]
30965         * malloc/hooks.c
30966         (magicbyte): Convert to a function and avoid returning 0x01.
30967         (mem2mem_check): Avoid using a length byte equal to the magic byte.
30968         (mem2chunk_check): Fix unsigned comparisons to zero.
30969         Hoist defs of sz and magic.
30970
30971 2015-05-19  Richard Henderson  <rth@redhat.com>
30972
30973         * soft-fp/op-common.h (_FP_FROM_INT): Don't write to R.
30974
30975         * sysdeps/alpha/fpu/libm-test-ulps: Update.
30976
30977 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
30978
30979         [BZ #16159]
30980         * malloc/Makefile (tests): New test case tst-malloc-backtrace.
30981         * malloc/arena.c (arena_lock): Check if arena is corrupt.
30982         (reused_arena): Find a non-corrupt arena.
30983         (heap_trim): Pass arena to unlink.
30984         * malloc/hooks.c (malloc_check_get_size): Pass arena to
30985         malloc_printerr.
30986         (top_check): Likewise.
30987         (free_check): Likewise.
30988         (realloc_check): Likewise.
30989         * malloc/malloc.c (malloc_printerr): Add arena argument.
30990         (unlink): Likewise.
30991         (munmap_chunk): Adjust.
30992         (ARENA_CORRUPTION_BIT): New macro.
30993         (arena_is_corrupt): Likewise.
30994         (set_arena_corrupt): Likewise.
30995         (sysmalloc): Use mmap if there are no usable arenas.
30996         (_int_malloc): Likewise.
30997         (__libc_malloc): Don't fail if arena_get returns NULL.
30998         (_mid_memalign): Likewise.
30999         (__libc_calloc): Likewise.
31000         (__libc_realloc): Adjust for additional argument to
31001         malloc_printerr.
31002         (_int_free): Likewise.
31003         (malloc_consolidate): Likewise.
31004         (_int_realloc): Likewise.
31005         (_int_memalign): Don't touch corrupt arenas.
31006         * malloc/tst-malloc-backtrace.c: New test case.
31007
31008         * Makefile (summarize-tests): Fix return value on success.
31009
31010         * manual/string.texi (Envz Functions): Add envz_remove.
31011
31012 2015-05-18  Roland McGrath  <roland@hack.frob.com>
31013
31014         * sysdeps/posix/opendir.c: Include <stdbool.h>.
31015         (invalid_name): New function, broken out of ...
31016         (__opendirat): ... here.  Call it.
31017         (need_isdir_precheck): New function, broken out of ...
31018         (__opendirat): ... here.  Call it.
31019         Use __fxstatat64, not __xstatat64.
31020         (opendir_oflags): New function, broken out of ...
31021         (__opendirat): ... here.  Call it.
31022         (opendir_tail): New function, broken out of ...
31023         (__opendirat): ... here.  Call it.
31024         (__opendir): Call invalid_name, need_isdir_precheck, __xstat64, and
31025         opendir_tail, rather than punting to __opendirat.
31026         (__opendirat): Conditionalize function definition on [IS_IN (libc)].
31027
31028 2015-05-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
31029
31030         * .gitignore: Ignore generated *.pyc.
31031
31032 2015-05-18  Arjun Shankar  <arjun.is@lostca.se>
31033
31034         * include/stdio.h: Define __need_wint_t.
31035         * test-skeleton.c: Avoid `for' loop initial declaration.
31036         * nptl/tst-initializers1.c: Use test-skeleton.c.
31037
31038 2015-05-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31039
31040         [BZ #18418]
31041         * stdlib/tst-setcontext3.sh: Remove non-portable array use.
31042
31043 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
31044
31045         [BZ #16352]
31046         * sysdeps/i386/fpu/e_atanh.S (dbl_min): New object.
31047         (__ieee754_atanh): Force underflow exception for results with
31048         small absolute value.
31049         * sysdeps/i386/fpu/e_atanhf.S (flt_min): New object.
31050         (__ieee754_atanhf): Force underflow exception for results with
31051         small absolute value.
31052         * sysdeps/ieee754/dbl-64/e_atanh.c: Include <float.h>.
31053         (__ieee754_atanh): Force underflow exception for results with
31054         small absolute value.
31055         * sysdeps/ieee754/flt-32/e_atanhf.c: Include <float.h>.
31056         (__ieee754_atanhf): Force underflow exception for results with
31057         small absolute value.
31058         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Include <float.h>.
31059         (__ieee754_atanhl): Force underflow exception for results with
31060         small absolute value.
31061         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Include <float.h>.
31062         (__ieee754_atanhl): Force underflow exception for results with
31063         small absolute value.
31064         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Include <float.h>.
31065         (__ieee754_atanhl): Force underflow exception for results with
31066         small absolute value.
31067         * math/auto-libm-test-in: Do not allow missing underflow
31068         exceptions from atanh.
31069         * math/auto-libm-test-out: Regenerated.
31070
31071         [BZ #18221]
31072         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use 2**-13 not
31073         2**-28 as threshold for returning x or +/- 1/x.
31074         * math/auto-libm-test-in: Add more tests of tan.
31075         * math/auto-libm-test-out: Regenerated.
31076
31077         [BZ #18220]
31078         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
31079         2**26 not 2**58 as threshold for returning x * (log (x) - 1).
31080         * math/auto-libm-test-in: Add another test of lgamma.
31081         * math/auto-libm-test-out: Regenerated.
31082
31083 2015-05-15  Wilco Dijkstra  <wdijkstr@arm.com>
31084
31085         * stdio-common/printf_fp.c (___printf_fp): Use abs.
31086         * stdlib/gmp-impl.h (ABS): Remove define.  (ABSIZ): Remove.
31087         * sysdeps/ieee754/dbl-64/branred.c (__branred): Use fabs.
31088         * sysdeps/ieee754/dbl-64/dla.h (EADD): Use fabs.
31089         (ESUB): Use fabs.  (ADD2): Use fabs.  (SUB2): Use fabs.
31090         (ADD2A): Use fabs.  (SUB2A): Use fabs.
31091         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use fabs.
31092         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Use fabs.
31093         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use fabs.
31094         (log1): Use fabs.  (my_log2): Use fabs.
31095         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Use fabs.
31096         * sysdeps/ieee754/dbl-64/mpa.h (ABS): Remove define.
31097         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use fabs.
31098         * sysdeps/ieee754/dbl-64/mydefs.h (ABS): Remove define.
31099         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use fabs.
31100         (__cos): Use fabs.  (slow): Use fabs.  (slow2): Use fabs.
31101         (sloww): Use fabs.  (sloww1): Use fabs.  (sloww2): Use fabs.
31102         (bslow1): Use fabs.  (bslow2): Use fabs.  (cslow2): Use fabs.
31103         (csloww): Use fabs.  (csloww1): Use fabs.  (csloww2): Use fabs.
31104         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Use fabs.
31105         * sysdeps/x86_64/fpu/multiarch/e_log.c: add math.h include.
31106
31107 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
31108
31109         [BZ #18217]
31110         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Use 2**-26 not 2**-56
31111         as threshold for returning 1 - x.
31112         * math/auto-libm-test-in: Add more tests of erfc.
31113         * math/auto-libm-test-out: Regenerated.
31114
31115 2015-05-14  Joseph Myers  <joseph@codesourcery.com>
31116
31117         [BZ #18196]
31118         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Use 2^25 not 2^34 as
31119         threshold for large arguments.
31120         * math/auto-libm-test-in: Add another test of atan.
31121         * math/auto-libm-test-out: Regenerated.
31122
31123         [BZ #16339]
31124         * sysdeps/i386/fpu/s_log1p.S (dbl_min): New object.
31125         (__log1p): Force underflow exception for results with small
31126         absolute value.
31127         * sysdeps/i386/fpu/s_log1pf.S (flt_min): New object.
31128         (__log1pf): Force underflow exception for results with small
31129         absolute value.
31130         * sysdeps/ieee754/dbl-64/s_log1p.c: Include <float.h>.
31131         (__log1p): Force underflow exception for results with small
31132         absolute value.
31133         * sysdeps/ieee754/flt-32/s_log1pf.c: Include <float.h>.
31134         (__log1pf): Force underflow exception for results with small
31135         absolute value.
31136         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Include <float.h>.
31137         (__log1pl): Force underflow exception for results with small
31138         absolute value.
31139         * math/auto-libm-test-in: Do not allow missing underflow
31140         exceptions from log1p.
31141         * math/auto-libm-test-out: Regenerated.
31142
31143 2015-05-14  Jakub Bogusz  <qboosh@pld-linux.org>
31144             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31145
31146         [BZ #16704]
31147         * sysdeps/unix/make-syscalls.sh: Remove non-portable echo usage.
31148
31149 2015-05-14  Andrew Senkevich  <andrew.senkevich@intel.com>
31150
31151         * Makeconfig (rpath-dirs, all-subdirs): Added mathvec folder.
31152         (libmvec): New variable.
31153         * configure.ac: Added option for mathvec build.
31154         * configure: Regenerated.
31155         * mathvec/Depend: New file.
31156         * mathvec/Makefile: New file.
31157         * shlib-versions: Added libmvec.
31158         * math/Makefile: Added rule for libm.so installation.
31159
31160         * bits/math-vector.h: New file.
31161         * bits/libm-simd-decl-stubs.h: New header.
31162         * math/Makefile (headers): Added new header
31163         libm-simd-decl-stubs.h.
31164         * math/math.h (__MATHCALL_VEC): New macro.
31165
31166         * math/gen-libm-have-vector-test.sh: Script generates series of macros
31167         for conditions in testing functions.
31168         * math/Makefile: Added call of libm-have-vector-test.sh.
31169         * math/libm-test.inc (HAVE_VECTOR): New macros.
31170
31171         * math/libm-test.inc: START refactored.
31172         * math/test-double.c (TEST_MATHVEC): Add define.
31173         * math/test-float.c: Likewise.
31174         * math/test-idouble.c: Likewise.
31175         * math/test-ifloat.c: Likewise.
31176         * math/test-ildoubl.c: Likewise.
31177         * math/test-ldouble.c: Likewise.
31178         * sysdeps/generic/math-tests-arch.h
31179         (INIT_ARCH_EXT, CHECK_ARCH_EXT): New helper macros for runtime
31180         architecture check.
31181
31182         * math/test-double.c (FUNC_TEST): New macro.
31183         * math/test-float.c: Likewise.
31184         * math/test-idouble.c: Likewise.
31185         * math/test-ifloat.c: Likewise.
31186         * math/test-ildoubl.c: Likewise.
31187         * math/test-ldouble.c: Likewise.
31188         * math/libm-test.inc: Use FUNC_TEST for name of tested functions.
31189
31190 2015-05-13  Roland McGrath  <roland@hack.frob.com>
31191
31192         * sysdeps/nacl/fdopendir.c: New file.
31193
31194         * dirent/scandir-tail.c: New file.
31195         * dirent/scandir64-tail.c: New file.
31196         * dirent/Makefile (routines): Add them.
31197         (CFLAGS-scandir-tail.c, CFLAGS-scandir64-tail.c): New variables.
31198         * include/dirent.h (__scandir_tail, __scandir64_tail): Declare them.
31199         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Macro removed.
31200         [!SCANDIR] (SCANDIR_TAIL): New macro.
31201         (SCANDIR): Call __opendir and __scandir_tail, not __scandirat.
31202         * dirent/scandir64.c [!_DIRENT_MATCHES_DIRENT64]
31203         (SCANDIRAT): Macro removed.
31204         (SCANDIR_TAIL): New macro.
31205         * dirent/scandirat.c [!SCANDIRAT] (READDIR): Macro removed.
31206         [!SCANDIRAT] (SCANDIR_TAIL): New macro.
31207         (SCANDIRAT): Just call __opendirat and __scandir_tail.
31208         * dirent/scandirat64.c [!_DIRENT_MATCHES_DIRENT64]
31209         (READDIR): Macro removed.
31210         (SCANDIR_TAIL): New macro.
31211         * sysdeps/unix/sysv/linux/i386/scandir64.c (READDIR): Macro removed.
31212         (SCANDIR_TAIL): New macro.
31213
31214         * dirent/scandirat.c (__scandir_cancel_handler): Function moved ...
31215         * dirent/scandir-cancel.c: ... to this new file.
31216         * dirent/Makefile (routines): Add it.
31217         * dirent/scandirat64.c (SKIP_SCANDIR_CANCEL): Macro removed.
31218         * sysdeps/unix/sysv/linux/i386/scandir64.c
31219         (SKIP_SCANDIR_CANCEL): Macro removed.
31220         * include/dirent.h (__scandir_cancel_handler): Add attribute_hidden.
31221
31222         * dirent/tst-scandir.c: New file.
31223         * dirent/tst-scandir64.c: New file.
31224         * dirent/Makefile (tests): Add them.
31225
31226 2015-05-13  H.J. Lu  <hongjiu.lu@intel.com>
31227
31228         [BZ #18409]
31229         * sysdeps/unix/make-syscalls.sh: Remove a trailing `\'.
31230
31231 2015-05-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
31232
31233         * sysdeps/aarch64/tls-macros.h (TLS_GD): Add "cc" to the clobber
31234         list.
31235
31236 2015-05-13  Leonhard Holz  <leonhard.holz@web.de>
31237
31238         * benchtests/bench-strcoll.c: New benchmark.
31239         * benchtests/Makefile: Generate locales and run benchmark.
31240         * benchtests/strcoll-inputs/filelist#C: New benchmark input file.
31241         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
31242         * benchtests/strcoll-inputs/lorem_ipsum#ar_SA.UTF-8: Likewise.
31243         * benchtests/strcoll-inputs/lorem_ipsum#cs_CZ.UTF-8: Likewise.
31244         * benchtests/strcoll-inputs/lorem_ipsum#da_DK.UTF-8: Likewise.
31245         * benchtests/strcoll-inputs/lorem_ipsum#el_GR.UTF-8: Likewise.
31246         * benchtests/strcoll-inputs/lorem_ipsum#en_GB.UTF-8: Likewise.
31247         * benchtests/strcoll-inputs/lorem_ipsum#en_US.UTF-8: Likewise.
31248         * benchtests/strcoll-inputs/lorem_ipsum#es_ES.UTF-8: Likewise.
31249         * benchtests/strcoll-inputs/lorem_ipsum#fr_FR.UTF-8: Likewise.
31250         * benchtests/strcoll-inputs/lorem_ipsum#hi_IN.UTF-8: Likewise.
31251         * benchtests/strcoll-inputs/lorem_ipsum#hu_HU.UTF-8: Likewise.
31252         * benchtests/strcoll-inputs/lorem_ipsum#is_IS.UTF-8: Likewise.
31253         * benchtests/strcoll-inputs/lorem_ipsum#it_IT.UTF-8: Likewise.
31254         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Likewise.
31255         * benchtests/strcoll-inputs/lorem_ipsum#ja_JP.UTF-8: Likewise.
31256         * benchtests/strcoll-inputs/lorem_ipsum#pl_PL.UTF-8: Likewise.
31257         * benchtests/strcoll-inputs/lorem_ipsum#pt_PT.UTF-8: Likewise.
31258         * benchtests/strcoll-inputs/lorem_ipsum#ru_RU.UTF-8: Likewise.
31259         * benchtests/strcoll-inputs/lorem_ipsum#sr_RS.UTF-8: Likewise.
31260         * benchtests/strcoll-inputs/lorem_ipsum#sv_SE.UTF-8: Likewise.
31261         * benchtests/strcoll-inputs/lorem_ipsum#tr_TR.UTF-8: Likewise.
31262         * benchtests/strcoll-inputs/lorem_ipsum#vi_VN.UTF-8: Likewise.
31263         * benchtests/strcoll-inputs/lorem_ipsum#zh_CN.UTF-8: Likewise.
31264
31265 2015-05-12  Ondřej Bílka  <neleai@seznam.cz>
31266
31267         * sysdeps/x86_64/multiarch/strcspn.S: Remove plt indirection.
31268         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
31269
31270 2015-05-12  Roland McGrath  <roland@hack.frob.com>
31271
31272         * posix/uname-values.h: New file.
31273         * posix/uname.c: Include that instead of <config-name.h>.
31274         * sysdeps/nacl/uname-values.h: New file.
31275         * sysdeps/arm/nacl/uname-values.h: New file.
31276
31277 2015-05-12  Joseph Myers  <joseph@codesourcery.com>
31278
31279         * conform/linknamespace.pl (list_syms): Remove \[.*?\] before
31280         splitting into fields.
31281
31282 2015-05-12  Leonhard Holz  <leonhard.holz@web.de>
31283
31284         * locale/categories.def: Define _NL_COLLATE_ENCODING_TYPE.
31285         * locale/langinfo.h: Add _NL_COLLATE_ENCODING_TYPE to attribute list.
31286         * locale/localeinfo.h: Add enum collation_encoding_type.
31287         * locale/C-collate.c: Set _NL_COLLATE_ENCODING_TYPE to 8bit.
31288         * programs/ld-collate.c (collate_output): Add encoding type info.
31289         * string/strcoll_l.c (STRDIFF): New function.
31290         * (STRCOLL): Use STRDIFF to skip over equal prefix.
31291         * wcsmbs/wcscoll_l.c: Define STRDIFF.
31292
31293 2015-05-11  Joseph Myers  <joseph@codesourcery.com>
31294
31295         [BZ #18397]
31296         * sysdeps/mips/mips32/fpu/fpu_control.c: Move to ....
31297         * sysdeps/mips/mips32/fpu/fpucw-helpers.c: ... here.  Include
31298         <fpu_control.h> instead of <math/fpu_control.c>.
31299         * sysdeps/mips/mips32/fpu/Makefile: New file.
31300
31301 2015-05-11  Andreas Schwab  <schwab@suse.de>
31302
31303         [BZ #18007]
31304         * nis/nss_compat/compat-grp.c (internal_endgrent): Don't call
31305         nss_endgrent.
31306         (_nss_compat_endgrent): Call nss_endgrent.
31307         * nis/nss_compat/compat-pwd.c (internal_endpwent): Don't call
31308         nss_endpwent.
31309         (_nss_compat_endpwent): Call nss_endpwent.
31310         * nis/nss_compat/compat-spwd.c (internal_setspent): Add parameter
31311         needent, call nss_setspent only if non-zero.
31312         (_nss_compat_setspent, _nss_compat_getspent_r): Pass non-zero.
31313         (internal_endspent): Don't call nss_endspent.
31314         (_nss_compat_endspent): Call nss_endspent.
31315         * nss/nss_files/files-XXX.c (position, last_use, keep_stream):
31316         Remove.  All uses removed.
31317         (internal_setent): Remove parameter stayopen, add parameter
31318         stream.  Use it instead of global variable.
31319         (CONCAT(_nss_files_set,ENTNAME)): Pass global stream.
31320         (internal_endent, internal_getent): Add parameter stream.  Use it
31321         instead of global variable.
31322         (CONCAT(_nss_files_end,ENTNAME))
31323         (CONCAT(_nss_files_get,ENTNAME_r)): Pass global stream.
31324         (_nss_files_get##name##_r): Pass local stream.  Remove locking.
31325         * nss/nss_files/files-alias.c (position, last_use): Remove.  All
31326         uses removed.
31327         (internal_setent, internal_endent): Add parameter stream.  Use it
31328         instead of global variable.
31329         (_nss_files_setaliasent, _nss_files_endaliasent): Pass global
31330         stream.
31331         (get_next_alias): Add parameter stream.
31332         (_nss_files_getaliasent_r): Pass global stream.
31333         (_nss_files_getaliasbyname_r): Pass local stream.  Remove locking.
31334         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r)
31335         (_nss_files_gethostbyname4_r): Pass local stream to
31336         internal_setent, internal_getent and internal_endent.  Remove
31337         locking.
31338
31339 2015-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
31340
31341         * tst-strfmon1.c (tests): Update expected currency symbol.
31342
31343 2015-05-08  Roland McGrath  <roland@hack.frob.com>
31344
31345         * sysdeps/nacl/gethostname.c: New file.
31346
31347 2015-05-08  Joseph Myers  <joseph@codesourcery.com>
31348
31349         * math/auto-libm-test-in: Add more tests of csqrt, lgamma, log10
31350         and sinh.
31351         * math/auto-libm-test-out: Regenerated.
31352         * sysdeps/i386/fpu/libm-test-ulps: Update.
31353         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31354
31355 2015-05-08  Carlos O'Donell  <carlos@redhat.com>
31356
31357         [BZ #18125]
31358         * stdlib/tst-setcontext3.c: New file.
31359         * stdlib/tst-setcontext3.sh: New file.
31360         * stdlib/Makefile (tests): Add tst-setcontext3.
31361         (tst-setcontext3.out): Custom rule to run tst-setcontext3.sh
31362         to verify test program created output file.
31363         * sysdeps/unix/sysv/linux/aarch64/setcontext.S: Call exit.
31364         * sysdeps/unix/sysv/linux/arm/setcontext.S: Likewise.
31365         * sysdeps/unix/sysv/linux/hppa/setcontext.S: Likewise.
31366         * sysdeps/unix/sysv/linux/nios2/setcontext.S: Likewise.
31367
31368 2015-05-06  Roland McGrath  <roland@hack.frob.com>
31369
31370         [BZ #18383]
31371         * elf/tst-tlsalign.c: New file.
31372         * elf/tst-tlsalign-static.c: New file.
31373         * elf/tst-tlsalign-lib.c: New file.
31374         * elf/Makefile [$(build-shared) = yes] (tests): Add tst-tlsalign.
31375         (tests-static): Add tst-tlsalign-static.
31376         (modules-names): Add tst-tlsalign-lib.
31377         (test-xfail-tst-tlsalign): New variable.
31378         (test-xfail-tst-tlsalign-static): New variable.
31379
31380         * sysdeps/nacl/nacl-test-wrapper.sh (NACL_LOADER):
31381         Use elf_loader_${arch}.nexe rather than loader_${arch}.nexe.
31382
31383 2015-05-06  Joseph Myers  <joseph@codesourcery.com>
31384
31385         * math/auto-libm-test-in: Add more tests of acosh, atanh, cos,
31386         csqrt, erfc, sin and sincos.
31387         * math/auto-libm-test-out: Regenerated.
31388         * sysdeps/i386/fpu/libm-test-ulps: Update.
31389         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31390
31391 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
31392
31393         * sysdeps/aarch64/libm-test-ulps: Update.
31394
31395 2015-05-05  Joseph Myers  <joseph@codesourcery.com>
31396
31397         * math/auto-libm-test-in: Add more tests of acosh, atanh, clog,
31398         clog10, csqrt, erfc, exp2, expm1, log10, log2 and sinh.
31399         * math/auto-libm-test-out: Regenerated.
31400         * sysdeps/i386/fpu/libm-test-ulps: Update.
31401         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31402
31403 2015-04-30  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
31404
31405         [BZ #18265]
31406         * wcsmbs/wchar.h (wcscpy): Add __nonnull attribute.
31407         (wcsncpy): Likewise.
31408
31409 2015-05-05  Florian Weimer  <fweimer@redhat.com>
31410
31411         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
31412         Assume __ASSUME_FALLOCATE is always true.
31413         * sysdeps/unix/sysv/linux/posix_fallocate64.c
31414         (__posix_fallocate64_l64): Likewise.
31415         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate.c
31416         (posix_fallocate): Likewise.
31417         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate64.c
31418         (__posix_fallocate64_l64): Likewise.
31419         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
31420         [!__ASSUME_FALLOCATE]: Add comment.
31421
31422 2015-05-05  Florian Weimer  <fweimer@redhat.com>
31423
31424         * sysdeps/unix/sysv/linux/i386/Makefile
31425         (sysdep_routines) [$(subdir) = misc]: Remove call_fallocate.
31426         (sysdep_routines) [$(subdir) = io]: Add libc-do-syscall.
31427         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: Remove.
31428         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
31429         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
31430         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Likewise.
31431         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
31432
31433 2015-05-02  Joseph Myers  <joseph@codesourcery.com>
31434
31435         * math/auto-libm-test-in: Add more tests of atan, clog, clog10,
31436         cos, csqrt, erf, erfc, exp2, lgamma, log1p, sin, sincos, tanh and
31437         tgamma.
31438         * math/auto-libm-test-out: Regenerated.
31439         * sysdeps/i386/fpu/libm-test-ulps: Update.
31440         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31441
31442 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
31443
31444         * math/auto-libm-test-in: Add more tests of tgamma.
31445         * math/auto-libm-test-out: Regenerated.
31446         * sysdeps/i386/fpu/libm-test-ulps: Update.
31447         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31448
31449         * math/auto-libm-test-in: Add more tests of tanh.
31450         * math/auto-libm-test-out: Regenerated.
31451         * sysdeps/i386/fpu/libm-test-ulps: Update.
31452         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31453
31454         * math/auto-libm-test-in: Add more tests of tan.
31455         * math/auto-libm-test-out: Regenerated.
31456         * sysdeps/i386/fpu/libm-test-ulps: Update.
31457         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31458
31459         * math/auto-libm-test-in: Add more tests of cos, sin and sincos.
31460         * math/auto-libm-test-out: Regenerated.
31461         * sysdeps/i386/fpu/libm-test-ulps: Update.
31462         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31463
31464         * math/auto-libm-test-in: Add another test of pow.
31465         * math/auto-libm-test-out: Regenerated.
31466         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
31467
31468         * math/auto-libm-test-in: Add more tests of lgamma.
31469         * math/auto-libm-test-out: Regenerated.
31470         * sysdeps/i386/fpu/libm-test-ulps: Update.
31471         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31472
31473         * math/auto-libm-test-in: Add more tests of log, log10, log2 and
31474         log1p.
31475         * math/auto-libm-test-out: Regenerated.
31476         * sysdeps/i386/fpu/libm-test-ulps: Update.
31477         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31478
31479 2015-05-01  Mark Wielaard  <mjw@redhat.com>
31480
31481         * elf/elf.h: Add SHF_COMPRESSED section flag, Elf32_Chdr and
31482         Elf64_Chdr structs and ELFCOMPRESS constants.
31483
31484 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
31485
31486         * math/auto-libm-test-in: Add more tests of exp, exp10, exp2 and
31487         expm1.
31488         * math/auto-libm-test-out: Regenerated.
31489         * sysdeps/i386/fpu/libm-test-ulps: Update.
31490         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31491
31492         * math/auto-libm-test-in: Add more tests of erf and erfc.
31493         * math/auto-libm-test-out: Regenerated.
31494         * sysdeps/i386/fpu/libm-test-ulps: Update.
31495         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31496
31497 2015-05-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
31498
31499         * config.h.in (HAVE_AARCH64_BE): Add.
31500
31501 2015-04-30  Joseph Myers  <joseph@codesourcery.com>
31502
31503         * math/auto-libm-test-in: Add more tests of csqrt.
31504         * math/auto-libm-test-out: Regenerated.
31505         * sysdeps/i386/fpu/libm-test-ulps: Update.
31506         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31507
31508         * math/auto-libm-test-in: Add more tests of cosh and sinh.
31509         * math/auto-libm-test-out: Regenerated.
31510         * sysdeps/i386/fpu/libm-test-ulps: Update.
31511         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31512
31513         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: Remove file.
31514
31515 2015-04-29  Roland McGrath  <roland@hack.frob.com>
31516
31517         * sysdeps/nacl/bits/typesizes.h (__CLOCK_T_TYPE): Use __SLONGWORD_TYPE.
31518         * sysdeps/nacl/nacl-interfaces.h (nacl_abi_clock_t): Use clock_t.
31519
31520         * sysdeps/nacl/euidaccess.c (euidaccess): Renamed to __euidaccess.
31521         (euidaccess, eaccess): Define as weak aliases.
31522
31523         * sysdeps/nacl/bits/typesizes.h (__SUSECONDS_T_TYPE): Use
31524         __SLONGWORD_TYPE rather than __S32_TYPE.  They are the same size,
31525         but __suseconds_t is often 'long int' so some sources assume that
31526         type is being used (e.g. they use %ld to print tv_usec).
31527
31528 2015-04-29  Florian Weimer  <fweimer@redhat.com>
31529
31530         [BZ #18007]
31531         * nss/nss_files/files-XXX.c (CONCAT): Always enable stayopen.
31532         (CVE-2014-8121)
31533         * nss/tst-nss-getpwent.c: New file.
31534         * nss/Makefile (tests): Add new test.
31535
31536 2015-04-28  Joseph Myers  <joseph@codesourcery.com>
31537
31538         [BZ #18346]
31539         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Handle all
31540         exponents less than 48 as cases where high part of mantissa needs
31541         examining to determine whether argument is integral.
31542         * math/libm-test.inc (round_test_data): Add more tests.
31543
31544 2015-04-28  Mark Wielaard  <mjw@redhat.com>
31545
31546         * elf/elf.h (SHF_EXCLUDE): Use unsigned 1 for shift.
31547
31548 2015-04-27  David S. Miller  <davem@davemloft.net>
31549
31550         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Remove
31551         __tls_get_addr.
31552         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
31553
31554 2015-04-27  H.J. Lu  <hongjiu.lu@intel.com>
31555
31556         [BZ #18333]
31557         * time/tzset.c (__tzfile_read): Check tzspec_len == 0.
31558
31559 2015-04-27  Florian Weimer  <fweimer@redhat.com>
31560
31561         [BZ #18333]
31562         * time/tzset.c (parse_tzname): Return error on memory allocation
31563         failure.
31564         * test-skeleton.c (struct temp_name_list): Change type of name
31565         member to non-const.
31566         (add_temp_file): Create a copy of the file name.
31567         (delete_temp_files): Deallocate memory.
31568         (create_temp_file): Add comment.
31569
31570 2015-04-24  Florian Weimer  <fweimer@redhat.com>
31571
31572         * io/posix_fallocate.c (posix_fallocate): Do not set errno.
31573         * io/posix_fallocate64.c (posix_fallocate64): Likewise.
31574
31575 2015-04-24  Roland McGrath  <roland@hack.frob.com>
31576
31577         * sysdeps/arm/configure.ac (PI_STATIC_AND_HIDDEN): Define it.
31578         * sysdeps/arm/configure: Regenerated.
31579
31580 2015-04-24  Florian Weimer  <fweimer@redhat.com>
31581
31582         [BZ #17715]
31583         * time/tzfile.c (__tzfile_read): Check for large values of
31584         tzh_ttisstdcnt and tzh_ttisgmtcnt.  Use malloc instead of alloca.
31585         * time/tzset.c (__tzstring_len): New function, based on the old
31586         __tzstring function.
31587         (__tzstring): Call __tzstring_len.
31588         (parse_tzname): New helper function extracted from
31589         __tzset_parse_tz.  Call __tzstring_len, without making a copy of
31590         the input string.
31591         (parse_offset): New helper function extracted from
31592         __tzset_parse_tz.  Replace switch with fallthrough with
31593         initialization before sscanf.
31594         (parse_rule): Likewise.
31595         (__tzset_parse_tz): Rewrite using the new helper functions.  Use
31596         new-style function definition.
31597         * timezone/Makefile (tests): Add tst-tzset.
31598         (tst-tzset.out): Dependencies on time zone files.
31599         (tst-tzset-ENV): Set TZDIR.
31600         (testdata/XT%): Copy crafted time zone files.
31601         * timezone/README: Mention crafted time zone files.
31602         * timezone/testdata/XT1, timezone/testdata/XT2,
31603         timezone/testdata/XT3, timezone/testdata/XT4: New time zone test
31604         files.
31605         * timezone/tst-tzset.c: New test.
31606
31607 2015-04-24  Florian Weimer  <fweimer@redhat.com>
31608
31609         * Makeconfig (+gccwarn): Remove -Winline.
31610
31611 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
31612
31613         * sysdeps/s390/fpu/libm-test-upls: Regenerate.
31614
31615 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
31616
31617         * NEWS: Mention sysconf() cache information support for s390.
31618         * sysdeps/unix/sysv/linux/s390/sysconf.c: New File.
31619
31620 2015-04-22  Wilco Dijkstra  <wdijkstr@arm.com>
31621
31622         * math/k_casinh.c (__kernel_casinh): Use __copysign.
31623         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c
31624         (__nearbyint): Likewise.
31625         * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c
31626         (copysignl): Likewise.
31627
31628 2015-04-21  Arjun Shankar  <arjun.is@lostca.se>
31629
31630         [BZ #18287]
31631         * resolv/nss_dns/dns-host.c (getanswer_r): Adjust buffer length
31632         based on padding.  (CVE-2015-1781)
31633
31634 2015-04-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31635
31636         * nptl/pthread_cond_timedwait.c: Change include bits/libc-vdso.h to just
31637         libc-vdso.h.
31638         * sysdeps/powerpc/powerpc32/backtrace.c: Likewise.
31639         * sysdeps/powerpc/powerpc64/backtrace.c: Likewise.
31640         * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
31641         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
31642         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
31643         * sysdeps/unix/sysv/linux/gettimeofday.c: Likewise.
31644         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Likewise.
31645         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
31646         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
31647         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Likewise.
31648         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
31649         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
31650         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
31651         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise.
31652         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
31653         * sysdeps/unix/sysv/linux/aarch64/bits/libc-vdso.h: Move to ...
31654         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: ... here.
31655         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Move to ...
31656         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: ... here.
31657         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: Move to ...
31658         * sysdeps/unix/sysv/linux/s390/libc-vdso.h: ... here.
31659         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Move to ...
31660         * sysdeps/unix/sysv/linux/tile/libc-vdso.h: ... here.
31661
31662 2015-04-19  Paul Eggert  <eggert@cs.ucla.edu>
31663
31664         * stdlib/setenv.c (__add_to_environ):
31665         Dump core quickly if setenv (..., NULL, ...) is called.
31666         This time, do it the right way, and pacify GCC with a pragma.
31667
31668 2015-04-17  Roland McGrath  <roland@hack.frob.com>
31669
31670         * elf/dl-close.c (_dl_close_worker) [DL_NNS == 1]: Just assert that
31671         IMAP->l_prev cannot be null, and #if out the code for the contrary
31672         case, avoiding 'assert (nsid != LM_ID_BASE)' making the compiler
31673         believe that NS (&_dl_ns[NSID]) could point outside the array.
31674
31675         * elf/dl-open.c (_dl_open): Use __glibc_unlikely in invalid namespace
31676         check.  Reject NSID < 0 and NSID >= dl_nns, and check for DL_NNS==1,
31677         before using NSID as an index.
31678
31679 2015-04-17  Il'ya Malakhov <ilmalakhov@yandex.ru>
31680
31681         [BZ #17825]
31682         * sysdeps/sparc/sparc64/memchr.S: Fix signedness handling of length.
31683         * sysdeps/sparc/sparc64/memcmp.S: Likewise.
31684         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
31685
31686 2015-04-17  Roland McGrath  <roland@hack.frob.com>
31687
31688         Add preliminary port to Google Native Client on ARM.
31689         * abi-tags (.*-.*-nacl.*): New entry.
31690         * sysdeps/arm/nacl: New directory.
31691         * sysdeps/nacl: New directory.
31692
31693 2015-04-16  David S. Miller  <davem@davemloft.net>
31694
31695         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Make use of
31696         lowlevellock-futex.h
31697
31698 2015-04-16  Chris Metcalf  <cmetcalf@ezchip.com>
31699
31700         * sysdeps/tile/configure.ac: New file.
31701         * sysdeps/tile/configure: Regenerated.
31702
31703 2015-04-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31704
31705         * wcsmbs/wcschr.c [WCSCHR] (wcschr): Define as __wcschr.  Remove
31706         conditionals for weak_alias and libc_hidden_weak.
31707         * sysdeps/i386/i686/multiarch/wcschr-c.c [libc]: Undefine
31708         libc_hidden_weak and weak_alias.
31709         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c [libc]:
31710         Undefine libc_hidden_weak. Define libc_hidden_def for SHARED builds
31711         and weak_alias for static one.
31712
31713 2015-04-15  David S. Miller  <davem@davemloft.net>
31714
31715         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
31716
31717 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
31718
31719         [BZ #18206]
31720         * wcsmbs/wcsncmp.c (wcsncmp): Compare as wchar_t, not wint_t.
31721           Use signed comparision instead of substraction to avoid
31722           overflow bug.
31723         * localedata/tests-mbwc/tst_wcsncmp.c (tst_wcsncmp):
31724           Take the sign of ret.
31725         * localedata/tests-mbwc/dat_wcsncmp.c (tst_wcsncmp_loc):
31726           Do not expect precise return values. Only the sign matters.
31727         * wcsmbs/Makefile (strop-tests): Add wcsncmp.
31728         * wcsmbs/test-wcsncmp.c: New File.
31729         * string/test-strncmp.c: Add wcsncmp support.
31730
31731 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
31732
31733         [BZ #6792]
31734         * math/w_log1p.c: New file.
31735         * math/w_log1pf.c: Likewise.
31736         * math/w_log1pl.c: Likewise.
31737         * math/Makefile (libm-calls): Add w_log1p.
31738         * math/s_log1pl.c (log1pl): Remove weak_alias.
31739         * sysdeps/i386/fpu/s_log1p.S (log1p): Likewise.
31740         * sysdeps/i386/fpu/s_log1pf.S (log1pf): Likewise.
31741         * sysdeps/i386/fpu/s_log1pl.S (log1pl): Likewise.
31742         * sysdeps/x86_64/fpu/s_log1pl.S (log1pl): Likewise.
31743         * sysdeps/ieee754/dbl-64/s_log1p.c (log1p): Likewise.
31744         [NO_LONG_DOUBLE] (log1pl): Likewise.
31745         * sysdeps/ieee754/flt-32/s_log1pf.c (log1pf): Likewise.
31746         * sysdeps/ieee754/ldbl-128/s_log1pl.c (log1pl): Likewise.
31747         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c
31748         (log1p): Remove long_double_symbol.
31749         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (log1pl): Likewise.
31750         * sysdeps/ieee754/ldbl-64-128/w_log1pl.c: New file.
31751         * sysdeps/ieee754/ldbl-128ibm/w_log1pl.c: Likewise.
31752         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Define empty weak_alias to
31753         remove weak_alias for corresponding log1p function.
31754         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Likewise.
31755         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
31756         * sysdeps/ia64/fpu/w_log1p.c: New file.
31757         * sysdeps/ia64/fpu/w_log1pf.c: Likewise.
31758         * sysdeps/ia64/fpu/w_log1pl.c: Likewise.
31759         * math/libm-test.inc (log1p_test_data): Add errno expectations.
31760
31761 2015-04-10  Joseph Myers  <joseph@codesourcery.com>
31762
31763         [BZ #18247]
31764         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Decrease minimum
31765         decimal exponent by 1.
31766         * stdlib/tst-strtod-round-data: Add more tests.
31767         * stdlib/tst-strtod-round.c (tests): Regenerated.
31768
31769 2015-04-09  Joseph Myers  <joseph@codesourcery.com>
31770
31771         * math/auto-libm-test-in: Add more tests of clog and clog10.
31772         * math/auto-libm-test-out: Regenerated.
31773         * sysdeps/i386/fpu/libm-test-ulps: Update.
31774         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31775
31776 2015-04-09  Roland McGrath  <roland@hack.frob.com>
31777
31778         * Makeconfig (module-cppflags): Exclude all .v.i files.
31779         (skip-module-cppflags): Variable removed.
31780
31781         * configure.ac (libc_config_ok): Initialize before reading
31782         preconfigure scripts, not after.
31783         * configure: Regenerated.
31784
31785         * test-skeleton.c (TIMEOUT): Move #define to top level.
31786         (main): Grok environment variable TEST_DIRECT.  If set, print
31787         test expectation details into that file and then behave as if
31788         given --direct.
31789
31790 2015-04-09  Florian Weimer  <fweimer@redhat.com>
31791
31792         * malloc/tst-scratch_buffer.c (do_test): Suppress truncation
31793         warning on 32-bit.
31794
31795 2015-04-08  David S. Miller  <davem@davemloft.net>
31796
31797         * sysdeps/sparc/fpu/libm-test-ulps: Update.
31798
31799 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
31800
31801         * math/auto-libm-test-in: Add more tests of atanh.
31802         * math/auto-libm-test-out: Regenerated.
31803         * sysdeps/i386/fpu/libm-test-ulps: Update.
31804         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31805
31806         * math/auto-libm-test-in: Add more tests of atan.
31807         * math/auto-libm-test-out: Regenerated.
31808         * sysdeps/i386/fpu/libm-test-ulps: Update.
31809         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31810
31811 2015-04-08  Florian Weimer  <fweimer@redhat.com>
31812
31813         * elf/pldd.c (main): Rewrite to use struct
31814         scratch_buffer instead of extend_alloca.
31815         * elf/pldd-xx.c (find_maps): Likewise.
31816         * grp/initgroups.c: Include <scratch_buffer.h> instead of
31817         <alloca.h>.
31818         * grp/compat-initgroups.c (compat_call): Rewrite to use struct
31819         scratch_buffer instead of extend_alloca.
31820         * nscd/initgrcache.c: Include <scratch_buffer.h>, now needed by
31821         grp/compat-initgroups.c.
31822         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
31823         Rewrite to use struct scratch_buffer instead of extend_alloca.
31824         * inet/getnameinfo.c (nrl_domainname, getnameinfo): Likewise.
31825         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
31826
31827 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
31828
31829         * math/auto-libm-test-in: Add more tests of cbrt.
31830         * math/auto-libm-test-out: Regenerated.
31831         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
31832
31833         * math/auto-libm-test-in: Add more tests of cabs.
31834         * math/auto-libm-test-out: Regenerated.
31835         * sysdeps/i386/fpu/libm-test-ulps: Update.
31836         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31837
31838         [BZ #18210]
31839         [BZ #18211]
31840         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <fenv.h>.
31841         (__ieee754_atan2): Set FE_TONEAREST mode for internal
31842         computations.
31843         * math/auto-libm-test-in: Add more tests of atan2, carg, clog and
31844         clog10.
31845         * math/auto-libm-test-out: Regenerated.
31846         * sysdeps/i386/fpu/libm-test-ulps: Update.
31847         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31848
31849         [BZ #18197]
31850         * sysdeps/ieee754/dbl-64/s_atan.c: Include <fenv.h>.
31851         (atan): Set FE_TONEAREST mode for internal computations.
31852         * math/auto-libm-test-in: Add more tests of atan.
31853         * math/auto-libm-test-out: Regenerated.
31854
31855 2015-04-07  James Cowgill  <james410@cowgill.org.uk>
31856
31857         [BZ #17930]
31858         * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHM_NORESERVE): Define.
31859
31860 2015-04-07  Florian Weimer  <fweimer@redhat.com>
31861
31862         * malloc/scratch_buffer_grow_preserve.c: Include <string.h>
31863
31864 2015-04-07  Florian Weimer  <fweimer@redhat.com>
31865
31866         * include/scratch_buffer.h: New file.
31867         * malloc/scratch_buffer_grow.c: Likewise.
31868         * malloc/scratch_buffer_grow_preserve.c: Likewise.
31869         * malloc/scratch_buffer_set_array_size.c: Likewise.
31870         * malloc/tst-scratch_buffer.c: Likewise.
31871         * malloc/Makefile (routines): Add scratch_buffer_grow.
31872         (tests): Add test case.
31873         * malloc/Versions (GLIBC_PRIVATE): Export
31874         __libc_scratch_buffer_grow, __libc_scratch_buffer_grow_preserve,
31875         __libc_scratch_buffer_set_array_size.
31876
31877 2015-04-06  Richard Henderson  <rth@redhat.com>
31878
31879         * sysdeps/unix/alpha/sysdep.h: Unconditionally include dl-sysdep.h.
31880         * sysdeps/alpha/fpu/libm-test-ulps: Update.
31881
31882         * math/test-fenvinline.c (feenable_test): Cast fe_exc to
31883         unsigned int before printing.
31884
31885 2015-04-03  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
31886
31887         [BZ #17596]
31888         * wcsmbs/mbrtowc.c (__mbrtowc): Add check for n=0.
31889         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
31890
31891 2015-04-02  Florian Weimer  <fweimer@redhat.com>
31892
31893         * include/libc-internal.h (libc_max_align_t): Define.
31894
31895 2015-04-02  Andreas Schwab  <schwab@suse.de>
31896
31897         [BZ #16850]
31898         * sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h: New file.
31899
31900 2015-04-02  Mel Gorman  <mgorman@suse.de>
31901
31902         [BZ #17195]
31903         * malloc/arena.c (free): Apply trim threshold to per-thread heaps
31904         as well as the main arena.
31905
31906 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
31907
31908         [BZ #18185]
31909         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Limit threads
31910         sharing L2 cache to 2 for Silvermont/Knights Landing.
31911
31912 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
31913
31914         [BZ #17711]
31915         * config.make.in (have-protected-data): New.
31916         * configure.ac: Check linker support for protected data symbol.
31917         * configure: Regenerated.
31918         * elf/Makefile (modules-names): Add tst-protected1moda and
31919         tst-protected1modb if $(have-protected-data) is yes.
31920         (tests): Add tst-protected1a and tst-protected1b if
31921         $(have-protected-data) is yes.
31922         ($(objpfx)tst-protected1a): New.
31923         ($(objpfx)tst-protected1b): Likewise.
31924         (tst-protected1modb.so-no-z-defs): Likewise.
31925         * elf/tst-protected1a.c: New file.
31926         * elf/tst-protected1b.c: Likewise.
31927         * elf/tst-protected1mod.h: Likewise.
31928         * elf/tst-protected1moda.c: Likewise.
31929         * elf/tst-protected1modb.c: Likewise.
31930
31931 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
31932
31933         [BZ #17711]
31934         * elf/dl-lookup.c (do_lookup_x): When UNDEF_MAP is NULL, which
31935         indicates it is called from do_lookup_x on relocation against
31936         protected data, skip the data definion in the executable from
31937         copy reloc.
31938         (_dl_lookup_symbol_x): Pass ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA,
31939         instead of ELF_RTYPE_CLASS_PLT, to do_lookup_x for
31940         EXTERN_PROTECTED_DATA relocation against STT_OBJECT symbol.
31941         * sysdeps/generic/ldsodefs.h * (ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA):
31942         New.  Defined to 4 if DL_EXTERN_PROTECTED_DATA is defined,
31943         otherwise to 0.
31944         * sysdeps/i386/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
31945         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Set class
31946         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_386_GLOB_DAT.
31947         * sysdeps/x86_64/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
31948         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Set class
31949         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_X86_64_GLOB_DAT.
31950
31951 2015-03-28  Martin Galvan  <martin.galvan@tallertechnologies.com>
31952
31953         * sysdeps/nptl/pthread.h: Remove duplicate definition of
31954         PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP.
31955
31956 2015-03-27  Martin Galvan  <martin.galvan@tallertechnologies.com>
31957
31958         * sysdeps/i386/nptl/tls.h: Swap comments between THREAD_SETMEM and
31959         THREAD_SETMEM_NC.
31960         * sysdeps/x86_64/nptl/tls.h: Ditto.
31961
31962 2015-03-27  Roland McGrath  <roland@hack.frob.com>
31963
31964         * dlfcn/tststatic.c (main): Converted to ...
31965         (do_test): ... this.
31966         (TEST_FUNCTION): New macro.
31967         Include test-skeleton.c.
31968
31969 2015-03-26  Alan Modra  <amodra@gmail.com>
31970
31971         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
31972         Don't segfault if ifunc resolver returns a NULL.  Do set plt to
31973         zero for undefined weak.
31974         (elf_machine_plt_conflict): Similarly.
31975
31976 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
31977
31978         * math/auto-libm-test-in: Add more tests of acosh, asinh and
31979         atanh.
31980         * math/auto-libm-test-out: Regenerated.
31981         * sysdeps/i386/fpu/libm-test-ulps: Update.
31982         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31983
31984         * math/auto-libm-test-in: Add another test of asin.
31985         * math/auto-libm-test-out: Regenerated.
31986         * sysdeps/i386/fpu/libm-test-ulps: Update.
31987         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31988
31989         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (LLL_EBX_LOAD):
31990         Remove macro.
31991         (LLL_EBX_REG): Likewise.
31992         (LLL_ENTER_KERNEL): Likewise.
31993
31994         * math/auto-libm-test-in: Add more tests of asin.
31995         * math/auto-libm-test-out: Regenerated.
31996         * sysdeps/i386/fpu/libm-test-ulps: Update.
31997         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31998
31999         [BZ #18138]
32000         * sysdeps/unix/sysv/linux/i386/sysdep.h (struct
32001         libc_do_syscall_args): New structure.
32002         (INTERNAL_SYSCALL_MAIN_0): New macro.
32003         (INTERNAL_SYSCALL_MAIN_1): Likewise.
32004         (INTERNAL_SYSCALL_MAIN_2): Likewise.
32005         (INTERNAL_SYSCALL_MAIN_3): Likewise.
32006         (INTERNAL_SYSCALL_MAIN_4): Likewise.
32007         (INTERNAL_SYSCALL_MAIN_5): Likewise.
32008         (INTERNAL_SYSCALL_MAIN_6): Likewise.  Call __libc_do_syscall.
32009         (INTERNAL_SYSCALL): Define to use INTERNAL_SYSCALL_MAIN_##nr.
32010         Replace conditional definitions by conditional definitions of ....
32011         (INTERNAL_SYSCALL_MAIN_INLINE): ... this.  New macro.
32012         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: New file.
32013         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = nptl]
32014         (libpthread-sysdep_routines): Add libc-do-syscall.
32015         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: Remove file.
32016         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (SYS_futex): Define
32017         to __NR_futex not 240.
32018
32019 2015-03-25  Alan Modra  <amodra@gmail.com>
32020
32021         * NEWS: Advertise TLS optimization.
32022         * elf/elf.h (R_PPC_TLSGD, R_PPC_TLSLD, DT_PPC_OPT, PPC_OPT_TLS): Define.
32023         (DT_PPC_NUM): Increment.
32024         * elf/dynamic-link.h (HAVE_STATIC_TLS): Define.
32025         (CHECK_STATIC_TLS): Use here.
32026         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Optimize
32027         TLS descriptors.
32028         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
32029         * sysdeps/powerpc/dl-tls.c: New file.
32030         * sysdeps/powerpc/Versions: Add __tls_get_addr_opt.
32031         * sysdeps/powerpc/tst-tlsopt-powerpc.c: New tls test.
32032         * sysdeps/unix/sysv/linux/powerpc/Makefile: Add new test.
32033         Build tst-tlsmod2.so with --no-tls-get-addr-optimize.
32034         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Update.
32035         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
32036         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
32037
32038 2015-03-25  Alan Modra  <amodra@gmail.com>
32039
32040         * sysdeps/powerpc/powerpc64/configure.ac: Correct "linker support
32041         for overlapping .opd entries" to "support...".
32042         * sysdeps/powerpc/powerpc64/configure: Regenerate
32043
32044 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
32045
32046         * math/auto-libm-test-in: Add more tests of acos.
32047         * math/auto-libm-test-out: Regenerated.
32048         * sysdeps/i386/fpu/libm-test-ulps: Update.
32049         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32050
32051         * math/auto-libm-test-in: Add more tests of expm1.
32052         * math/auto-libm-test-out: Regenerated.
32053         * sysdeps/i386/fpu/libm-test-ulps: Update.
32054         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32055
32056 2015-03-24  Joseph Myers  <joseph@codesourcery.com>
32057
32058         * math/auto-libm-test-in: Add more tests of cosh and sinh.
32059         * math/auto-libm-test-out: Regenerated.
32060         * sysdeps/i386/fpu/libm-test-ulps: Update.
32061         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32062
32063         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
32064         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32065
32066         * math/auto-libm-test-in: Add more tests of log2.
32067         * math/auto-libm-test-out: Regenerated.
32068         * sysdeps/i386/fpu/libm-test-ulps: Update.
32069         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32070
32071 2015-03-23  Roland McGrath  <roland@hack.frob.com>
32072
32073         * libio/iofdopen.c: Move FD_FLAGS declaration into its first use,
32074         inside [F_GETFL].  Remove POSIX_MODE local variable, just test the
32075         _IO_IS_APPENDING bit in READ_WRITE instead.
32076
32077 2015-03-23  Florian Weimer  <fweimer@redhat.com>
32078
32079         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
32080         (__determine_cpumask_size): Replace extend_alloca with a
32081         variable-length array.  Do not treat res == 0 as an error.
32082
32083 2015-03-23  Florian Weimer  <fweimer@redhat.com>
32084
32085         [BZ #18100]
32086         * posix/wordexp.c (eval_expr_multdiv): Check for division by zero
32087         and integer overflow.
32088         * posix/wordexp-test.c (test_case): Add divide-by-zero test.
32089         (main): Add integer overflow tests.
32090         * manual/pattern.texi (Calling Wordexp): Document additional use
32091         for WRDE_SYNTAX.
32092
32093 2015-03-23  Alan Modra  <amodra@gmail.com>
32094
32095         * config.h.in: Remove HAVE_ASM_PPC_REL16.
32096         * sysdeps/powerpc/powerpc32/tls-macros.h: Remove HAVE_ASM_PPC_REL16
32097         and false branch of conditional.
32098         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
32099         Likewise.
32100
32101 2015-03-21  Samuel Thibault  <samuel.thibault@ens-lyon.org
32102
32103         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Depend on
32104         libc-modules.h
32105         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Remove
32106         unused declaration of _hurd_intr_rpc_msg_in_trap.
32107         * mach/mach_init.c (__mach_init): Test whether HAVE_HOST_PAGE_SIZE is
32108         defined instead of whether it is non-zero.
32109         * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Use "+m"
32110         input constraint instead of both input and output constraint.  Use ecx
32111         clobber instead of %ecx.
32112         * sysdeps/mach/hurd/malloc-machine.h (mutex_init, mutex_lock,
32113         mutex_unlock): Use a statement expression instead of an expression list.
32114         * sysdeps/mach/hurd/setitimer.c (_hurd_itimer_thread_stack_size): Set
32115         type to vm_size_t instead of vm_address_t.
32116         * sysdeps/mach/hurd/fork.c (__fork): Test whether STACK_GROWTH_UP is
32117         defined instead of whether it is non-zero.
32118         * hurd/hurd/ioctl.h (_hurd_locked_install_cttyid): New declaration.
32119         * sysdeps/mach/hurd/setsid.c: Include <hurd/ioctl.h>.
32120         * sysdeps/mach/hurd/mmap.c (__mmap): Use 0 instead of NULL for
32121         comparisons with mapaddr.
32122         * nscd/nscd-client.h: Include <time.h>.
32123         * sysdeps/mach/hurd/dl-sysdep.c (fmh): Pass vm_offset_t dummy
32124         9th parameter to __vm_region instead of int.
32125         * bits/termios.h [!__USE_MISC] (EXTPROC): Do not define.
32126         * scripts/check-local-headers.sh (exclude): Add device/,
32127         hurd/hurd_types.h, hurd/ioctl_types.h, hurd/paths.h, hurd/ioctls.defs,
32128         cthreads.h.
32129
32130 2015-03-19  Roland McGrath  <roland@hack.frob.com>
32131
32132         * sysdeps/arm/memcpy.S [ARM_ALWAYS_BX]: Fix computed-jump calculations
32133         to account for alignment padding.
32134         * sysdeps/arm/memmove.S: Likewise.
32135
32136 2015-03-19  Chris Metcalf  <cmetcalf@ezchip.com>
32137
32138         * sysdeps/unix/sysv/linux/generic/README: New file.
32139
32140 2015-03-18  Joseph Myers  <joseph@codesourcery.com>
32141
32142         [BZ #18138]
32143         * nptl/sem_waitcommon.c: Include <kernel-features.h>.
32144         (futex_abstimed_wait)
32145         [__ASSUME_FUTEX_CLOCK_REALTIME && lll_futex_timed_wait_bitset]:
32146         Use lll_futex_timed_wait_bitset with FUTEX_CLOCK_REALTIME instead
32147         of lll_futex_timed_wait.
32148
32149 2015-03-18  Brad Hubbard  <bhubbard@redhat.com>
32150
32151         [BZ #17542]
32152         * sunrpc/svc.c (xprt_register): Use calloc to allocate xports.
32153
32154 2015-03-17  Alexandre Oliva <aoliva@redhat.com>
32155
32156         [BZ #17090]
32157         [BZ #17620]
32158         [BZ #17621]
32159         [BZ #17628]
32160         * NEWS: Update.
32161         * elf/dl-tls.c (_dl_update_slotinfo): Clean up outdated DTV
32162         entries with Static TLS too.  Skip entries past the end of the
32163         allocated DTV, from Alan Modra.
32164         (tls_get_addr_tail): Update to glibc_likely/unlikely.  Move
32165         Static TLS DTV entry set up from...
32166         (_dl_allocate_tls_init): ... here (fix modid assertion), ...
32167         * elf/dl-reloc.c (_dl_nothread_init_static_tls): ... here...
32168         * nptl/allocatestack.c (init_one_static_tls): ... and here...
32169         * elf/dlopen.c (dl_open_worker): Drop l_tls_modid upper bound
32170         for Static TLS.
32171         * elf/tlsdeschtab.h (map_generation): Return size_t.  Check
32172         that the slot we find is associated with the given map before
32173         using its generation count.
32174         * nptl_db/db_info.c: Include ldsodefs.h.
32175         (rtld_global, dtv_slotinfo_list, dtv_slotinfo): New typedefs.
32176         * nptl_db/structs.def (DB_RTLD_VARIABLE): New macro.
32177         (DB_MAIN_VARIABLE, DB_RTLD_GLOBAL_FIELD): Likewise.
32178         (link_map::l_tls_offset): New struct field.
32179         (dtv_t::counter): Likewise.
32180         (rtld_global): New struct.
32181         (_rtld_global): New rtld variable.
32182         (dl_tls_dtv_slotinfo_list): New rtld global field.
32183         (dtv_slotinfo_list): New struct.
32184         (dtv_slotinfo): Likewise.
32185         * nptl_db/td_symbol_list.c: Drop gnu/lib-names.h include.
32186         (td_lookup): Rename to...
32187         (td_mod_lookup): ... this.  Use new mod parameter instead of
32188         LIBPTHREAD_SO.
32189         * nptl_db/td_thr_tlsbase.c: Include link.h.
32190         (dtv_slotinfo_list, dtv_slotinfo): New functions.
32191         (td_thr_tlsbase): Check DTV generation.  Compute Static TLS
32192         addresses even if the DTV is out of date or missing them.
32193         * nptl_db/fetch-value.c (_td_locate_field): Do not refuse to
32194         index zero-length arrays.
32195         * nptl_db/thread_dbP.h: Include gnu/lib-names.h.
32196         (td_lookup): Make it a macro implemented in terms of...
32197         (td_mod_lookup): ... this declaration.
32198         * nptl_db/db-symbols.awk (DB_RTLD_VARIABLE): Override.
32199         (DB_MAIN_VARIABLE): Likewise.
32200
32201 2015-03-16  H.J. Lu  <hongjiu.lu@intel.com>
32202
32203         [BZ #18134]
32204         * sysdeps/x86_64/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
32205
32206 2015-03-15  Paul Eggert  <eggert@cs.ucla.edu>
32207
32208         * stdlib/setenv.c (__add_to_environ): Revert previous change.
32209
32210 2015-03-14  Andreas Schwab  <schwab@linux-m68k.org>
32211
32212         [BZ #18128]
32213         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (atomic_exchange_and_add)
32214         (atomic_add, atomic_increment_and_test)
32215         (atomic_decrement_and_test): Fix 64-bit arithmetic.
32216
32217 2015-03-13  Paul Eggert  <eggert@cs.ucla.edu>
32218
32219         * stdlib/setenv.c (__add_to_environ):
32220         Dump core quickly if setenv (..., NULL, ...) is called.
32221
32222 2015-03-13  Roland McGrath  <roland@hack.frob.com>
32223
32224         * sysdeps/arm/tls-macros.h: Include <sysdep.h>.
32225         (GET_SPECIAL_RELOC, GET_SPECIAL_PCREL): New macros to encapsulate
32226         all the necessary asm magic in one place.
32227         (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Rewritten as C expressions
32228         using those.
32229
32230 2015-03-13  Carlos O'Donell  <carlos@redhat.com>
32231
32232         [BZ #14906]
32233         * nscd/cache.c (prune_cache): Use TRACED_FILE. Compare and update
32234         traced file mtime. Use consistent log message.
32235         * nscd/connections.c [HAVE_INOTIFY] (install_watches): New function.
32236         (register_traced_file): Call install_watches. Always set mtime.
32237         (invalidate_cache): Iterate over all trace files. Call install_watches.
32238         (inotify_check_files): Don't inline. Handle watching parent
32239         directories and configuration file movement in and out.
32240         (handle_inotify_events): New function.
32241         (main_loop_poll): Call handle_inotify_events.
32242         (main_loop_epoll): Likewise.
32243         * nscd/nscd.h: Define TRACED_FILE, TRACED_DIR, and PATH_MAX.
32244         (struct traced_file): Use array of inotify fds. Add parent directory,
32245         and basename.
32246         (struct database_dyn): Remove unused file_mtime.
32247         (init_traced_file): New inline function.
32248         (define_traced_file): New macro.
32249         * nss/nss_db/db-init.c: Use define_traced_file.
32250         (_nss_db_init): Use init_traced_file.
32251         * nss/nss_files/files-init.c: Use define_traced_file.
32252         (_nss_files_init): Use init_traced_file.
32253
32254 2015-03-12  Joseph Myers  <joseph@codesourcery.com>
32255
32256         * soft-fp/soft-fp.h (_FP_STATIC_ASSERT): New macro.
32257         [_LIBC]: Do not include <stdlib.h>.
32258         [!_LIBC] (abort): Remove declaration.
32259         * soft-fp/op-2.h (_FP_MUL_MEAT_2_120_240_double): Use
32260         _FP_STATIC_ASSERT instead of conditionally calling abort.
32261         * soft-fp/op-common.h (_FP_FROM_INT): Likewise.
32262         (_FP_EXTEND_CNAN): Likewise.
32263         (FP_TRUNC): Likewise.
32264         (__FP_CLZ): Likewise.
32265         * sysdeps/powerpc/nofpu/flt-rounds.c: Include <stdlib.h>.
32266
32267 2015-03-12  Yaakov Selkowitz  <yselkowi@redhat.com>
32268
32269         * manual/string.texi (XPG basename): Fix prototype.
32270
32271 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
32272
32273         [BZ #18080]
32274         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S
32275         (__setcontext): Use SIG_SETMASK instead of SIG_BLOCK.
32276         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S
32277         (__setcontext): Likewise.
32278         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S
32279         (__swapcontext): Use SIG_SETMASK instead of SIG_BLOCK.
32280         Call rt_sigprocmask syscall one time to set new signal mask
32281         and retrieve the current signal mask instead of two calls.
32282         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S
32283         (__swapcontext): Likewise.
32284         * stdlib/Makefile (tests): Add new testcase tst-setcontext2.
32285         * stdlib/tst-setcontext2.c: New file.
32286
32287 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
32288
32289         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
32290
32291 2015-03-11  Aurelien Jarno  <aurelien@aurel32.net>
32292
32293         [BZ #18093]
32294         * elf/cache.c (load_aux_cache): Regenerate the cache if it has
32295         the wrong size.
32296
32297 2015-03-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
32298
32299         [BZ #18043]
32300         * posix/wordexp.c (parse_param): Don't call setenv(..., NULL, 1).
32301
32302 2015-03-11  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
32303
32304         * config.h.in [HAVE_ASM_GLOBAL_DOT_NAME]: Remove define.
32305         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias):
32306         Remove define.
32307         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): Likewise.
32308         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Likewise.
32309         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Likewise.
32310         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Likewise.
32311         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Likewise.
32312         * nptl_db/db-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (DOT): Remove
32313         define.
32314         * nptl_db/td_symbol_list.c (td_lookup): Remove
32315         HAVE_ASM_GLOBAL_DOT_NAME code.
32316         * sysdeps/powerpc/powerpc64/configure.ac: Remove
32317         HAVE_ASM_GLOBAL_DOT_NAME check.
32318         * sysdeps/powerpc/powerpc64/configure: Regenerate.
32319         * sysdeps/powerpc/powerpc64/sysdep.h [HAVE_ASM_GLOBAL_DOT_NAME]
32320         (DOT_LABEL): Remove define.
32321         [HAVE_ASM_GLOBAL_DOT_NAME] (BODY_LABEL): Likewise.
32322         [HAVE_ASM_GLOBAL_DOT_NAME] (ENTRY_2): Likewise.
32323         [HAVE_ASM_GLOBAL_DOT_NAME] (END_2): Likewise.
32324         * sysdeps/powerpc/powerpc64/tls-macros.h [HAVE_ASM_GLOBAL_DOT_NAME]
32325         (__TLS_GET_ADDR): Likewise.
32326         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
32327         [HAVE_ASM_GLOBAL_DOT_NAME] (DASHDASHPFX): Likewise.
32328
32329 2015-03-11  Carlos O'Donell  <carlos@redhat.com>
32330
32331         [BZ #18111]
32332         * sysdeps/hppa/fpu/fpu_control.h (_FPU_HPPA_SHIFT_FLAGS): Define.
32333         (_FPU_SETCW): Initialize cw from fpsr before storing.
32334         * sysdeps/hppa/fpu/fsetexcptflg.c: Include fpu_control.h
32335         (fesetexceptflag): Rewrite using fpu_control.h.
32336         * sysdeps/hppa/fpu/feupdateenv.c: Handle FE_DFL_ENV, and FE_NOMASK_ENV.
32337
32338 2015-03-11  John David Anglin  <danglin@gcc.gnu.org>
32339
32340         [BZ #18110]
32341         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Don't modify bufptr in
32342         asms.
32343         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
32344
32345 2015-03-11  Joseph Myers  <joseph@codesourcery.com>
32346
32347         * soft-fp/soft-fp.h (_FP_UNREACHABLE): New macro.
32348         * soft-fp/op-common.h (_FP_MUL): Use _FP_UNREACHABLE instead of
32349         abort.
32350         (_FP_FMA): Likewise.
32351         (_FP_DIV): Likewise.
32352
32353 2015-03-10  Roland McGrath  <roland@hack.frob.com>
32354
32355         * scripts/evaluate-test.sh: Grok exit code 77 as UNSUPPORTED and exit
32356         with 0 in that case.
32357         * Makefile (summarize-tests): New canned sequence, factored out of
32358         commands for targets tests and xtests.  Display summary lines that
32359         don't start with PASS: or XFAIL: rather than ones that do start with
32360         ERROR: or FAIL:.  Make the commands fail if any summary lines fail
32361         to start with X?PASS: or XFAIL: or UNSUPPORTED: rather than if any
32362         do start with ERROR: or FAIL:.
32363         * dlfcn/Makefile (tests): Add bug-atexit3 back here unconditionally
32364         (except for [$(build-shared) = yes]).
32365         (tests-unsupported) [$(CXX) empty]: Add bug-atexit3.
32366         (LDLIBS-bug-atexit3-lib.so): Conditionalize on [$(CXX) nonempty].
32367         ($(objpfx)bug-atexit3, $(objpfx)bug-atexit3.out): Likewise.
32368         * nptl/Makefile: Revert 2015-03-04 changes.
32369         [$(CXX) empty] (tests-unsupported): New variable.
32370         * debug/Makefile: Likewise.
32371
32372         * posix/regcomp.c: Fix comment typos and formatting to harmonize with
32373         gnulib file.  Replace __attribute with __attribute__ throughout.
32374
32375 2015-03-10  Carlos O'Donell  <carlos@redhat.com>
32376
32377         * sysdeps/hppa/fpu/libm-test-ulps: Update.
32378
32379 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
32380
32381         [BZ #18104]
32382         * math/auto-libm-test-in: Add another test of pow.
32383         * math/auto-libm-test-out: Regenerated.
32384
32385 2015-03-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32386
32387         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Add
32388         $(config-cflags-nofma).
32389
32390 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
32391
32392         * soft-fp/double.h [SOFT_FP_DOUBLE_H]: New multiple-include guard.
32393         * soft-fp/extended.h [SOFT_FP_EXTENDED_H]: Likewise.
32394         * soft-fp/op-1.h [SOFT_FP_OP_1_H]: Likewise.
32395         * soft-fp/op-2.h [SOFT_FP_OP_2_H]: Likewise.
32396         * soft-fp/op-4.h [SOFT_FP_OP_4_H]: Likewise.
32397         * soft-fp/op-8.h [SOFT_FP_OP_8_H]: Likewise.
32398         * soft-fp/op-common.h [SOFT_FP_OP_COMMON_H]: Likewise.
32399         * soft-fp/quad.h [SOFT_FP_QUAD_H]: Likewise.
32400         * soft-fp/single.h [SOFT_FP_SINGLE_H]: Likewise.
32401         * soft-fp/soft-fp.h (SOFT_FP_H): Define to 1 rather than empty.
32402         Add comment on closing #endif.
32403
32404 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
32405
32406         * posix/wordexp.c (CHAR_IN_SET): New macro.
32407         (parse_param): Use it.
32408
32409 2015-03-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32410
32411         * sysdeps/powerpc/fpu/libm-test-ulps: update.
32412
32413 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
32414
32415         [BZ #18043]
32416         * posix/wordexp.c (parse_param): Fix buffer overflow.
32417         * posix/wordexp-test.c (test_case): Add test case.
32418
32419 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
32420
32421         [BZ #18042]
32422         * posix/wordexp.c (parse_backtick): Fix off-by-one.
32423         * posix/wordexp-test.c (test_case): Add test for BZ #18042.
32424
32425 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
32426
32427         [BZ #18043]
32428         * posix/wordexp-test.c (test_case): Add test for BZ #18043
32429         (do_bz18043): Delete.
32430         (at_page_end): New.
32431         (testit): Refactor to have words at the edge of unreadable page.
32432
32433 2015-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
32434
32435         [BZ #16734]
32436         * libio/genops.c (_IO_unbuffer_all): Renamed from _IO_unbuffer_write.
32437         Cleanup read-only streams as well.
32438         (_IO_cleanup): Call _IO_unbuffer_all instead of _IO_unbuffer_write.
32439
32440 2015-03-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32441
32442         * sysdeps/mach/hurd/bits/libc-lock.h [_LIBC]: Include
32443         <bits/libc-lockP.h>
32444
32445 2015-03-07  Joseph Myers  <joseph@codesourcery.com>
32446
32447         * soft-fp/soft-fp.h (_FP_ZERO_INIT): New macro.  Define depending
32448         on [__KERNEL__].
32449         * soft-fp/op-1.h (_FP_FRAC_DECL_1): Use _FP_ZERO_INIT.
32450         * soft-fp/op-2.h (_FP_FRAC_DECL_2): Likewise.
32451         * soft-fp/op-common.h (_FP_DECL): Likewise.
32452
32453 2015-03-06  H.J. Lu  <hongjiu.lu@intel.com>
32454
32455         * elf/ifuncdep2.c (global): Replace
32456         __attribute__((visibility("protected"))) with
32457         asm (".protected global").
32458         * elf/ifuncmod1.c (global): Likewise.
32459         * elf/ifuncmod5.c (global): Likewise.
32460
32461 2015-03-06  Joseph Myers  <joseph@codesourcery.com>
32462
32463         * soft-fp/soft-fp.h [!_LIBC && __KERNEL__]: Include
32464         <asm/sfp-machine.h> instead of <sfp-machine.h>.
32465
32466 2015-03-06  Roland McGrath  <roland@hack.frob.com>
32467
32468         * manual/install.texi (Configuring and compiling):
32469         Document test-wrapper-env-only.
32470         * INSTALL: Regenerated.
32471
32472 2015-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
32473
32474         [BZ #18043]
32475         * posix/wordexp.c (parse_param): Fix buffer overflow.
32476         * posix/wordexp-test.c (do_bz18043): Add test case.
32477
32478 2015-03-06  Vincent Bernat  <vincent@bernat.im>
32479
32480         * time/tst-strptime2.c (do_test): Ensure failing tests are
32481         reported correctly.
32482         * time/tst-strptime3.c (do_test): Likewise.
32483
32484 2015-03-06  Samuel Thibault  <samuel.thibault@inria.fr>
32485
32486         Fix aio_error thread-safety.
32487         * sysdeps/pthread/aio_error.c: New file
32488         * sysdeps/pthread/aio_misc.c: Remove optimistic comment about
32489         synchronization.
32490
32491 2015-03-06  Florian Weimer  <fweimer@redhat.com>
32492
32493         * stdio-common/vfprintf.c (THOUSANDS_SEP_T): New typedef.
32494         (group_number, vfprintf): Use it.
32495         (JUMP_TABLE_BASE_LABEL): New preprocessor macro.
32496         (JUMP, REF): Use it.
32497         (WORK_BUFFER_SIZE): New enum constant.
32498         (process_arg, vfprintf): Use it.
32499
32500 2015-03-06  Rical Jasan  <ricaljasan@pacific.net>
32501
32502         * manual/errno.texi (Error Messages): Complete example function
32503         by adding missing #define.
32504         (program_invocation_name): Add statement indicating GNU
32505         extension and reference which header file declares the variable.
32506         (program_invocation_short_name): Likewise.
32507
32508 2015-03-06  Mike Frysinger  <vapier@gentoo.org>
32509
32510         * manual/errno.texi (Error Messages): Delete strerror ISO C89
32511         compatibility note.
32512
32513 2015-03-05  Roland McGrath  <roland@hack.frob.com>
32514
32515         * Makeconfig (test-wrapper-env-only): New variable.
32516         * Rules (make-test-out): If variable $*-ENV-only is nonempty,
32517         then use that with $(test-wrapper-env-only) rather than using
32518         $(test-wrapper-env) $(run-program-env) $($*-ENV).
32519
32520 2015-03-05  H.J. Lu  <hongjiu.lu@intel.com>
32521
32522         [BZ #18082]
32523         * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Replace
32524         ELF_RTYPE_CLASS_NOCOPY with ELF_RTYPE_CLASS_COPY in comments.
32525         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Likewise.
32526         * sysdeps/hppa/dl-machine.h (elf_machine_type_class): Likewise.
32527         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Likewise.
32528         * sysdeps/ia64/dl-machine.h (elf_machine_type_class): Likewise.
32529         * sysdeps/m68k/dl-machine.h (elf_machine_type_class): Likewise.
32530         * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
32531         Likewise.
32532         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Likewise.
32533         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_type_class):
32534         Likewise.
32535         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
32536         Likewise.
32537         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class):
32538         Likewise.
32539         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_type_class):
32540         Likewise.
32541         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Likewise.
32542         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_type_class):
32543         Likewise.
32544         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_type_class):
32545         Likewise.
32546         * sysdeps/tile/dl-machine.h (elf_machine_type_class): Likewise.
32547         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Likewise.
32548
32549 2015-03-04  Roland McGrath  <roland@hack.frob.com>
32550
32551         * sysdeps/generic/netinet/if_ether.h: Don't #include <features.h>.
32552         (ETH_ALEN): New macro.
32553         (struct ether_addr): Use it for length of ether_addr_octet.
32554
32555         * nss/test-netdb.c: Don't #include <rpc/netdb.h>.
32556         (setdb): Don't call __nss_configure_lookup for "rpc".
32557         (do_test): Don't call test_rpc.
32558         (output_rpcent, test_rpc): Functions moved ...
32559         * sunrpc/test-rpcent.c: ... to this new file.
32560         * sunrpc/Makefile (tests): Add it.
32561
32562         * nptl/tst-cancel4.c (tf_sigpause) [!SIGCANCEL]: Call pause instead of
32563         __xpg_sigpause.
32564         * nptl/tst-signal3.c: Conditionalize body on [SIGRTMIN].
32565         * nptl/tst-signal6.c: Likewise.
32566         * rt/tst-mqueue5.c: Conditionalize body on [SIGRTMIN && SA_SIGINFO].
32567         * rt/tst-timer4.c: Conditionalize body on [SA_SIGINFO].
32568
32569         * configure.ac (libc_cv_cxx_link_ok): New check.
32570         Reset CXX to empty if it fails to link.
32571         * configure: Regenerated.
32572         * dlfcn/Makefile (tests, modules-names): Add bug-atexit3 and
32573         bug-atexit3-lib only if $(CXX) is nonempty.
32574         * nptl/Makefile (tests): Likewise for tst-cancel24.
32575         (tests, tests-static): Likewise for tst-cancel24-static.
32576         * debug/Makefile (tests): Likewise for tst-chk4, tst-chk5, tst-chk6,
32577         tst-lfschk4, tst-lfschk5, and tst-lfschk6.
32578         * elf/Makefile (tests, modules-names): Likewise for tst-unique3,
32579         tst-unique3lib, tst-unique3lib2, tst-unique4, and tst-unique4lib.
32580
32581 2015-03-04  Andreas Schwab  <schwab@suse.de>
32582
32583         [BZ #17631]
32584         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Don't define
32585         for non-GCC compilers.
32586         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
32587         Likewise.
32588
32589 2015-03-03 Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
32590
32591         [BZ #17776]
32592         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Convert input to
32593         integer before bitwise and assembly operations.
32594         (feclearexcept): Likewise.
32595         * math/test-fenvinline.c: New file.
32596         * math/Makefile: Add test-fenvinline test.
32597
32598 2015-03-03  Alan Modra  <amodra@gmail.com>
32599
32600         [BZ #16512]
32601         * scripts/localplt.awk: Strip off symbol version.
32602         * NEWS: Mention bug fix.
32603
32604 2015-03-02  Roland McGrath  <roland@hack.frob.com>
32605
32606         * sysdeps/pthread/timer_routines.c
32607         (timer_free_list, thread_free_list, thread_active_list): Make static.
32608
32609 2015-03-02  Joseph Myers  <joseph@codesourcery.com>
32610
32611         [BZ #17779]
32612         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
32613         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
32614         Undefine.
32615         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
32616         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
32617         Likewise.
32618         * sysdeps/unix/sysv/linux/sh/kernel-features.h
32619         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
32620         Likewise.
32621
32622 2015-03-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
32623
32624         [BZ #18036]
32625         * posix/fnmatch_loop.c (END): Detect invalid pattern.
32626         * posix/tst-fnmatch3.c (do_bz18036): Add test case.
32627
32628 2015-03-02  Andreas Schwab  <schwab@suse.de>
32629
32630         * elf/Makefile ($(elf-objpfx)runtime-linker.st): Fix typo in
32631         variable name.
32632
32633 2015-03-02  Florian Weimer  <fweimer@redhat.com>
32634
32635         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn):
32636         Return error status.
32637
32638 2015-02-27  Alexandre Oliva <aoliva@redhat.com>
32639
32640         [BZ #15969]
32641         * locale/findlocale.c (_nl_find_locale): Introduce const
32642         version of loc_name and drop unsafe type casts.
32643
32644 2015-02-27  Roland McGrath  <roland@hack.frob.com>
32645
32646         * dlfcn/tststatic2.c (main): Converted to ...
32647         (do_test): ... this.
32648         (TEST_FUNCTION): New macro.
32649         Include test-skeleton.c.
32650
32651 2015-02-27  H.J. Lu  <hongjiu.lu@intel.com>
32652
32653         [BZ #17711]
32654         * elf/Makefile (tests): Add vismain only if PIE is enabled.
32655         (tests-pie): Add vismain.
32656         (CFLAGS-vismain.c): New.
32657         * elf/vismain.c: Add comments for PIE requirement.
32658
32659 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
32660
32661         [BZ #18046]
32662         [BZ #18047]
32663         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Use
32664         0x1p-56L as threshold for just returning the argument.
32665         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Use
32666         0x1p-32L as threshold for just returning the argument.
32667         * math/auto-libm-test-in: Add more tests of atanh.
32668         * math/auto-libm-test-out: Regenerated.
32669         * sysdeps/i386/fpu/libm-test-ulps: Update.
32670         * sysdeps/x86_64/fpu/libm-test-ulp: Likewise.
32671
32672 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
32673
32674         * string/bcopy.c (bcopy): Call memmove for performance.
32675
32676 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
32677
32678         * string/bzero.c (__bzero): Call memset for performance.
32679
32680 2015-02-27  John David Anglin  <dave.anglin@bell.net>
32681
32682         [BZ #18068]
32683         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (__O_SYNC): Change
32684         to 00100000.
32685
32686 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
32687
32688         * sysdeps/ieee754/k_standard.c (CSTR): Add comment.
32689
32690 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
32691
32692         * sysdeps/ieee754/k_standard.c (CSTR): New macro.
32693         (__kernel_standard): Use CSTR macro when setting exc.name.
32694         * sysdeps/ieee754/Makefile [$(subdir) = math]
32695         (CFLAGS-k_standard.c): Remove variable.
32696
32697         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Change last case for
32698         setting p and q from "else if" to "else".
32699         (qzero): Likewise.
32700         * sysdeps/ieee754/dbl-64/e_j1.c (pone): Likewise.
32701         (qone): Likewise.
32702         * sysdeps/ieee754/flt-32/e_j0f.c (pzerof): Likewise.
32703         (qzerof): Likewise.
32704         * sysdeps/ieee754/flt-32/e_j1f.c (ponef): Likewise.
32705         (qonef): Likewise.
32706         * sysdeps/ieee754/ldbl-96/e_j0l.c (pzero): Likewise.
32707         (qzero): Likewise.
32708         * sysdeps/ieee754/ldbl-96/e_j1l.c (pone): Likewise.
32709         (qone): Likewise.
32710
32711         [BZ #18038]
32712         [BZ #18039]
32713         * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Only
32714         return pi/2 for arguments below 0x1p-113L.
32715         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Only
32716         return pi/2 for arguments below 0x1p-106L.
32717         * math/auto-libm-test-in: Add more tests of acos.
32718         * math/auto-libm-test-out: Regenerated.
32719
32720         [BZ #16351]
32721         * sysdeps/i386/fpu/e_asin.S (dbl_min): New object.
32722         (MO): New macro.
32723         (__ieee754_asin): Force underflow exception for results with small
32724         absolute value.
32725         * sysdeps/i386/fpu/e_asinf.S (flt_min): New object.
32726         (MO): New macro.
32727         (__ieee754_asinf): Force underflow exception for results with
32728         small absolute value.
32729         * sysdeps/ieee754/dbl-64/e_asin.c: Include <float.h> and <math.h>.
32730         (__ieee754_asin): Force underflow exception for results with small
32731         absolute value.
32732         * sysdeps/ieee754/flt-32/e_asinf.c: Include <float.h>.
32733         (__ieee754_asinf): Force underflow exception for results with
32734         small absolute value.
32735         * sysdeps/ieee754/ldbl-128/e_asinl.c: Include <float.h>.
32736         (__ieee754_asinl): Force underflow exception for results with
32737         small absolute value.
32738         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Include <float.h>.
32739         (__ieee754_asinl): Force underflow exception for results with
32740         small absolute value.
32741         * sysdeps/ieee754/ldbl-96/e_asinl.c: Include <float.h>.
32742         (__ieee754_asinl): Force underflow exception for results with
32743         small absolute value.
32744         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
32745         Include <math.h>.
32746         * math/auto-libm-test-in: Do not mark underflow exceptions as
32747         possibly missing for bug 16351.
32748         * math/auto-libm-test-out: Regenerated.
32749
32750         [BZ #18030]
32751         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Adjust exponent
32752         of power of 2 down when low part has opposite sign.
32753         * math/libm-test.inc (logb_test_data): Add more tests.
32754
32755 2015-02-26  Andreas Schwab  <schwab@suse.de>
32756
32757         [BZ #18032]
32758         * posix/fnmatch_loop.c (FCT): Remove extra increment when skipping
32759         over collating symbol inside a bracket expression.  Minor cleanup.
32760         * posix/tst-fnmatch3.c (do_test): Add test case.
32761
32762 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
32763
32764         [BZ #18029]
32765         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl):
32766         Adjust exponent of power of 2 down when low part has opposite
32767         sign.
32768         * math/libm-test.inc (ilogb_test_data): Add more tests.
32769
32770 2015-02-26  Alexandre Oliva  <aoliva@redhat.com>
32771
32772         [BZ #15969]
32773         * locale/findlocale.c (_nl_find_locale): Fix constness error in
32774         the previous change.
32775
32776         [BZ #15969]
32777         * locale/findlocale.c (_nl_find_locale): Retry archive search
32778         after alias expansion.
32779
32780 2015-02-25  Roland McGrath  <roland@hack.frob.com>
32781
32782         * iconv/tst-iconv3.c (main): Converted to ...
32783         (do_test): ... this.
32784         (TEST_FUNCTION): New macro.
32785         Include test-skeleton.c.
32786
32787         * iconv/tst-iconv5.c (testcode, number): Make variables static const.
32788         (convert): Make function static.
32789         (test_unalign): Likewise.  Add const to argument pointee types.
32790         (main): Replace with static function do_test.
32791         Print "Succeeded." only if RET is zero.
32792         (TEST_FUNCTION): New macro.
32793         Include test-skeleton.c.
32794
32795         * iconv/gconv_conf.c (__gconv_get_path): Don't crash if __getcwd
32796         returns a null pointer.
32797
32798 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32799
32800         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Define memcpy
32801         to __memcpy_ppc only for static builds.
32802
32803 2015-02-25  Joseph Myers  <joseph@codesourcery.com>
32804
32805         [BZ #18020]
32806         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use 2**56 and
32807         2**-56 not 2**28 and 2**-29 as thresholds for simpler formulas.
32808         * math/auto-libm-test-in: Add more tests of asinh.
32809         * math/auto-libm-test-out: Regenerated.
32810         * sysdeps/i386/fpu/libm-test-ulps: Update.
32811         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32812
32813 2015-02-25  Cong Wang  <xiyou.wangcong@gmail.com>
32814
32815         [BZ #15850]
32816         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Put in6_pktinfo
32817         and ip6_mtuinfo definitions here.
32818         * sysdeps/unix/sysv/linux/bits/in.h [_UAPI_IPV6_H]: Wrap code
32819         in this define too.  Update comment.
32820
32821 2015-02-24  Benno Schulenberg  <bensberg@justemail.net>
32822
32823         * elf/sprof.c (load_shobj): Tweak error message to match others.
32824
32825 2015-02-24  Kevin Easton  <kevin@guarana.org>
32826
32827         [BZ #16145] (partial fix)
32828         * time/tzset.c (__tz_convert): Unlock tzset_lock earlier
32829         to reduce lock contention.
32830
32831 2015-02-24  Miroslav Lichvar  <mlichvar@redhat.com>
32832
32833         * sysdeps/unix/sysv/linux/bits/timex.h: Update version.
32834         (struct timex): Update time comment.
32835         (ADJ_SETOFFSET): Define.
32836
32837 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
32838
32839         [BZ #18019]
32840         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
32841         2**56 not 2**28 as threshold for log (2x) formula.
32842         * math/auto-libm-test-in: Add more tests of acosh.
32843         * math/auto-libm-test-out: Regenerated.
32844         * sysdeps/i386/fpu/libm-test-ulps: Update.
32845         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32846
32847 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
32848
32849         * include/alloca.h [_STACK_GROWS_DOWN] (extend_alloca): Add
32850         parenthesis around the buf assignment.
32851         [_STACK_GROWS_UP] (extend_alloca): Add a char* cast.
32852
32853 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
32854
32855         [BZ #16783]
32856         * sysdeps/i386/fpu/e_scalb.S (__ieee754_scalb): Do not handle
32857         arguments (NaN, -Inf) the same as (+/-Inf, -Inf).
32858         * sysdeps/i386/fpu/e_scalbf.S (__ieee754_scalbf): Likewise.
32859         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
32860         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
32861         * math/libm-test.inc (scalb_test_data): Add more tests.
32862
32863 2015-02-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
32864
32865         [BZ #17916]
32866         * libio/fileops.c (_IO_new_file_fopen): Limit stack use
32867         * libio/tst-fopenloc.c (do_test, do_bz17916): Add a large ccs= test
32868
32869 2015-02-24  Eric Rannaud  <e@nanocritical.com>
32870
32871         [BZ #17523]
32872         * io/fcntl.h (__OPEN_NEEDS_MODE): New macro.
32873         * io/bits/fcntl2.h (open): Use it.
32874         (openat): Likewise.
32875         * io/open.c (__libc_open): Likewise.
32876         * io/open64.c (__libc_open64): Likewise.
32877         * io/open64_2.c (__open64_2): Likewise.
32878         * io/open_2.c (__open_2): Likewise.
32879         * io/openat.c (__openat): Likewise.
32880         * io/openat64.c (__openat64): Likewise.
32881         * io/openat64_2.c (__openat64_2): Likewise.
32882         * io/openat_2.c (__openat_2): Likewise.
32883         * sysdeps/mach/hurd/open.c (__libc_open): Likewise.
32884         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
32885         * sysdeps/posix/open64.c (__libc_open64): Likewise.
32886         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
32887         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
32888         (__open_nocancel): Likewise.
32889         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
32890         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
32891         * sysdeps/unix/sysv/linux/openat.c (__OPENAT): Likewise.
32892
32893 2015-02-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
32894
32895         [BZ #14841]
32896         * resolv/gethnamaddr.c (getanswer): Skip logging if
32897         RES_USE_DNSSEC is set.
32898         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
32899
32900 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
32901
32902         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Include dl-sysdep.h.
32903
32904 2015-02-23  Alexandre Oliva <aoliva@redhat.com>
32905
32906         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
32907         201304L, for Unicode 7.
32908
32909 2015-02-23  H.J. Lu  <hongjiu.lu@intel.com>
32910
32911         [BZ #17836]
32912         * csu/Makefile (extra-objs): Add gmon-start.o if not builing
32913         shared library.  Add gmon-start.os otherwise.
32914         ($(objpfx)g$(start-installed-name)): Use $(objpfx)S%
32915         $(objpfx)gmon-start.os if builing shared library.
32916         ($(objpfx)g$(static-start-installed-name)): Likewise.
32917
32918 2015-02-23  Andreas Schwab  <schwab@suse.de>
32919
32920         * elf/Makefile (CFLAGS-tst-audit2.c): Define.
32921
32922 2015-02-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
32923
32924         [BZ #17269]
32925         * libio/wstrops.c (_IO_wstr_overflow): Guard against integer overflow
32926         (enlarge_userbuf): Likewise.
32927
32928 2015-02-22  Chung-Lin Tang  <cltang@codesourcery.com>
32929
32930         * libio/tst-memstream2.c (TIMEOUT): Define as 100.
32931         * math/atest-exp.c (TIMEOUT): Adjust to 200.
32932         * math/atest-exp2.c (TIMEOUT): Adjust to 300.
32933         * math/atest-sincos.c (TIMEOUT): Adjust to 600.
32934
32935 2015-02-20  Joseph Myers  <joseph@codesourcery.com>
32936
32937         * soft-fp/op-common.h (_FP_FROM_INT): Wrap call to abort in
32938         expression inside statement expression.
32939
32940 2015-02-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
32941
32942         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Include
32943         <sysdeps/nptl/lowlevellock.h> and remove macros and
32944         functions that are now defined there.
32945         (SYS_futex): Remove.
32946         (lll_compare_and_swap): Remove.
32947         * sysdeps/s390/bits/atomic.h (atomic_exchange_acq): Define.
32948
32949 2015-02-19  Joseph Myers  <joseph@codesourcery.com>
32950
32951         [BZ #17999]
32952         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Define to __scandirat
32953         instead of scandirat.
32954         * dirent/scandirat.c [!SCANDIRAT] (SCANDIRAT): Likewise.
32955         [!SCANDIRAT] (SCANDIRAT_WEAK_ALIAS): Define.
32956         [SCANDIRAT_WEAK_ALIAS] (scandirat): Define as weak alias of
32957         __scandirat.
32958         * include/dirent.h (scandirat): Do not use libc_hidden_proto.
32959         (__scandirat): Declare.  Use libc_hidden_proto.
32960         * conform/Makefile (test-xfail-POSIX2008/dirent.h/linknamespace):
32961         Remove variable.
32962         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
32963
32964 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
32965
32966         [BZ #15319]
32967         * sysdeps/i386/fpu/e_atan2.S (dbl_min): New object.
32968         (MO): New macro.
32969         (__ieee754_atan2): For results with small absolute value, force
32970         underflow exception and remove excess range and precision from
32971         return value.
32972         * sysdeps/i386/fpu/e_atan2f.S (flt_min): New object.
32973         (MO): New macro.
32974         (__ieee754_atan2f): For results with small absolute value, force
32975         underflow exception and remove excess range and precision from
32976         return value.
32977         * sysdeps/i386/fpu/s_atan.S (dbl_min): New object.
32978         (MO): New macro.
32979         (__atan): For results with small absolute value, force underflow
32980         exception and remove excess range and precision from return value.
32981         * sysdeps/i386/fpu/s_atanf.S (flt_min): New object.
32982         (MO): New macro.
32983         (__atanf): For results with small absolute value, force underflow
32984         exception and remove excess range and precision from return value.
32985         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <float.h> and
32986         <math.h>.
32987         (__ieee754_atan2): Force underflow exception for results with
32988         small absolute value.
32989         * sysdeps/ieee754/dbl-64/s_atan.c: Include <float.h> and
32990         <math_private.h>.
32991         (atan): Force underflow exception for results with small absolute
32992         value.
32993         * sysdeps/ieee754/flt-32/s_atanf.c: Include <float.h>.
32994         (__atanf): Force underflow exception for results with small
32995         absolute value.
32996         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include <float.h> and
32997         <math.h>.
32998         (__atanl): Force underflow exception for results with small
32999         absolute value.
33000         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <float.h>.
33001         (__atanl): Force underflow exception for results with small
33002         absolute value.
33003         * sysdeps/x86/fpu/bits/mathinline.h
33004         [!__SSE2_MATH__ && !__x86_64__ && __LIBC_INTERNAL_MATH_INLINES]
33005         (__ieee754_atan2): Only define inline for long double.
33006         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
33007         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Include <math.h>.
33008         * math/auto-libm-test-in: Do not mark underflow exceptions as
33009         possibly missing for bug 15319.  Add more tests of atan2.
33010         * math/auto-libm-test-out: Regenerated.
33011         * math/libm-test.inc (casin_test_data): Do not mark underflow
33012         exceptions as possibly missing for bug 15319.
33013         (casinh_test_data): Likewise.
33014         * sysdeps/i386/fpu/libm-test-ulps: Update.
33015
33016 2015-02-18  Steve Ellcey  <sellcey@imgtec.com>
33017
33018         * sysdeps/unix/sysv/linux/mips/bits/endian.h: Remove.
33019         * sysdeps/mips/bits/endian.h: Fix comments.
33020
33021 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
33022
33023         [BZ #17996]
33024         * include/search.h (hcreate_r): Don't use libc_hidden_proto.
33025         (hdestroy_r): Likewise.
33026         (hsearch_r): Likewise.
33027         (__hcreate_r): Declare and use libc_hidden_proto.
33028         (__hdestroy_r): Likewise.
33029         (__hsearch_r): Likewise.
33030         * misc/hsearch.c (hsearch): Call __hsearch_r instead of hsearch_r.
33031         (hcreate): Call __hcreate_r instead of hcreate_r.
33032         (__hdestroy): Call __hdestroy_r instead of hdestroy_r.
33033         * misc/hsearch_r.c (hcreate_r): Rename to __hcreate_r and define
33034         as weak alias of __hcreate_r.
33035         (hdestroy_r): Rename to __hdestroy_r and define as weak alias of
33036         __hdestroy_r.
33037         (hsearch_r): Rename to __hsearch_r and define as weak alias of
33038         __hsearch_r.
33039         * conform/Makefile (test-xfail-XPG3/search.h/linknamespace):
33040         Remove variable.
33041         (test-xfail-XPG4/search.h/linknamespace): Likewise.
33042         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
33043         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
33044         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
33045
33046 2015-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
33047
33048         * malloc/malloc.c (__libc_malloc): Consolidate arena_lookup and
33049         arena_lock into a single arena_get.
33050
33051 2015-02-17  Carlos O'Donell  <carlos@redhat.com>
33052
33053         * dl-reloc.c: Inlucde libc-internal.h.
33054         (_dl_try_allocate_static_tls): Call ALIGN_UP.
33055         (_dl_relocate_object): Call ALIGN_UP, ALIGN_DOWN, and PTR_ALIGN_DOWN.
33056         (_dl_protect_relro): Call ALIGN_UP and ALIGN_DOWN.
33057         * malloc/arena.c (new_heap): Use pagesize. Call ALIGN_UP.
33058         (grow_heap): Likewise.
33059         * malloc/malloc.c: Include libc-internal.h.
33060         (do_check_malloc): Call powerof2.
33061         (sysmalloc): Use pagesize. Call ALIGN_UP.
33062         (systrim): Use pagesize.
33063         (mremap_chunk): Use pagesize. Call ALIGN_UP.
33064         (__libc_valloc): Use pagesize.
33065         (__libc_pvalloc): Use pagesize. Call ALIGN_UP.
33066
33067 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
33068
33069         [BZ #17991]
33070         * include/sys/resource.h (__getrlimit64): Declare.  Use
33071         libc_hidden_proto.
33072         * resource/getrlimit64.c (getrlimit64): Rename to __getrlimit64
33073         and define as weak alias of __getrlimit64.  Use libc_hidden_weak.
33074         * sysdeps/posix/spawni.c (__spawni): Call __getrlimit64 instead of
33075         getrlimit64.
33076         * sysdeps/unix/sysv/linux/getrlimit64.c (getrlimit64): Rename to
33077         __getrlimit64.
33078         [!getrlimit64] (getrlimit64): Define as weak alias of
33079         __getrlimit64.  Use libc_hidden_weak.
33080         * sysdeps/unix/sysv/linux/i386/getrlimit64.c (getrlimit64): Define
33081         using __getrlimit64 not __new_getrlimit64.
33082         (__GI_getrlimit64): Likewise.
33083         * sysdeps/unix/sysv/linux/mips/getrlimit64.c (getrlimit64):
33084         Likewise.
33085         (__GI_getrlimit64): Likewise.
33086         (__old_getrlimit64): Use __getrlimit64 not __new_getrlimit64.
33087         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
33088         (getrlimit): Add __getrlimit64 alias.
33089         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (getrlimit):
33090         Likewise.
33091         * conform/Makefile (test-xfail-XOPEN2K/spawn.h/linknamespace):
33092         Remove variable.
33093         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
33094         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
33095
33096 2015-02-17  Paul Pluzhnikov  <ppluzhnikov@google.com>
33097
33098         * libio/fileops.c: Add missing sys/mman.h
33099         * libio/iopopen.c: Add missing fcntl.h, remove redundant unistd.h
33100
33101 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
33102
33103         * manual/math.texi (Errors in Math Functions): Clarify goals
33104         regarding inexact and underflow exceptions.
33105
33106 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
33107
33108         * sysdeps/mips/memcpy.S: Move R6 PREFETCH_STORE_HINT check.
33109         * sysdeps/mips/memset.S: Ditto.
33110
33111 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
33112
33113         * sysdeps/mips/bits/endian.h (__MIPSEL): Use #ifdef instead of #if.
33114
33115 2015-02-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
33116
33117         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c
33118         (__v1longjmp): Remove versioned symbol.
33119         (__v1siglongjmp): Remove alias and versioned symbol.
33120         (__v2longjmp): Use DEFINE_LONGJMP instead of alias.
33121         (__v2siglongjmp): Likewise.
33122
33123 2015-02-16  Torvald Riegel  <triegel@redhat.com>
33124
33125         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Remove file.
33126
33127 2015-02-16  Mike Frysinger  <vapier@gentoo.org>
33128
33129         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Delete.
33130
33131 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
33132
33133         [BZ #17987]
33134         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Ensure sign of
33135         zero result does not depend on the sign resulting from
33136         subtraction.
33137         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
33138         Likewise.
33139         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
33140         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
33141         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
33142         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
33143         * math/libm-test.inc (remquo_test_data): Add more tests.
33144
33145 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
33146
33147         * manual/time.texi (TZ Variable): glibc no longer comes with tzdata.
33148         Problem reported by J William Piggott.
33149
33150 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
33151
33152         [BZ #17978]
33153         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Do not form
33154         products 4 * y and 2 * y where those would overflow.
33155         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
33156         Likewise.
33157         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
33158         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
33159         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
33160         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
33161         * math/libm-test.inc (remquo_test_data): Add more tests.
33162
33163         * sysdeps/mips/sgidefs.h [!_ABIO64] (_ABIO64): New macro.
33164
33165         * sysdeps/mips/memcpy.S [_COMPILING_NEWLIB]: Change condition to
33166         [defined _COMPILING_NEWLIB].
33167         * sysdeps/mips/memset.S [_COMPILING_NEWLIB]: Likewise.
33168         * sysdeps/mips/strcmp.S [_COMPILING_NEWLIB]: Likewise.
33169
33170         * sysdeps/mips/sys/asm.h [__mips_isa_rev < 6]: Change condition to
33171         [!defined __mips_isa_rev || __mips_isa_rev < 6].
33172
33173 2015-02-16  Torvald Riegel  <triegel@redhat.com>
33174
33175         * nptl/tst-cond25.c (cleanup): Explicitly check that the mutex is
33176         acquired.
33177
33178 2015-02-15  Matthew Fortune <Matthew.Fortune@imgtec.com>
33179
33180         [BZ #17792]
33181         * sysdeps/unix/sysv/linux/ia64/sys/user.h (NBPG): Remove.
33182         (UPAGES, HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR,
33183         HOST_STACK_END_ADDR): Likewise.
33184
33185 2015-02-13  Steve Ellcey  <sellcey@imgtec.com>
33186
33187         * sysdeps/mips/bits/endian.h (__MIPSEB): Use #ifdef instead of #if.
33188         * sysdeps/mips/memcpy.S (__MIPSEB): Ditto.
33189         * sysdeps/mips/memset.S (__MIPSEB): Ditto.
33190
33191 2015-02-13  Roland McGrath  <roland@hack.frob.com>
33192
33193         * sysdeps/generic/c++-types.data: New file.
33194         * sysdeps/generic/ld.abilist: New file.
33195         * sysdeps/generic/libBrokenLocale.abilist: New file.
33196         * sysdeps/generic/libanl.abilist: New file.
33197         * sysdeps/generic/libc.abilist: New file.
33198         * sysdeps/generic/libcrypt.abilist: New file.
33199         * sysdeps/generic/libdl.abilist: New file.
33200         * sysdeps/generic/libm.abilist: New file.
33201         * sysdeps/generic/libpthread.abilist: New file.
33202         * sysdeps/generic/libresolv.abilist: New file.
33203         * sysdeps/generic/librt.abilist: New file.
33204
33205 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
33206
33207         [BZ #17569]
33208         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
33209         Compute absolute value of x as modified by fmod, not original
33210         value of x.
33211         * math/libm-test.inc (RUN_TEST_ffI_f1): Rename to
33212         RUN_TEST_ffI_f1_mod8.  Check extra return value mod 8.
33213         (RUN_TEST_LOOP_ffI_f1): Rename to RUN_TEST_LOOP_ffI_f1_mod8.  Call
33214         RUN_TEST_ffI_f1_mod8.
33215         (remquo_test_data): Add more tests.
33216
33217 2015-02-13  Roland McGrath  <roland@hack.frob.com>
33218
33219         * sysdeps/init_array/pt-crti.S: New file.
33220
33221 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
33222
33223         [BZ #17967]
33224         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Use
33225         __builtin_fmaf instead of relying on contraction of a * b + c.
33226
33227 2015-02-12  J William Piggott  <elseifthen@gmx.com>
33228
33229         [BZ #17969]
33230         * manual/time.texi: correct the zoneinfo path in the TZ Variable
33231         node.
33232
33233 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
33234
33235         [BZ #17964]
33236         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Use
33237         __builtin_fma instead of relying on contraction of a * b + c.
33238
33239 2015-02-12  Roland McGrath  <roland@hack.frob.com>
33240
33241         * Makeconfig (ASFLAGS): Add -Werror=undef.
33242         * sysdeps/arm/Versions (libc: GLIBC_2.19): New (empty) version set.
33243         * sysdeps/unix/make-syscalls.sh: Always emit #define's for
33244         SYSCALL_CANCELLABLE, SYSCALL_NOERRNO, SYSCALL_ERRVAL, to 1 or 0.
33245
33246         * Makeconfig (after-link): New variable.
33247         (+link-pie, +link-pie-tests): Use it.
33248         (+link-static, +link-static-tests): Likewise.
33249         (+link, +link-tests): Likewise.
33250         * Makerules (build-module, build-module-asneeded): Likewise.
33251         (lib%.so, $(common-objpfx)libc.so, $(common-objpfx)linkobj/libc.so):
33252         Likewise.
33253         * elf/Makefile ($(objpfx)ld.so): Likewise.
33254
33255 2015-02-12  Rüdiger Sonderfeld  <ruediger@c-plusplus.net>
33256
33257         [BZ #17965]
33258         * manual/time.texi (Elapsed Time): tv_sec is of type time_t in
33259         both struct timeval and struct timespec.
33260
33261 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
33262
33263         [BZ #16560]
33264         * math/e_exp2l.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
33265         and redefine.
33266         (__ieee754_exp2l): Do not multiply small fractional parts by
33267         M_LN2l.
33268         * sysdeps/i386/fpu/e_exp2l.S (__ieee754_exp2l): Just add 1 to
33269         small argument.
33270         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
33271         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
33272         * sysdeps/x86_64/fpu/e_exp2l.S (__ieee754_exp2l): Likewise.
33273         * math/auto-libm-test-in: Add more tests of exp2.
33274         * math/auto-libm-test-out: Regenerated.
33275
33276 2015-02-12  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
33277
33278         * sysdeps/powerpc/powerpc64/power7/strncpy.S (strncpy): Optimize
33279         unaligned path.
33280
33281 2015-02-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33282
33283         * sysdeps/unix/sysv/linux/powerpc/htm.h [TABORT]: Fix encoding for
33284         little endian.
33285
33286 2015-02-12  Andreas Schwab  <schwab@suse.de>
33287
33288         [BZ #15790]
33289         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
33290         Filter out elision flags from value returned in kind.
33291         * nptl/Makefile (tests): Add tst-pthread-mutexattr.
33292         * nptl/tst-pthread-mutexattr.c: New file.
33293
33294 2015-02-11  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33295
33296         * abi-tags: Revert ae20c9a: rename back gnu into gnu-gnu.
33297         * configure.ac, configure: Revert ba90e05: modify gnu-* host_os back
33298         into gnu-gnu, and update comment to refer to abi-tags.
33299
33300 2015-02-11  Joseph Myers  <joseph@codesourcery.com>
33301
33302         [BZ #15467]
33303         * sysdeps/ieee754/dbl-64/s_sincos.c: Include <errno.h>.
33304         (__sincos): Set errno to EDOM for infinite argument.
33305         * sysdeps/ieee754/flt-32/s_sincosf.c: Include <errno.h>.
33306         (SINCOSF_FUNC): Set errno to EDOM for infinite argument.
33307         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include <errno.h>.
33308         (__sincosl): Set errno to EDOM for infinite argument.
33309         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Include <errno.h>.
33310         (__sincosl): Set errno to EDOM for infinite argument.
33311         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include <errno.h>.
33312         (__sincosl): Set errno to EDOM for infinite argument.
33313         * math/libm-test.inc (sincos_test_data): Test errno setting.
33314
33315 2015-02-11  Leonhard Holz  <leonhard.holz@web.de>
33316
33317         * string/strxfrm_l.c: Remove #define STRCMP.
33318         * string/strcoll_l.c: Remove #define STRLEN.
33319         * wcsmbs/wcsxfrm_l.c: Remove #define STRCMP.
33320         * wcsmbs/wcscoll_l.c: Remove #define STRLEN.
33321
33322 2015-02-10  Joseph Myers  <joseph@codesourcery.com>
33323
33324         * sysdeps/mips/soft-fp/sfp-machine.h: Move to ....
33325         * sysdeps/mips/mips32/sfp-machine.h: ... here.
33326         * sysdeps/mips/mips64/soft-fp/Makefile: Move to ....
33327         * sysdeps/mips/mips64/Makefile: ... here.
33328         * sysdeps/mips/mips64/soft-fp/e_sqrtl.c: Move to ....
33329         * sysdeps/mips/mips64/e_sqrtl.c: ... here.
33330         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Move to ....
33331         * sysdeps/mips/mips64/sfp-machine.h: ... here.
33332         * sysdeps/mips/mips32/Implies: Remove mips/soft-fp.
33333         * sysdeps/mips/mips64/n32/Implies: Remove mips/mips64/soft-fp.
33334         * sysdeps/mips/mips64/n64/Implies: Likewise.
33335
33336 2015-02-10  Roland McGrath  <roland@hack.frob.com>
33337
33338         * math/test-snan.c: Drop unnecessary #include's of <stdlib.h>,
33339         <sys/time.h>, <string.h>, and <errno.h>.
33340         (dest_offset, dest_address, value, zero): Remove unused variables.
33341         (ldouble): Remove typedef.
33342         (myFPsighandler): Use simple handler signature, not SA_SIGINFO
33343         signature.  Pass 1 to siglongjmp rather than 0 (which is converted to
33344         1).  Fix code style.
33345         (set_sigaction_FP, remove_sigaction_FP): Functions removed.
33346         (check): Function removed.
33347         (CHECK): New macro.
33348         (TEST_FUNC): Fix code style.  Use CHECK macro rather than repeating
33349         boilerplate feclearexcept + feenableexcept + sigsetjmp code.
33350         Don't call set_sigaction_FP and remove_sigaction_FP here.
33351         (ldouble_test): Just use 'long double' as macro argument, no need for
33352         the 'ldouble' typedef.
33353         (do_test): Set up SIGFPE handler at start, using plain signal rather
33354         than sigaction.  Fix code style.
33355
33356 2015-02-10  Evangelos Foutras  <evangelos@foutrelis.com>
33357
33358         [BZ #17949]
33359         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Fix position of
33360         jump label.
33361
33362 2015-02-09  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
33363
33364         * sysdeps/powerpc/powerpc32/configure.ac: Remove R_PPC_REL16 check.
33365         * sysdeps/powerpc/powerpc32/configure: Regenerated.
33366
33367         * sysdeps/powerpc/configure.ac: Remove file.
33368         * sysdeps/powerpc/configure: Likewise.
33369
33370         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
33371         [sysdep_routines]: Remove wordcopy-power6 object.
33372         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
33373         (__memmove_power7): Use local call for wordcopy and memcpy symbols.
33374         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c
33375         (__memmove_ppc32): Likewise.
33376         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: Remove
33377         file.
33378         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Remove file.
33379         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c [IS_IN (libc)]:
33380         Remove preprocessor.
33381
33382         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
33383         [sysdep_routines]: Remove wide chars objects.
33384         [wcsmbs]: New rule for wide char objects.
33385
33386         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
33387         Remove wordcopy-power6 obejct.
33388         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c (__memmove_ppc):
33389         Use local call for wordcopy and memcpy symbols.
33390         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: Remove file.
33391         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: Add default
33392         implementation for loader.
33393         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Remove file.
33394
33395         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
33396         Remove wordcopy-power7 object.
33397         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: Remove file.
33398         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c
33399         (_wordcopy_fwd_aligned): Remove POWER7 specialization.
33400         (_wordcopy_fwd_dest_aligned): Likewise.
33401         (_wordcopy_bwd_aligned): Likewise.
33402         (_wordcopy_bwd_dest_aligned): Likewise.
33403
33404         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c (__bcopy_ppc):
33405         Rewrite to call __memmove_ppc instead of include default
33406         implementation.
33407
33408         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
33409         Remove wide chars objects.
33410         [wcsmbs]: New rule for wide char objects.
33411
33412 2015-02-09  Andreas Schwab  <schwab@suse.de>
33413
33414         [BZ #17912]
33415         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
33416         in terms of __O_DIRECTORY.
33417
33418 2015-02-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33419
33420         * time/getdate.c: Include <stdbool.h>.
33421         * sysdeps/gnu/unwind-resume.c [!PTR_MANGLE] (__libgcc_s_init): Do not
33422         call PTR_MANGLE.
33423         [!PTR_DEMANGLE] (_Unwind_Resume, __gcc_personality_v0): Do not call
33424         PTR_DEMANGLE.
33425
33426 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
33427
33428         Add ersatz _Static_assert on older C hosts
33429         * misc/sys/cdefs.h (_Static_assert): Define a substitute, if on a
33430         pre-C11 C platform that is not known to support _Static_assert.
33431
33432 2015-02-07  Richard Braun  <rbraun@sceen.net>
33433
33434         * hurd/hurd/signal.h (_hurd_critical_section_lock): Don't unlock
33435         sigstate.
33436         * sysdeps/mach/hurd/mmap.c (__mmap): Also handle PROT_NONE case.
33437
33438 2015-02-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33439
33440         * sysdeps/pthread/aio_misc.c [!AIO_PRIO_DELTA_MAX]: Do not check
33441         priority against unexistent AIO_PRIO_DELTA_MAX.
33442         * misc/chflags.c (chflags): Set flags parameter type to unsigned long
33443         instead of int.
33444         * misc/fchflags.c (fchflags): Likewise.
33445         * sysdeps/mach/hurd/chflags.c (chflags): Likewise.
33446         * sysdeps/mach/hurd/fchflags.c (fchflags): Likewise.
33447         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC] (UF_SETTABLE, UF_NODUMP,
33448         UF_IMMUTABLE, UF_APPEND, UF_OPAQUE, UF_NOUNLINK, SF_SETTABLE,
33449         SF_ARCHIVED, SF_IMMUTABLE, SF_APPEND, SF_NOUNLINK, SF_SNAPSHOT):
33450         Declare macros.
33451         [__USE_MISC] (chflags, fchflags): Declare functions.
33452         * hurd/hurdselect.c (_hurd_select): In the poll case, do not return
33453         EINVAL when nfds is greater than FD_SETSIZE.
33454         * hurd/hurd/resource.h (MACH_PRIORITY_TO_NICE,
33455         NICE_TO_MACH_PRIORITY): Align nice levels on Mach priorities from 5 to
33456         45.
33457         * hurd/hurdselect.c (_hurd_select): Pass MACH_RCV_INTERRUPT to
33458         __mach_msg.  If that returns MACH_RCV_INTERRUPTED, set ERR to EINTR.
33459         * hurd/hurdselect.c (_hurd_select): Remove unreachable check for
33460         MACH_RCV_TIMED_OUT.
33461         * hurd/hurd/signal.h (_hurd_self_sigstate,
33462         _hurd_critical_section_lock, _hurd_critical_section_unlock):
33463         Explicit casts from void *.
33464         * sysdeps/mach/hurd/tls.h: Include <stdint.h> and <sysdep.h>.
33465         * abi-tags: Rename gnu-gnu os into gnu.
33466
33467         [BZ #4719]
33468         * sysdeps/mach/hurd/bits/ioctls.h (_IOT__IOTBASE_long, _IOT_char,
33469         _IOT_short, _IOT_int, _IOT_long, _IOT__IOTBASE_int8_t,
33470         _IOT__IOTBASE_uint8_t, _IOT__IOTBASE_int16_t, _IOT__IOTBASE_uint16_t,
33471         _IOT__IOTBASE_int32_t, _IOT__IOTBASE_uint32_t, _IOT__IOTBASE_int64_t,
33472         _IOT__IOTBASE_uint64_t, _IOT__IOTBASE_size_t, _IOT__IOTBASE_ssize_t,
33473         _IOTBASE_unsigned, _IOTBASE_signed): Define macros.
33474
33475         [BZ #17944]
33476         * hurd/hurdsocket.h: New file, defines _hurd_sun_path_dupa which
33477         duplicates ADDR->sun_path with sockaddr LEN limitation.
33478         * sysdeps/mach/hurd/connect.c: Include <string.h>
33479         (__connect): Give result of _hurd_sun_path_dupa to name lookup.
33480         * sysdeps/mach/hurd/sendmsg.c: Likewise.
33481         * sysdeps/mach/hurd/sendto.c: Likewise.
33482         * sysdeps/mach/hurd/bind.c: Call _hurd_sun_path_dupa instead of
33483         implementing it by hand.
33484
33485 2015-02-06  Roland McGrath  <roland@hack.frob.com>
33486
33487         * sysdeps/arm/sysdep.h [!PROF] [ARCH_HAS_T2 && !PIC] (LDR_GLOBAL):
33488         Use sfi_breg on ldr.
33489         [!PROF] [ARCH_HAS_T2 && PIC && ARM_PCREL_MOVW_OK] (LDR_GLOBAL):
33490         Likewise.
33491
33492         * nptl/tst-cancel25.c (tf2): Test for SIGCANCEL being blocked only if
33493         it's defined.
33494         * nptl/tst-signal7.c (do_test): Test SIGCANCEL only if it's defined.
33495         Test SIGSETXID only if it's defined.
33496
33497         * nptl/tst-locale1.c (useless): Use SIGRTMIN only if it's defined.
33498
33499         * rt/tst-timer2.c (do_test): Don't initialize SIGEV.sigev_signo, which
33500         will not be used.  Use NULL rather than 0 for .sigev_notify_attributes.
33501
33502         * nptl/tst-align2.c: Moved ...
33503         * sysdeps/unix/sysv/linux/tst-align-clone.c: ... here.
33504         * nptl/Makefile (tests): Remove tst-align2.
33505         * sysdeps/unix/sysv/linux/Makefile
33506         [$(subdir) = nptl] (tests): Add tst-align-clone.
33507         * nptl/tst-getpid1.c: Moved ...
33508         * sysdeps/unix/sysv/linux/tst-getpid1.c: ... here.
33509         * nptl/tst-getpid2.c: Moved ...
33510         * sysdeps/unix/sysv/linux/tst-getpid2.c: ... here.
33511         * nptl/Makefile (tests): Move tst-getpid1 and tst-getpid2 ...
33512         * sysdeps/unix/sysv/linux/Makefile
33513         [$(subdir) = nptl] (tests): ... here.
33514         * nptl/Makefile (tst-getpid2-ENV): Move variable ...
33515         * sysdeps/unix/sysv/linux/Makefile
33516         [$(subdir) = nptl] (tst-getpid2-ENV): ... here.
33517
33518         * nptl/tst-cleanup2.c (do_test): Use signal rather than sigaction.
33519         Drop trailing \n from perror argument.  Use return rather than exit.
33520
33521         * nptl/tst-cancel20.c (do_test): Conditionalize SA_SIGINFO-using tests
33522         on [SA_SIGINFO].
33523         * nptl/tst-cancel21.c (do_test): Likewise.
33524         * debug/tst-backtrace6.c: Include <signal.h> first thing.
33525         Conditionalize inclusion of tst-backtrace5.c on [SA_SIGINFO].
33526         [!SA_SIGINFO]: Make it a stub test.
33527
33528         * misc/tst-pselect.c (do_test): Don't set SA_NOCLDWAIT in sa_flags for
33529         SIGCHLD; it's redundant with SIG_IGN as sa_handler.
33530
33531         * posix/tst-getlogin.c: Move to ...
33532         * login/tst-getlogin.c: ... here.
33533         * posix/Makefile (tests): Move tst-getlogin to ...
33534         * login/Makefile (tests): ... here.
33535
33536         * libio/tst-atime.c (do_test): Move local variables SV and E
33537         inside [ST_NOATIME] conditional.
33538
33539         * dirent/tst-fdopendir.c (O_NOATIME): If not defined, #define to 0.
33540
33541         * nptl/tst-kill5.c (do_test): Use INT_MAX rather than SIGRTMAX + 10.
33542
33543         * nptl/tst-join5.c: Drop #include <sys/syscall.h>.
33544         (wait_code): New function replaces macro.
33545         Call nanosleep rather than syscall.
33546
33547         * nptl/pt-system.c: Rewritten.  Put everything under
33548         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
33549         Use IFUNC to redirect when possible.
33550
33551         * nptl/pt-longjmp.c: Rewritten.  Put everything under
33552         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
33553         Use IFUNC to redirect when possible.
33554
33555         * nptl/pt-fork.c: Rewritten.  Put everything under
33556         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
33557         Use IFUNC to redirect when possible.
33558         * nptl/Versions (libpthread: GLIBC_2.22): New (empty) version set.
33559
33560         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Remove all
33561         code under [!__ASSUME_FUTEX_CLOCK_REALTIME], since that is defined
33562         unconditionally nowadays.  This included the only reference to
33563         __vdso_clock_gettime that appears outside libc proper.
33564         * sysdeps/unix/sysv/linux/x86_64/Versions (libc: GLIBC_PRIVATE):
33565         Remove version set (containing only __vdso_clock_gettime).
33566         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
33567         Add attribute_hidden.
33568         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
33569         Likewise.  Drop __attribute__ ((nocommon)), libc_hidden_proto, and
33570         libc_hidden_data_def.
33571         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
33572         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
33573
33574         * inet/Versions (libc: GLIBC_2.0): Move getrpcbyname, getrpcbyname_r,
33575         getrpcbynumber, getrpcbynumber_r, getrpcent, getrpcent_r, endrpcent,
33576         setrpcent, and getrpcport to ...
33577         * sunrpc/Versions (libc: GLIBC_2.0): ... here.
33578         * inet/Versions (libc: GLIBC_2.1.2): Move getrpcbyname_r,
33579         getrpcbynumber_r, and getrpcent_r to ...
33580         * sunrpc/Versions (libc: GLIBC_2.1.2): ... this new set.
33581         * inet/getrpcbyname.c: Moved ...
33582         * sunrpc/getrpcbyname.c: ... here.
33583         * inet/getrpcbyname_r.c: Moved ...
33584         * sunrpc/getrpcbyname_r.c: ... here.
33585         * inet/getrpcbynumber.c: Moved ...
33586         * sunrpc/getrpcbynumber.c: ... here.
33587         * inet/getrpcbynumber_r.c: Moved ...
33588         * sunrpc/getrpcbynumber_r.c: ... here.
33589         * inet/getrpcent.c: Moved ...
33590         * sunrpc/getrpcent.c: ... here.
33591         * inet/getrpcent_r.c: Moved ...
33592         * sunrpc/getrpcent_r.c: ... here.
33593         * inet/Makefile (routines): Move those to ...
33594         * sunrpc/Makefile (routines): ... here.
33595         * nss/Makefile (databases): Add key and rpc only if sunrpc appears in
33596         the $(subdirs) list.
33597         (CPPFLAGS-getent.c): New variable.  Pass -D option to set HAVE_SUNRPC
33598         to 0 or 1, indicating whether sunrpc appears in the $(subdirs) list.
33599         * nss/getent.c (print_rpc, rpc_keys): Conditionalize on [HAVE_SUNRPC].
33600         (databases): Conditionalize rpc entry on [HAVE_SUNRPC].
33601
33602         * elf/Makefile (routines): Include $(all-dl-routines), not just
33603         $(dl-routines).
33604         (rtld-routines): Likewise.  Use = rather than :=.
33605         * sysdeps/aarch64/Makefile [$(subdir) = elf]
33606         (sysdep_routines, sysdep-rtld-routines): Don't add tlsdesc and
33607         dl-tlsdesc to these; sysdep-dl-routines alone is enough.
33608         * sysdeps/arm/Makefile: Likewise.
33609         * sysdeps/i386/Makefile: Likewise.
33610         * sysdeps/x86_64/Makefile: Likewise.
33611         * sysdeps/hppa/Makefile [$(subdir) = elf]
33612         (sysdep_routines, sysdep-rtld-routines): Don't add
33613         $(sysdep-dl-routines) to these.
33614         * sysdeps/ia64/Makefile: Likewise.
33615         * sysdeps/unix/sysv/linux/ia64/Makefile: Likewise.
33616         * sysdeps/unix/sysv/linux/aarch64/Makefile [$(subdir) = elf]
33617         [$(build-shared) = yes] (sysdep_routines, sysdep-rtld-routines):
33618         Don't add dl-static to these; sysdep-dl-routines alone is enough.
33619         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
33620         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
33621         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
33622         * sysdeps/unix/sysv/linux/tile/Makefile: Likewise.
33623         * sysdeps/powerpc/Makefile [$(subdir) = elf]
33624         (sysdep_routines, sysdep-rtld-routines): Don't add dl-machine to
33625         these; sysdep-dl-routines alone is enough.
33626
33627 2015-02-06  Joseph Myers  <joseph@codesourcery.com>
33628
33629         [BZ #17932]
33630         * soft-fp/op-common.h (_FP_FMA): Set exponent of result in case
33631         where multiplication results in zero and third argument is finite
33632         and nonzero.
33633         * math/auto-libm-test-in: Add more tests of fma.
33634         * math/auto-libm-test-out: Regenerated.
33635
33636         * soft-fp/op-common.h (_FP_CMP_CHECK_DENORM): New macro.
33637         (_FP_CMP_CHECK_FLUSH_ZERO): Likewise.
33638         (_FP_CMP): Use_FP_CMP_CHECK_DENORM and _FP_CMP_CHECK_FLUSH_ZERO.
33639         (_FP_CMP_EQ): Likewise.
33640         (_FP_CMP_UNORD): Use _FP_CMP_CHECK_DENORM.
33641
33642         * soft-fp/op-common.h (FP_EXTEND): Rename to _FP_EXTEND_CNAN with
33643         extra argument CHECK_NAN.  Redefine as wrapper around
33644         _FP_EXTEND_CNAN.
33645
33646 2015-02-06  Carlos O'Donell  <carlos@systemhalted.org>
33647
33648         * version.h (RELEASE): Set to "stable".
33649         (VERSION): Set to "2.21"
33650         * include/features.h (__GLIBC_MINOR__): Set to 21.
33651
33652         * sysdeps/unix/sysv/linux/hppa/pthread.h: Sync with pthread.h.
33653
33654 2015-02-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
33655             Paul Eggert  <eggert@cs.ucla.edu>
33656
33657         [BZ #16618]
33658         * stdio-common/tst-sscanf.c (main): Test for buffer overflow.
33659         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Compute needed
33660         size in bytes. Store needed elements in wpmax. Use needed size
33661         in bytes for extend_alloca.
33662
33663 2015-02-05  Carlos O'Donell  <carlos@systemhalted.org>
33664
33665         * manual/install.texi: Latest tested versions are GCC 4.9.2,
33666         binutls 2.25, and texinfo 5.2.
33667         * INSTALL: Regenerate.
33668         * sysdeps/nios2/configure: Regenerate.
33669         * sysdeps/unix/sysv/linux/nios2/configure: Regenerate.
33670         * manual/contrib.texi: Update.
33671         * po/be.po: Update.
33672         * po/bg.po: Update.
33673         * po/ca.po: Update.
33674         * po/cs.po: Update.
33675         * po/da.po: Update.
33676         * po/de.po: Update.
33677         * po/el.po: Update.
33678         * po/eo.po: Update.
33679         * po/es.po: Update.
33680         * po/fi.po: Update.
33681         * po/fr.po: Update.
33682         * po/gl.po: Update.
33683         * po/hr.po: Update.
33684         * po/hu.po: Update.
33685         * po/ia.po: Update.
33686         * po/id.po: Update.
33687         * po/it.po: Update.
33688         * po/ja.po: Update.
33689         * po/ko.po: Update.
33690         * po/lt.po: Update.
33691         * po/nb.po: Update.
33692         * po/nl.po: Update.
33693         * po/pl.po: Update.
33694         * po/pt_BR.po: Update.
33695         * po/ru.po: Update.
33696         * po/rw.po: Update.
33697         * po/sk.po: Update.
33698         * po/sl.po: Update.
33699         * po/sv.po: Update.
33700         * po/tr.po: Update.
33701         * po/uk.po: Update.
33702         * po/vi.po: Update.
33703         * po/zh_CN.po: Update.
33704         * po/zh_TW.po: Update.
33705
33706         * sysdeps/hppa/Makefile (CFLAGS-dl-fptr.c): Add -Wno-error.
33707         * sysdeps/hppa/bits/setjmp.h: Union is named __jmp_buf_internal_tag.
33708         * sysdeps/hppa/dl-irel.h: Remove #warning.
33709         * sysdeps/hppa/entry.h: Provide prototype for
33710         __canonicalize_funcptr_for_compare and cast argument.
33711         * sysdeps/hppa/fpu/fegetexcept.c (fegetexcept): Add semicolon.
33712         * sysdeps/hppa/fpu/ftestexcept.c (fetestexcept): Likewise.
33713         * sysdeps/hppa/sotruss-lib.c: New file.
33714         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h
33715         (atomic_compare_and_exchange_val_acq): Use __typeof__.
33716         (atomic_compare_and_exchange_bool_acq): Likewise.
33717         * sysdeps/unix/sysv/linux/hppa/mmap.c: Use weak alias.
33718         * sysdeps/unix/sysv/linux/hppa/pthread.h: Include pthread.h.
33719
33720         * sysdeps/unix/sysv/linux/hppa/syscall.S: Delete file.
33721         * sysdeps/unix/sysv/linux/hppa/sysdep.c: Move syscall from here...
33722         * sysdeps/unix/sysv/linux/hppa/syscall.c: ... to here.
33723
33724 2015-02-05  Chung-Lin Tang  <cltang@codesourcery.com>
33725
33726         * sysdeps/nios2/machine-gmon.h (NIOS2_MCOUNT_CALL): Correct name of
33727         called function in non-PIC case.
33728
33729 2015-01-31  David S. Miller  <davem@davemloft.net>
33730
33731         * sysdeps/sparc/sparc32/bits/atomic.h
33732         (__sparc32_atomic_do_unlock24): Put the memory barrier before the
33733         unlock not after it.
33734         (__v9_compare_and_exchange_val_32_acq): Use unions to avoid getting
33735         volatile register usage warnings from the compiler.
33736
33737         * sysdeps/sparc/nptl/sem_init.c: Delete.
33738         * sysdeps/sparc/nptl/sem_post.c: Delete.
33739         * sysdeps/sparc/nptl/sem_timedwait.c: Delete.
33740         * sysdeps/sparc/nptl/sem_wait.c: Delete.
33741         * sysdeps/sparc/sparc32/sem_init.c: New file.
33742         * sysdeps/sparc/sparc32/sem_waitcommon.c: New file.
33743         * sysdeps/sparc/sparc32/sem_open.c: Generic nptl version with
33744         padding explicitly initialized.
33745         * sysdeps/sparc/sparc32/sem_post.c: Generic nptl version using
33746         padding for in-semaphore spinlock.
33747         * sysdeps/sparc/sparc32/sem_wait.c: Likewise.
33748         * sysdeps/sparc/sparc32/sem_trywait.c: Delete.
33749         * sysdeps/sparc/sparc32/sem_timedwait.c: Delete.
33750         * sysdeps/sparc/sparc32/sparcv9/sem_init.c: New file.
33751         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: New file.
33752         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: New file.
33753         * sysdeps/sparc/sparc32/sparcv9/sem_waitcommon.c: New file.
33754         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: Redirect to nptl
33755         version.
33756         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: Delete.
33757         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Delete.
33758
33759 2015-01-30  H.J. Lu  <hongjiu.lu@intel.com>
33760
33761         [BZ #17801]
33762         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
33763         Set the bit_AVX_Fast_Unaligned_Load bit for AVX2.
33764         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX_Fast_Unaligned_Load):
33765         New.
33766         (index_AVX_Fast_Unaligned_Load): Likewise.
33767         (HAS_AVX_FAST_UNALIGNED_LOAD): Likewise.
33768         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check the
33769         bit_AVX_Fast_Unaligned_Load bit instead of the bit_AVX_Usable bit.
33770         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Likewise.
33771         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Likewise.
33772         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Likewise.
33773         * sysdeps/x86_64/multiarch/memmove.c (__libc_memmove): Replace
33774         HAS_AVX with HAS_AVX_FAST_UNALIGNED_LOAD.
33775         * sysdeps/x86_64/multiarch/memmove_chk.c (__memmove_chk): Likewise.
33776
33777 2015-01-29  Andreas Schwab  <schwab@suse.de>
33778
33779         * sysdeps/nptl/allocrtsig.c: Include <signal.h>.
33780
33781 2015-01-29  Siddhesh Poyarekar <siddhesh@redhat.com>
33782
33783         [BZ #17892]
33784         * nscd/nscd_stat.c (send_stats): Initialize DATA.
33785
33786 2015-01-28  Martin Sebor  <msebor@redhat.com>
33787
33788         * math/README.libm-test: Clarify. Add "How to read the test output."
33789
33790 2015-01-28  Chris Metcalf  <cmetcalf@ezchip.com>
33791
33792         * sysdeps/tile/tilegx/bits/atomic.h [!_LP64] (__HAVE_64B_ATOMICS):
33793         Define to 0.
33794
33795 2015-01-28  Joseph Myers  <joseph@codesourcery.com>
33796
33797         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIN32]
33798         (__HAVE_64B_ATOMICS): Define to 0.
33799
33800 2015-01-28  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
33801
33802         [BZ #17885]
33803         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Fix correct
33804         value to set as new flag.
33805
33806         [BZ #16576]
33807         * sysdeps/powerpc/fpu/math_private.h [__CPU_HAS_FSQRT]: Remove define
33808         and use _ARCH_PPCSQ instead.
33809         (__ieee754_sqrt): Likewise.
33810         (__ieee754_sqrtf): Likewise.
33811         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Build only if
33812         _ARCH_PPCSQ is defined.
33813         (__ieee754_sqrt): Use _ARCH_PPCSQ to select wheter to use hardware
33814         fsqrt instruction.
33815         * sysdeps/powerpc/fpu/e_sqrtf.c (__ieee754_sqrtf): Build only if
33816         _ARCH_PPCSQ is defined.
33817         (__ieee754_sqrtf): Use _ARCH_PPCSQ to select wheter to use hardware
33818         fsqrts instruction.
33819         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Remove file.
33820
33821 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33822
33823         * iconv/loop.c: Suppress array out of bound warning caused by GCC
33824         bug (GCC BZ #64739).
33825
33826 2015-01-25  Andreas Schwab  <schwab@linux-m68k.org>
33827
33828         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_requeue):
33829         Mark _retval as used.
33830         (lll_futex_wake_unlock): Likewise.
33831         (lll_futex_timed_wait_requeue_pi): Likewise.
33832
33833         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
33834         (atomic_compare_and_exchange_val_acq): Use uint32_t for the
33835         register variables.
33836
33837         * sysdeps/m68k/m680x0/fpu/fraiseexcpt.c (__feraiseexcept): Use
33838         libm_hidden_def.
33839
33840         * sysdeps/m68k/bits/byteswap.h (__bswap_16, __bswap_32)
33841         (__bswap_64): Mark as __always_inline.
33842
33843 2015-01-25  Bram  <bug_rh@spam.wizbit.be>
33844
33845         [BZ #15378]
33846         * elf/dl-load.c (open_path): Avoid writing to 'env_path_list'
33847         when none of the search directories exist.
33848
33849 2015-01-24  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
33850
33851         [BZ #17869]
33852         * sysdeps/powerpc/powerpc64/power8/memset.S: Use power7 instead of
33853         power8 in .machine directive.
33854
33855         [BZ #17868]
33856         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Force value
33857         set dependency from opd value.
33858
33859 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
33860
33861         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
33862         Treat model numbers 0x4a/0x4d/0x5a/0x5d as Intel Silvermont
33863         architecture.
33864
33865 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
33866
33867         [BZ #17870]
33868         * nptl/sem_post.c (__new_sem_post): Replace unsigned long int
33869         with uint64_t.
33870         * nptl/sem_waitcommon.c (__sem_wait_cleanup): Replace 1UL with
33871         (uint64_t) 1.
33872         (__new_sem_wait_fast): Replace unsigned long with uint64_t.
33873         (__new_sem_wait_slow): Replace unsigned long int with uint64_t.
33874         Replace 1UL with (uint64_t) 1.
33875         * sysdeps/nptl/internaltypes.h (new_sem): Replace unsigned long
33876         int with uint64_t.
33877
33878 2015-01-23  Roland McGrath  <roland@hack.frob.com>
33879
33880         * inet/if_index.c (if_nameindex): Add missing libc_hidden_weak.
33881         (if_freenameindex): Likewise.
33882
33883         * resource/getrlimit64.c: Add missing libc_hidden_def.
33884
33885 2015-01-22  Joseph Myers  <joseph@codesourcery.com>
33886
33887         * soft-fp/op-common.h (_FP_ADD_INTERNAL): Declare labels with
33888         __label__.
33889         (_FP_FMA): Likewise.
33890         (_FP_TO_INT_ROUND): Likewise.
33891         (_FP_FROM_INT): Likewise.
33892
33893 2015-01-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33894
33895         [BZ #16418]
33896         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
33897         Make code racy and cancel safe.
33898
33899 2015-01-21  Carlos O'Donell  <carlos@redhat.com>
33900
33901         * sysdeps/arm/unwind-resume.h: Fix copyright year.
33902         * dlfcn/tst-rec-dlopen.c: Fix incorrect copyright year and
33903         attribution.
33904
33905         * pwd/tst-getpw.c: Rewrite.
33906
33907         [BZ #17702]
33908         * dlfcn/Makefile (tests): Add tst-rec-dlopen.
33909         (modules-names): Add moddummy1 and moddummy2.
33910         ($(objpfx)tst-rec-dlopen): Define.
33911         * dlfcn/moddummy1.c: New file.
33912         * dlfcn/moddummy2.c: New file.
33913         * dlfcn/tst-rec-dlopen.c: New file.
33914         * elf/dl-cache.c (_dl_load_cache_lookup):
33915         Return char*. Copy result with alloca/strcpy/strdup.
33916         * elf/dl-load.c (_dl_map_object): _dl_load_cached_lookup
33917         returns char*. Free cached. If not saving realname
33918         free cached.
33919         * elf/dl-open.c (dl_open_worker): Do not assert that
33920         _r_debug->r_state is RT_CONSISTENT.
33921         * sysdeps/generic/ldsodefs.h: _dl_load_cache_lookup
33922         returns char*.
33923
33924 2015-01-21  Torvald Riegel  <triegel@redhat.com>
33925             Carlos O'Donell  <carlos@redhat.com>
33926
33927         [BZ #12674]
33928         * nptl/sem_waitcommon.c: New file.
33929         * nptl/sem_wait.c: Include sem_waitcommon.c.
33930         (__sem_wait_cleanup, do_futex_wait): Remove.
33931         (__new_sem_wait): Adapt.
33932         (__new_sem_trywait): New function.
33933         (__old_sem_trywait): Moved here from nptl/sem_trywait.c.
33934         * nptl/sem_timedwait.c: Include sem_waitcommon.c.
33935         (__sem_wait_cleanup, do_futex_timed_wait): Remove.
33936         (sem_timedwait): Adapt.
33937         * nptl/sem_post.c (__new_sem_post): Adapt.
33938         (futex_wake): New function.
33939         (__old_sem_post): Add release MO fence.
33940         * nptl/sem_open.c (sem_open): Adapt.
33941         * nptl/sem_init.c (__new_sem_init): Adapt.
33942         (futex_private_if_supported): New function.
33943         * nptl/sem_getvalue.c (__new_sem_getvalue): Adapt.
33944         (__old_sem_getvalue): Add using previous code.
33945         * sysdeps/nptl/internaltypes.h: Adapt.
33946         * nptl/tst-sem13.c (do_test): Adapt.
33947         * nptl/tst-sem11.c (main): Adapt.
33948         * nptl/sem_trywait.c: Remove.
33949         * nptl/DESIGN-sem.txt: Remove.
33950         * nptl/Makefile (libpthread-routines): Remove sem_trywait.
33951         (gen-as-const-headers): Remove structsem.sym.
33952         * nptl/structsem.sym: Remove.
33953         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Remove.
33954         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Remove.
33955         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Remove.
33956         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Remove.
33957         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Remove.
33958         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Remove.
33959         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Remove.
33960         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Remove.
33961         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Remove.
33962         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Remove.
33963         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Remove.
33964         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Remove.
33965         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Remove.
33966         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: Remove.
33967         * sysdeps/unix/sysv/linux/sh/sem_post.S: Remove.
33968         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Remove.
33969         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Remove.
33970         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Remove.
33971         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Remove.
33972         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Remove.
33973         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Remove.
33974         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Remove.
33975
33976 2015-01-20  Carlos O'Donell  <carlos@redhat.com>
33977
33978         * INSTALL: Regenerated.
33979
33980         * po/libc.pot: Regenerated.
33981
33982 2015-01-18  Chung-Lin Tang  <cltang@codesourcery.com>
33983             Sandra Loosemore  <sandra@codesourcery.com>
33984             Andrew Jenner  <andrew@codesourcery.com>
33985             Joseph Myers  <joseph@codesourcery.com>
33986             Nathan Sidwell  <nathan@codesourcery.com>
33987
33988         * NEWS: Mention new Nios II port.
33989         * sysdeps/nios2/Implies: New file.
33990         * sysdeps/nios2/Makefile: New file.
33991         * sysdeps/nios2/Subdirs: New file.
33992         * sysdeps/nios2/Versions: New file.
33993         * sysdeps/nios2/__longjmp.S: New file.
33994         * sysdeps/nios2/abort-instr.h: New file.
33995         * sysdeps/nios2/backtrace.c: New file.
33996         * sysdeps/nios2/bits/endian.h: New file.
33997         * sysdeps/nios2/bits/fenv.h: New file.
33998         * sysdeps/nios2/bits/link.h: New file.
33999         * sysdeps/nios2/bits/setjmp.h: New file.
34000         * sysdeps/nios2/bsd-_setjmp.S: New file.
34001         * sysdeps/nios2/bsd-setjmp.S: New file.
34002         * sysdeps/nios2/configure: New generated file.
34003         * sysdeps/nios2/configure.ac: New file.
34004         * sysdeps/nios2/crti.S: New file.
34005         * sysdeps/nios2/crtn.S: New file.
34006         * sysdeps/nios2/dl-init.c: New file.
34007         * sysdeps/nios2/dl-machine.h: New file.
34008         * sysdeps/nios2/dl-sysdep.h: New file.
34009         * sysdeps/nios2/dl-tls.h: New file.
34010         * sysdeps/nios2/dl-trampoline.S: New file.
34011         * sysdeps/nios2/gccframe.h: New file.
34012         * sysdeps/nios2/gmp-mparam.h: New file.
34013         * sysdeps/nios2/jmpbuf-offsets.h: New file.
34014         * sysdeps/nios2/jmpbuf-unwind.h: New file.
34015         * sysdeps/nios2/ldsodefs.h: New file.
34016         * sysdeps/nios2/libc-tls.c: New file.
34017         * sysdeps/nios2/libm-test-ulps: New file.
34018         * sysdeps/nios2/machine-gmon.h: New file.
34019         * sysdeps/nios2/math-tests.h: New file.
34020         * sysdeps/nios2/math_private.h: New file.
34021         * sysdeps/nios2/memusage.h: New file.
34022         * sysdeps/nios2/nptl/Makefile: New file.
34023         * sysdeps/nios2/nptl/bits/pthreadtypes.h: New file.
34024         * sysdeps/nios2/nptl/bits/semaphore.h: New file.
34025         * sysdeps/nios2/nptl/pthread_spin_lock.c: New file.
34026         * sysdeps/nios2/nptl/pthreaddef.h: New file.
34027         * sysdeps/nios2/nptl/tcb-offsets.sym: New file.
34028         * sysdeps/nios2/nptl/tls.h: New file.
34029         * sysdeps/nios2/preconfigure: New file.
34030         * sysdeps/nios2/s_fma.c: New file.
34031         * sysdeps/nios2/s_fmaf.c: New file.
34032         * sysdeps/nios2/setjmp.S: New file.
34033         * sysdeps/nios2/sfp-machine.h: New file.
34034         * sysdeps/nios2/sotruss-lib.c: New file.
34035         * sysdeps/nios2/stackguard-macros.h: New file.
34036         * sysdeps/nios2/stackinfo.h: New file.
34037         * sysdeps/nios2/start.S: New file.
34038         * sysdeps/nios2/sysdep.h: New file.
34039         * sysdeps/nios2/tls-macros.h: New file.
34040         * sysdeps/nios2/tst-audit.h: New file.
34041         * sysdeps/unix/sysv/linux/nios2/Implies: New file.
34042         * sysdeps/unix/sysv/linux/nios2/Makefile: New file.
34043         * sysdeps/unix/sysv/linux/nios2/Versions: New file.
34044         * sysdeps/unix/sysv/linux/nios2/arch-fork.h: New file.
34045         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: New file.
34046         * sysdeps/unix/sysv/linux/nios2/bits/mman.h: New file.
34047         * sysdeps/unix/sysv/linux/nios2/cacheflush.c: New file.
34048         * sysdeps/unix/sysv/linux/nios2/clone.S: New file.
34049         * sysdeps/unix/sysv/linux/nios2/configure: New generated file.
34050         * sysdeps/unix/sysv/linux/nios2/configure.ac: New file.
34051         * sysdeps/unix/sysv/linux/nios2/getcontext.S: New file.
34052         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: New file.
34053         * sysdeps/unix/sysv/linux/nios2/kernel_rt_sigframe.h: New file.
34054         * sysdeps/unix/sysv/linux/nios2/makecontext.c: New file.
34055         * sysdeps/unix/sysv/linux/nios2/profil-counter.h: New file.
34056         * sysdeps/unix/sysv/linux/nios2/setcontext.S: New file.
34057         * sysdeps/unix/sysv/linux/nios2/shlib-versions: New file.
34058         * sysdeps/unix/sysv/linux/nios2/sigcontextinfo.h: New file.
34059         * sysdeps/unix/sysv/linux/nios2/swapcontext.S: New file.
34060         * sysdeps/unix/sysv/linux/nios2/sys/cachectl.h: New file.
34061         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: New file.
34062         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: New file.
34063         * sysdeps/unix/sysv/linux/nios2/sys/user.h: New file.
34064         * sysdeps/unix/sysv/linux/nios2/syscall.S: New file.
34065         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: New file.
34066         * sysdeps/unix/sysv/linux/nios2/sysdep.S: New file.
34067         * sysdeps/unix/sysv/linux/nios2/sysdep.h: New file.
34068         * sysdeps/unix/sysv/linux/nios2/ucontext_i.sym: New file.
34069         * sysdeps/unix/sysv/linux/nios2/vfork.S: New file.
34070         * sysdeps/unix/sysv/linux/nios2/c++-types.data: New file.
34071         * sysdeps/unix/sysv/linux/nios2/ld.abilist: New file.
34072         * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: New file.
34073         * sysdeps/unix/sysv/linux/nios2/libanl.abilist: New file.
34074         * sysdeps/unix/sysv/linux/nios2/libc.abilist: New file.
34075         * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: New file.
34076         * sysdeps/unix/sysv/linux/nios2/libdl.abilist: New file.
34077         * sysdeps/unix/sysv/linux/nios2/libm.abilist: New file.
34078         * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: New file.
34079         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: New file.
34080         * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: New file.
34081         * sysdeps/unix/sysv/linux/nios2/librt.abilist: New file.
34082         * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: New file.
34083         * sysdeps/unix/sysv/linux/nios2/libutil.abilist: New file.
34084         * sysdeps/unix/sysv/linux/nios2/localplt.data: New file.
34085
34086 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
34087
34088         [BZ #17844]
34089         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c
34090         (getutent): Use weak_alias in non SHARED case
34091         and default_symbol_version in SHARED case.
34092         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c
34093         (getutent_r, pututline): Likewise.
34094         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c
34095         (getutid): Likewise.
34096         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c
34097         (getutid_r): Likewise.
34098         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c
34099         (getutline): Likewise.
34100         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c
34101         (getutline_r): Likewise.
34102         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c
34103         (updwtmp): Likewise.
34104
34105 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
34106
34107         [BZ #17848]
34108         * sysdeps/s390/s390-32/memcmp.S
34109         (memcmp_g5): Rename to __memcmp_g5.
34110         * sysdeps/s390/s390-32/memcpy.S
34111         (memcpy_g5): Rename to __memcpy_g5.
34112         Jump to __memcpy_mvcle instead of memcpy_mvcle.
34113         (memcpy_mvcle) Rename to __memcpy_mvcle.
34114         * sysdeps/s390/s390-32/memset.S
34115         (memset_g5): Rename to __memset_g5.
34116         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
34117         (IFUNC_RESOLVE): Prefix ifunc-resolve function
34118         and use prefixed functions.
34119         * sysdeps/s390/s390-32/multiarch/memcmp.S
34120         (memcmp_z196): Rename to __memcmp_z196.
34121         (memcmp_z10): Rename to __memcmp_z10.
34122         (memcmp): Set alias to __memcmp_g5.
34123         (bcmp): Set alias to __memcmp_g5.
34124         * sysdeps/s390/s390-32/multiarch/memcpy.S
34125         (memcpy_z196): Rename to __memcpy_z196.
34126         Jump to __memcpy_mvcle instead of memcpy_mvcle.
34127         (memcpy_z10): Rename to __memcpy_z10.
34128         Jump to __memcpy_mvcle instead of memcpy_mvcle.
34129         (memcpy): Set alias to __memcpy_g5.
34130         * sysdeps/s390/s390-32/multiarch/memset.S
34131         (memset_z196): Rename to __memset_z196.
34132         Jump to __memset_mvcle instead of memset_mvcle.
34133         (memset_z10): Rename to __memset_z10.
34134         Jump to __memset_mvcle instead of memset_mvcle.
34135         (memset_mvcle) Rename to __memset_mvcle.
34136         (memset): Set alias to __memset_g5.
34137         * sysdeps/s390/s390-64/memcmp.S
34138         (memcmp_z900): Rename to __memcmp_z900.
34139         * sysdeps/s390/s390-64/memcpy.S
34140         (memcpy_z900): Rename to __memcpy_z900.
34141         Jump to __memcpy_mvcle instead of memcpy_mvcle.
34142         (memcpy_mvcle) Rename to __memcpy_mvcle.
34143         * sysdeps/s390/s390-64/memset.S
34144         (memset_z900): Rename to __memset_z900.
34145         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c
34146         (IFUNC_RESOLVE): Prefix ifunc-resolve function
34147         and use prefixed functions.
34148         * sysdeps/s390/s390-64/multiarch/memcmp.S
34149         (memcmp_z196): Rename to __memcmp_z196.
34150         (memcmp_z10): Rename to __memcmp_z10.
34151         (memcmp): Set alias to __memcmp_z900.
34152         (bcmp): Set alias to __memcmp_z900.
34153         * sysdeps/s390/s390-64/multiarch/memcpy.S
34154         (memcpy_z196): Rename to __memcpy_z196.
34155         Jump to __memcpy_mvcle instead of memcpy_mvcle.
34156         (memcpy_z10): Rename to __memcpy_z10.
34157         Jump to __memcpy_mvcle instead of memcpy_mvcle.
34158         (memcpy): Set alias to __memcpy_z900.
34159         * sysdeps/s390/s390-64/multiarch/memset.S
34160         (memset_z196): Rename to __memset_z196.
34161         Jump to __memset_mvcle instead of memset_mvcle.
34162         (memset_z10): Rename to __memset_z10.
34163         Jump to __memset_mvcle instead of memset_mvcle.
34164         (memset_mvcle) Rename to __memset_mvcle.
34165         (memset): Set alias to __memset_z900.
34166
34167 2015-01-14  Joseph Myers  <joseph@codesourcery.com>
34168
34169         [BZ #17748]
34170         * sysdeps/powerpc/nofpu/feholdexcpt.c (__feholdexcept): Call
34171         __fesetenv instead of fesetenv.
34172
34173 2015-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
34174
34175         * sysdeps/s390/dl-tls.h [IS_IN (rtld)]: Define __tls_get_addr
34176         macro.
34177
34178 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34179
34180         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Fix performance
34181         regression on LE.
34182
34183         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: New file.
34184         * sysdeps/powerpc/powerpc64/power8/strncmp.S: New file.
34185         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
34186         strncmp-power8 object.
34187         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
34188         (__libc_ifunc_impl_list): Add __strncmp_power8 implementation.
34189         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c (strncmp): Likewise.
34190         * NEWS: Update.
34191
34192 2015-01-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
34193             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34194
34195         * sysdeps/powerpc/powerpc64/power7/strcmp.S (strcmp): Optimize
34196         trailing byte check.
34197
34198 2015-01-13  David S. Miller  <davem@davemloft.net>
34199
34200         * include/signal.h (__sigreturn): Guard with __USE_MISC.
34201
34202 2015-01-13  Roland McGrath  <roland@hack.frob.com>
34203
34204         * login/logout.c (logout): Use memset rather than bzero.
34205         * nis/nss_compat/compat-pwd.c (getpwent_next_file): Likewise.
34206         * nis/nss_compat/compat-spwd.c (getspent_next_file): Likewise.
34207         * resolv/gethnamaddr.c (gethostbyaddr): Use memcmp rather than bcmp.
34208         (_gethtbyaddr): Likewise.
34209         * locale/programs/simple-hash.c (bcopy): Macro removed.
34210
34211 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34212
34213         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
34214         Add strcmp-power8 object.
34215         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
34216         (__libc_ifunc_impl_list): Add __strcmp_power8 implementation.
34217         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: New file.
34218         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c (strcmp): Add
34219         __strcmp_power8 implementation.
34220         * sysdeps/powerpc/powerpc64/power8/strcmp.S: New file.
34221         * NEWS: Update.
34222
34223         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
34224         Add strncpy-power8 and stpncpy-power8 objects.
34225         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
34226         (__libc_ifunc_impl_list): Add __strncpy_power8 and stpncpy_power8
34227         implementations.
34228         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: New file.
34229         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c (__stpncpy): Add
34230         __stpncpy_power8 implementation.
34231         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: New file.
34232         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c (strncpy): Add
34233         __strncpy_power8 implementation.
34234         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: New file.
34235         * sysdeps/powerpc/powerpc64/power8/strncpy.S: New file.
34236         * NEWS: Update.
34237
34238         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.c: New file.
34239         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: Remove file.
34240         * sysdeps/powerpc/powerpc64/power7/strncat.S: Likewise.
34241
34242         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
34243         strncat-power8 object.
34244         * sysdeps/powerpc/powerpc64/multiarch/strcat.c (strcat): Add
34245         __strcat_power8 implementation.
34246         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
34247         (__libc_ifunc_impl_list): Add __strcat_power8 implementation.
34248         * sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c: New file:
34249         optimized strcat for power8.
34250
34251         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
34252         strcpy-power8 and stpcpy-power8 objects.
34253         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
34254         (__libc_ifunc_impl_list): Add __strcpy_power8 and __stpcpy_power8
34255         implementations.
34256         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: New file:
34257         multiarch stpcpy implementation for POWER8.
34258         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: New file;
34259         multiarch strcpy implementation for POWER8.
34260         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c (strcpy): Add
34261         __strcpy_power8 function.
34262         * sysdeps/powerpc/powerpc64/power8/stpcpy.S: New file: optimized
34263         stpcpy for POWER8.
34264         * sysdeps/powerpc/powerpc64/power8/strcpy.S: New file: optimized
34265         strcpy for POWER8.
34266         * NEWS: Update.
34267
34268 2015-01-13  Leonhard Holz  <leonhard.holz@web.de>
34269
34270         [BZ #16009]
34271         * string/strxfrm_l.c (STRXFRM): Allocate fixed size cache for
34272         weights and rules. Use do_xfrm_cached if data fits in cache,
34273         do_xfrm otherwise.  Moved former main loop to...
34274         * (do_xfrm_cached): New function.
34275         * (do_xfrm): Non-caching version of do_xfrm_cached. Uses
34276         find_idx, find_position and stack_push.
34277         * (find_idx): New function.
34278         * (find_position): Likewise.
34279         * localedata/sort-test.sh: Added test run for do_xfrm.
34280         * localedata/xfrm-test.c (main): Added command line option
34281         -nocache to run the test with strings that are too large for
34282         the STRXFRM cache.
34283
34284 2015-01-13  Torvald Riegel  <triegel@redhat.com>
34285
34286         * sysdeps/nptl/fork.c (__libc_fork): Provide address of futex
34287         variable to lll_futex_wake call, not the value itself.
34288
34289 2015-01-12  Joseph Myers  <joseph@codesourcery.com>
34290
34291         [BZ #17803]
34292         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (twom63): Rename to
34293         twom64.  Adjust value to 0x1p-64L.
34294         (__scalblnl): Only return standard underflowing result for K <=
34295         -64 not K <= -63; adjust exponent for underflowing result by 64
34296         not 63.
34297         * math/libm-test.inc (scalbn_test_data): Add more tests.
34298         (scalbln_test_data): Likewise.
34299
34300         [BZ #17834]
34301         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (two63): Change value to
34302         0x1p63L.
34303         (__scalblnl): Get new exponent of adjusted subnormal value from ES
34304         not HX.
34305         * math/libm-test.inc (scalbn_test_data): Add more tests.
34306         (scalbln_test_data): Likewise.
34307
34308 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34309             Stefani Seibold  <stefani@seibold.net>
34310
34311         * sysdeps/unix/sysv/linux/x86_64/Makefile [$(subdir) = elf]
34312         (sysdep_routines): Add dl-vdso here, ...
34313         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = elf]
34314         (sysdep_routines): ... not here.
34315         * sysdeps/unix/sysv/linux/i386/gettimeofday.c: New file: set syscall
34316         fallback when vDSO is not presented.
34317         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
34318         Define with libc_hidden_proto/libc_hidden_data_def definitions.
34319         (_libc_vdso_platform_setup): Rename to __vdso_platform_setup.
34320         * sysdeps/unix/sysv/linux/i386/init-first.c: New file: likewise.
34321         * sysdeps/unix/sysv/linux/i386/time.c: New file: likewise.
34322         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Moved to ...
34323         * sysdeps/unix/sysv/linux/x86/libc-vdso.h: ... here.
34324         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: Move to ...
34325         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: ... here.
34326         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Move to ...
34327         * sysdeps/unix/sysv/linux/x86/gettimeofday.c: ... here.  Also added
34328         fallback configurable symbol when vDSO is not available.
34329         * sysdeps/unix/sysv/linux/x86_64/time.c: Move to ...
34330         * sysdeps/unix/sysv/linux/x86/time.c: ... here.  Also refactored to
34331         be able to redefine fallback symbol when vDSO is not available.
34332         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: Move to ...
34333         * sysdeps/unix/sysv/linux/x86/timespec_get.c: ... here.
34334
34335 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34336
34337         * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Add tm_capable field.
34338         (TLS_INIT_TP): Add tm_capable initialization.
34339         (TLS_DEFINE_INIT_TP): Likewise.
34340         (THREAD_GET_TM_CAPABLE): New file: get tm_capable field value from
34341         TCB.
34342         (THREAD_SET_TM_CAPABLE): New file: set tm_capable field value in TCB.
34343         * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Add field offset
34344         calculation.
34345         * sysdeps/powerpc/powerpc32/sysdep.h (DO_CALL): Abort hardware
34346         transactoion is lock elision is built and TCB tm_capable is set.
34347         * sysdeps/powerpc/powerpc64/sysdep.h (DO_CALL): Likewise.
34348         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
34349         (INTERNAL_SYSCALL_NCS): Likewise.
34350         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
34351         (INTERNAL_SYSCALL_NCS): Likewise.
34352         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): New define.
34353
34354         * sysdeps/powerpc/nptl/elide.h: New file: generic lock elision support
34355         for powerpc.
34356         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
34357         [pthread_rwlock_t] (__pad1): Change size to 7 bytes in 64 bits case
34358         and remove it for 32 bits case.
34359         [pthread_rwlock_t] (__rwelision): New field for lock elision.
34360         (__PTHREAD_RWLOCK_ELISION_EXTRA): Adjust for new lock elision field
34361         initialization.
34362         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init):
34363         Disable lock elision with rdlocks if elision is not available.
34364
34365         * sysdeps/unix/sysv/linux/powerpc/Makefile [nptl]
34366         (sysdep_routines): Add lock elision objects.
34367         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
34368         [pthread_mutex_t] (__spins): Rework to add lock elision field.
34369         [pthread_mutex_t] (__elision): Add field.
34370         [__PTHREAD_SPINS]: Adjust to init lock elision field.
34371         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c: New file: lock
34372         elision definitions for powerpc.
34373         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: New file:
34374         implementation of lock elision for powerpc.
34375         * sysdeps/unix/sysv/linux/powerpc/elision-timed.c: New file:
34376         implementation of timed lock elision for powerpc.
34377         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: New file:
34378         implementation of trylock with lock elision for powerpc.
34379         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: New file:
34380         implementaion of unlock for lock elision for powerpc.
34381         * sysdeps/unix/sysv/linux/powerpc/force-elision.h: New file:
34382         automatic enable lock elision for mutexes.
34383         * sysdeps/unix/sysv/linux/powerpc/htm.h: New file: hardware
34384         transaction execution definitions for powerpc.
34385         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: New file: add TLE
34386         definitions.
34387         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_cond_lock.c: New file.
34388         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_lock.c: Likewise.
34389         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_timedlock.c: Likewise.
34390         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_trylock.c: Likewise.
34391         * NEWS: Update.
34392
34393 2015-01-09  Roland McGrath  <roland@hack.frob.com>
34394
34395         * sysdeps/posix/shm-directory.c: Use <> rather than ""
34396         for #include of <shm-directory.h>.
34397
34398 2015-01-09  Chung-Lin Tang  <cltang@codesourcery.com>
34399
34400         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Remove MIN() and
34401         assign raw DT_REL[A]COUNT value to ranges[0].nrelative.
34402
34403 2015-01-09  Matthew Fortune <matthew.fortune@imgtec.com>
34404
34405         [BZ #17791]
34406         * NEWS: Mention bug fix.
34407         * sysdepsysdeps/unix/sysv/linux/microblaze/sys/user.h
34408         (PAGE_SHIFT, PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Remove.
34409         (HOST_TEXT_START_ADDR, HOST_STACK_END_ADDR): Remove.
34410
34411 2015-01-09  Torvald Riegel <triegel@redhat.com>
34412
34413         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Delete file.
34414
34415 2015-01-09  Torvald Riegel <triegel@redhat.com>
34416
34417         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: Delete file.
34418
34419 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
34420
34421         * sysdeps/microblaze/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as void
34422         pointer and cast to uintptr_t.
34423
34424 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
34425
34426         * sysdeps/microblaze/nptl/tls.h (__microblaze_get_thread_area): Function
34427         removed.
34428         (READ_THREAD_POINTER): Use __microblaze_thread_area instead.
34429
34430 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
34431
34432         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Use NULL instead
34433         of 0.
34434
34435 2015-01-08  Roland McGrath  <roland@hack.frob.com>
34436
34437         * sysdeps/pthread/timer_routines.c: Fix <pthreadP.h> include to use
34438         <nptl/pthreadP.h> instead.
34439         * sysdeps/pthread/aio_notify.c: Include <signal.h> for raise decl.
34440
34441         * signal/allocrtsig.c (RESERVED_SIGRT): New macro, defined to 0 if not
34442         already defined.
34443         [__SIGRTMIN] (init): Function removed.
34444         [__SIGRTMIN] (initialized): Variable removed.
34445         [!__SIGRTMIN] (current_rtmin, current_rtmax): Variables removed.
34446         [__SIGRTMIN] (current_rtmin, current_rtmax): Initialize to
34447         __SIGRTMIN + RESERVED_SIGRT and __SIGRTMAX, respectively.
34448         (__libc_current_sigrtmin) [__SIGRTMIN]: Don't call init.
34449         (__libc_current_sigrtmin) [!__SIGRTMIN]: Just return -1.
34450         (__libc_current_sigrtmin): Add __libc_current_sigrtmin_private alias.
34451         (__libc_current_sigrtmax) [__SIGRTMIN]: Don't call init.
34452         (__libc_current_sigrtmax) [!__SIGRTMIN]: Just return -1.
34453         (__libc_current_sigrtmax): Add __libc_current_sigrtmax_private alias.
34454         (__libc_allocate_rtsig) [__SIGRTMIN]: Don't call init.
34455         (__libc_allocate_rtsig): Add __libc_allocate_rtsig_private alias.
34456         * sysdeps/nptl/allocrtsig.c: New file.
34457         * sysdeps/unix/sysv/linux/allocrtsig.c: File removed.
34458         * sysdeps/unix/sysv/linux/testrtsig.h: File removed.
34459         * sysdeps/generic/testrtsig.h: File removed.
34460
34461         * nptl/pthread_sigmask.c [SIGCANCEL || SIGTIMER || SIGSETXID]: #error.
34462         (pthread_sigmask): Call sigprocmask, not __sigprocmask.
34463
34464         * nptl/nptl-init.c (pthread_functions): Conditionalize
34465         .ptr__nptl_setxid initialization on [SIGSETXID].
34466
34467         * sysdeps/nptl/sys/procfs.h: New file.
34468         * nptl_db/Makefile (headers): Add it.
34469         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it.
34470
34471         * nptl/pthreadP.h (check_cpuset_attr): Moved ...
34472         * sysdeps/unix/sysv/linux/check-cpuset.h: ... to this new file.
34473         * nptl/pthread_attr_setaffinity.c: Include it.
34474         * nptl/pthread_setattr_default_np.c: Likewise.
34475         * nptl/check-cpuset.h: New file.
34476
34477 2015-01-08  Richard Henderson  <rth@redhat.com>
34478
34479         * elf/Makefile (CFLAGS-tst-execstack-mod.c): Add -Wno-trampolines
34480         (CFLAGS-tst-execstack-prog.c): Likewise.
34481         * nptl/Makefile (CFLAGS-tst-execstack-mod.c): Likewise.
34482
34483 2015-01-08  Chung-Lin Tang  <cltang@codesourcery.com>
34484             Sandra Loosemore  <sandra@codesourcery.com>
34485             Andrew Jenner  <andrew@codesourcery.com>
34486             Joseph Myers  <joseph@codesourcery.com>
34487             Nathan Sidwell  <nathan@codesourcery.com>
34488
34489         * elf/elf.h (EM_ALTERA_NIOS2): New machine number for Altera Nios II.
34490         (DT_NIOS2_GP): New dynamic entry type for Nios II _gp address.
34491         (R_NIOS2_NONE,R_NIOS2_S16,R_NIOS2_U16): Define Nios II relocations.
34492         (R_NIOS2_PCREL16,R_NIOS2_CALL26,R_NIOS2_IMM5): Likewise.
34493         (R_NIOS2_CACHE_OPX,R_NIOS2_IMM6,R_NIOS2_IMM8,R_NIOS2_HI16): Likewise.
34494         (R_NIOS2_LO16,R_NIOS2_HIADJ16,R_NIOS2_BFD_RELOC_32): Likewise.
34495         (R_NIOS2_BFD_RELOC_16,R_NIOS2_BFD_RELOC_8,R_NIOS2_GPREL): Likewise.
34496         (R_NIOS2_GNU_VTINHERIT,R_NIOS2_GNU_VTENTRY,R_NIOS2_UJMP): Likewise.
34497         (R_NIOS2_CJMP,R_NIOS2_CALLR,R_NIOS2_ALIGN,R_NIOS2_GOT16): Likewise.
34498         (R_NIOS2_CALL16,R_NIOS2_GOTOFF_LO,R_NIOS2_GOTOFF_HA): Likewise.
34499         (R_NIOS2_PCREL_LO,R_NIOS2_PCREL_HA,R_NIOS2_TLS_GD16): Likewise.
34500         (R_NIOS2_TLS_LDM16,R_NIOS2_TLS_LDO16,R_NIOS2_TLS_IE16): Likewise.
34501         (R_NIOS2_TLS_LE16,R_NIOS2_TLS_DTPMOD,R_NIOS2_TLS_DTPREL): Likewise.
34502         (R_NIOS2_TLS_TPREL,R_NIOS2_COPY,R_NIOS2_GLOB_DAT): Likewise.
34503         (R_NIOS2_JUMP_SLOT,R_NIOS2_RELATIVE,R_NIOS2_GOTOFF): Likewise.
34504         (R_NIOS2_CALL26_NOAT,R_NIOS2_GOT_LO,R_NIOS2_GOT_HA): Likewise.
34505         (R_NIOS2_CALL_LO,R_NIOS2_CALL_HA): Likewise.
34506
34507 2015-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34508
34509         * sysdeps/unix/sysv/linux/futimens.c (futimens): Use address of first
34510         timespec struct member in syscall macro.
34511         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
34512         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Use address of
34513         first timeval struct member in syscall macro.
34514         * sysdeps/unix/sysv/linux/utimes.c (__utimeS): Likewise.
34515
34516 2015-01-07  Joseph Myers  <joseph@codesourcery.com>
34517
34518         [BZ #17748]
34519         * include/fenv.h (__feupdateenv): Use libm_hidden_proto.
34520         * math/feupdateenv.c (__feupdateenv): Use libm_hidden_def.
34521         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Rename to
34522         __feupdateenv and define as weak alias of __feupdateenv.  Use
34523         libm_hidden_weak.
34524         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Use
34525         libm_hidden_def.
34526         * sysdeps/arm/feupdateenv.c (feupdateenv): Rename to __feupdateenv
34527         and define as weak alias of __feupdateenv.  Use libm_hidden_weak.
34528         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
34529         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Use
34530         libm_hidden_def.
34531         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Rename to
34532         __feupdateenv and define as weak alias of __feupdateenv.  Use
34533         libm_hidden_weak.
34534         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Use
34535         libm_hidden_def.
34536         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Rename to
34537         __feupdateenv and define as weak alias of __feupdateenv.  Use
34538         libm_hidden_weak.
34539         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Use
34540         libm_hidden_def.
34541         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
34542         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
34543         (__feupdateenv): Likewise.
34544         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Rename to
34545         __feupdateenv and define as weak alias of __feupdateenv.  Use
34546         libm_hidden_weak.
34547         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
34548         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Use
34549         libm_hidden_def.
34550         * sysdeps/tile/math_private.h (__feupdateenv): New inline
34551         function.
34552         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Use
34553         libm_hidden_def.
34554         * sysdeps/generic/math_private.h (default_libc_feupdateenv): Call
34555         __feupdateenv instead of feupdateenv.
34556         (default_libc_feupdateenv_test): Likewise.
34557         (libc_feresetround_ctx): Likewise.
34558
34559 2015-01-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34560
34561         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Fix function
34562         prototype.
34563
34564 2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
34565
34566         * posix/regcomp.c (parse_bracket_exp): Initialize type to
34567         COLL_SYM in a couple of places to avoid uninitialized variable
34568         wanings on tilegx gcc 4.8.2.
34569
34570 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
34571
34572         * sysdeps/aarch64/strcpy.S: New file.
34573         * sysdeps/aarch64/stpcpy.S: New file.
34574         * NEWS: Updated.
34575
34576 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
34577
34578         * sysdeps/aarch64/strrchr.S: New file.
34579         * NEWS: Updated.
34580
34581 2015-01-07  Eric Biggers  <ebiggers3@gmail.com>
34582
34583         [BZ #17658]
34584         * stdlib/setenv.c: Fix memory leak when setting large,
34585         duplicate string.
34586
34587 2015-01-06  Vladimir A. Nazarenko  <naszar@ya.ru>
34588
34589         [BZ #17273]
34590         * misc/mntent_r.c (__getmntent_r): Cut off trailing spaces
34591         and tabs from buffer before parsing fstab entry.
34592         * misc/tst-mntent.c (main): Add test for mount entry with
34593         trailing spaces and tabs.
34594
34595 2015-01-06  Joseph Myers  <joseph@codesourcery.com>
34596
34597         [BZ #17748]
34598         * include/fenv.h (__fesetround): Declare.  Use libm_hidden_proto.
34599         * math/fesetround.c (fesetround): Rename to __fesetround and
34600         define as weak alias of __fesetround.  Use libm_hidden_weak.
34601         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Likewise.
34602         * sysdeps/alpha/fpu/fesetround.c (fesetround): Likewise.
34603         * sysdeps/arm/fesetround.c (fesetround): Likewise.
34604         * sysdeps/hppa/fpu/fesetround.c (fesetround): Likewise.
34605         * sysdeps/i386/fpu/fesetround.c (fesetround): Likewise.
34606         * sysdeps/ia64/fpu/fesetround.c (fesetround): Likewise.
34607         * sysdeps/m68k/fpu/fesetround.c (fesetround): Likewise.
34608         * sysdeps/mips/fpu/fesetround.c (fesetround): Likewise.
34609         * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround): Rename to
34610         __fesetround_inline.
34611         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetround_ppc): Call
34612         __fesetround_inline instead of __fesetround.
34613         * sysdeps/powerpc/fpu/fesetround.c (fesetround): Rename to
34614         __fesetround and define as weak alias of __fesetround.  Use
34615         libm_hidden_weak.  Call __fesetround_inline instead of
34616         __fesetround.
34617         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Rename to
34618         __fesetround and define as weak alias of __fesetround.  Use
34619         libm_hidden_weak.
34620         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c (fesetround):
34621         Likewise.
34622         * sysdeps/s390/fpu/fesetround.c (fesetround): Likewise.
34623         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
34624         * sysdeps/sparc/fpu/fesetround.c (fesetround): Likewise.
34625         * sysdeps/tile/math_private.h (__fesetround): New inline function.
34626         * sysdeps/x86_64/fpu/fesetround.c (fesetround): Rename to
34627         __fesetround and define as weak alias of __fesetround.  Use
34628         libm_hidden_weak.
34629         * sysdeps/generic/math_private.h (default_libc_fesetround): Call
34630         __fesetround instead of fesetround.
34631         (default_libc_feholdexcept_setround): Likewise.
34632         (libc_feholdsetround_ctx): Likewise.
34633         (libc_feholdsetround_noex_ctx): Likewise.
34634
34635         [BZ #17748]
34636         * include/fenv.h (__fesetenv): Use libm_hidden_proto.
34637         * math/fesetenv.c (__fesetenv): Use libm_hidden_def.
34638         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
34639         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
34640         * sysdeps/alpha/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
34641         * sysdeps/arm/fesetenv.c (fesetenv): Rename to __fesetenv and
34642         define as weak alias of __fesetenv.  Use libm_hidden_weak.
34643         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
34644         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
34645         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
34646         define as weak alias of __fesetenv.  Use libm_hidden_weak.
34647         * sysdeps/m68k/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
34648         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
34649         define as weak alias of __fesetenv.  Use libm_hidden_weak.
34650         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Use
34651         libm_hidden_def.
34652         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Likewise.
34653         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c (__fesetenv):
34654         Likewise.
34655         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
34656         define as weak alias of __fesetenv.  Use libm_hidden_weak.
34657         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
34658         * sysdeps/sparc/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
34659         * sysdeps/tile/math_private.h (__fesetenv): New inline function.
34660         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
34661         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
34662         * sysdeps/generic/math_private.h (default_libc_fesetenv): Use
34663         __fesetenv instead of fesetenv.
34664         (libc_feresetround_noex_ctx): Likewise.
34665         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
34666         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
34667         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Likewise.
34668         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
34669         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
34670         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
34671         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
34672         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
34673         (__feupdateenv): Likewise.
34674         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
34675         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
34676         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
34677         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Likewise.
34678
34679 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
34680
34681         [BZ #17806]
34682         * resolv/res_init.c (__res_iclose): Only clear nsinit if the
34683         addresses have been freed.
34684
34685 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
34686
34687         * resolv/res_init.c (__res_vinit): Improve comments about nserv
34688         and nservall.
34689
34690 2015-01-06  Ondřej Bílka  <neleai@seznam.cz>
34691
34692         * sysdeps/unix/sysv/linux/check_pf.c (make_request):
34693         Clean up check_pf allocation pattern. addresses
34694
34695 2015-01-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34696
34697         * nptl/pthread_cancel.c (pthread_cancel): Use ANSI prototype.
34698         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Likewise.
34699         * nptl/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
34700         * nptl/pthread_exit.c (__pthread_exit): Likewise.
34701         * nptl/pthread_join.c (pthread_join): Likewise.
34702         * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
34703         * sysdeps/posix/waitid.c (__waitid): Likewise.
34704         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
34705         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
34706         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
34707         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
34708         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
34709         Likewise.
34710         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
34711         (__libc_pread64): Likewise.
34712         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
34713         (__libc_pwrite): Likewise.
34714         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
34715         (__libc_pwrite64): Likewsie.
34716         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
34717         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
34718         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
34719         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
34720         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
34721         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
34722         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
34723         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
34724         Likewise.
34725         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
34726         (__libc_pread64): Likewise.
34727         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_pwrite):
34728         Likewise.
34729         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
34730         (__libc_pwrite64): Likewise.
34731         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
34732         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
34733         * sysdeps/unix/sysv/linux/preadv.c (PREADV): Likewise.
34734         * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Likewise.
34735         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
34736         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
34737         * sysdeps/unix/sysv/linux/pwritev.c (__libc_pwritev): Likewise.
34738         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
34739         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
34740         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
34741         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_write64): Likewise.
34742         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
34743         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
34744         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
34745         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
34746         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
34747         Likewise.
34748
34749 2015-01-06  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
34750
34751         * math/Makefile (CFLAGS-test-float.c): Remove -frounding-math.
34752         (CFLAGS-test-double.c): Likewise.
34753         (CFLAGS-test-ldouble.c): Likewise.
34754         (CPPFLAGS-test-ifloat.c): Likewise.
34755         (CPPFLAGS-test-idouble.c): Likewise.
34756         (CPPFLAGS-test-ildoubl.c): Likewise.
34757         (CFLAGS-test-test-fenv.c): Remove variable.
34758         (CFLAGS-test-misc.c): Likewise.
34759
34760 2015-01-06  H.J. Lu  <hongjiu.lu@intel.com>
34761
34762         [BZ #17797]
34763         * bits/time.h (CLOCKS_PER_SEC): Changed to ((clock_t) 1000000).
34764         * sysdeps/unix/sysv/linux/bits/time.h (CLOCKS_PER_SEC): Likewise.
34765         * sysdeps/unix/sysv/linux/clock.c (clock): _Static_assert
34766         CLOCKS_PER_SEC == 1000000.
34767         * time/clocktest.c (main): Replace %ld with %jd and cast to
34768         intmax_t.
34769
34770 2015-01-05  Roland McGrath  <roland@hack.frob.com>
34771
34772         * sysdeps/generic/unwind-resume.h: New file.
34773         * sysdeps/gnu/unwind-resume.c: Include it.
34774         (libgcc_s_personality): Use PERSONALITY_PROTO macro for the prototype.
34775         (__gcc_personality_v0): Likewise, and PERSONALITY_ARGS for the callee
34776         argument list.
34777         (libgcc_s_resume): Variable renamed to __libgcc_s_resume, made hidden
34778         global rather than static.
34779         (_Unwind_Resume): Update user.
34780         Conditionalize definition on [!HAVE_ARCH_UNWIND_RESUME].
34781         (init): Likewise.  Renamed to __libgcc_s_init, made hidden global
34782         rather than static.  Add __attribute__ ((cold)).
34783         (_Unwind_Resume, __gcc_personality_v0): Update callers.
34784         * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
34785         * sysdeps/arm/arm-unwind-resume.S: New file.
34786         * sysdeps/arm/rt-arm-unwind-resume.S: New file.
34787         * sysdeps/arm/pt-arm-unwind-resume.S: New file.
34788         * sysdeps/arm/Makefile [$(subdir) = csu]
34789         (sysdep_routines, shared-only-routines): Add arm-unwind-resume.
34790         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
34791         Add rt-arm-unwind-resume.
34792         [$(subdir) = nptl]
34793         (libpthread-sysdep_routines, libpthread-shared-only-routines):
34794         Add pt-arm-unwind-resume.
34795         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: File removed.
34796         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: File removed.
34797
34798 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
34799
34800         [BZ #17748]
34801         * include/fenv.h (__feholdexcept): Declare.  Use
34802         libm_hidden_proto.
34803         * math/feholdexcpt.c (feholdexcept): Rename to __feholdexcept and
34804         define as weak alias of __feholdexcept.  Use libm_hidden_weak.
34805         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Likewise.
34806         * sysdeps/alpha/fpu/feholdexcpt.c (feholdexcept): Likewise.
34807         * sysdeps/arm/feholdexcpt.c (feholdexcept): Likewise.
34808         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Likewise.
34809         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
34810         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Likewise.
34811         * sysdeps/m68k/fpu/feholdexcpt.c (feholdexcept): Likewise.
34812         * sysdeps/mips/fpu/feholdexcpt.c (feholdexcept): Likewise.
34813         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
34814         * sysdeps/powerpc/nofpu/feholdexcpt.c (feholdexcept): Likewise.
34815         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c
34816         (feholdexcept): Likewise.
34817         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
34818         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
34819         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Likewise.
34820         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
34821         * sysdeps/generic/math_private.h (default_libc_feholdexcept): Use
34822         __feholdexcept instead of feholdexcept.
34823         (default_libc_feholdexcept_setround): Likewise.
34824
34825 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
34826
34827         * sysdeps/mips/memset.S (memset): Modify for mips32r6/mips64r6
34828         to avoid using stl/str to align destination.
34829
34830 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
34831
34832         * sysdeps/mips/memcpy.S: Add support for mips32r6/mips64r6.
34833
34834 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
34835
34836         [BZ #17796]
34837         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c
34838         [!SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)] (posix_fadvise64):
34839         Define as weak alias not strong alias.
34840
34841 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
34842
34843         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Replace
34844         bltzal with addiupc.
34845         (RTLD_START): Ditto.
34846
34847 2015-01-05  Chris Metcalf  <cmetcalf@ezchip.com>
34848
34849         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Fix return type
34850         for __vdso_* functions in declarations.
34851         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise for
34852         definitions.
34853         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL,
34854         INTERNAL_VSYSCALL): Use struct return types to check for error.
34855
34856         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c [!defined _LP64
34857         && REGISTER_CAST_INT32_TO_INT64]: Provide explicit lround()
34858         function with cast from llround().
34859         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Define.
34860         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
34861         Define.
34862
34863 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
34864
34865         [BZ #17793]
34866         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c (posix_fadvise64):
34867         Define as weak alias not strong alias.
34868
34869         [BZ #17635]
34870         * ctype/ctype-c99.c: New file.  isblank implementation moved from
34871         ...
34872         * ctype/ctype-extn.c: ... here.
34873         (__isblank_l): Move to ...
34874         * ctype/ctype-c99_l.c: ... here.  New file.
34875         * ctype/Makefile (routines): Add ctype-c99 and ctype-c99_l.
34876         * conform/Makefile (test-xfail-ISO99/ctype.h/linknamespace):
34877         Remove variable.
34878         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
34879         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
34880         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
34881         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
34882         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
34883
34884         [BZ #17777]
34885         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise.c
34886         (posix_fadvise64): Define as weak alias not strong alias.
34887         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
34888         (posix_fallocate64): Likewise.
34889         * conform/Makefile (test-xfail-XOPEN2K/fcntl.h/linknamespace):
34890         Remove variable.
34891         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
34892         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
34893         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
34894         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
34895         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
34896
34897 2015-01-05  Matthew Fortune  <matthew.fortune@imgtec.com>
34898
34899         [BZ #16191]
34900         * NEWS: Mention bug fix.
34901         * sysdeps/unix/sysv/linux/mips/sys/user.h (PAGE_SHIFT): Remove.
34902         (PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Likewise.
34903         (HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR): Likewise.
34904         (HOST_STACK_END_ADDR): Likewise.
34905
34906 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
34907
34908         [BZ #17748]
34909         * include/fenv.h (__fegetround): Declare.  Use libm_hidden_proto.
34910         * math/fegetround.c (fegetround): Rename to __fegetround and
34911         define as weak alias of __fegetround.  Use libm_hidden_weak.
34912         * sysdeps/aarch64/fpu/fegetround.c (fegetround): Likewise.
34913         * sysdeps/alpha/fpu/fegetround.c (fegetround): Likewise.
34914         * sysdeps/arm/fegetround.c (fegetround): Likewise.
34915         * sysdeps/hppa/fpu/fegetround.c (fegetround): Likewise.
34916         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
34917         * sysdeps/ia64/fpu/fegetround.c (fegetround): Likewise.
34918         * sysdeps/m68k/fpu/fegetround.c (fegetround): Likewise.
34919         * sysdeps/mips/fpu/fegetround.c (fegetround): Likewise.
34920         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
34921         Undefine after rather than before function definition; use
34922         parentheses around function name in definition.
34923         (__fegetround): Also undefine macro after function definition.
34924         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Rename to
34925         __fegetround and define as weak alias of __fegetround.  Use
34926         libm_hidden_weak.  Do not undefine as macro.
34927         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
34928         Likewise.
34929         * sysdeps/s390/fpu/fegetround.c (fegetround): Rename to
34930         __fegetround and define as weak alias of __fegetround.  Use
34931         libm_hidden_weak.
34932         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
34933         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
34934         * sysdeps/tile/math_private.h (__fegetround): New inline function.
34935         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Rename to
34936         __fegetround and define as weak alias of __fegetround.  Use
34937         libm_hidden_weak.
34938         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Use
34939         __fegetround instead of fegetround.
34940
34941         [BZ #17782]
34942         * sysdeps/unix/sysv/linux/mips/bits/termios.h (TIOCSER_TEMT):
34943         Condition macro definition on [__USE_MISC].
34944
34945         [BZ #17781]
34946         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
34947         (struct sigaction): Change type of sa_flags field to int.
34948
34949         [BZ #17780]
34950         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock)
34951         [!__USE_FILE_OFFSET64 && _MIPS_SIM != _ABI64]: Rename pad field to
34952         __glibc_reserved0.
34953
34954         * nptl/version.c (banner): Use single year in copyright notice.
34955
34956         * NEWS: Update copyright dates.
34957         * catgets/gencat.c (print_version): Likewise.
34958         * csu/version.c (banner): Likewise.
34959         * debug/catchsegv.sh: Likewise.
34960         * debug/pcprofiledump.c (print_version): Likewise.
34961         * debug/xtrace.sh (do_version): Likewise.
34962         * elf/ldconfig.c (print_version): Likewise.
34963         * elf/ldd.bash.in: Likewise.
34964         * elf/pldd.c (print_version): Likewise.
34965         * elf/sotruss.sh: Likewise.
34966         * elf/sprof.c (print_version): Likewise.
34967         * iconv/iconv_prog.c (print_version): Likewise.
34968         * iconv/iconvconfig.c (print_version): Likewise.
34969         * locale/programs/locale.c (print_version): Likewise.
34970         * locale/programs/localedef.c (print_version): Likewise.
34971         * login/programs/pt_chown.c (print_version): Likewise.
34972         * malloc/memusage.sh (do_version): Likewise.
34973         * malloc/memusagestat.c (print_version): Likewise.
34974         * malloc/mtrace.pl: Likewise.
34975         * manual/libc.texinfo: Likewise.
34976         * nptl/version.c (banner): Likewise.
34977         * nscd/nscd.c (print_version): Likewise.
34978         * nss/getent.c (print_version): Likewise.
34979         * nss/makedb.c (print_version): Likewise.
34980         * posix/getconf.c (main): Likewise.
34981         * scripts/test-installation.pl: Likewise.
34982         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
34983
34984 2015-01-02  Will Newton  <will.newton@linaro.org>
34985
34986         * sysdeps/arm/armv7/configure: Removed.
34987         * sysdeps/arm/armv7/configure.ac: Likewise.
34988
34989 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
34990
34991         * All files with FSF copyright notices: Update copyright dates
34992         using scripts/update-copyrights.
34993         * intl/plural.c: Regenerated.
34994         * locale/programs/charmap-kw.h: Likewise.
34995         * locale/programs/locfile-kw.h: Likewise.
34996
34997 2015-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
34998
34999         * scripts/gen-posix-conf-vars.awk (END): Don't use sprintf.
35000
35001 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
35002
35003         [BZ #17748]
35004         * include/fenv.h (__fegetenv): Use libm_hidden_proto.
35005         * math/fegetenv.c (__fegetenv): Use libm_hidden_def.
35006         * sysdeps/aarch64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
35007         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
35008         * sysdeps/alpha/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
35009         * sysdeps/arm/fegetenv.c (fegetenv): Rename to __fegetenv and
35010         define as weak alias of __fegetenv.  Use libm_hidden_weak.
35011         * sysdeps/hppa/fpu/fegetenv.c (fegetenv): Likewise.
35012         * sysdeps/i386/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
35013         * sysdeps/ia64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
35014         define as weak alias of __fegetenv.  Use libm_hidden_weak.
35015         * sysdeps/m68k/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
35016         * sysdeps/mips/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
35017         define as weak alias of __fegetenv.  Use libm_hidden_weak.
35018         * sysdeps/powerpc/fpu/fegetenv.c (__fegetenv): Use
35019         libm_hidden_def.
35020         * sysdeps/powerpc/nofpu/fegetenv.c (__fegetenv): Likewise.
35021         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (__fegetenv):
35022         Likewise.
35023         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
35024         define as weak alias of __fegetenv.  Use libm_hidden_weak.
35025         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
35026         * sysdeps/sparc/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
35027         * sysdeps/tile/math_private.h (__fegetenv): New inline function.
35028         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
35029         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
35030         * sysdeps/generic/math_private.h (libc_feholdsetround_ctx): Use
35031         __fegetenv instead of fegetenv.
35032         (libc_feholdsetround_noex_ctx): Likewise.
35033
35034 2014-12-31  Matthew Fortune  <matthew.fortune@imgtec.com>
35035
35036         * elf/elf.h (PT_MIPS_ABIFLAGS): Define.
35037         (Elf_MIPS_ABIFlags_v0): New structure.
35038         (EF_MIPS_FP64): Define.
35039         (MIPS_AFL_REG_NONE, MIPS_AFL_REG_32, MIPS_AFL_REG_64): Likewise.
35040         (MIPS_AFL_REG_128, MIPS_AFL_ASE_DSP, MIPS_AFL_ASE_DSP64): Likewise.
35041         (MIPS_AFL_ASE_DSPR2, MIPS_AFL_ASE_EVA, MIPS_AFL_ASE_MCU): Likewise.
35042         (MIPS_AFL_ASE_MDMX, MIPS_AFL_ASE_MIPS3D, MIPS_AFL_ASE_MT): Likewise.
35043         (MIPS_AFL_ASE_SMARTMIPS, MIPS_AFL_ASE_VIRT): Likewise.
35044         (MIPS_AFL_ASE_VIRT64, MIPS_AFL_ASE_MSA, MIPS_AFL_ASE_MSA64): Likewise.
35045         (MIPS_AFL_ASE_MIPS16, MIPS_AFL_ASE_MICROMIPS): Likewise.
35046         (MIPS_AFL_ASE_XPA, MIPS_AFL_EXT_XLR, MIPS_AFL_EXT_OCTEON2): Likewise.
35047         (MIPS_AFL_EXT_OCTEONP, MIPS_AFL_EXT_LOONGSON_3A): Likewise.
35048         (MIPS_AFL_EXT_OCTEON, MIPS_AFL_EXT_5900, MIPS_AFL_EXT_4010): Likewise.
35049         (MIPS_AFL_EXT_4100, MIPS_AFL_EXT_3900, MIPS_AFL_EXT_10000): Likewise.
35050         (MIPS_AFL_EXT_SB1, MIPS_AFL_EXT_4111, MIPS_AFL_EXT_4120): Likewise.
35051         (MIPS_AFL_EXT_5400, MIPS_AFL_EXT_5500): Likewise.
35052         (MIPS_AFL_EXT_LOONGSON_2E, MIPS_AFL_EXT_LOONGSON_2F): Likewise.
35053         (Val_GNU_MIPS_ABI_FP_ANY, Val_GNU_MIPS_ABI_FP_DOUBLE): New enum values.
35054         (Val_GNU_MIPS_ABI_FP_SINGLE, Val_GNU_MIPS_ABI_FP_SOFT): Likewise.
35055         (Val_GNU_MIPS_ABI_FP_OLD_64, Val_GNU_MIPS_ABI_FP_XX): Likewise.
35056         (Val_GNU_MIPS_ABI_FP_64, Val_GNU_MIPS_ABI_FP_64A): Likewise.
35057         (Val_GNU_MIPS_ABI_FP_MAX): Likewise.
35058         * sysdeps/mips/Makefile [subdir=elf]: Add tst-abi-interlink,
35059         tst-mode-switch-1, tst-mode-switch-2, tst-mode-switch-3 tests.
35060         * sysdeps/mips/bits/linkmap.h (struct link_map_machine): Add fpmode
35061         field.
35062         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Reject
35063         EF_MIPS_FP64.
35064         * sysdeps/mips/dl-machine-reject-phdr.h: New file.
35065         * sysdeps/mips/tst-abi-fp32mod.c: Likewise.
35066         * sysdeps/mips/tst-abi-fpxxmod.c: Likewise.
35067         * sysdeps/mips/tst-abi-fpxxomod.c: Likewise.
35068         * sysdeps/mips/tst-abi-fp64mod.c: Likewise.
35069         * sysdeps/mips/tst-abi-fp64amod.c: Likewise.
35070         * sysdeps/mips/tst-abi-interlink.c: Likewise.
35071         * sysdeps/mips/tst-mode-switch-1.c: Likewise.
35072         * sysdeps/mips/tst-mode-switch-2.c: Likewise.
35073         * sysdeps/mips/tst-mode-switch-3.c: Likewise.
35074         * sysdeps/unix/sysv/linux/mips/configure.ac (o32-fpabi): Define to
35075         record the current FP ABI extension.
35076         (mips-mode-switch): Define to show if kernel headers support mode
35077         switching.
35078         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
35079         * sysdeps/unix/sysv/linux/mips/ldsodefs.h: Increase maximum
35080         supported SYSV ABI version to 3.
35081         * sysdeps/unix/sysv/linux/mips/libc-abis: Add new MIPS_O32_FP64
35082         feature.
35083
35084 2014-12-31  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
35085             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35086
35087         * sysdeps/powerpc/powerpc64/power7/strcpy.S (strcpy): Optimize unaligned
35088         path.
35089         * benchtests/bench-strcpy.c (test_main): Add more unaligned inputs.
35090
35091 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
35092
35093         * sysdeps/powerpc/bits/fenvinline.h (fegetround): Rename macro to
35094         __fegetround and redefine to call __fegetround.  Remove condition
35095         on [!__NO_MATH_INLINES].
35096         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove inline
35097         function.
35098         * sysdeps/powerpc/nofpu/fenv_libc.h: Remove file.
35099         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
35100         Remove macro.
35101         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Include <fenv.h>
35102         instead of <fenv_libc.h>.
35103         (__llrintl): Call fegetround instead of __fegetround.
35104         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Include <fenv.h>
35105         instead of <fenv_libc.h>.
35106         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
35107         (__lrintl): Call fegetround instead of __fegetround.
35108         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Include <fenv.h>
35109         instead of <fenv_libc.h>.
35110         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
35111         (__rintl): Call fegetround instead of __fegetround.
35112
35113 2014-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
35114
35115         * scripts/gen-posix-conf-vars.awk: Don't use multi-dimensional
35116         arrays.
35117
35118 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
35119
35120         [BZ #17775]
35121         * sysdeps/i386/dl-machine.h (PI_STATIC_AND_HIDDEN): Removed.
35122         (elf_machine_dynamic) [!PI_STATIC_AND_HIDDEN]: Likewise.
35123         (elf_machine_load_address) [!PI_STATIC_AND_HIDDEN]: Likewise.
35124
35125 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
35126
35127         * sysdeps/i386/tls-macros.h: Include <features.h>.
35128         (TLS_LE): Use non-PIC version for GCC >= 5.0.
35129         (TLS_IE): Likewise.
35130         (TLS_LD): Likewise.
35131         (TLS_GD): Likewise.
35132         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Don't
35133         define for GCC >= 5.0.
35134
35135 2014-12-30  Chris Metcalf  <cmetcalf@ezchip.com>
35136
35137         * math/test-fenv.c (test_single_exception, set_single_exc,
35138         feenv_nomask_test, feenv_mask_test, feexcp_nomask_test,
35139         feexcp_mask_test, feenable_test, fe_single_test): Add
35140         [!FE_ALL_EXCEPT] test so these routines are not compiled in the
35141         case where they are not used.
35142         * math/libm-test.inc: Likewise.
35143         * setjmp/test-setjmp-fp.c: Mark attribute ((unused)) on variable
35144         unused in the absence of FP rounding/exception support.
35145         * stdio-common/tst-printf-round.c: Likewise.
35146         * stdlib/tst-strtod-round.c: Likewise.
35147         * stdlib/tst-strtod-underflow.c: Likewise.
35148
35149 2014-12-30  Joseph Myers  <joseph@codesourcery.com>
35150
35151         [BZ #17723]
35152         * include/fenv.h (__feraiseexcept): Use libm_hidden_proto.
35153         * math/fraiseexcpt.c (__feraiseexcept): Use libm_hidden_def.
35154         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
35155         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
35156         libm_hidden_weak.
35157         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Likewise.
35158         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
35159         * sysdeps/i386/fpu/fraiseexcpt.c (__feraiseexcept): Use
35160         libm_hidden_def.
35161         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
35162         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
35163         libm_hidden_weak.
35164         * sysdeps/m68k/coldfire/fpu/fraiseexcpt.c (feraiseexcept):
35165         Likewise.
35166         * sysdeps/microblaze/math_private.h (__feraiseexcept): New macro.
35167         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Rename to
35168         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
35169         libm_hidden_weak.
35170         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Use
35171         libm_hidden_def.
35172         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
35173         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c
35174         (__feraiseexcept): Likewise.
35175         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Rename to
35176         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
35177         libm_hidden_weak.
35178         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
35179         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Use
35180         libm_hidden_def.
35181         * sysdeps/tile/math_private.h (__feraiseexcept): New macro.
35182         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (__feraiseexcept):
35183         Use libm_hidden_def.
35184         * sysdeps/x86_64/fpu/fraiseexcpt.c (__feraiseexcept): Use
35185         libm_hidden_def.
35186         (feraiseexcept): Define as weak not strong alias.  Use
35187         libm_hidden_weak.
35188         * sysdeps/x86/fpu/bits/fenv.h (__feraiseexcept_invalid_divbyzero):
35189         New inline function.  Factored out of ...
35190         (feraiseexcept): ... here.  Use __feraiseexcept_invalid_divbyzero.
35191         * sysdeps/x86/fpu/include/bits/fenv.h: New file.
35192         * math/e_scalb.c (invalid_fn): Call __feraiseexcept instead of
35193         feraiseexcept.
35194         * math/w_acos.c (__acos): Likewise.
35195         * math/w_asin.c (__asin): Likewise.
35196         * math/w_ilogb.c (__ilogb): Likewise.
35197         * math/w_j0.c (y0): Likewise.
35198         * math/w_j1.c (y1): Likewise.
35199         * math/w_jn.c (yn): Likewise.
35200         * math/w_log.c (__log): Likewise.
35201         * math/w_log10.c (__log10): Likewise.
35202         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Likewise.
35203         * sysdeps/aarch64/fpu/math_private.h
35204         (libc_feupdateenv_test_aarch64): Likewise.
35205         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
35206         * sysdeps/arm/fenv_private.h (libc_feupdateenv_test_vfp): Likewise.
35207         * sysdeps/arm/feupdateenv.c (feupdateenv): Likewise.
35208         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
35209         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
35210         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
35211         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Likewise.
35212         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
35213         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
35214         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
35215
35216 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
35217
35218         [BZ #17732]
35219         * io/test-utime.c (main): Replace %ld with %jd and cast to
35220         intmax_t.
35221         * libio/tst-ftell-active-handler.c (do_append_test): Likewise.
35222         * nptl/tst-mutex5.c: Include <stdint.h>.
35223         (do_test): Replace %ld with %jd and cast to intmax_t.
35224         * posix/tst-regex.c (run_test): Likewise.
35225         (run_test_backwards): Likewise.
35226         * rt/tst-clock.c: Include <stdint.h>.
35227         (clock_test): Replace %ld with %jd and cast to intmax_t.
35228         * rt/tst-cpuclock1.c: Include <stdint.h>.
35229         (do_test): Replace %lu with %ju and cast to uintmax_t.
35230         * rt/tst-cpuclock2.c: Include <stdint.h>.
35231         (do_test): Replace %lu with %ju and cast to uintmax_t.
35232         * rt/tst-mqueue1.c: Include <stdint.h>.
35233         (check_attrs): Replace %ld with %jd and cast to intmax_t.
35234         * rt/tst-mqueue3.c (fct): Replace %ld with %jd and cast to
35235         intmax_t.
35236         * rt/tst-mqueue4.c (do_test): Likewise.
35237         * rt/tst-timer4.c: Include <stdint.h>.
35238         (check_ts): Replace %ld with %jd and cast to intmax_t.
35239         (do_test): Likewise.
35240         * stdio-common/tst-fmemopen2.c (do_test): Replace %ld with %jd
35241         and cast to intmax_t.
35242         * sysdeps/pthread/tst-timer.c (main): Likewise.
35243         * time/clocktest.c (main): Likewise.
35244         * time/tst-posixtz.c (do_test): Likewise.
35245         * timezone/tst-timezone.c (main): Likewise.
35246
35247 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
35248             H.J. Lu  <hongjiu.lu@intel.com>
35249
35250         * sysdeps/i386/i686/multiarch/bcopy-sse2-unaligned.S: New file.
35251         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
35252         * sysdeps/i386/i686/multiarch/memmove-sse2-unaligned.S: Likewise.
35253         * sysdeps/i386/i686/multiarch/mempcpy-sse2-unaligned.S: Likewise.
35254         * sysdeps/i386/i686/multiarch/bcopy.S: Select the sse2_unaligned
35255         version if bit_Fast_Unaligned_Load is set.
35256         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
35257         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
35258         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
35259         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
35260         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
35261         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
35262         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
35263         bcopy-sse2-unaligned, memcpy-sse2-unaligned,
35264         memmove-sse2-unaligned and mempcpy-sse2-unaligned.
35265         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c (MAX_IFUNC): Set
35266         to 4.
35267         (__libc_ifunc_impl_list): Test __bcopy_sse2_unaligned,
35268         __memmove_chk_sse2_unaligned, __memmove_sse2_unaligned,
35269         __memcpy_chk_sse2_unaligned, __memcpy_sse2_unaligned,
35270         __mempcpy_chk_sse2_unaligned, and __mempcpy_sse2_unaligned.
35271
35272 2014-12-29  Chris Metcalf  <cmetcalf@ezchip.com>
35273
35274         * sysdeps/unix/sysv/linux/tst-setgetname.c (do_test): Use #ifndef
35275         instead of #if to avoid a Wundef warning.
35276         * stdlib/tst-limits.c (do_test): Likewise.
35277
35278         * sysdeps/tile/math_private.h (fetestexcept): Add macro to
35279         parallel other exception macros.
35280         (fegetenv): Convert from macro to extern inline so that it applies
35281         retroactively to inline functions already seen by the compiler.
35282         (fesetenv, feupdateenv, fegetround, fesetround): Likewise.
35283
35284         * posix/Makefile (before-compile): Use $(objpfx) for
35285         posix-conf-vars-def.h.
35286
35287 2014-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
35288
35289         * posix/getconf.c (main): Use size_t for type of I.
35290         * scripts-gen-posix-conf-vars.awk (END): Use size_t for type of
35291         NSPEC.
35292
35293         * posix/posix-conf-vars.list (SPEC:XBS5): Add sysconf prefix.
35294         * posix/confstr.c: Define NEED_SPEC_ARRAY to 0.
35295         * posix/posix-envs.def: Likewise.
35296         * sysdeps/posix/sysconf.c: Likewise.
35297         * posix/getconf.c: Define NEED_SPEC_ARRAY to 1.
35298         (specs): Remove array.
35299         * scripts/gen-posix-conf-vars.awk: Support generation of specs
35300         array.
35301
35302         * posix/posix-conf-vars.list: Add _POSIX sysconf namespace.
35303         * sysdeps/posix/sysconf.c: Include posix-conf-vars.h.
35304         (__sysconf): Use CONF_IS_* macros.
35305
35306         * posix/Makefile (before-compile): Add posix-conf-vars-def.h.
35307         ($(objpfx)posix-conf-vars-def.h): New target.
35308         * posix/posix-conf-vars.list: New file.
35309         * posix/posix-conf-vars.h: New file.
35310         * posix/confstr.c: Include posix-conf-vars.h.
35311         (confstr): Use CONF_IS_* macros.
35312         * posix/posix-envs.def: Include posix-conf-vars.h.  Use
35313         CONF_IS_* macros.
35314         * scripts/gen-posix-conf-vars.awk: New file.
35315
35316 2014-12-26  Chris Metcalf  <cmetcalf@ezchip.com>
35317
35318         * sysdeps/tile/math_private.h (fegetenv, fesetenv, feupdateenv,
35319         fegetround): Add no-op macros to avoid linknamespace issues.
35320
35321         * sysdeps/unix/sysv/linux/clock_settime.c (SYSDEP_SETTIME): Remove
35322         definitions of INTERNAL_VSYSCALL and INLINE_VSYSCALL.
35323
35324         * sysdeps/unix/sysv/linux/tile/sysdep.h
35325         (HAVE_CLOCK_GETTIME_VSYSCALL): Move definition out of
35326         assembly-specific section to avoid a redefinition warning.
35327
35328         * sysdeps/tile/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast to
35329         long before casting to pointer to avoid a cast warning.
35330
35331 2014-12-23  Chris Metcalf  <cmetcalf@ezchip.com>
35332
35333         * sysdeps/tile/tilegx/Implies: New file.
35334
35335 2014-12-23  Richard Earnshaw  <rearnsha@arm.com>
35336
35337         * string/stpcpy.c (__stpcpy): Rewrite using strlen and memcpy.
35338
35339 2014-12-23  Florian Weimer  <fweimer@redhat.com>
35340
35341         * iconvdata/run-iconv-test.sh: Actually test iconv modules.
35342
35343 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
35344
35345         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Do
35346         not define.
35347         * sysdeps/unix/sysv/linux/utimes.c: Do not include
35348         <kernel-features.h>.
35349         (__utimes) [__NR_utimes]: Make code unconditional.
35350         (__utimes) [!__ASSUME_UTIMES]: Remove conditional code.
35351         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
35352         (__ASSUME_UTIMES): Do not undefine.
35353         * sysdeps/unix/sysv/linux/tile/kernel-features.h
35354         (__ASSUME_UTIMES): Likewise.
35355         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
35356         (__ASSUME_UTIMES): Define for [__LINUX_KERNEL_VERSION >= 0x030e00]
35357         instead of undefining for [__LINUX_KERNEL_VERSION < 0x030e00].
35358         * sysdeps/unix/sysv/linux/hppa/utimes.c: New file.
35359
35360 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
35361
35362         * sysdeps/mips/memcpy.S: Fix preprocessor indentation.
35363
35364 2014-12-22  Chris Metcalf  <cmetcalf@ezchip.com>
35365
35366         [BZ #17747]
35367         * math/w_j0.c [defined NO_LONG_DOUBLE] (j0, y0): Convert strong
35368         alias to weak alias for j0l, y0l.
35369         * math/w_j1.c [defined NO_LONG_DOUBLE] (j1, y1): Likewise.
35370         * math/w_jn.c [defined NO_LONG_DOUBLE] (jn, yn): Likewise.
35371
35372         [BZ #17746]
35373         * sysdeps/tile/tilegx/strstr.c (STRSTR2): Remove implicit boolean
35374         conversion.
35375
35376 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
35377
35378         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Set
35379         to zero if not already defined.
35380
35381 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
35382
35383         [BZ #17724]
35384         * sysdeps/ieee754/k_standard.c: Don't include <float.h>.
35385         (__kernel_standard_f): Remove.  Moved to k_standardf.c.
35386         (__kernel_standard_l): Remove.  Moved to k_standardl.c with
35387         (char *) casts added.
35388         * sysdeps/ieee754/k_standardf.c: New file.
35389         * sysdeps/ieee754/k_standardl.c: Likewise.
35390         * math/Makefile (libm-support): Remove k_standard.
35391         (libm-calls): Add k_standard.
35392
35393 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
35394
35395         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
35396         Optimize to avoid an unnecessary FPCR read.
35397
35398 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
35399
35400         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
35401         Optimize to reduce FPCR/FPSR accesses.
35402
35403 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
35404
35405         * sysdeps/aarch64/fpu/ftestexcept.c (fetestexcept):
35406         Call libc_fetestexcept_aarch64.
35407
35408 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
35409
35410         * sysdeps/aarch64/fpu/fesetround.c (fesetround):
35411         Call libc_fesetround_aarch64.
35412
35413 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
35414
35415         [BZ #17733]
35416         * sysdeps/unix/sysv/linux/bind.S (NO_WEAK_ALIAS): Do not define.
35417         (__bind): Do not define as weak alias.
35418         * sysdeps/unix/sysv/linux/getsockname.S (NO_WEAK_ALIAS): Do not
35419         define.
35420         (__getsockname): Do not define as weak alias.
35421
35422 2014-12-22  Will Newton  <will.newton@linaro.org>
35423
35424         * manual/install.texi: Document that we require bison 2.7
35425         or above.
35426         * INSTALL: Regenerate.
35427         * configure.ac: Use AC_CHECK_PROG_VER instead of
35428         AC_PATH_PROG when checking for bison and check for
35429         version 2.7 or above.
35430         * configure: Regenerate.
35431
35432 2014-12-21  Chris Metcalf  <cmetcalf@ezchip.com>
35433
35434         [BZ #17745]
35435         * sysdeps/tile/ffs.c (__ffs): Moved ffsll definition...
35436         * sysdeps/tile/ffsll.c (ffsll): To here.
35437
35438         * sysdeps/unix/sysv/linux/tile/localplt.data: Removed.
35439
35440 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
35441
35442         * elf/dl-tls.c (__tls_get_addr): Provide the hidden definition
35443         if not defined.
35444         * sysdeps/i386/dl-tls.h (___tls_get_addr): Provide the hidden
35445         definition.
35446         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
35447         hidden ___tls_get_addr.
35448         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
35449         hidden __tls_get_addr.
35450         * sysdeps/generic/localplt.data (__tls_get_addr): Removed.
35451         * sysdeps/unix/sysv/linux/i386/localplt.data (___tls_get_addr):
35452         Likewise.
35453
35454 2014-12-21  Andreas Schwab  <schwab@linux-m68k.org>
35455
35456         * sysdeps/m68k/dl-machine.h (RTLD_START): Remove @PLTPC from
35457         _dl_init call.
35458
35459 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
35460
35461         * sysdeps/i386/dl-machine.h (_dl_start_user): Remove @PLT
35462         from "call _dl_init@PLT".
35463         * sysdeps/x86_64/dl-machine.h (_dl_start_user): Likewise.
35464
35465 2014-12-21  Anders Kaseorg  <andersk@mit.edu>
35466
35467         * manual/search.texi: (Array Sort Function): Clarify stable sorting
35468         guarantees.
35469
35470 2014-12-20  Chris Metcalf  <cmetcalf@ezchip.com>
35471
35472         * sysdeps/unix/sysv/linux/tile/localplt.data: New file.
35473
35474 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
35475
35476         [BZ #17744]
35477         * sysdeps/tile/tilegx/strstr.c (STRSTR): Call __strnlen, not
35478         strnlen.
35479
35480 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
35481
35482         * sysdeps/mips/addmul_1.S (__mpn_addmul_1): Use mulu/muhu instead
35483         of multu on MIPSr6.
35484         * sysdeps/mips/mul_1.S (__mpn_mul_1): Ditto.
35485         * sysdeps/mips/submul_1.S (__mpn_submul_1): Ditto.
35486         * sysdeps/mips/mips64/addmul_1.S (__mpn_addmul_1): Ditto.
35487         * sysdeps/mips/mips64/mul_1.S (__mpn_mul_1): Ditto.
35488         * sysdeps/mips/mips64/submul_1.S (__mpn_submul_1): Ditto.
35489
35490 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
35491
35492         * sysdeps/mips/sys/asm.h (PTR_ADDU): Use addu on mips32r6/mips64r6.
35493         (PTR_ADDIU): Use addiu for mips32r6/mips64r6.
35494         (PTR_SUBU): Use subu for mips32r6/mips64r6.
35495         (PTR_SUBIU): Use subu for mips32r6/mips64r6 (subiu does not exist).
35496         * sysdeps/mips/machine-gmon.h (PTR_ADDU_STRING) Use addu for
35497         mips32r6/mips64r6.
35498         (PTR_SUBU_STRING) Use subu for mips32r6/mips64r6.
35499
35500 2014-12-19  Ondřej Bílka  <neleai@seznam.cz>
35501
35502         * string/strncat.c (STRNCAT): Simplify implementation.
35503
35504 2014-12-19  David S. Miller  <davem@davemloft.net>
35505
35506         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Use a union to
35507         access the quad as both a long double and as a series of 4 words.
35508
35509         * get-dynamic-info.h (elf_get_dynamic_info): Ignore -Warray-bounds for a
35510         link_map->l_info array access.
35511
35512 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
35513
35514         * iconvdata/tst-loading.c (TIMEOUT): Increase timeout 10 sec.
35515
35516         * math/atest-exp.c (TIMEOUT): Increase timeout to 10 sec.
35517         * math/atest-exp2.c (TIMEOUT): Likewise.
35518         * math/atest-sincos.c (TIMEOUT): Likewise.
35519
35520 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
35521
35522         * sysdeps/x86_64/x32/Makefile (CFLAGS-s_llround.c): Replace
35523         -Wno-error with -fno-builtin-lround.
35524
35525 2014-12-19  Torvald Riegel  <triegel@redhat.com>
35526
35527         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: New file.
35528         Contains futex constants and functions moved over from ...
35529         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.  Include
35530         <lowlevellock-futex.h>.
35531         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
35532         (lll_timedwait_tid): Add comments and parentheses around macro
35533         arguments.
35534
35535 2014-12-19  Torvald Riegel  <triegel@redhat.com>
35536
35537         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Include
35538         <lowlevellock-futex.h>.  Remove FUTEX_* constants defined there.
35539         (__lll_private_flag): Remove.
35540         (lll_futex_wait): Likewise.
35541         (lll_futex_timed_wait): Likewise.
35542         (lll_futex_wake): Likewise.
35543         (lll_futex_requeue): Likewise.
35544         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
35545         (__lll_timedwait_tid): Spell out argument names.
35546         (lll_timedwait_tid): Add comments and parentheses around macro
35547         arguments.
35548         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Make FUTEX_* constants,
35549         LLL_SHARED and LLL_PRIVATE usable from assembly code.
35550
35551 2014-12-19  Torvald Riegel  <triegel@redhat.com>
35552
35553         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Remove file.
35554         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
35555         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
35556         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Likewise.
35557         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Likewise.
35558         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Likewise.
35559         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise.
35560         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
35561         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
35562         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
35563         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
35564         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
35565         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
35566         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
35567         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Likewise.
35568         * sysdeps/unix/sysv/linux/sh/sem_post.S: Likewise.
35569         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
35570         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Likewise.
35571         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
35572
35573 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
35574
35575         * sysdeps/x86_64/x32/Makefile: New file.
35576
35577 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
35578
35579         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Replace
35580         1L with (mp_limb_t) 1.
35581
35582 2014-12-17  Roland McGrath  <roland@hack.frob.com>
35583
35584         * sysdeps/nptl/fork.c (__fork_generation_pointer): Variable moved ...
35585         * nptl/libc_pthread_init.c: ... here.
35586         * sysdeps/nptl/fork.c (__fork_handlers): Variable moved ...
35587         * nptl/register-atfork.c: ... here.
35588
35589         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread):
35590         Use pthread_sigmask rather than INTERNAL_SYSCALL.
35591         Use assert_perror to check its return value.
35592         (__gai_create_helper_thread): Likewise.
35593
35594         * inet/if_index.c (__if_freenameindex): Add libc_hidden_def.
35595
35596         * malloc/malloc.c (alloc_perturb, free_perturb): Remove inline keyword.
35597
35598 2014-12-17  Joseph Myers  <joseph@codesourcery.com>
35599
35600         [BZ #17725]
35601         * sysdeps/generic/profil-counter.h (profil_counter): Rename to
35602         __profil_counter.
35603         * sysdeps/unix/sysv/linux/hppa/profil-counter.h (profil_counter):
35604         Likewise.
35605         * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
35606         Likewise.
35607         * sysdeps/unix/sysv/linux/ia64/profil-counter.h (profil_counter):
35608         Likewise.
35609         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h
35610         (profil_counter): Likewise.
35611         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h
35612         (profil_counter): Likewise.
35613         * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
35614         Likewise.
35615         * sysdeps/unix/sysv/linux/tile/profil-counter.h (profil_counter):
35616         Likewise.
35617         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h
35618         (profil_counter): Likewise.
35619         * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
35620         Likewise.
35621         [!__profil_counter] (profil_counter): Define as weak alias of
35622         __profil_counter.
35623         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h
35624         (profil_counter): Rename to __profil_counter.
35625         [!__profil_counter] (profil_counter): Define as weak alias of
35626         __profil_counter.
35627         * sysdeps/unix/sysv/linux/sparc/sparc64/profil-counter.h
35628         (profil_counter): Rename to __profil_counter.
35629         [!__profil_counter] (profil_counter): Define as weak alias of
35630         __profil_counter.
35631         * sysdeps/posix/profil.c: Update comment referring to
35632         profil_counter.
35633         (__profil): Use __profil_counter instead of profil_counter.
35634         * sysdeps/posix/sprofil.c (profil_counter): Rename to
35635         __profil_counter.  Use __profil_counter_ushort and
35636         __profil_counter_uint in definitions.
35637         (__sprofil): Use __profil_counter_uint and __profil_counter_ushort
35638         instead of profil_counter_uint and profil_counter_ushort.
35639
35640         [BZ #17722]
35641         * inet/inet_mkadr.c (inet_makeaddr): Rename to __inet_makeaddr and
35642         define as weak alias of __inet_makeaddr.
35643         * resolv/inet_addr.c (inet_addr): Rename to __inet_addr and define
35644         as weak alias of __inet_addr.
35645         * resolv/inet_pton.c (inet_pton): Rename to __inet_pton and define
35646         as weak alias of __inet_pton.  Use libc_hidden_weak.
35647         * include/arpa/inet.h (__inet_pton): Declare.  Use
35648         libc_hidden_proto.
35649         (inet_makeaddr): Don't use libc_hidden_proto.
35650         (__inet_makeaddr): Declare.  Use libc_hidden_proto.
35651         * resolv/res_init.c (__res_vinit): Use __inet_pton instead of
35652         inet_pton.  Use __inet_makeaddr instead of inet_makeaddr.
35653         * conform/Makefile (test-xfail-POSIX/pthread.h/linknamespace):
35654         Remove variable.
35655         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
35656         (test-xfail-POSIX/time.h/linknamespace): Likewise.
35657
35658 2014-12-17  Steve Ellcey  <sellcey@imgtec.com>
35659
35660         * inet/getnetgrent_r.c: Move while loop to be inside if statement.
35661
35662 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
35663
35664         * stdio-common/bug-vfprintf-nargs.c (do_test):
35665         Cast value to intptr_t to avoid format warning
35666         for usage with PRIdPTR printing macro.
35667
35668 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
35669
35670         * libio/tst-widetext.c (do_test):
35671         Use format type %td instead of %Zd for ptrdiff_t
35672         in order to avoid format warning.
35673
35674 2014-12-17  Andreas Schwab  <schwab@suse.de>
35675
35676         * nscd/mem.c (gc): Add size_t cast to match printf format.
35677
35678 2014-12-16  Roland McGrath  <roland@hack.frob.com>
35679
35680         * sysdeps/gnu/unwind-resume.c: #include <sysdep.h>.
35681         (init): Apply PTR_MANGLE to pointers before storing them.
35682         (_Unwind_Resume, __gcc_personality_v0): Apply PTR_DEMANGLE to pointers
35683         before using them.
35684
35685 2014-12-16  Joseph Myers  <joseph@codesourcery.com>
35686
35687         [BZ #17719]
35688         * sysdeps/x86_64/memrchr.S (memrchr): Rename to __memrchr and
35689         define as weak alias of __memrchr.
35690         (__memrchr): Do not define as strong alias of memrchr.
35691         * conform/Makefile (test-xfail-XPG4/libgen.h/linknamespace):
35692         Remove variable.
35693         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
35694         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
35695         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
35696
35697         [BZ #17717]
35698         * inet/if_index.c (if_nametoindex): Rename to __if_nametoindex and
35699         define as weak alias of __if_nametoindex.  Use libc_hidden_weak.
35700         (if_indextoname): Rename to __if_indextoname and define as weak
35701         alias of __if_indextoname.  Use libc_hidden_weak.
35702         (if_freenameindex): Rename to __if_freenameindex and define as
35703         weak alias of __if_freenameindex.
35704         (if_nameindex): Rename to __if_nameindex and define as weak alias
35705         of __if_nameindex.
35706         * sysdeps/mach/hurd/if_index.c (if_nametoindex): Rename to
35707         __if_nametoindex and define as weak alias of __if_nametoindex.
35708         Use libc_hidden_weak.
35709         (if_freenameindex): Rename to __if_freenameindex and define as
35710         weak alias of __if_freenameindex.
35711         (if_nameindex): Rename to __if_nameindex and define as weak alias
35712         of __if_nameindex.
35713         (if_indextoname): Rename to __if_indextoname and define as weak
35714         alias of __if_indextoname.  Use libc_hidden_weak.
35715         * sysdeps/unix/sysv/linux/if_index.c (if_nametoindex): Rename to
35716         __if_nametoindex and define as weak alias of __if_nametoindex.
35717         Use libc_hidden_weak.
35718         (if_freenameindex): Rename to __if_freenameindex and define as
35719         weak alias of __if_freenameindex.  Use libc_hidden_weak.
35720         (if_nameindex_netlink): Use __if_freenameindex instead of
35721         if_freenameindex.
35722         (if_nameindex): Rename to __if_nameindex and define as weak alias
35723         of __if_nameindex.  Use libc_hidden_weak.
35724         (if_indextoname): Rename to __if_indextoname and define as weak
35725         alias of __if_indextoname.  Use libc_hidden_weak.
35726         * include/net/if.h [!_ISOMAC] (__if_nametoindex): Declare and use
35727         libc_hidden_proto.
35728         [!_ISOMAC] (__if_freenameindex): Likewise.
35729         * resolv/res_init.c (__res_vinit): Use __if_nametoindex instead of
35730         if_nametoindex.
35731         * conform/Makefile (test-xfail-XPG4/grp.h/linknamespace): Remove
35732         variable.
35733         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
35734         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
35735         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
35736         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
35737         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
35738         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
35739         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
35740
35741         * conform/Makefile (test-xfail-UNIX98/semaphore.h/linknamespace):
35742         Remove variable.
35743         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
35744         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
35745
35746 2014-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
35747
35748         * resolv/res_send.c (__libc_res_nsend): Disable warning 'array
35749         subscript above bounds'
35750
35751         * resolv/res_send.c (__libc_res_nsend): Fix check for nsmap
35752         bounds.
35753
35754 2014-12-16  Arjun Shankar  <arjun.is@lostca.se>
35755
35756         * libio/tst-fopenloc.c: Use test-skeleton.c.
35757
35758         * stdlib/tst-bsearch.c: Use test-skeleton.c.
35759         (entry): Rename to ITEM.
35760         (do_test, comp): Adjust.
35761
35762         * stdio-common/tst-fseek.c: Use test-skeleton.c.
35763
35764 2014-12-16  Torvald Riegel  <triegel@redhat.com>
35765
35766         * string/tester.c: Include <libc-internal.h>.
35767         (test_memset): Ignore -Wmemset-transposed-args.
35768
35769 2014-12-16  Torvald Riegel  <triegel@redhat.com>
35770
35771         * misc/tst-mntent2.c (do_test): Fix warning.
35772
35773 2014-12-16  Torvald Riegel  <triegel@redhat.com>
35774
35775         * elf/tst-unique4lib.cc(a): Mark as used.
35776
35777 2014-12-16  Florian Weimer  <fweimer@redhat.com>
35778
35779         [BZ #17630]
35780         * resolv/nss_dns/dns-network.c (getanswer_r): Iterate over alias
35781         names.
35782
35783 2014-12-16  Allan McRae  <allan@archlinux.org>
35784
35785         * stdio-common/Makefile (tests): Re-add bug26.
35786
35787 2014-12-15  Ondřej Bílka  <neleai@seznam.cz>
35788
35789         [BZ #17657]
35790         * locale/programs/ld-ctype.c (find_translit2, read_widestring): Return
35791         static array.
35792
35793 2014-12-15  Bernard Ogden  <bernie.ogden@linaro.org>
35794
35795         * nptl/lowlevellock.c (__lll_lock_wait_private): Add comments.
35796         (__lll_lock_wait): Likewise.
35797         (__lll_timedlock_wait): Likewise.
35798         (__lll_timedwait_tid): Likewise.
35799         * nptl/lowlevelrobustlock.c (__lll_robust_lock_wait): Likewise.
35800         (__lll_robust_timedlock_wait): Likewise.
35801         * sysdeps/nptl/lowlevellock.h (lll_trylock): Likewise.
35802         (lll_cond_trylock): Likewise.
35803         (__lll_lock): Likewise.
35804         (__lll_robust_lock): Likewise.
35805         (__lll_cond_lock): Likewise.
35806         (lll_robust_cond_lock): Likewise.
35807         (__lll_timedlock): Likewise.
35808         (__lll_robust_timedlock): Likewise.
35809         (__lll_unlock): Likewise.
35810         (__lll_robust_unlock): Likewise.
35811         (lll_wait_tid): Likewise.
35812         (lll_timedwait_tid): Likewise.
35813
35814 2014-12-15  Torvald Riegel  <triegel@redhat.com>
35815
35816         * nptl/tst-sem4.c (do_test): Start with a fresh semaphore state.
35817
35818 2014-12-15  Torvald Riegel  <triegel@redhat.com>
35819
35820         * nptl/tst-mutex5.c (do_test): Do not skip tests if elision is enabled.
35821
35822 2014-12-15  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
35823
35824         * stdio-common/test-vfprintf.c: Include <libc-internal.h>.
35825         * stdio-common/tst-sprintf.c: Likewise.
35826
35827 2014-12-15  Torvald Riegel  <triegel@redhat.com>
35828
35829         * sysdeps/unix/sysv/linux/s390/pthread_once.c: Remove file.
35830
35831 2014-12-15  Jeff Law  <law@redhat.com>
35832
35833         [BZ #16617]
35834         * stdio-common/vfprintf.c (vfprintf): Allocate large specs array
35835         on the heap.  (CVE-2012-3406)
35836         * stdio-common/bug23-2.c, stdio-common/bug23-3.c: New file.
35837         * stdio-common/bug23-4.c: New file.  Test case by Joseph Myers.
35838         * stdio-common/Makefile (tests): Add bug23-2, bug23-3, bug23-4.
35839
35840 2014-12-15  Will Newton  <will.newton@linaro.org>
35841
35842         * manual/install.texi: Bump required version of texinfo
35843         to 4.7 from 4.5.
35844         * INSTALL: Regenerated.
35845         * configure.ac: Check for makeinfo version 4.7 and above.
35846         * configure: Regenerated.
35847
35848 2014-12-12  Roland McGrath  <roland@hack.frob.com>
35849
35850         * sysdeps/posix/shm-directory.h (SHM_GET_NAME): Take new argument
35851         PREFIX, string constant to insert between directory and name.
35852         * sysdeps/posix/shm_open.c: Update caller.
35853         * sysdeps/posix/shm_unlink.c: Likewise.
35854         * nptl/semaphoreP.h (struct mountpoint_info): Type removed.
35855         (__where_is_shmfs, mountpoint, __namedsem_once): Declarations removed.
35856         (SEM_SHM_PREFIX): New macro.
35857         * sysdeps/posix/Makefile (librt-routines): Add shm-directory only if
35858         [$(have-thread-library) = no].
35859         * nptl/Makefile (libpthread-routines): Add shm-directory.
35860         * nptl/Versions (GLIBC_PRIVATE): Add __shm_directory.
35861         * sysdeps/nptl/shm-directory.h: New file.
35862         * sysdeps/posix/shm-directory.c
35863         [IS_IN (libpthread)] (__shm_directory): Add hidden_def.
35864         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
35865         * nptl/sem_open.c (check_add_mapping): Use munmap function rather than
35866         INTERNAL_SYSCALL.
35867         (__where_is_shmfs): Function removed.
35868         (mountpoint, defaultmount, defaultdir, __namedsem_once):
35869         Variables removed.
35870         (sem_open): Use __libc_close function rather than INTERNAL_SYSCALL.
35871         Use SHM_GET_NAME.
35872         * nptl/sem_unlink.c: Prototypify.  Use SHM_GET_NAME.
35873
35874         * sysdeps/nptl/bits/libc-lockP.h [IS_IN (libpthread)]
35875         (PTFAVAIL, __libc_ptf_call, __libc_ptf_call_always): Define as
35876         unconditional for use inside libpthread.
35877         [IS_IN (libpthread)]: Include <nptl/pthreadP.h>.
35878
35879 2014-12-12  Roland McGrath  <roland@hack.frob.com>
35880
35881         * nptl/pthread_getaffinity.c: New file.
35882         * nptl/pthread_setaffinity.c: New file.
35883         * nptl/pthread_getname.c: New file.
35884         * nptl/pthread_setname.c: New file.
35885
35886         * nptl/pthread_create.c (START_THREAD_DEFN)
35887         [! __ASSUME_SET_ROBUST_LIST]: Add missing & in lll_futex_wake argument.
35888
35889 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
35890             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35891
35892         * resolv/res_send.c (send_vc): Disable warning resplen may
35893         be used uninitialized.
35894
35895 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
35896
35897         * nptl/tst-mutex6.c
35898         (ATTR_NULL): New define checks ATTR against NULL.
35899         (do_test): Use !ATTR_NULL instead of ATTR != NULL.
35900         * nptl/tst-mutexpp6.c (ATTR_NULL): New define.
35901
35902 2014-12-11  James Lemke  <jwlemke@codesourcery.com>
35903
35904         [BZ #17581]
35905         * malloc/hooks.c
35906         (mem2mem_check): Revert my previous change.
35907         (malloc_check_get_size): Revert my previous change.
35908         (mem2chunk_check): Revert my previous change.
35909
35910 2014-12-11  Roland McGrath  <roland@hack.frob.com>
35911
35912         * sysdeps/posix/shm-directory.c: New file.
35913         * sysdeps/posix/shm-directory.h: New file.
35914         * sysdeps/posix/Makefile [($(subdir) = rt] (librt-routines): Add it.
35915         * sysdeps/posix/shm_open.c: Use SHM_GET_NAME.
35916         Use O_NOFOLLOW and O_CLOEXEC if available.  Transmute EISDIR to EINVAL.
35917         * sysdeps/posix/shm_unlink.c: Use SHM_GET_NAME.
35918         Transmute EPERM to EACCES.
35919         * sysdeps/unix/sysv/linux/shm-directory.c: New file, most code taken
35920         from ...
35921         * sysdeps/unix/sysv/linux/shm_open.c: ... here.  File removed.
35922         * sysdeps/unix/sysv/linux/shm_unlink.c: File removed.
35923
35924 2014-12-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
35925
35926         * sysdeps/sh/jmpbuf_unwind.h (_jmpbuf_sp): Declare SP as void
35927         pointer and cast to uintptr_t.
35928         * sysdeps/sh/nptl/tls.h (TLS_INIT_TP): Use NULL instead of 0.
35929         * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_futex_timed_wait):
35930         Add cast to avoid warning.
35931         * sysdeps/unix/sysv/linux/sh/register-dump.h: Use 0 instead of NULL.
35932
35933 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
35934
35935         * nptl/semaphore.h: Move to ...
35936         * sysdeps/pthread/semaphore.h: ... here.
35937         * Makefile (installed-headers): Change nptl/semaphore.h to
35938         sysdeps/pthread/semaphore.h.
35939
35940 2014-12-11  Roland McGrath  <roland@hack.frob.com>
35941
35942         * misc/tst-error1.c (do_test): Ignore -Wformat-security for
35943         generated error format strings.
35944
35945         * stdio-common/tstdiomisc.c (t2): Ignore -Wformat and
35946         -Wformat-extra-args warnings for scanf formats.
35947         * stdio-common/scanf4.c (main): Ignore -Wformat-zero-length around
35948         test of zero-length format (duh).
35949         * stdio-common/scanf7.c (main): Ignore -Wformat warnings for
35950         corner-case scanf format test.
35951         * stdio-common/test-vfprintf.c (do_test): Ignore -Wformat-security for
35952         generated fprintf format string.
35953         * stdio-common/tst-sprintf.c (do_test): Ignore -Wformat warnings for
35954         corner-case sprintf format tests.
35955         * stdio-common/tst-printf.c: Ignore -Wformat throughout.
35956         * stdio-common/tst-printfsz.c (main): Ignore -Wformat and
35957         -Wformat-extra-args warnings throughout.
35958         * stdio-common/Makefile (CFLAGS-tstdiomisc.c): Variable removed.
35959         (CFLAGS-scanf4.c): Likewise.
35960         (CFLAGS-scanf7.c): Likewise.
35961         (CFLAGS-tst-sprintf.c): Likewise.
35962         (CFLAGS-tst-printf.c): Likewise.
35963         (CFLAGS-tst-printfsz.c): Likewise.
35964
35965 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
35966
35967         * include/cpio.h: New file.
35968         * include/fmtmsg.h: Likewise.
35969
35970         * tst-mbswcs1.c (show): Use %zu format instead of %Zd.  Cast
35971         corresponding format argument to size_t.
35972         * tst-mbswcs2.c (show): Likewise.  Use %td format for ptrdiff_t
35973         arguments.
35974         * tst-mbswcs3.c (show): Use %zu format instead of %Zd.  Cast
35975         corresponding format argument to size_t.
35976         * tst-mbswcs4.c (show): Likewise.  Use %td format for ptrdiff_t
35977         arguments.
35978         * tst-mbswcs5.c (show): Use %zu format instead of %Zd.  Cast
35979         corresponding format argument to size_t.
35980         * tst-trans.c (do_test): Use %lc format for wint_t arguments.
35981         * Makefile (CFLAGS-tst-mbswcs1.c): Remove variable.
35982         (CFLAGS-tst-mbswcs2.c): Likewise.
35983         (CFLAGS-tst-mbswcs3.c): Likewise.
35984         (CFLAGS-tst-mbswcs4.c): Likewise.
35985         (CFLAGS-tst-mbswcs5.c): Likewise.
35986         (CFLAGS-tst-trans.c): Likewise.
35987
35988 2014-12-11  Roland McGrath  <roland@hack.frob.com>
35989
35990         * posix/regexbug1.c (main): Use "%s" format with regerror results,
35991         rather than assuming they won't contain any '%'s.
35992
35993 2014-12-11  Chris Metcalf  <cmetcalf@ezchip.com>
35994
35995         * sysdeps/tile/tilegx/memset.c (__memcpy): Add
35996         inhibit_loop_to_libcall to avoid recursive calls.
35997         * sysdeps/tile/tilegx/memcpy.c (__memcpy): Likewise.
35998         * sysdeps/tile/tilepro/memcpy.c (__memcpy): Likewise.
35999
36000 2014-12-11  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
36001
36002         * include/sys/socket.h (__sendmmsg): Add __USE_GNU guards on function
36003         prototype.
36004
36005 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
36006
36007         * sysdeps/mips/dl-trampoline.c: Modify switch expression to have
36008         integer value instead of boolean.
36009
36010 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
36011
36012         * malloc/malloc.c: Fix powerof2 check.
36013
36014 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
36015
36016         * locale/programs/locfile.h (maybe_swap_uint32):
36017         Remove inline and add unused attribute.
36018
36019 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
36020
36021         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
36022         Truncating assembler expression to a .long expression.
36023
36024 2014-12-11  Andreas Schwab  <schwab@suse.de>
36025
36026         * elf/rtld.c (struct map_args): Constify str member.
36027         (do_preload): Constify fname argument.
36028
36029 2014-12-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36030
36031         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Remove overflow warnings for
36032         constants definition.
36033
36034 2014-12-11  Andreas Schwab  <schwab@suse.de>
36035
36036         [BZ #16657]
36037         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Use
36038         FORCE_ELISION instead of DO_ELISION.
36039         * sysdeps/unix/sysv/linux/x86/force-elision.h (DO_ELISION):
36040         Remove.
36041         * sysdeps/unix/sysv/linux/s390/force-elision.h (DO_ELISION):
36042         Likewise.
36043
36044         * iconvdata/gconv-modules: Remove duplicate entry.
36045
36046 2014-12-11  Will Newton  <will.newton@linaro.org>
36047
36048         Merge gettext 0.19.3 into intl/.
36049
36050         This involves a number of cosmetic changes to comments
36051         and ANSI function definitions and prototypes throughout
36052         all the files. The gettext copyright header is used but
36053         with the date ranges taken from the glibc copy.
36054
36055         * NEWS: Add gettext merge to 2.21.
36056         * intl/bindtextdom.c: Switch to gettext copyright.
36057         Use ANSI definitions and prototypes.
36058         Use gl_* locking primitives rather than __libc_* ones.
36059         Use __builtin_expect rather than __glibc_likely/unlikely.
36060         * intl/dcgettext.c: Switch to gettext copyright.
36061         Use ANSI definitions and prototypes.
36062         * intl/dcigettext.c: Switch to gettext copyright.
36063         Use ANSI definitions and prototypes.
36064         (INTDIV0_RAISES_SIGFPE): New define.
36065         Use gl_* locking primitives rather than __libc_* ones.
36066         Include eval-plural.h instead of plural-eval.c.
36067         Use __builtin_expect rather than __glibc_likely/unlikely.
36068         * intl/dcngettext.c: Switch to gettext copyright.
36069         Use ANSI definitions and prototypes.
36070         * intl/dgettext.c: Likewise.
36071         * intl/dngettext.c: Likewise.
36072         * intl/plural-eval.c: Renamed to...
36073         * intl/eval-plural.h: ...this.
36074         * intl/explodename.c: Switch to gettext copyright.
36075         Use ANSI definitions and prototypes.
36076         (_nl_explode_name): Use strchr instead of __rawmemchr.
36077         * intl/finddomain.c: Switch to gettext copyright.
36078         Use ANSI definitions and prototypes.
36079         Use gl_* locking primitives rather than __libc_* ones.
36080         (_nl_find_domain): Use malloc rather than alloca for
36081         allocation of temporary locale name.
36082         * intl/gettext.c: Switch to gettext copyright.
36083         Use ANSI definitions and prototypes.
36084         * intl/gettextP.h: Switch to gettext copyright.
36085         Use ANSI definitions and prototypes.
36086         Use gl_* locking primitives rather than __libc_* ones.
36087         * intl/gmo.h: Switch to gettext copyright.
36088         (struct sysdep_string): Move struct segment_pair outside of
36089         struct definition.
36090         * intl/hash-string.c: Use ANSI definitions and prototypes.
36091         * intl/hash-string.h: Switch to gettext copyright.
36092         Use ANSI definitions and prototypes.
36093         * intl/l10nflist.c: Switch to gettext copyright.
36094         Use ANSI definitions and prototypes.
36095         (_nl_normalize_codeset): Avoid integer overflow.
36096         * intl/loadinfo.h: Switch to gettext copyright.
36097         Use ANSI definitions and prototypes.
36098         (LIBINTL_DLL_EXPORTED): New define.
36099         (PATH_SEPARATOR): New define.
36100         * intl/loadmsgcat.c: Switch to gettext copyright.
36101         * intl/localealias.c: Switch to gettext copyright.
36102         Use ANSI definitions and prototypes.
36103         (_nl_expand_alias): Use PATH_SEPARATOR.
36104         * intl/ngettext.c: Switch to gettext copyright.
36105         Use ANSI definitions and prototypes.
36106         * intl/plural-exp.c: Likewise.
36107         * intl/plural-exp.h: Switch to gettext copyright.
36108         Use ANSI definitions and prototypes.
36109         (struct expression): Move definition of enum operator outside
36110         of struct definition.
36111         * intl/plural.c: Regenerate.
36112         * intl/plural.y: Switch to gettext copyright.
36113         Use ANSI definitions and prototypes.
36114         Port to bison 3.0.
36115         * intl/textdomain.c: Switch to gettext copyright.
36116         Use ANSI definitions and prototypes.
36117         Use gl_* locking primitives rather than __libc_* ones.
36118
36119 2014-12-10  Steve Ellcey  <sellcey@imgtec.com>
36120
36121         * debug/warning-nop.c: Add used atrribute.
36122
36123 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
36124
36125         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: New file.
36126
36127         * sysdeps/unix/sysv/linux/mips/mips64/Makefile
36128         [$(subdir) == signal] (CFLAGS-sigaction.c): New variable.
36129         [$(subdir) == nptl] (CFLAGS-sigaction.c): Likewise.
36130
36131 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
36132             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36133
36134         [BZ #17634]
36135         * wcsmbs/wcschr.c [!WCSCHR] (wcschr): Define as __wcschr.
36136         Undefine after defining function.  Define as weak alias of
36137         __wcschr.  Use libc_hidden_weak.
36138         * include/wchar.h (__wcschr): Declare.  Use libc_hidden_proto.
36139         * sysdeps/i386/i686/multiarch/wcschr-c.c [IS_IN (libc) && SHARED]
36140         (libc_hidden_def): Also define __GI___wcschr alias.
36141         * sysdeps/i386/i686/multiarch/wcschr.S (wcschr): Rename to
36142         __wcschr and define as weak alias of __wcschr.
36143         * sysdeps/powerpc/power6/wcschr.c [!WCSCHR] (WCSCHR): Define as
36144         __wcschr.
36145         [!WCSCHR] (DEFAULT_WCSCHR): Define.
36146         [DEFAULT_WCSCHR] (__wcschr): Use libc_hidden_def.
36147         [DEFAULT_WCSCHR] (wcschr): Define as weak alias of __wcschr.  Use
36148         libc_hidden_weak.  Do not use libc_hidden_def.
36149         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c
36150         [IS_IN (libc) && SHARED] (libc_hidden_def): Also define
36151         __GI___wcschr alias.
36152         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c
36153         [IS_IN (libc)] (wcschr): Define as macro expanding to
36154         __redirect_wcschr.
36155         [IS_IN (libc)] (__wcschr_ppc): Use __redirect_wcschr in typeof.
36156         [IS_IN (libc)] (__wcschr_power6): Likewise.
36157         [IS_IN (libc)] (__wcschr_power7): Likewise.
36158         [IS_IN (libc)] (__libc_wcschr): New.  Define with libc_ifunc
36159         instead of wcschr.
36160         [IS_IN (libc)] (wcschr): Undefine and define as weak alias of
36161         __libc_wcschr.
36162         [!IS_IN (libc)] (libc_hidden_def): Do not undefine and redefine.
36163         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c (wcschr): Rename to
36164         __wcschr and define as weak alias of __wcschr.  Use
36165         libc_hidden_builtin_def.
36166         * sysdeps/x86_64/wcschr.S (wcschr): Rename to __wcschr and define
36167         as weak alias of __wcschr.  Use libc_hidden_weak.
36168         * time/alt_digit.c (_nl_get_walt_digit): Use __wcschr instead of
36169         wcschr.
36170         * time/era.c (_nl_init_era_entries): Likewise.
36171         * conform/Makefile (test-xfail-ISO/time.h/linknamespace): Remove
36172         variable.
36173         (test-xfail-XPG3/time.h/linknamespace): Likewise.
36174         (test-xfail-XPG4/time.h/linknamespace): Likewise.
36175
36176 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
36177
36178         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Use %ld
36179         format for long int variable.
36180
36181 2014-12-10  Anders Kaseorg  <andersk@MIT.EDU>
36182
36183         [BZ #10672]
36184         * manual/search.texi: (Array Sort Function): Remove claim how to make
36185         qsort stable.
36186
36187 2014-12-10  Andreas Schwab  <schwab@suse.de>
36188
36189         [BZ #12847]
36190         * sysdeps/nptl/fork.c (fresetlockfiles): Skip files with
36191         user-controlled locks.
36192
36193 2014-12-10  Richard Earnshaw  <rearnsha@arm.com>
36194
36195         * sysdeps/aarch64/strchrnul.S (vrepmask): Use a call-clobbered
36196         register.
36197
36198 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
36199
36200         * configure.ac (--disable-werror): New configure option.
36201         (enable_werror): New AC_SUBST.
36202         * configure: Regenerated.
36203         * config.make.in (enable-werror): New variable.
36204         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Add -Werror
36205         -Wno-error=undef.
36206         (+gccwarn-c): Do not use -Werror=implicit-function-declaration.
36207         * manual/install.texi (Configuring and compiling): Document
36208         --disable-werror.
36209         * INSTALL: Regenerated.
36210         * debug/Makefile (CFLAGS-tst-chk1.c): Add -Wno-error.
36211         (CFLAGS-tst-chk2.c): Likewise.
36212         (CFLAGS-tst-chk3.c): Likewise.
36213         (CFLAGS-tst-chk4.cc): Likewise.
36214         (CFLAGS-tst-chk5.cc): Likewise.
36215         (CFLAGS-tst-chk6.cc): Likewise.
36216         (CFLAGS-tst-lfschk1.c): Likewise.
36217         (CFLAGS-tst-lfschk2.c): Likewise.
36218         (CFLAGS-tst-lfschk3.c): Likewise.
36219         (CFLAGS-tst-lfschk4.cc): Likewise.
36220         (CFLAGS-tst-lfschk5.cc): Likewise.
36221         (CFLAGS-tst-lfschk6.cc): Likewise.
36222
36223         * stdio-common/tst-printfsz.c: Include <libc-internal.h>.
36224         (main): Disable -Wdeprecated-declarations around calls to
36225         register_printf_function.
36226
36227         * stdio-common/tst-unlockedio.c: Include <libc-internal.h>.
36228         (do_test): Disable -Wdiv-by-zero around some calls to
36229         fwrite_unlocked and fread_unlocked.
36230
36231         * include/libc-internal.h (DIAG_PUSH_NEEDS_COMMENT): New macro.
36232         (DIAG_POP_NEEDS_COMMENT): Likewise.
36233         (_DIAG_STR1): Likewise.
36234         (_DIAG_STR): Likewise.
36235         (DIAG_IGNORE_NEEDS_COMMENT): Likewise.
36236         * stdio-common/bug21.c: Include <libc-internal.h>.
36237         (do_test): Disable -Wformat around call to sscanf.
36238         * stdio-common/scanf14.c: Include <libc-internal.h>.
36239         (main): Disable -Wformat around some calls to scanf functions.
36240
36241 2014-12-09  Torvald Riegel  <triegel@redhat.com>
36242
36243         * sysdeps/unix/sysv/linux/sh/pthread_once.S: Remove file.
36244
36245 2014-12-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36246
36247         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix wide-character
36248         stack variable alignment.
36249
36250 2014-12-06  Joseph Myers  <joseph@codesourcery.com>
36251
36252         [BZ #17682]
36253         * resource/Versions (libc): Add __getrlimit at GLIBC_PRIVATE.
36254         * resource/getrlimit.c (__getrlimit): Use libc_hidden_def.
36255         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
36256         * include/sys/resource.h (__getrlimit): Use libc_hidden_proto.
36257         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Use
36258         __getrlimit instead of getrlimit.
36259         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Use
36260         __gettimeofday instead of gettimeofday.
36261         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
36262         Likewise.
36263         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
36264         Likewise.
36265         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
36266         * conform/Makefile (test-xfail-POSIX2008/aio.h/linknamespace):
36267         Remove variable.
36268         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
36269         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
36270
36271 2014-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36272
36273         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix buffer overrun
36274         for wide-character tests.
36275
36276 2014-12-04  Roland McGrath  <roland@hack.frob.com>
36277
36278         * io/openat64.c: #include <libc-internal.h>
36279         (__openat64): Prototypify.  Use ignore_value on MODE.
36280         * io/openat.c: Likewise.
36281         * misc/reboot.c: #include <libc-internal.h>
36282         (reboot): Prototypify.  Use ignore_value on HOWTO.
36283         * misc/ptrace.c: #include <libc-internal.h>
36284         (ptrace): Prototypify.  Use ignore_value for va_arg'd parameters.
36285
36286 2014-12-04  Joseph Myers  <joseph@codesourcery.com>
36287
36288         * conform/list-header-symbols.pl (%extra_syms): Add h_errno for
36289         XPG4, UNIX98 and XOPEN2K.
36290         * conform/Makefile (test-xfail-XOPEN2K/grp.h/linknamespace):
36291         Remove variable.
36292         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
36293
36294 2014-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
36295
36296         * libio/fileops.c: Use ISO C style for function definitions.
36297         * libio/iofopen.c: Likewise.
36298         * libio/wfileops.c: Likewise.
36299
36300         [BZ #17653]
36301         * libio/fileops.c (_IO_new_file_underflow): Unset cached
36302         offset on EOF.
36303         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
36304         * libio/tst-ftell-active-handler.c (fgets_func_t): New type.
36305         (fgets_func): Function pointer to fgets and fgetws.
36306         (do_ftell_test): Add test to verify ftell value after read
36307         EOF.
36308         (do_test): Set fgets_func.
36309
36310         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Add
36311         O_TRUNC flag for w and w+ modes.
36312         (do_rewind_test): Likewise.
36313         (do_ftell_test): Likewise.
36314         (do_write_test): Likewise.
36315
36316         [BZ #17647]
36317         * libio/fileops.c (do_ftell): Seek only when there are
36318         unflushed writes.
36319         * libio/wfileops.c (do_ftell_wide): Likewise.
36320         * libio/tst-ftell-active-handler.c (do_ftruncate_test): New
36321         test case.
36322         (do_one_test): Call it.
36323
36324 2014-12-03  Joseph Myers  <joseph@codesourcery.com>
36325
36326         * conform/list-header-symbols.pl (%extra_syms): Add getdate_err
36327         for XPG4, UNIX98, XOPEN2K and XOPEN2K8.
36328         * conform/Makefile (test-xfail-XOPEN2K/pthread.h/linknamespace):
36329         Remove variable.
36330         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
36331         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
36332         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
36333
36334 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
36335
36336         * conform/Makefile (test-xfail-XOPEN2K/aio.h/linknamespace):
36337         Remove variable.
36338         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
36339
36340         [BZ #17668]
36341         * inet/ifaddrs.c (getifaddrs): Rename to __getifaddrs and define
36342         as weak alias of __getifaddrs.  Use libc_hidden_weak.
36343         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
36344         __freeifaddrs.  Use libc_hidden_weak.
36345         * sysdeps/gnu/ifaddrs.c (getifaddrs): Rename to __getifaddrs and
36346         define as weak alias of __getifaddrs.  Use libc_hidden_weak.
36347         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
36348         __freeifaddrs.  Use libc_hidden_weak.
36349         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Rename to
36350         __getifaddrs and define as weak alias of __getifaddrs.  Use
36351         libc_hidden_weak.
36352         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
36353         __freeifaddrs.  Use libc_hidden_weak.
36354         * conform/Makefile (test-xfail-XOPEN2K/net/if.h/linknamespace):
36355         Remove variable.
36356         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
36357         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
36358
36359 2014-12-02  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
36360
36361         [BZ #17601]
36362         * sysdeps/mips/start.S (__start): Use indirect jump to call
36363         __libc_start_main.
36364
36365 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
36366
36367         * nptl/tst-stack4.c (dso_process): Use int not uintptr_t for t.
36368
36369         * nptl/tst-mutex1.c: Include <stdbool.h>.
36370         [!ATTR] (ATTR_NULL): New macro.
36371         (do_test): Test !ATTR_NULL instead of ATTR != NULL.
36372         * nptl/tst-mutexpi1.c (ATTR_NULL): New macro.
36373         * nptl/tst-mutexpp1.c (ATTR_NULL): New macro.
36374
36375         * posix/tst-getopt_long1.c (do_test): Cast elements of argv array
36376         to char *.
36377
36378         [BZ #17665]
36379         * posix/unistd.h [__USE_MISC || (__USE_XOPEN && !__USE_UNIX98)]:
36380         Change conditional to [__USE_MISC].
36381
36382         [BZ #17664]
36383         * misc/mntent_r.c (__getmntent_r): Use __fgets_unlocked instead of
36384         fgets_unlocked.
36385         * resolv/res_hconf.c [IS_IN (libc)] (fgets_unlocked): Define to
36386         __fgets_unlocked.
36387         * resolv/res_init.c (__res_vinit): Use __fgets_unlocked instead of
36388         fgets_unlocked.
36389         * conform/Makefile (test-xfail-XPG4/sys/statvfs.h/linknamespace):
36390         Remove variable.
36391         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
36392         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
36393         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
36394         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
36395         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
36396         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
36397         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
36398         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
36399         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
36400
36401         * elf/tst-unique4lib.cc (b): Mark with __attribute__ ((used)).
36402
36403 2014-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36404
36405         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
36406         Remove strpbrk objects.
36407         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
36408         (__libc_ifunc_impl_list): Remove strpbrk implementation.
36409         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: Remove file.
36410         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Remove file.
36411         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: Remove file.
36412         * sysdeps/powerpc/powerpc64/strpbrk.S: New file.
36413
36414         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
36415         Remove strcspn objects.
36416         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
36417         (__libc_ifunc_impl_list): Remove strcspn implementation.
36418         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: Remove file.
36419         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Remove file.
36420         * sysdeps/powerpc/powerpc64/power7/strcspn.S: Remove file.
36421         * sysdeps/powerpc/powerpc64/strcspn.S: New file.
36422
36423         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
36424         Remove strspn objetcs.
36425         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
36426         (__libc_ifunc_impl_list): Remove strspn implementation.
36427         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: Remove file.
36428         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
36429         * sysdeps/powerpc/powerpc64/power7/strspn.S: Remove file.
36430         * sysdeps/powerpc/powerpc64/strspn.S: New file.
36431
36432 2014-12-01  James Lemke  <jwlemke@codesourcery.com>
36433
36434         [BZ #17581]
36435         * malloc/hooks.c
36436         (mem2mem_check): Add a terminator to the chain of checking blocks.
36437         (malloc_check_get_size): Use it here.
36438         (mem2chunk_check): Ditto.
36439
36440 2014-12-01  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
36441
36442         * sysdeps/powerpc/powerpc64/strtok.S: New file.
36443         * sysdeps/powerpc/powerpc64/strtok_r.S: New file.
36444
36445 2014-11-29  Carlos O'Donell  <carlos@redhat.com>
36446
36447         * bits/ioctl-types.h: Indent preprocessor directives correctly.
36448
36449         * nptl/nptl-init.c: Include libc-internal.h.
36450         (__pthread_initialize_minimal_internal): Use ROUND_UP.
36451
36452         * elf/ldconfig.c (search_dir): Expand comment.
36453
36454 2014-11-29  Joseph Myers  <joseph@codesourcery.com>
36455
36456         * conform/Makefile (linknamespace-symlist-stdlibs-base): New
36457         variable.
36458         (linknamespace-symlist-stdlibs-tests): Likewise.
36459         (tests-special): Append $(linknamespace-symlist-stdlibs-tests)
36460         instead of $(objpfx)symlist-stdlibs.
36461         (linknamespace-libs-isoc): New variable.
36462         (linknamespace-libs): Use $(linknamespace-libs-isoc).
36463         (linknamespace-libs-ISO): New variable.
36464         (linknamespace-libs-ISO99): Likewise.
36465         (linknamespace-libs-ISO11): Likewise.
36466         (linknamespace-libs-XPG3): Likewise.
36467         (linknamespace-libs-XPG4): Likewise.
36468         (linknamespace-libs-POSIX): Likewise.
36469         (linknamespace-libs-UNIX98): Likewise.
36470         (linknamespace-libs-XOPEN2K): Likewise.
36471         (linknamespace-libs-POSIX2008): Likewise.
36472         (linknamespace-libs-XOPEN2K8): Likewise.
36473         ($(objpfx)symlist-stdlibs): Replace by
36474         $(linknamespace-symlist-stdlibs-tests).  Use
36475         $(linknamespace-libs-$*) as set of libraries.
36476         ($(linknamespace-header-tests)): Update dependencies.  Use
36477         $(objpfx)symlist-stdlibs-$$std for --libsyms argument.
36478         (test-xfail-XPG4/sys/mman.h/linknamespace): Remove.
36479         * conform/linknamespace.pl: Remove comment about considering
36480         definitions of symbols from irrelevant libraries.
36481
36482 2014-11-28  H.J. Lu  <hongjiu.lu@intel.com>
36483
36484         [BZ #13862]
36485         * elf/dl-tls.c: Include <atomic.h>.
36486         (oom): Remove #ifdef SHARED/#endif.
36487         (_dl_static_dtv, _dl_initial_dtv): Moved before ...
36488         (_dl_resize_dtv): This.  Extracted from _dl_update_slotinfo.
36489         (_dl_allocate_tls_init): Resize DTV if the current DTV isn't
36490         big enough.
36491         (_dl_update_slotinfo): Call _dl_resize_dtv to resize DTV.
36492         * nptl/Makefile (tests): Add tst-stack4.
36493         (modules-names): Add tst-stack4mod.
36494         ($(objpfx)tst-stack4): New.
36495         (tst-stack4mod.sos): Likewise.
36496         ($(objpfx)tst-stack4.out): Likewise.
36497         ($(tst-stack4mod.sos)): Likewise.
36498         (clean): Likewise.
36499         * nptl/tst-stack4.c: New file.
36500         * nptl/tst-stack4mod.c: Likewise.
36501
36502 2014-11-27  J. Brown  <jb999@gmx.de>
36503
36504         * sysdeps/x86/bits/string.h: Add recent CPUs.
36505
36506 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
36507
36508         * misc/tst-pselect.c (do_test): Use sigprocmask instead of
36509         sigblock.
36510
36511         * libio/bug-ungetwc1.c (do_test): Verify results of getwc and
36512         feof.
36513
36514         * dlfcn/failtestmod.c (constr): Do not store result of dlsym in a
36515         variable.
36516
36517 2014-11-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
36518
36519         * nscd/connections.c: Include libc-internal.h because of macro
36520         usage ignore_value.
36521
36522 2014-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
36523
36524         * string/bits/string3.h (__warn_memset_zero_len): Don't
36525         declare for gcc newer than 5.0.
36526         (memset): Don't test for zero-length __LEN for gcc newer than
36527         5.0.
36528
36529 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
36530
36531         * stdio-common/tst-fmemopen.c (do_test): Cast st_size values to
36532         size_t for %zu format.
36533
36534         * nss/tst-nss-test1.c (do_test): Use %td printf format for pointer
36535         difference, not %ju.
36536
36537 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
36538
36539         * include/libc-internal.h (ignore_value): New macro.
36540         * nscd/connections.c (restart): Wrap calls to setuid and setgid
36541         with ignore_value.
36542
36543         * sysdeps/mips/__longjmp.c (____longjmp): Use prototype
36544         definition.
36545
36546         * nptl/tst-cancel-self-cancelstate.c (do_test): Cast argument of
36547         pthread_cleanup_push to void *.
36548
36549         * sysdeps/unix/sysv/linux/arm/libc-do-syscall.S (_FORTIFY_SOURCE):
36550         Undefine.
36551
36552         [BZ #16619]
36553         [BZ #16740]
36554         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Use 1LL << 52
36555         instead of 1L << 52.
36556
36557         * libio/bug-rewind.c (do_test): Check fwscanf return values.
36558         * libio/bug-rewind2.c (do_test): Likewise.
36559
36560         * debug/test-stpcpy_chk-ifunc.c: Remove file.
36561         * debug/test-strcpy_chk-ifunc.c: Likewise.
36562         * wcsmbs/test-wcschr-ifunc.c: Likewise.
36563         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
36564         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
36565         * wcsmbs/test-wcslen-ifunc.c: Likewise.
36566         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
36567         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
36568         * Rules [$(multi-arch) = no] (tests): Do not filter out
36569         $(tests-ifunc).
36570         [$(multi-arch) = no] (xtests): Do not filter out $(xtests-ifunc).
36571         * debug/Makefile (tests-ifunc): Remove variable.
36572         (tests): Do not add $(tests-ifunc).
36573         * wcsmbs/Makefile (tests-ifunc): Remove variable.
36574         (tests): Do not add $(tests-ifunc).
36575         * benchtests/bench-string.h (TEST_IFUNC): Remove macro.
36576         [TEST_IFUNC]: Remove conditionals.
36577         * string/test-string.h (TEST_IFUNC): Remove macro.
36578         [TEST_IFUNC]: Remove conditionals.
36579
36580         * string/test-strchr.c [!WIDE] (L): New macro.
36581         [WIDE] (L): Likewise.
36582         (check1): Use CHAR instead of char.  Use L on string and character
36583         constants.
36584
36585 2014-11-26  Adhemerval Zanella  <azanella@linux.ibm.com>
36586
36587         * csu/tst-atomic.c (do_test): Add atomic_exchange_and_add_{acq,rel}
36588         tests.
36589         * sysdeps/powerpc/bits/atomic.h
36590         (__arch_atomic_exchange_and_add_32_acq): Add definition.
36591         (__arch_atomic_exchange_and_add_32_rel): Likewise.
36592         (atomic_exchange_and_add_acq): Likewise.
36593         (atomic_exchange_and_add_rel): Likewise.
36594         * sysdeps/powerpc/powerpc32/bits/atomic.h
36595         (__arch_atomic_exchange_and_add_64_acq): Add definition.
36596         (__arch_atomic_exchange_and_add_64_rel): Likewise.
36597         * sysdeps/powerpc/powerpc64/bits/atomic.h
36598         (__arch_atomic_exchange_and_add_64_acq): Add definition.
36599         (__arch_atomic_exchange_and_add_64_rel): Likewise.
36600
36601 2014-11-26  Torvald Riegel  <triegel@redhat.com>
36602
36603         * nptl/tpp.c (__init_sched_fifo_prio, __pthread_tpp_change_priority):
36604         Change synchronization of __sched_fifo_min_prio and
36605         __sched_fifo_max_prio.
36606         * nptl/pthread_mutexattr_getprioceiling.c
36607         (pthread_mutexattr_getprioceiling): Likewise.
36608         * nptl/pthread_mutexattr_setprioceiling.c
36609         (pthread_mutexattr_setprioceiling): Likewise.
36610         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
36611         * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
36612         Likewise.
36613
36614 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
36615
36616         * setjmp/jmpbug.c (test): Make foo volatile and cast it to
36617         void.
36618
36619 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
36620
36621         * stdio-common/tst-printf-round.c (test_hex_in_one_mode): Make
36622         third argument const.
36623
36624 2014-11-25  Paul Eggert  <eggert@cs.ucla.edu>
36625
36626         fnmatch: work around GCC compiler warning bug with uninit var
36627         * posix/fnmatch_loop.c (FCT): Use a scalar not a one-item array.
36628         This works around a bug with x86-64 GCC 4.9.2 and earlier
36629         where 'gcc -O2 -Wmaybe-uninitialized' incorrectly complains
36630         "../locale/weightwc.h:93:7: warning: '*((void *)&str+4)' may be
36631         used uninitialized in this function [-Wmaybe-uninitialized]".
36632
36633 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
36634
36635         * posix/bug-regex31.c (main): Return RES not 0.
36636
36637 2014-11-25  Anton Blanchard <anton@samba.org>
36638
36639         * sysdeps/powerpc/bits/atomic.h
36640         (__arch_compare_and_exchange_bool_64_rel): Load from mem.
36641
36642 2014-11-24  Sterling Augustine  <saugustine@google.com>
36643
36644         * sysdeps/x86_64/start.S (_start): Use ENTRY and END macros.
36645
36646 2014-11-24  Ryan Cumming  <etaoins@gmail.com>
36647
36648         [BZ #17608]
36649         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_TAI.
36650
36651 2014-11-24  Joseph Myers  <joseph@codesourcery.com>
36652
36653         [BZ #17633]
36654         * stdio-common/perror.c (perror): Call __fileno instead of fileno.
36655         * conform/Makefile (test-xfail-ISO/stdio.h/linknamespace): Remove
36656         variable.
36657         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
36658         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
36659
36660 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
36661
36662         * string/strncpy.c (strncpy): Improve performance by using memset.
36663
36664 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
36665
36666         * string/strcpy.c (strcpy):
36667         Improve performance by using strlen and memcpy.
36668
36669 2014-11-24  Leonhard Holz  <leonhard.holz@web.de>
36670
36671         * string/strcoll_l.c (get_next_seq): __always_inline.
36672         * string/strcoll_l.c (do_compare): __always_inline.
36673
36674 2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
36675
36676         * include/bits/stdlib-float.h: Use IS_IN only if _ISOMAC is
36677         defined.
36678         * include/mqueue.h: Likewise.
36679         * include/stdlib.h: Likewise.
36680
36681         * stdlib/isomac.c (fmt): Replace NOT_IN_libc with IN_MODULE.
36682         (get_null_defines): Adjust.
36683         * sunrpc/Makefile: Adjust comment.
36684         * Makerules (CPPFLAGS-nonlib): Remove NOT_IN_libc.
36685         * elf/Makefile (CPPFLAGS-sotruss-lib): Likewise.
36686         (CFLAGS-interp.c): Likewise.
36687         (CFLAGS-ldconfig.c): Likewise.
36688         (CPPFLAGS-.os): Likewise.
36689         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
36690         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
36691         * extra-modules.mk (extra-modules.mk): Likewise.
36692         * iconv/Makefile (CPPFLAGS-iconvprogs): Likewise.
36693         * locale/Makefile (CPPFLAGS-locale_programs): Likewise.
36694         * malloc/Makefile (CPPFLAGS-memusagestat): Likewise.
36695         * nscd/Makefile (CPPFLAGS-nscd): Likewise.
36696         * nss/Makefile (CPPFLAGS-nss_test1): Likewise.
36697         * stdlib/Makefile (CFLAGS-tst-putenvmod.c): Likewise.
36698         * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
36699         * sysdeps/unix/sysv/linux/Makefile (CPPFLAGS-lddlibc4): Likewise.
36700         * iconvdata/Makefile (CPPFLAGS): Likewise.
36701         (cpp-srcs-left): Add libof for all iconvdata routines.
36702         * bits/stdio-lock.h: Replace NOT_IN_libc with IS_IN.
36703         * include/assert.h: Likewise.
36704         * include/ctype.h: Likewise.
36705         * include/errno.h: Likewise.
36706         * include/libc-symbols.h: Likewise.
36707         * include/math.h: Likewise.
36708         * include/netdb.h: Likewise.
36709         * include/resolv.h: Likewise.
36710         * include/stdio.h: Likewise.
36711         * include/stdlib.h: Likewise.
36712         * include/string.h: Likewise.
36713         * include/sys/stat.h: Likewise.
36714         * include/wctype.h: Likewise.
36715         * intl/l10nflist.c: Likewise.
36716         * libidn/idn-stub.c: Likewise.
36717         * libio/libioP.h: Likewise.
36718         * nptl/libc_multiple_threads.c: Likewise.
36719         * nptl/pthreadP.h: Likewise.
36720         * posix/regex_internal.h: Likewise.
36721         * resolv/res_hconf.c: Likewise.
36722         * sysdeps/arm/armv7/multiarch/memcpy.S: Likewise.
36723         * sysdeps/arm/memmove.S: Likewise.
36724         * sysdeps/arm/sysdep.h: Likewise.
36725         * sysdeps/generic/_itoa.h: Likewise.
36726         * sysdeps/generic/symbol-hacks.h: Likewise.
36727         * sysdeps/gnu/errlist.awk: Likewise.
36728         * sysdeps/gnu/errlist.c: Likewise.
36729         * sysdeps/i386/i586/memcpy.S: Likewise.
36730         * sysdeps/i386/i586/memset.S: Likewise.
36731         * sysdeps/i386/i686/memcpy.S: Likewise.
36732         * sysdeps/i386/i686/memmove.S: Likewise.
36733         * sysdeps/i386/i686/mempcpy.S: Likewise.
36734         * sysdeps/i386/i686/memset.S: Likewise.
36735         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
36736         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
36737         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: Likewise.
36738         * sysdeps/i386/i686/multiarch/memchr-sse2.S: Likewise.
36739         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
36740         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
36741         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Likewise.
36742         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
36743         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
36744         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
36745         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
36746         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
36747         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
36748         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
36749         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
36750         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
36751         * sysdeps/i386/i686/multiarch/memrchr-c.c: Likewise.
36752         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: Likewise.
36753         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: Likewise.
36754         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
36755         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
36756         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
36757         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
36758         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
36759         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
36760         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
36761         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: Likewise.
36762         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
36763         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Likewise.
36764         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
36765         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
36766         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
36767         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
36768         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
36769         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
36770         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
36771         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
36772         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
36773         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
36774         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
36775         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
36776         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
36777         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
36778         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
36779         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
36780         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
36781         * sysdeps/i386/i686/multiarch/wcschr-c.c: Likewise.
36782         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: Likewise.
36783         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
36784         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
36785         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
36786         * sysdeps/i386/i686/multiarch/wcscpy-c.c: Likewise.
36787         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Likewise.
36788         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
36789         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
36790         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: Likewise.
36791         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
36792         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: Likewise.
36793         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: Likewise.
36794         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
36795         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
36796         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
36797         * sysdeps/ia64/fpu/libm-symbols.h: Likewise.
36798         * sysdeps/nptl/bits/libc-lock.h: Likewise.
36799         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
36800         * sysdeps/nptl/bits/stdio-lock.h: Likewise.
36801         * sysdeps/posix/closedir.c: Likewise.
36802         * sysdeps/posix/opendir.c: Likewise.
36803         * sysdeps/posix/readdir.c: Likewise.
36804         * sysdeps/posix/rewinddir.c: Likewise.
36805         * sysdeps/powerpc/novmx-sigjmp.c: Likewise.
36806         * sysdeps/powerpc/powerpc32/__longjmp.S: Likewise.
36807         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
36808         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
36809         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
36810         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Likewise.
36811         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Likewise.
36812         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: Likewise.
36813         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: Likewise.
36814         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: Likewise.
36815         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: Likewise.
36816         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: Likewise.
36817         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: Likewise.
36818         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: Likewise.
36819         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: Likewise.
36820         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: Likewise.
36821         * sysdeps/powerpc/powerpc32/power4/multiarch/memset.c: Likewise.
36822         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: Likewise.
36823         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: Likewise.
36824         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: Likewise.
36825         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr.c: Likewise.
36826         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: Likewise.
36827         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: Likewise.
36828         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: Likewise.
36829         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: Likewise.
36830         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: Likewise.
36831         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: Likewise.
36832         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: Likewise.
36833         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: Likewise.
36834         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: Likewise.
36835         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
36836         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: Likewise.
36837         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
36838         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: Likewise.
36839         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
36840         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Likewise.
36841         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
36842         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
36843         * sysdeps/powerpc/powerpc64/__longjmp.S: Likewise.
36844         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: Likewise.
36845         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: Likewise.
36846         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: Likewise.
36847         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: Likewise.
36848         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
36849         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
36850         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Likewise.
36851         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: Likewise.
36852         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: Likewise.
36853         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: Likewise.
36854         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: Likewise.
36855         * sysdeps/powerpc/powerpc64/multiarch/memset.c: Likewise.
36856         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: Likewise.
36857         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
36858         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Likewise.
36859         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: Likewise.
36860         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Likewise.
36861         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: Likewise.
36862         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: Likewise.
36863         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: Likewise.
36864         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: Likewise.
36865         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
36866         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: Likewise.
36867         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
36868         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c: Likewise.
36869         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Likewise.
36870         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
36871         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Likewise.
36872         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Likewise.
36873         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: Likewise.
36874         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: Likewise.
36875         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
36876         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Likewise.
36877         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: Likewise.
36878         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: Likewise.
36879         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: Likewise.
36880         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Likewise.
36881         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: Likewise.
36882         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: Likewise.
36883         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
36884         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: Likewise.
36885         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
36886         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
36887         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
36888         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Likewise.
36889         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
36890         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Likewise.
36891         * sysdeps/s390/s390-32/multiarch/memcmp.S: Likewise.
36892         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
36893         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
36894         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
36895         * sysdeps/s390/s390-64/multiarch/memcmp.S: Likewise.
36896         * sysdeps/s390/s390-64/multiarch/memcpy.S: Likewise.
36897         * sysdeps/s390/s390-64/multiarch/memset.S: Likewise.
36898         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
36899         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
36900         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: Likewise.
36901         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
36902         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
36903         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Likewise.
36904         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: Likewise.
36905         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
36906         * sysdeps/unix/alpha/sysdep.S: Likewise.
36907         * sysdeps/unix/alpha/sysdep.h: Likewise.
36908         * sysdeps/unix/make-syscalls.sh: Likewise.
36909         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
36910         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
36911         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
36912         * sysdeps/unix/sysv/linux/alpha/vfork.S: Likewise.
36913         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
36914         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
36915         * sysdeps/unix/sysv/linux/getpid.c: Likewise.
36916         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
36917         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
36918         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
36919         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
36920         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
36921         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
36922         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
36923         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
36924         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
36925         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
36926         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
36927         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
36928         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
36929         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
36930         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
36931         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
36932         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
36933         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
36934         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
36935         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
36936         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
36937         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
36938         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: Likewise.
36939         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
36940         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
36941         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
36942         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
36943         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
36944         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
36945         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
36946         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
36947         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
36948         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
36949         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
36950         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
36951         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
36952         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
36953         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
36954         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
36955         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
36956         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
36957         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
36958         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
36959         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
36960         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
36961         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
36962         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
36963         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
36964         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
36965         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
36966         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
36967         * sysdeps/wordsize-32/symbol-hacks.h: Likewise.
36968         * sysdeps/x86_64/memcpy.S: Likewise.
36969         * sysdeps/x86_64/memmove.c: Likewise.
36970         * sysdeps/x86_64/memset.S: Likewise.
36971         * sysdeps/x86_64/multiarch/init-arch.h: Likewise.
36972         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
36973         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
36974         * sysdeps/x86_64/multiarch/memcmp.S: Likewise.
36975         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
36976         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
36977         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
36978         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
36979         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
36980         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
36981         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
36982         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
36983         * sysdeps/x86_64/multiarch/memset-avx2.S: Likewise.
36984         * sysdeps/x86_64/multiarch/memset.S: Likewise.
36985         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
36986         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Likewise.
36987         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
36988         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
36989         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
36990         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
36991         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Likewise.
36992         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
36993         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
36994         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
36995         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
36996         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
36997         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
36998         * sysdeps/x86_64/multiarch/wcscpy-c.c: Likewise.
36999         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
37000         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
37001         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Likewise.
37002         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
37003         * sysdeps/x86_64/strcmp.S: Likewise.
37004
37005         * extra-lib.mk (CPPFLAGS-$(lib)): Remove IS_IN_$(lib).
37006
37007         * elf/Makefile (CPPFLAGS-.os): Remove IS_IN_rtld.
37008         * elf/dl-open.c: Use IS_IN (rtld) instead if IS_IN_rtld.
37009         * elf/rtld-Rules: Likewise.
37010         * elf/setup-vdso.h: Likewise.
37011         * include/assert.h: Likewise.
37012         * include/bits/stdlib-float.h: Likewise.
37013         * include/errno.h: Likewise.
37014         * include/sys/stat.h: Likewise.
37015         * include/unistd.h: Likewise.
37016         * sysdeps/aarch64/setjmp.S: Likewise.
37017         * sysdeps/alpha/setjmp.S: Likewise.
37018         * sysdeps/arm/__longjmp.S: Likewise.
37019         * sysdeps/arm/aeabi_unwind_cpp_pr1.c: Likewise.
37020         * sysdeps/arm/setjmp.S: Likewise.
37021         * sysdeps/arm/sysdep.h: Likewise.
37022         * sysdeps/generic/_itoa.h: Likewise.
37023         * sysdeps/generic/dl-sysdep.h: Likewise.
37024         * sysdeps/generic/ldsodefs.h: Likewise.
37025         * sysdeps/i386/dl-tls.h: Likewise.
37026         * sysdeps/i386/setjmp.S: Likewise.
37027         * sysdeps/m68k/setjmp.c: Likewise.
37028         * sysdeps/mach/hurd/dl-execstack.c: Likewise.
37029         * sysdeps/mach/hurd/opendir.c: Likewise.
37030         * sysdeps/posix/getcwd.c: Likewise.
37031         * sysdeps/posix/opendir.c: Likewise.
37032         * sysdeps/posix/profil.c: Likewise.
37033         * sysdeps/powerpc/dl-procinfo.h: Likewise.
37034         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
37035         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
37036         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
37037         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
37038         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
37039         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
37040         * sysdeps/s390/dl-tls.h: Likewise.
37041         * sysdeps/s390/s390-32/setjmp.S: Likewise.
37042         * sysdeps/s390/s390-64/setjmp.S: Likewise.
37043         * sysdeps/sh/sh3/setjmp.S: Likewise.
37044         * sysdeps/sh/sh4/setjmp.S: Likewise.
37045         * sysdeps/unix/alpha/sysdep.h: Likewise.
37046         * sysdeps/unix/arm/sysdep.S: Likewise.
37047         * sysdeps/unix/i386/sysdep.S: Likewise.
37048         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
37049         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
37050         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
37051         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
37052         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
37053         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
37054         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
37055         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
37056         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
37057         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
37058         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
37059         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
37060         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
37061         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
37062         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
37063         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
37064         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
37065         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
37066         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
37067         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
37068         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
37069         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
37070         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
37071         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
37072         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
37073         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
37074         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
37075         * sysdeps/unix/x86_64/sysdep.S: Likewise.
37076         * sysdeps/x86_64/setjmp.S: Likewise.
37077
37078         * include/math.h: Use IS_IN instead of IS_IN_libm.
37079         * sysdeps/alpha/fpu/s_copysign.c: Likewise.
37080         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
37081         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
37082         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
37083         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
37084         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
37085         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
37086         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
37087         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
37088         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
37089         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Likewise.
37090         * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
37091         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Likewise.
37092         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
37093         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
37094         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Likewise.
37095         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
37096         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
37097         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
37098         * sysdeps/ieee754/ldbl-opt/s_copysign.c: Likewise.
37099         * sysdeps/ieee754/ldbl-opt/s_finite.c: Likewise.
37100         * sysdeps/ieee754/ldbl-opt/s_frexp.c: Likewise.
37101         * sysdeps/ieee754/ldbl-opt/s_isinf.c: Likewise.
37102         * sysdeps/ieee754/ldbl-opt/s_isnan.c: Likewise.
37103         * sysdeps/ieee754/ldbl-opt/s_ldexp.c: Likewise.
37104         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c: Likewise.
37105         * sysdeps/ieee754/ldbl-opt/s_modf.c: Likewise.
37106         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
37107         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
37108         * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
37109         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
37110         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
37111         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
37112         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
37113         Likewise.
37114         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c:
37115         Likewise.
37116         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c:
37117         Likewise.
37118         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c:
37119         Likewise.
37120         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c:
37121         Likewise.
37122         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
37123         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
37124         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
37125         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
37126         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
37127         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
37128         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
37129         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
37130         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
37131         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
37132         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Likewise.
37133         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
37134         * sysdeps/powerpc/powerpc64/fpu/s_copysignl.S: Likewise.
37135         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
37136         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
37137         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
37138         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
37139         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
37140         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
37141         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
37142         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
37143         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
37144         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
37145         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
37146         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: Likewise.
37147         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
37148         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S: Likewise.
37149
37150         * nptl/lowlevellock.c: Use IS_IN instead of IS_IN_libpthread.
37151         * nptl/pthreadP.h: Likewise.
37152         * nptl_db/structs.def: Likewise.
37153         * sysdeps/arm/sysdep.h: Likewise.
37154         * sysdeps/nptl/bits/libc-lock.h: Likewise.
37155         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
37156         * sysdeps/sparc/sparc32/lowlevellock.c: Likewise.
37157         * sysdeps/unix/alpha/sysdep.h: Likewise.
37158         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
37159         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
37160         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
37161         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
37162         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
37163         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
37164         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
37165         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
37166         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
37167         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
37168         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
37169         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
37170         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
37171         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
37172         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
37173         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
37174         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
37175         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
37176         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
37177         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
37178         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
37179         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
37180         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
37181         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
37182         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
37183         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
37184
37185         * include/mqueue.h: Use IS_IN instead of IS_IN_librt.
37186         * nptl/pthreadP.h: Likewise.
37187         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
37188         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
37189         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
37190         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
37191         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
37192         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
37193         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
37194         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
37195         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
37196         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
37197         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
37198         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
37199         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
37200         Likewise.
37201         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
37202         Likewise.
37203         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
37204         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
37205         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
37206         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
37207         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
37208         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
37209         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
37210         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
37211
37212         * dlfcn/dladdr.c: Use IS_IN.
37213         * dlfcn/dladdr1.c: Likewise.
37214         * dlfcn/dlclose.c: Likewise.
37215         * dlfcn/dlerror.c: Likewise.
37216         * dlfcn/dlinfo.c: Likewise.
37217         * dlfcn/dlmopen.c: Likewise.
37218         * dlfcn/dlopen.c: Likewise.
37219         * dlfcn/dlsym.c: Likewise.
37220         * dlfcn/dlvsym.c: Likewise.
37221
37222         * include/ifaddrs.h: Use IS_IN.
37223         * inet/check_pf.c: Likewise.
37224         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
37225         * nscd/Makefile (CPPFLAGS-nscd): Remove IS_IN_nscd.
37226
37227         * elf/Makefile (CFLAGS-ldconfig.c): Remove definition of
37228         IS_IN_ldconfig.
37229         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Use IS_IN.
37230         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: Likewise.
37231
37232         * include/shlib-compat.h [!NOT_IN_libc]: Remove.
37233         * nss/nss_files/files-parse.c (IS_IN_libc): Replace with
37234         IS_IN (libc).
37235
37236         * elf/Makefile (libof-sotruss-lib): Set as extramodules.
37237
37238         * elf/Makefile (CPPFLAGS-.os): Remove IN_LIB.
37239         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
37240         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
37241         * include/libc-symbols.h (IS_IN_LIB): New macro.
37242         * include/errno.h: Use IS_IN_LIB instead of IN_LIB.
37243         * include/netdb.h: Likewise.
37244         * include/stap-probe.h: Remove all uses of IN_LIB.
37245
37246         * Makeconfig (module-cppflags-real): Define MODULE_NAME
37247         instead of IN_MODULE.
37248         * include/libc-symbols.h (IN_MODULE): Define using
37249         MODULE_NAME.
37250         (PASTE_NAME, PASTE_NAME1): New macros.
37251         * include/stap-probe.h (LIBC_PROBE_1): Use MODULE_NAME instead
37252         of IN_LIB.
37253         (STAP_PROBE_ASM): Likewise.
37254
37255 2014-11-23  Samuel Thibault  <samuel.thibault@ens-lyon.org>
37256
37257         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Call
37258         __mach_init in dlopened libc.
37259
37260 2014-11-22  Mike Frysinger  <vapier@gentoo.org>
37261
37262         * sysdeps/arm/preconfigure.ac: Delete EABI check.
37263         * sysdeps/arm/preconfigure: Regenerate.
37264
37265 2014-11-21  Roland McGrath  <roland@hack.frob.com>
37266
37267         * nptl/pthread_create.c (__pthread_create_2_1): Set
37268         ATTR_FLAG_POLICY_SET and/or ATTR_FLAG_SCHED_SET in PD->flags
37269         when copying values from IATTR into PD.
37270
37271 2014-11-21  Will Newton  <will.newton@linaro.org>
37272             Andrew Pinski  <andrew.pinski@caviumnetworks.com>
37273
37274         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address):
37275         Refactor inline-asm.  Also add comment.
37276
37277         * sysdeps/aarch64/bits/link.h (la_aarch64_gnu_pltenter): Use
37278         ElfW macro instead of hardcoded Elf64 types.
37279         (la_aarch64_gnu_pltenter): Likewise.
37280         * sysdeps/aarch64/dl-machine.h
37281         (elf_machine_runtime_setup): Use ElfW(Addr).
37282
37283         * elf/elf.h (R_AARCH64_P32_ABS32, R_AARCH64_P32_COPY,
37284         R_AARCH64_P32_GLOB_DAT, R_AARCH64_P32_JUMP_SLOT,
37285         R_AARCH64_P32_RELATIVE, R_AARCH64_P32_TLS_DTPMOD,
37286         R_AARCH64_P32_TLS_DTPREL, R_AARCH64_P32_TLS_TPREL,
37287         R_AARCH64_P32_TLSDESC, R_AARCH64_P32_IRELATIVE): Define.
37288         (R_AARCH64_TLS_DTPMOD64): Rename to ..
37289         (R_AARCH64_TLS_DTPMOD): This.
37290         (R_AARCH64_TLS_DTPREL64): Rename to ...
37291         (R_AARCH64_TLS_DTPREL): This.
37292         (R_AARCH64_TLS_TPREL64): Rename to ...
37293         (R_AARCH64_TLS_TPREL): This.
37294         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Update
37295         R_AARCH64_TLS_DTPMOD64, R_AARCH64_TLS_DTPREL64, and
37296         R_AARCH64_TLS_TPREL64.
37297         (elf_machine_rela): Likewise.
37298
37299 2014-11-21  Torvald Riegel  <triegel@redhat.com>
37300
37301         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS): Fix value
37302         by setting it to 0.  64b atomics are not supported currently.
37303
37304 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
37305
37306         [BZ #16469]
37307         * resolv/res_query.c (__libc_res_nsearch): Skip leading dot in
37308         search domain names.
37309
37310 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
37311
37312         [BZ #16469]
37313         * NEWS: Update.
37314         * resolv/res_query.c (__libc_res_nquerydomain): Retain
37315         trailing dot.
37316         * posix/tst-getaddrinfo5.c: New.
37317         * posix/Makefile (tests): Add it.
37318
37319 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
37320
37321         [BZ #14498]
37322         * NEWS: Fixed.
37323         * nss/nss_db/db-XXX.c (_nss_db_get##name##_r): Update hidx
37324         after parsing line but before break_if_match.
37325         * nss/nss_files/files-service (DB_LOOKUP): Don't "continue;"
37326         if there is a protocol mismatch.
37327
37328 2014-11-21  Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
37329
37330         * manual/sysinfo.texi (addmntent): It is actually MT-Safe,
37331         because the potential race is on the user-supplied stream.
37332
37333 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
37334
37335         * sysdeps/posix/ctermid.c (ctermid): Return a pointer to a
37336         string literal if not passed a buffer.
37337         * manual/job.texi (ctermid): Update reasoning, note deviation
37338         from posix, suggest mtasurace when not passed a buffer, for
37339         future non-preliminary safety notes.
37340
37341 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
37342
37343         * manual/users.texi (cuserid): Fix MT-Safety note for the case
37344         of not passing it a buffer.
37345         Reported by Peng Haitao.
37346
37347 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
37348
37349         * manual/Makefile ($(objpfx)stamp-summary): Require
37350         check-safety.sh to pass.
37351         * manual/check-safety.sh: Wish for verification that every
37352         @deftypefn and @deftypefun is followed by a @safety remark.
37353
37354 2014-11-20  Roland McGrath  <roland@hack.frob.com>
37355
37356         * nptl/unwind.c (unwind_cleanup): Use __libc_fatal.
37357
37358         * nptl/pthread_setcanceltype.c [!SIGCANCEL]: Return ENOTSUP early for
37359         PTHREAD_CANCEL_ASYNCHRONOUS.
37360         * nptl/pthread_cancel.c [!SIGCANCEL]: Just abort rather than trying to
37361         send SIGCANCEL.
37362
37363         * nptl/default-sched.h: New file.
37364         * sysdeps/unix/sysv/linux/default-sched.h: New file.
37365         * nptl/pthread_create.c: Include it.
37366         (__pthread_create_2_1): Use collect_default_sched instead of making
37367         Linux syscalls here directly.
37368
37369 2014-11-20  Torvald Riegel  <triegel@redhat.com>
37370
37371         * nptl/pthread_once.c (clear_once_control, __pthread_once_slow,
37372         __pthread_once): Use C11 atomics.
37373
37374 2014-11-20  Torvald Riegel  <triegel@redhat.com>
37375
37376         * csu/tst-atomic.c (do_test): Add tests for C11-like atomics.
37377
37378 2014-11-20  Torvald Riegel  <triegel@redhat.com>
37379
37380         * include/atomic.h (__atomic_link_error, __atomic_check_size,
37381         atomic_thread_fence_acquire, atomic_thread_fence_release,
37382         atomic_thread_fence_seq_cst, atomic_load_relaxed,
37383         atomic_load_acquire, atomic_store_relaxed, atomic_store_release,
37384         atomic_compare_exchange_weak_relaxed,
37385         atomic_compare_exchange_weak_acquire,
37386         atomic_compare_exchange_weak_release,
37387         atomic_exchange_acquire, atomic_exchange_release,
37388         atomic_fetch_add_relaxed, atomic_fetch_add_acquire,
37389         atomic_fetch_add_release, atomic_fetch_add_acq_rel,
37390         atomic_fetch_and_acquire,
37391         atomic_fetch_or_relaxed, atomic_fetch_or_acquire): New.
37392
37393 2014-11-20  Torvald Riegel  <triegel@redhat.com>
37394
37395         * sysdeps/aarch64/bits/atomic.h (__HAVE_64B_ATOMICS,
37396         USE_ATOMIC_COMPILER_BUILTINS): Define.
37397         * sysdeps/alpha/bits/atomic.h (__HAVE_64B_ATOMICS,
37398         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
37399         * sysdeps/arm/bits/atomic.h (__HAVE_64B_ATOMICS,
37400         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
37401         * sysdeps/i386/i486/bits/atomic.h (__HAVE_64B_ATOMICS,
37402         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
37403         * sysdeps/ia64/bits/atomic.h (__HAVE_64B_ATOMICS,
37404         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
37405         * sysdeps/m68k/coldfire/bits/atomic.h (__HAVE_64B_ATOMICS,
37406         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
37407         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (__HAVE_64B_ATOMICS,
37408         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
37409         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS,
37410         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
37411         * sysdeps/mips/bits/atomic.h (__HAVE_64B_ATOMICS,
37412         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
37413         * sysdeps/powerpc/powerpc32/bits/atomic.h (__HAVE_64B_ATOMICS,
37414         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
37415         * sysdeps/powerpc/powerpc64/bits/atomic.h (__HAVE_64B_ATOMICS,
37416         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
37417         * sysdeps/s390/bits/atomic.h (__HAVE_64B_ATOMICS,
37418         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
37419         * sysdeps/sparc/sparc32/bits/atomic.h (__HAVE_64B_ATOMICS,
37420         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
37421         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (__HAVE_64B_ATOMICS,
37422         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
37423         * sysdeps/sparc/sparc64/bits/atomic.h (__HAVE_64B_ATOMICS,
37424         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
37425         * sysdeps/tile/tilegx/bits/atomic.h (__HAVE_64B_ATOMICS,
37426         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
37427         * sysdeps/tile/tilepro/bits/atomic.h (__HAVE_64B_ATOMICS,
37428         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
37429         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (__HAVE_64B_ATOMICS,
37430         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
37431         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
37432         (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Likewise.
37433         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (__HAVE_64B_ATOMICS,
37434         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
37435         * sysdeps/x86_64/bits/atomic.h (__HAVE_64B_ATOMICS,
37436         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
37437
37438 2014-11-19  Roland McGrath  <roland@hack.frob.com>
37439
37440         * nptl/pthread_create.c (__pthread_create_2_1): Don't try to validate
37441         the sched_priority value here.  It was already checked when the user
37442         called pthread_attr_setschedparam.
37443
37444         * nptl/tst-bad-schedattr.c: New file.
37445         * nptl/Makefile (tests): Add it.
37446
37447 2014-11-19  Carlos O'Donell  <carlos@redhat.com>
37448             Florian Weimer  <fweimer@redhat.com>
37449             Joseph Myers  <joseph@codesourcery.com>
37450             Adam Conrad  <adconrad@0c3.net>
37451             Andreas Schwab  <schwab@suse.de>
37452             Brooks  <bmoses@google.com>
37453
37454         [BZ #17625]
37455         * wordexp-test.c (__dso_handle): Add prototype.
37456         (__register_atfork): Likewise.
37457         (__app_register_atfork): New function.
37458         (registered_forks): New global.
37459         (register_fork): New function.
37460         (test_case): Add 3 new tests for WRDE_CMDSUB.
37461         (main): Call __app_register_atfork.
37462         (testit): If WRDE_NOCMD set registered_forks to zero, run test, and if
37463         fork count is non-zero fail the test.
37464         * posix/wordexp.c (exec_comm): Return WRDE_CMDSUB if WRDE_NOCMD flag
37465         is set.
37466         (parse_dollars): Remove check for WRDE_NOCMD.
37467         (parse_dquote): Likewise.
37468
37469 2014-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
37470
37471         * Makeconfig (built-modules): List non-library modules to be
37472         built.
37473         (module-cppflags): Include libc-modules.h for
37474         everything except shlib-versions.v.i.
37475         (CPPFLAGS): Use it.
37476         (before-compile): Add libc-modules.h.
37477         ($(common-objpfx)libc-modules.h,
37478         $(common-objpfx)libc-modules.stmp): New targets.
37479         (common-generated): Add libc-modules.h and libc-modules.stmp.
37480         ($(common-objpfx)Versions.v.i): Depend on libc-modules.h.
37481         * include/libc-symbols.h: Don't include libc-modules.h.
37482         * include/libc-modules.h: Remove file.
37483         * scripts/gen-libc-modules.awk: New script to generate
37484         libc-modules.h.
37485         * sysdeps/unix/Makefile ($(common-objpfx)sysd-syscalls):
37486         Depend on libc-modules.stmp.
37487
37488         * include/shlib-compat.h (_SHLIB_COMPAT): Use IS_IN.
37489
37490         * Makeconfig (in-module): Get value of libof set for the
37491         translation unit.
37492         (CPPFLAGS): Use $(in-module).
37493         * Makerules: Don't suffix routine names for nonlib.
37494         * include/libc-modules.h: New file.
37495         * include/libc-symbols.h: Include libc-modules.h
37496         (IS_IN): New macro to replace IS_IN_* macros.
37497         * elf/Makefile: Set libof-* for each routine.
37498         * elf/rtld-Rules: Likewise.
37499         * extra-modules.mk: Likewise.
37500         * iconv/Makefile: Likewise.
37501         * iconvdata/Makefile: Likewise.
37502         * locale/Makefile: Likewise.
37503         * malloc/Makefile: Likewise.
37504         * nss/Makefile: Likewise.
37505         * sysdeps/gnu/Makefile: Likewise.
37506         * sysdeps/ieee754/ldbl-opt/Makefile: Likewise.
37507         * sysdeps/unix/sysv/linux/Makefile: Likewise.
37508         * sysdeps/s390/s390-64/Makefile: Likewise.
37509         * nscd/Makefile: Set libof-* for each routine.  Set CFLAGS and
37510         CPPFLAGS for nscd instead of nonlib.
37511
37512 2014-11-18  Roland McGrath  <roland@hack.frob.com>
37513
37514         * nptl/createthread.c: New file.
37515
37516         * nptl/createthread.c: Moved ...
37517         * sysdeps/unix/sysv/linux/createthread.c: ... here.
37518
37519         * nptl/createthread.c: Add proper top-line comment.
37520         (do_clone): Folded into ...
37521         (create_thread): ... here.  Take new arguments STOPPED_START and
37522         THREAD_RAN.  Always set PD->stopped_start to something here.  Don't
37523         increment __nptl_threads, do event-reporting logic, do
37524         CHECK_THREAD_SYSINFO, or set THREAD_SELF->header.multiple_threads
37525         here.  Set *THREAD_RAN after ARCH_CLONE call succeeds.  Don't do any
37526         resource cleanup if sched_setaffinity or sched_setscheduler fails,
37527         just send SIGCANCEL.
37528         * nptl/pthread_create.c: Forward-declare create_thread before
37529         including createthread.c.
37530         (start_thread): Use new macro START_THREAD_DEFN to replace defining
37531         declaration, and new macro START_THREAD_SELF to replace argument.
37532         Remove return statement.
37533         (report_thread_creation): New function.
37534         (__pthread_create_2_1): Use it.  Do TD_CREATE reporting,
37535         synchronization logic, and __nptl_nthreads increment here, around
37536         calling create_thread.  Do CHECK_THREAD_SYSINFO and initialize
37537         PD->parent_cancelhandling here, before create_thread.  When
37538         create_thread fails, do __nptl_nthreads decrement, setxid_futex wake,
37539         __deallocate_stack, and ENOMEM translation here.
37540
37541 2014-11-18  Joseph Myers  <joseph@codesourcery.com>
37542
37543         [BZ #17616]
37544         * sysdeps/ieee754/dbl-64/mpa.c (mpone): Rename to __mpone.
37545         (mptwo): Rename to __mptwo.
37546         (__inv): Use __mptwo instead of mptwo.
37547         * sysdeps/ieee754/dbl-64/mpa.h (mpone): Rename to __mpone.
37548         (mptwo): Rename to __mptwo.
37549         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __mpone instead
37550         of mpone and __mptwo instead of mptwo.
37551         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Use __mpone
37552         instead of mpone.
37553         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
37554         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Likewise.
37555         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use __mpone instead
37556         of mpone and __mptwo instead of mptwo.
37557         (__mpranred): Use __mpone instead of mpone.
37558         * conform/Makefile (test-xfail-ISO/math.h/linknamespace): Remove
37559         variable.
37560         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
37561         (test-xfail-ISO99/math.h/linknamespace): Likewise.
37562         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
37563         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
37564         (test-xfail-ISO11/math.h/linknamespace): Likewise.
37565         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
37566         (test-xfail-XPG3/math.h/linknamespace): Likewise.
37567         (test-xfail-XPG4/math.h/linknamespace): Likewise.
37568         (test-xfail-POSIX/math.h/linknamespace): Likewise.
37569         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
37570         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
37571         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
37572         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
37573         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
37574         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
37575         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
37576         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
37577         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
37578         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
37579
37580 2014-11-18  Tom de Vries  <tom@codesoucery.com>
37581
37582         * manual/signal.texi (Primitives Interrupted by Signals): In section,
37583         replace BSD Handler xref with BSD Signal Handling.
37584
37585 2014-11-17  Richard Henderson  <rth@redhat.com>
37586
37587         * sysdeps/alpha/soft-fp/local-soft-fp.h (_FP_UNPACK_RAW_2): Remove.
37588         (_FP_PACK_RAW_2): Remove.
37589         (AXP_DECL_RETURN_Q): Rename from FP_DECL_RETURN, use _FP_UNION_Q.
37590         (AXP_RETURN_Q): Rename from FP_RETURN, use _FP_UNION_Q.
37591         (AXP_UNPACK_RAW_Q, AXP_UNPACK_SEMIRAW_Q, AXP_UNPACK_Q): New.
37592         (AXP_PACK_RAW_Q, AXP_PACK_SEMIRAW_Q, AXP_PACK_Q): New.
37593         * sysdeps/alpha/soft-fp/ots_add.c (_OtsAddX): Update to match.
37594         * sysdeps/alpha/soft-fp/ots_cmp.c (internal_equality): Likewise.
37595         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Likewise.
37596         * sysdeps/alpha/soft-fp/ots_cvtqux.c (_OtsCvtQUX): Likewise.
37597         * sysdeps/alpha/soft-fp/ots_cvtqx.c (_OtsCvtQX): Likewise.
37598         * sysdeps/alpha/soft-fp/ots_cvttx.c (_OtsConvertFloatTX): Likewise.
37599         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Likewise.
37600         * sysdeps/alpha/soft-fp/ots_cvtxt.c (_OtsConvertFloatXT): Likewise.
37601         * sysdeps/alpha/soft-fp/ots_div.c (_OtsDivX): Likewise.
37602         * sysdeps/alpha/soft-fp/ots_mul.c (_OtsMulX): Likewise.
37603         * sysdeps/alpha/soft-fp/ots_nintxq.c (_OtsNintXQ): Likewise.
37604         * sysdeps/alpha/soft-fp/ots_sub.c (_OtsSubX): Likewise.
37605
37606 2014-11-14  Roland McGrath  <roland@hack.frob.com>
37607
37608         * signal/signal.h [__USE_MISC]
37609         (struct sigvec): Remove type.
37610         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): Remove macros.
37611         (sigvec): Remove declaration.
37612         * sysdeps/posix/sigvec.c: Moved ...
37613         * signal/sigvec.c: ... here, replacing old file.
37614         (struct sigvec): New type, copied from old signal.h definition.
37615         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): New macros, likewise copied.
37616         (__sigvec): Convert definition to prototype.
37617         (sigvec): Replace weak_alias with compat_symbol.
37618         * signal/Versions (libc: GLIBC_2.21): New version set.
37619         * include/signal.h: Remove __sigvec declaration.
37620         * sysdeps/unix/bsd/sigvec.c: Remove file.
37621         * sysdeps/unix/bsd/syscalls.list: Remove sigvec.
37622         * manual/signal.texi (BSD Handler): Remove subsection.
37623         Move siginterrupt up to ...
37624         (BSD Signal Handling): ... here.  Mark it as XPG rather than BSD.
37625         (Blocking in BSD): Fold subsection into its parent.
37626         * NEWS: Mention sigvec removal.
37627
37628 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
37629
37630         * sysdeps/x86_64/fpu/dla.h [__FMA4__ && __GNUC_PREREQ (4, 6)]
37631         (DLA_FMS): Make definition conditional only on [__FMA4__].
37632         [__FMA4__ && !__GNUC_PREREQ (4, 6)] (DLA_FMS): Remove conditional
37633         definition.
37634
37635         * sysdeps/arm/sysdep.h [PROF && __GNUC_PREREQ(4,4)] (CALL_MCOUNT):
37636         Make definition conditional only on [PROF].
37637         [PROF && !__GNUC_PREREQ(4,4)] (CALL_MCOUNT): Remove conditional
37638         definition.
37639         [__GNUC_PREREQ(4,4)] (mcount): Make definition unconditional.
37640         [!__GNUC_PREREQ(4,4)] (mcount): Remove conditional definition.
37641
37642         * signal/signal.h (__sigpause): Only declare if [__USE_XOPEN &&
37643         !__GNUC__].
37644         * include/signal.h (__sigpause): Move declaration above call to
37645         libc_hidden_proto.
37646         * conform/Makefile (test-xfail-ISO/signal.h/linknamespace): Remove
37647         variable.
37648         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
37649         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
37650
37651 2014-11-14  David S. Miller  <davem@davemloft.net>
37652
37653         * sysdeps/sparc/sparc64/rtld-memcpy.c (NO_MEMPCPY_STPCPY_REDIRECT):
37654         Define before including <string/memcpy.c> and <string/mempcpy.c>.
37655
37656 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
37657
37658         * configure.ac (libc_cv_compiler_ok): Require GCC 4.6 or later.
37659         * configure: Regenerated.
37660         * manual/install.texi (Tools for Compilation): Document a
37661         requirement of GCC 4.6 or later and that GCC 4.9 is the newest
37662         compiler verified to work.
37663         * INSTALL: Regenerated.
37664
37665         * include/string.h [NO_MEMPCPY_STPCPY_REDIRECT] (mempcpy): Do not
37666         redeclare with asm name.
37667         [NO_MEMPCPY_STPCPY_REDIRECT] (stpcpy): Likewise.
37668         * string/mempcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Define before
37669         including <string.h>.
37670         * string/stpcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
37671         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c
37672         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
37673         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c
37674         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
37675         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
37676         [SHARED && !NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
37677
37678 2014-11-13  Joseph Myers  <joseph@codesourcery.com>
37679
37680         * stdlib/strtol.c (__strtol): Use prototype definition.
37681
37682         [BZ #17594]
37683         * stdlib/strtol.c (SYM__): New macro.
37684         (SYM__1): Likewise.
37685         (__strtol): Likewise.
37686         (strtol): Rename to __strtol and define as weak alias of
37687         __strtol.  Use libc_hidden_weak.
37688
37689 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
37690
37691         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START):
37692         Use numbered labels in inline assembly.
37693
37694 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
37695
37696         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp):
37697         Add setjmp LIBC_PROBE.
37698         * sysdeps/s390/s390-64/setjmp.S (__sigsetjmp):
37699         Likewise.
37700         * sysdeps/s390/s390-32/__longjmp.c (__longjmp):
37701         Add longjmp, longjmp_target LIBC_PROBE.
37702         * sysdeps/s390/s390-64/__longjmp.c (__longjmp):
37703         Likewise.
37704
37705 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
37706
37707         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
37708         Gate the definition of refsym additionally with !RTLD_BOOTSTRAP
37709         to get rid of unused variable warning.
37710
37711 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
37712
37713         * sysdeps/s390/s390-32/backtrace.c (__backtrace):
37714         Check for unwind_backtrace ==  NULL only in SHARED case.
37715         (__backchain_backtrace): Compile only in SHARED case.
37716         * sysdeps/s390/s390-64/backtrace.c (__backtrace):
37717         Likewise.
37718         (__backchain_backtrace): Declare as static.
37719
37720 2014-11-12  Roland McGrath  <roland@hack.frob.com>
37721
37722         * nptl/createthread.c [!TLS_MULTIPLE_THREADS_IN_TCB]
37723         (__libc_multiple_threads_ptr): Variable moved ...
37724         * nptl/nptl-init.c [!TLS_MULTIPLE_THREADS_IN_TCB]: ... here.
37725
37726 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
37727
37728         * conform/GlibcConform.pm: New file.
37729         * conform/conformtest.pl: Use GlibcConform module.
37730         * conform/linknamespace.pl: New file.
37731         * conform/list-header-symbols.pl: Likewise.
37732         * conform/Makefile (linknamespace-symlists-base): New variable.
37733         (linknamespace-symlists-tests): Likewise.
37734         (linknamespace-header-base): Likewise.
37735         (linknamespace-header-tests): Likewise.
37736         (tests-special): Add new tests.
37737         ($(linknamespace-symlists-tests)): New rule.
37738         (linknamespace-libs): New variable.
37739         ($(objpfx)symlist-stdlibs): New rule.
37740         ($(linknamespace-header-tests)): Likewise.
37741         (test-xfail-XPG3/varargs.h/linknamespace): New variable.
37742         (test-xfail-XPG4/varargs.h/linknamespace): Likewise.
37743         (test-xfail-UNIX98/varargs.h/linknamespace): Likewise.
37744         (test-xfail-XPG4/ndbm.h/linknamespace): Likewise.
37745         (test-xfail-UNIX98/ndbm.h/linknamespace): Likewise.
37746         (test-xfail-XOPEN2K/ndbm.h/linknamespace): Likewise.
37747         (test-xfail-XOPEN2K8/ndbm.h/linknamespace): Likewise.
37748         (test-xfail-ISO/math.h/linknamespace): Likewise.
37749         (test-xfail-ISO/signal.h/linknamespace): Likewise.
37750         (test-xfail-ISO/stdio.h/linknamespace): Likewise.
37751         (test-xfail-ISO/time.h/linknamespace): Likewise.
37752         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
37753         (test-xfail-ISO99/ctype.h/linknamespace): Likewise.
37754         (test-xfail-ISO99/math.h/linknamespace): Likewise.
37755         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
37756         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
37757         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
37758         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
37759         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
37760         (test-xfail-ISO11/math.h/linknamespace): Likewise.
37761         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
37762         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
37763         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
37764         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
37765         (test-xfail-XPG3/fnmatch.h/linknamespace): Likewise.
37766         (test-xfail-XPG3/glob.h/linknamespace): Likewise.
37767         (test-xfail-XPG3/math.h/linknamespace): Likewise.
37768         (test-xfail-XPG3/regex.h/linknamespace): Likewise.
37769         (test-xfail-XPG3/search.h/linknamespace): Likewise.
37770         (test-xfail-XPG3/stdio.h/linknamespace): Likewise.
37771         (test-xfail-XPG3/time.h/linknamespace): Likewise.
37772         (test-xfail-XPG3/unistd.h/linknamespace): Likewise.
37773         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
37774         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
37775         (test-xfail-XPG4/fmtmsg.h/linknamespace): Likewise.
37776         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
37777         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
37778         (test-xfail-XPG4/grp.h/linknamespace): Likewise.
37779         (test-xfail-XPG4/libgen.h/linknamespace): Likewise.
37780         (test-xfail-XPG4/math.h/linknamespace): Likewise.
37781         (test-xfail-XPG4/netdb.h/linknamespace): Likewise.
37782         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
37783         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
37784         (test-xfail-XPG4/search.h/linknamespace): Likewise.
37785         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
37786         (test-xfail-XPG4/stdlib.h/linknamespace): Likewise.
37787         (test-xfail-XPG4/sys/mman.h/linknamespace): Likewise.
37788         (test-xfail-XPG4/sys/statvfs.h/linknamespace): Likewise.
37789         (test-xfail-XPG4/syslog.h/linknamespace): Likewise.
37790         (test-xfail-XPG4/time.h/linknamespace): Likewise.
37791         (test-xfail-XPG4/unistd.h/linknamespace): Likewise.
37792         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
37793         (test-xfail-POSIX/aio.h/linknamespace): Likewise.
37794         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
37795         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
37796         (test-xfail-POSIX/math.h/linknamespace): Likewise.
37797         (test-xfail-POSIX/mqueue.h/linknamespace): Likewise.
37798         (test-xfail-POSIX/pthread.h/linknamespace): Likewise.
37799         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
37800         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
37801         (test-xfail-POSIX/semaphore.h/linknamespace): Likewise.
37802         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
37803         (test-xfail-POSIX/time.h/linknamespace): Likewise.
37804         (test-xfail-POSIX/unistd.h/linknamespace): Likewise.
37805         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
37806         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
37807         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
37808         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
37809         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
37810         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
37811         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
37812         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
37813         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
37814         (test-xfail-UNIX98/mqueue.h/linknamespace): Likewise.
37815         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
37816         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
37817         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
37818         (test-xfail-UNIX98/regex.h/linknamespace): Likewise.
37819         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
37820         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
37821         (test-xfail-UNIX98/semaphore.h/linknamespace): Likewise.
37822         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
37823         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
37824         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
37825         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
37826         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
37827         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
37828         (test-xfail-UNIX98/unistd.h/linknamespace): Likewise.
37829         (test-xfail-UNIX98/wchar.h/linknamespace): Likewise.
37830         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
37831         (test-xfail-XOPEN2K/aio.h/linknamespace): Likewise.
37832         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
37833         (test-xfail-XOPEN2K/fcntl.h/linknamespace): Likewise.
37834         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
37835         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
37836         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
37837         (test-xfail-XOPEN2K/grp.h/linknamespace): Likewise.
37838         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
37839         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
37840         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
37841         (test-xfail-XOPEN2K/net/if.h/linknamespace): Likewise.
37842         (test-xfail-XOPEN2K/netdb.h/linknamespace): Likewise.
37843         (test-xfail-XOPEN2K/pthread.h/linknamespace): Likewise.
37844         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
37845         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
37846         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
37847         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
37848         (test-xfail-XOPEN2K/signal.h/linknamespace): Likewise.
37849         (test-xfail-XOPEN2K/spawn.h/linknamespace): Likewise.
37850         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
37851         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
37852         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
37853         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
37854         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
37855         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
37856         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
37857         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
37858         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
37859         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
37860         (test-xfail-POSIX2008/aio.h/linknamespace): Likewise.
37861         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
37862         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
37863         (test-xfail-POSIX2008/dirent.h/linknamespace): Likewise.
37864         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
37865         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
37866         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
37867         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
37868         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
37869         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
37870         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
37871         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
37872         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
37873         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
37874         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
37875         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
37876         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
37877         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
37878         (test-xfail-POSIX2008/unistd.h/linknamespace): Likewise.
37879         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
37880         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
37881         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
37882         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
37883         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
37884         (test-xfail-XOPEN2K8/grp.h/linknamespace): Likewise.
37885         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
37886         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
37887         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
37888         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
37889         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
37890         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
37891         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
37892         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
37893         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
37894         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
37895         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
37896         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
37897         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
37898         (test-xfail-XOPEN2K8/syslog.h/linknamespace): Likewise.
37899         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
37900         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
37901         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
37902
37903         [BZ #17589]
37904         * intl/localealias.c [_LIBC] (FGETS): Use __fgets_unlocked instead
37905         of fgets_unlocked.
37906
37907         [BZ #17585]
37908         * string/memmem.c [!_LIBC] (__memmem): Define to memmem.
37909         (memmem): Rename to __memmem and define as weak alias of
37910         __memmem.  Use libc_hidden_weak.
37911         (__memmem): Use libc_hidden_def.
37912         * include/string.h (__memmem): Declare.  Use libc_hidden_proto.
37913         * locale/findlocale.c (valid_locale_name): Use __memmem instead of
37914         memmem.
37915
37916         [BZ #17582]
37917         * libio/iofgets.c [weak_alias && !_IO_MTSAFE_IO]
37918         (__fgets_unlocked): Add alias of _IO_fgets.  Use libc_hidden_def.
37919         * libio/iofgets_u.c (fgets_unlocked): Rename to __fgets_unlocked
37920         and define as weak alias of __fgets_unlocked.  Use
37921         libc_hidden_weak.
37922         (__fgets_unlocked): Use libc_hidden_def.
37923         * include/stdio.h (__fgets_unlocked): Declare.  Use
37924         libc_hidden_proto.
37925         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Use
37926         __fgets_unlocked instead of fgets_unlocked.
37927         * sysdeps/unix/sysv/linux/alpha/getsysstats.c
37928         (GET_NPROCS_CONF_PARSER): Likewise.
37929         * sysdeps/unix/sysv/linux/sparc/getsysstats.c
37930         (GET_NPROCS_CONF_PARSER): Likewise.
37931
37932         [BZ #17574]
37933         * wcsmbs/wmemset.c (wmemset): Rename to __wmemset and define as
37934         weak alias of __wmemset.  Use libc_hidden_weak.
37935         (__wmemset): Use libc_hidden_def.
37936         * include/wchar.h (__wmemset): Declare.  Use libc_hidden_proto.
37937         * stdio-common/printf_fp.c (___printf_fp): Call __wmemset instead
37938         of wmemset.
37939
37940         [BZ #17573]
37941         * include/string.h [NOT_IN_libc || !SHARED] (mempcpy): Declare
37942         with asm name __mempcpy.
37943         [NOT_IN_libc || !SHARED] (stpcpy): Declare with asm name __stpcpy.
37944
37945         [BZ #17572]
37946         * sysdeps/x86_64/rawmemchr.S (rawmemchr): Rename to __rawmemchr
37947         and define as weak alias of __rawmemchr.
37948         (__rawmemchr): Do not define as strong alias of rawmemchr.
37949
37950         [BZ #17571]
37951         * stdlib/msort.c (qsort_r): Rename to __qsort_r and define as weak
37952         alias of __qsort_r.
37953         (qsort): Call __qsort_r instead of qsort_r.
37954         * include/stdlib.h (qsort_r): Do not call libc_hidden_proto.
37955         (__qsort_r): Declare.  Call libc_hidden_proto.
37956         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call __qsort_r
37957         instead of qsort_r.
37958         * nscd/gai.c (__qsort_r): Define to qsort_r.
37959         * posix/tst-rfc3484.c (__qsort_r): Likewise.
37960         * posix/tst-rfc3484-2.c (__qsort_r): Likewise.
37961         * posix/tst-rfc3484-3.c (__qsort_r): Likewise.
37962
37963         [BZ #17570]
37964         * malloc/malloc.c (malloc_info): Rename to __malloc_info and
37965         define as weak alias of __malloc_info.
37966
37967         [BZ #17584]
37968         * dirent/rewinddir.c (rewinddir): Rename to __rewinddir and define
37969         as weak alias of __rewinddir.  Don't use libc_hidden_def.
37970         (__rewinddir): Use libc_hidden_def.
37971         * sysdeps/mach/hurd/rewinddir.c: Rename to __rewinddir and define
37972         as weak alias of __rewinddir.  Don't use libc_hidden_def.
37973         (__rewinddir): Use libc_hidden_def.
37974         * sysdeps/posix/rewinddir.c: Rename to __rewinddir and define as
37975         weak alias of __rewinddir.  Don't use libc_hidden_def.
37976         (__rewinddir): Use libc_hidden_def.
37977         * include/dirent.h (rewinddir): Don't use libc_hidden_proto.
37978         (__rewinddir): Use libc_hidden_proto.
37979         * sysdeps/posix/getcwd.c [!_LIBC] (__rewinddir): Define to
37980         rewinddir.
37981         (__getcwd): Use __rewinddir instead of rewinddir.
37982
37983         [BZ #17583]
37984         * libio/fileno.c (fileno): Rename to __fileno and define as weak
37985         alias of __fileno.  Use libc_hidden_weak.
37986         (__fileno): Use libc_hidden_def.
37987         [weak_alias] (fileno_unlocked): Define as weak alias of __fileno.
37988         * libio/ftello.c (ftello): Rename to __ftello and define as weak
37989         alias of __ftello.
37990         [__OFF_T_MATCHES_OFF64_T] (ftello64): Define as weak alias of
37991         __ftello.
37992         * libio/iofread.c [weak_alias && !_IO_MTSAFE_IO]
37993         (__fread_unlocked): Define as strong alias of _IO_fread.  Use
37994         libc_hidden_def.
37995         (fread_unlocked): Don't use libc_hidden_ver.
37996         * libio/iofread_u.c (fread_unlocked): Rename to __fread_unlocked
37997         and define as weak alias of __fread_unlocked.  Don't use
37998         libc_hidden_def.
37999         (__fread_unlocked): Use libc_hidden_def.
38000         * include/stdio.h (__fileno): Declare.  Use libc_hidden_proto.
38001         (ftello): Don't use libc_hidden_proto.
38002         (__ftello): Declare.  Use libc_hidden_proto.
38003         (fread_unlocked): Don't use libc_hidden_proto.
38004         (__fread_unlocked): Declare.  Use libc_hidden_proto.
38005         * time/tzfile.c (__tzfile_read): Use __fileno, __fread_unlocked
38006         and __ftello instead of fileno, fread_unlocked and ftello.
38007
38008 2012-11-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
38009
38010         * sysdeps/s390/s390-32/bcopy.S (__bcopy): Use GOT instead of
38011         GOT12.
38012         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
38013         Likewise.
38014         (_dl_start_user): Likewise.
38015         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp): Likewise.
38016
38017 2014-11-12  Carlos O'Donell  <carlos@redhat.com>
38018             Siddhesh Poyarekar  <siddhesh@redhat.com>
38019
38020         * sysdeps/s390/s390-32/dl-machine.h (_dl_start_user):
38021         Move argv and envp down instead of moving argc up.
38022         * sysdeps/s390/s390-32/dl-sysdep.h: New file.
38023
38024 2014-11-12  Leonhard Holz  <leonhard.holz@web.de>
38025
38026         [BZ #17506]
38027         * test-skeleton.c (main): Return successful if one of
38028         EXPECTED_SIGNAL or EXPECTED_STATUS is met when both given.
38029         * string/tst-strcoll-overflow.c: Define expected status.
38030
38031 2014-11-12  Tatiana Udalova  <t.udalova@samsung.com>
38032
38033         [BZ #17475]
38034         * locale/iso-639.def: Define Bhili and Tulu language codes.
38035
38036 2014-11-11  Alan Hayward  <alan.hayward@arm.com>
38037
38038         * sysdeps/unix/sysv/linux/aarch64/bits/ipc.h: New file.
38039
38040 2014-11-10  Renlin Li  <Renlin.Li@arm.com>
38041
38042         [BZ #17555]
38043         * sysdeps/aarch64/start.S (_start): Delete x29 overwritten assignment.
38044
38045 2014-11-10  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
38046
38047         * configure.ac: Updated check of minimal required version to
38048         2.22.
38049         * manual/install.texi (Tools for Compilation): Updated version
38050         number.
38051         * configure: Regenerated.
38052         * INSTALL: Likewise.
38053
38054 2014-11-07  Andreas Schwab  <schwab@linux-m68k.org>
38055
38056         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Remove
38057         __tls_get_addr.
38058
38059 2014-11-07  Joseph Myers  <joseph@codesourcery.com>
38060
38061         * include/sys/wait.h (__libc_waitpid): Remove declaration.
38062         * posix/waitpid.c (__libc_waitpid): Rename to __waitpid.
38063         (__waitpid): Don't define as alias.  Use libc_hidden_def not
38064         libc_hidden_weak.
38065         (waitpid): Define as alias of __waitpid.
38066         * sysdeps/unix/bsd/waitpid.c (__libc_waitpid): Rename to
38067         __waitpid.
38068         (__waitpid): Don't define as alias.  Use libc_hidden_def not
38069         libc_hidden_weak.
38070         (waitpid): Define as alias of __waitpid.
38071         * sysdeps/unix/sysv/linux/i386/syscalls.list (waitpid): Remove
38072         __libc_waitpid alias.
38073         * sysdeps/unix/sysv/linux/m68k/syscalls.list (waitpid): Likewise.
38074         * sysdeps/unix/sysv/linux/powerpc/syscalls.list (waitpid):
38075         Likewise.
38076         * sysdeps/unix/sysv/linux/sh/syscalls.list (waitpid): Likewise.
38077         * sysdeps/unix/sysv/linux/sparc/syscalls.list (waitpid): Likewise.
38078         * sysdeps/unix/sysv/linux/tile/waitpid.S (__libc_waitpid): Remove
38079         alias.
38080         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Rename to
38081         __waitpid.
38082         (__waitpid): Don't define as alias.  Use libc_hidden_def not
38083         libc_hidden_weak.
38084         (waitpid): Define as alias of __waitpid.
38085
38086 2014-11-06  Carlos O'Donell  <carlos@redhat.com>
38087
38088         * manual/llio.texi: Add comment that write safety has been
38089         fixed in Linux.
38090
38091         * elf/Makefile (all-built-dso): Add $(common-objpfx)elf/ld.so.
38092         (localplt-build-dso): Add elf/ld.so.
38093         * sysdeps/unix/sysv/linux/i386/localplt.data: Add ___tls_get_addr
38094         i.e. 3 underscore version, __libc_memalign, malloc, calloc, realloc,
38095         and free for ld.so.
38096         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: Add
38097         __libc_memalign, malloc, calloc, realloc, and free for ld.so.
38098         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data:
38099         Likewise.
38100         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
38101         Likewise.
38102         * sysdeps/unix/sysv/linux/s390/localplt.data: Likewise.
38103         * sysdeps/generic/localplt.data: Add __tls_get_addr i.e. 2 underscore
38104         version, __libc_memalign, malloc, calloc, realloc and free for ld.so.
38105         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Likewise.
38106         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
38107         * sysdeps/unix/sysv/linux/alpha/localplt.data: Likewise.
38108         * sysdeps/unix/sysv/linux/ia64/localplt.data: Likewise.
38109         * sysdeps/unix/sysv/linux/m68k/localplt.data: Likewise.
38110         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
38111         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Likewise.
38112         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
38113
38114 2014-11-05  Joseph Myers  <joseph@codesourcery.com>
38115
38116         [BZ #14132]
38117         * include/libc-symbols.h (INTUSE): Remove macro.
38118         (INTDEF): Likewise.
38119         (INTVARDEF): Likewise.
38120         (_INTVARDEF): Likewise.
38121         (INTDEF2): Likewise.
38122         (INTVARDEF2): Likewise.
38123         * elf/rtld.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Use
38124         rtld_hidden_def instead of INTVARDEF.
38125         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]
38126         (_dl_starting_up_internal): Remove declaration.
38127         (_dl_starting_up): Use rtld_hidden_proto.
38128         * elf/dl-init.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Remove
38129         declaration.
38130         [!HAVE_INLINED_SYSCALLS] (_dl_starting_up_internal): Likewise.
38131         (_dl_init) [!HAVE_INLINED_SYSCALLS]: Don't use INTUSE with
38132         _dl_starting_up.
38133         * elf/dl-writev.h (_dl_writev): Likewise.
38134         * sysdeps/powerpc/powerpc64/dl-machine.h [!HAVE_INLINED_SYSCALLS]
38135         (DL_STARTING_UP_DEF): Use __GI__dl_starting_up instead of
38136         _dl_starting_up_internal.
38137
38138 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38139
38140         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
38141         test-skeleton.c.
38142
38143 2014-11-05  Will Newton  <will.newton@linaro.org>
38144
38145         * benchtests/Makefile: (bench-malloc): Add malloc thread
38146         scalability benchmark.
38147         * benchtests/bench-malloc-threads.c: New file.
38148
38149 2014-11-05  Richard Earnshaw  <rearnsha@arm.com>
38150
38151         * sysdeps/aarch64/strchrnul.S: New file.
38152
38153 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38154
38155         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Simplify
38156         definition.
38157         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
38158         Likewise.
38159         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
38160         Likewise.
38161         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
38162         Likewise.
38163         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
38164         Likewise.
38165         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
38166         Likewise.
38167
38168 2014-11-05  Arjun Shankar  <arjun.is@lostca.se>
38169
38170         * catgets/test-gencat.c: Use test-skeleton.c.
38171         * catgets/tst-catgets.c: Likewise.
38172         * csu/tst-empty.c: Likewise.
38173         * elf/tst-audit2.c: Likewise.
38174         * elf/tst-global1.c: Likewise.
38175         * elf/tst-pathopt.c: Likewise.
38176         * elf/tst-piemod1.c: Likewise.
38177         * elf/tst-tls10.c: Likewise.
38178         * elf/tst-tls11.c: Likewise.
38179         * elf/tst-tls12.c: Likewise.
38180         * gnulib/tst-gcc.c: Likewise.
38181         * iconvdata/tst-e2big.c: Likewise.
38182         * iconvdata/tst-loading.c: Likewise.
38183         * iconv/tst-iconv1.c: Likewise.
38184         * iconv/tst-iconv2.c: Likewise.
38185         * inet/test-inet6_opt.c: Likewise.
38186         * inet/tst-gethnm.c: Likewise.
38187         * inet/tst-network.c: Likewise.
38188         * inet/tst-ntoa.c: Likewise.
38189         * intl/tst-codeset.c: Likewise.
38190         * intl/tst-gettext2.c: Likewise.
38191         * intl/tst-gettext3.c: Likewise.
38192         * intl/tst-ngettext.c: Likewise.
38193         * intl/tst-translit.c: Likewise.
38194         * io/test-stat.c: Likewise.
38195         * libio/test-fmemopen.c: Likewise.
38196         * libio/tst-freopen.c: Likewise.
38197         * libio/tst-sscanf.c: Likewise.
38198         * libio/tst-ungetwc1.c: Likewise.
38199         * libio/tst-ungetwc2.c: Likewise.
38200         * libio/tst-widetext.c: Likewise.
38201         * localedata/tst-ctype.c: Likewise.
38202         * localedata/tst-digits.c: Likewise.
38203         * localedata/tst-leaks.c: Likewise.
38204         * localedata/tst-mbswcs1.c: Likewise.
38205         * localedata/tst-mbswcs2.c: Likewise.
38206         * localedata/tst-mbswcs3.c: Likewise.
38207         * localedata/tst-mbswcs4.c: Likewise.
38208         * localedata/tst-mbswcs5.c: Likewise.
38209         * localedata/tst-setlocale.c: Likewise.
38210         * localedata/tst-trans.c: Likewise.
38211         * localedata/tst-wctype.c: Likewise.
38212         * localedata/tst-xlocale1.c: Likewise.
38213         * login/tst-grantpt.c: Likewise.
38214         * malloc/tst-calloc.c: Likewise.
38215         * malloc/tst-malloc.c: Likewise.
38216         * malloc/tst-mallocstate.c: Likewise.
38217         * malloc/tst-mcheck.c: Likewise.
38218         * malloc/tst-mtrace.c: Likewise.
38219         * malloc/tst-obstack.c: Likewise.
38220         * math/atest-exp2.c: Likewise.
38221         * math/atest-exp.c: Likewise.
38222         * math/atest-sincos.c: Likewise.
38223         * math/test-matherr.c: Likewise.
38224         * math/test-misc.c: Likewise.
38225         * math/test-powl.c: Likewise.
38226         * math/tst-definitions.c: Likewise.
38227         * misc/tst-dirname.c: Likewise.
38228         * misc/tst-efgcvt.c: Likewise.
38229         * misc/tst-fdset.c: Likewise.
38230         * misc/tst-hsearch.c: Likewise.
38231         * misc/tst-mntent2.c: Likewise.
38232         * nptl/tst-sem7.c: Likewise.
38233         * nptl/tst-sem8.c: Likewise.
38234         * nptl/tst-sem9.c: Likewise.
38235         * nss/test-netdb.c: Likewise.
38236         * posix/tst-fnmatch.c: Likewise.
38237         * posix/tst-getlogin.c: Likewise.
38238         * posix/tst-gnuglob.c: Likewise.
38239         * posix/tst-mmap.c: Likewise.
38240         * pwd/tst-getpw.c: Likewise.
38241         * resolv/tst-inet_ntop.c: Likewise.
38242         * rt/tst-timer.c: Likewise.
38243         * stdio-common/test-fseek.c: Likewise.
38244         * stdio-common/test-popen.c: Likewise.
38245         * stdio-common/test-vfprintf.c: Likewise.
38246         * stdio-common/tst-cookie.c: Likewise.
38247         * stdio-common/tst-fileno.c: Likewise.
38248         * stdio-common/tst-gets.c: Likewise.
38249         * stdio-common/tst-obprintf.c: Likewise.
38250         * stdio-common/tst-perror.c: Likewise.
38251         * stdio-common/tst-sprintf2.c: Likewise.
38252         * stdio-common/tst-sprintf3.c: Likewise.
38253         * stdio-common/tst-sprintf.c: Likewise.
38254         * stdio-common/tst-swprintf.c: Likewise.
38255         * stdio-common/tst-tmpnam.c: Likewise.
38256         * stdio-common/tst-unbputc.c: Likewise.
38257         * stdio-common/tst-wc-printf.c: Likewise.
38258         * stdlib/tst-environ.c: Likewise.
38259         * stdlib/tst-fmtmsg.c: Likewise.
38260         * stdlib/tst-limits.c: Likewise.
38261         * stdlib/tst-rand48-2.c: Likewise.
38262         * stdlib/tst-rand48.c: Likewise.
38263         * stdlib/tst-random2.c: Likewise.
38264         * stdlib/tst-random.c: Likewise.
38265         * stdlib/tst-strtol.c: Likewise.
38266         * stdlib/tst-strtoll.c: Likewise.
38267         * stdlib/tst-tls-atexit.c: Likewise.
38268         * stdlib/tst-xpg-basename.c: Likewise.
38269         * string/test-ffs.c: Likewise.
38270         * string/tst-bswap.c: Likewise.
38271         * string/tst-inlcall.c: Likewise.
38272         * string/tst-strtok.c: Likewise.
38273         * string/tst-strxfrm.c: Likewise.
38274         * sysdeps/x86_64/tst-audit10.c: Likewise.
38275         * sysdeps/x86_64/tst-audit3.c: Likewise.
38276         * sysdeps/x86_64/tst-audit4.c: Likewise.
38277         * sysdeps/x86_64/tst-audit5.c: Likewise.
38278         * time/tst-ftime_l.c: Likewise.
38279         * time/tst-getdate.c: Likewise.
38280         * time/tst-mktime3.c: Likewise.
38281         * time/tst-mktime.c: Likewise.
38282         * time/tst-posixtz.c: Likewise.
38283         * time/tst-strptime2.c: Likewise.
38284         * time/tst-strptime3.c: Likewise.
38285         * wcsmbs/tst-btowc.c: Likewise.
38286         * wcsmbs/tst-mbrtowc.c: Likewise.
38287         * wcsmbs/tst-mbsrtowcs.c: Likewise.
38288         * wcsmbs/tst-wchar-h.c: Likewise.
38289         * wcsmbs/tst-wcpncpy.c: Likewise.
38290         * wcsmbs/tst-wcrtomb.c: Likewise.
38291         * wcsmbs/tst-wcsnlen.c: Likewise.
38292         * wcsmbs/tst-wcstof.c: Likewise.
38293
38294 2014-11-04  Joseph Myers  <joseph@codesourcery.com>
38295
38296         [BZ #14132]
38297         * elf/dl-profile.c (_dl_mcount): Use rtld_hidden_def instead of
38298         INTDEF.
38299         * sysdeps/generic/ldsodefs.h (_dl_mcount_internal): Remove
38300         declaration.
38301         (_dl_mcount): Use rtld_hidden_proto.
38302         * elf/dl-runtime.c (_dl_profile_fixup): Don't use INTUSE with
38303         _dl_mcount.
38304         * elf/rtld.c (_rtld_global_ro): Likewise.
38305
38306         [BZ #14132]
38307         * elf/dl-init.c (_dl_init): Don't use INTDEF.
38308         * sysdeps/aarch64/dl-machine.h (RTLD_START): Use _dl_init instead
38309         of _dl_init_internal.
38310         * sysdeps/alpha/dl-machine.h (RTLD_START): Likewise.
38311         * sysdeps/arm/dl-machine.h (RTLD_START): Likewise.
38312         * sysdeps/hppa/dl-machine.h (RTLD_START): Likewise.
38313         * sysdeps/i386/dl-machine.h (RTLD_START): Likewise.
38314         * sysdeps/ia64/dl-machine.h (RTLD_START): Likewise.
38315         * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
38316         * sysdeps/microblaze/dl-machine.h (RTLD_START): Likewise.
38317         * sysdeps/mips/dl-machine.h (RTLD_START): Likewise.
38318         * sysdeps/powerpc/powerpc32/dl-start.S (_start): Likewise.
38319         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START): Likewise.
38320         * sysdeps/s390/s390-64/dl-machine.h (RTLD_START): Likewise.
38321         * sysdeps/sh/dl-machine.h (RTLD_START): Likewise.
38322         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
38323         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
38324         * sysdeps/tile/dl-start.S (_start): Likewise.
38325         * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
38326         * sysdeps/x86_64/x32/dl-machine.h (RTLD_START): Likewise.
38327
38328         [BZ #14132]
38329         * sysdeps/generic/ldsodefs.h (_dl_argv): Use rtld_hidden_proto.
38330         [IS_IN_rtld] (_dl_argv_internal): Do not declare.
38331         (rtld_progname): Make macro definition unconditional.
38332         * elf/rtld.c (_dl_argv): Use rtld_hidden_data_def instead of
38333         INTDEF.
38334         (dlmopen_doit): Do not use INTUSE with _dl_argv.
38335         (dl_main): Likewise.
38336         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
38337         * sysdeps/alpha/dl-machine.h (RTLD_START): Use __GI__dl_argv
38338         instead of _dl_argv_internal.
38339         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
38340         __GI__dl_argv instead of INTUSE(_dl_argv).
38341         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Use
38342         __GI__dl_argv instead of _dl_argv_internal.
38343
38344         * soft-fp/op-common.h (_FP_TO_INT_ROUND): New macro.
38345         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_D): New
38346         macro.
38347         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_D): Likewise.
38348         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_E):
38349         New macro.
38350         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_E): Likewise.
38351         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_Q): New
38352         macro.
38353         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_Q): Likewise.
38354         * soft-fp/single.h (FP_TO_INT_ROUND_S): New macro.
38355
38356 2014-11-04  Andreas Schwab  <schwab@suse.de>
38357
38358         * posix/regex_internal.h: Don't include <locale/elem-hash.h>.
38359
38360 2014-11-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38361
38362         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Encode
38363         mtvsrd instruction in binary form.
38364
38365 2014-11-03  Andreas Schwab  <schwab@suse.de>
38366
38367         [BZ #17522]
38368         * libio/wfileops.c (_IO_wdo_write): If the file buffer has room
38369         for less than MB_LEN_MAX use a local buffer of that size.
38370         * libio/tst-fputws.c: New file.
38371         * libio/Makefile (tests): Add tst-fputws.
38372
38373 2014-11-01  Jose E. Marchesi  <jose.marchesi@oracle.com>
38374
38375         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu): fix
38376         the size of the fpu_fr.fpu_dregs[] array.
38377
38378 2014-11-01  Joseph Myers  <joseph@codesourcery.com>
38379
38380         * posix/nanosleep.c (__libc_nanosleep): Rename to __nanosleep.
38381         (__nanosleep): Do not define as alias.
38382         (nanosleep): Define as alias of __nanosleep.
38383         * sysdeps/unix/sysv/linux/syscalls.list (nanosleep): Remove
38384         __libc_nanosleep name.
38385
38386 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
38387
38388         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): Mention need to update
38389         install.texi in comment.
38390
38391 2014-10-31  Torvald Riegel  <triegel@redhat.com>
38392
38393         * sysdeps/powerpc/bits/atomic.h (atomic_write_barrier): Remove and...
38394         * sysdeps/powerpc/powerpc32/bits/atomic.h (atomic_write_barrier):
38395         ... add here and use lwsync or sync ...
38396         * sysdeps/powerpc/powerpc64/bits/atomic.h (atomic_write_barrier):
38397         ... and add here using lwsync.
38398
38399 2014-10-31  Matthew Fortune  <matthew.fortune@imgtec.com>
38400
38401         * elf/dl-machine-reject-phdr.h: New file.
38402         * elf/dl-load.c: #include that.
38403         (open_verify): Call elf_machine_reject_phdr_p and ignore the file
38404         if that returned true.
38405
38406 2014-10-31  Roland McGrath  <roland@hack.frob.com>
38407
38408         [BZ #17496]
38409         * Makerules: Move gnu/lib-names.h generation chunk up, to right after
38410         gen-as-const-headers chunk.  Add a big scare comment after the last
38411         safe place to touch before-compile.
38412
38413 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
38414
38415         * manual/install.texi (Tools for Compilation): Update autoconf
38416         version requirements.
38417         * INSTALL: Regenerated.
38418
38419         * misc/pselect.c [!__pselect] (__libc_pselect): Remove alias.
38420         * sysdeps/unix/sysv/linux/pselect.c [__NR_pselect6]
38421         (__libc_pselect): Likewise.
38422
38423         [BZ #14138]
38424         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Remove file.
38425         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
38426         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
38427         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
38428
38429 2014-10-31  Torvald Riegel  <triegel@redhat.com>
38430
38431         * sysdeps/sparc/sparc32/bits/atomic.h (atomic_write_barrier): Use
38432         correct barrier instruction.
38433         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_write_barrier):
38434         Likewise.
38435         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_write_barrier):
38436         Likewise.
38437
38438 2014-10-30  Roland McGrath  <roland@hack.frob.com>
38439
38440         * include/ctype.h: Include <ctype/ctype.h> first thing rather than
38441         after defining inlines.  Instead, just use parens to defeat macro
38442         expansion of __isctype in its declaration.
38443
38444 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
38445
38446         * include/sys/uio.h (__libc_readv): Remove declaration.
38447         (__libc_writev): Likewise.
38448         * misc/readv.c (__libc_readv): Rename to __readv.
38449         (__readv): Do not define as alias.
38450         (readv): Define as alias of __readv.
38451         * misc/writev.c (__libc_writev): Rename to __writev.
38452         (__writev): Do not define as alias.
38453         (writev): Define as alias of __writev.
38454         * sysdeps/posix/readv.c (__libc_readv): Rename to __readv.
38455         (__readv): Do not define as alias.
38456         (readv): Define unconditionally as alias of __readv.
38457         * sysdeps/posix/writev.c (__libc_writev): Rename to __writev.
38458         (__writev): Do not define as alias.
38459         (writev): Define unconditionally as alias of __writev.
38460         * sysdeps/unix/syscalls.list (readv): Do not define __libc_readv
38461         name.
38462         (writev): Do not define __libc_writev name.
38463
38464 2014-10-30  Roland McGrath  <roland@hack.frob.com>
38465
38466         * iconv/iconv_charmap.c (add_bytes): Make IN argument pointer to const.
38467         (convert_charseq): New function, broken out of ...
38468         (use_from_charmap): ... here.  Call it.
38469         (use_to_charmap): Use convert_charseq and free instead of duplicating
38470         its code with a variable-length stack struct.
38471
38472 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
38473
38474         * include/fcntl.h (__libc_creat): Remove declaration.
38475         * io/creat.c (__libc_creat): Rename to creat.
38476         (creat): Do not define as alias.
38477         * sysdeps/unix/sysv/linux/alpha/creat.c (creat64): Define as alias
38478         of creat instead of __libc_creat.
38479         * sysdeps/unix/sysv/linux/generic/creat.c (__libc_creat): Rename
38480         to creat.
38481         (creat): Do not define as alias.
38482         [__WORDSIZE == 64] (creat64): Define as alias of creat instead of
38483         __libc_creat.
38484         * sysdeps/unix/sysv/linux/syscalls.list (creat): Do not define
38485         __libc_creat name.
38486         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (creat):
38487         Likewise.
38488
38489 2014-10-29  Carlos O'Donell  <carlos@redhat.com>
38490
38491         * manual/llio.texi: Add comments discussing why write() may be
38492         considered MT-unsafe on Linux.
38493
38494 2014-10-28  Carlos O'Donell  <carlos@redhat.com>
38495
38496         * dl-load.c (local_strdup): Remove.
38497         (expand_dynamic_string_token): Use __strdup.
38498         (decompose_rpath): Likewise.
38499         (_dl_map_object): Likewise.
38500
38501 2014-10-28  Joseph Myers  <joseph@codesourcery.com>
38502
38503         [BZ #14132]
38504         * sysdeps/generic/unwind-dw2-fde.c
38505         (__register_frame_info_bases_internal): Do not declare.
38506         (__register_frame_info_table_bases_internal): Likewise.
38507         (__deregister_frame_info_bases_internal): Likewise.
38508         (__register_frame_info_bases): Declare and use hidden_proto before
38509         definition.  Use hidden_def instead of INTDEF.
38510         (__register_frame_info_table_bases): Likewise.
38511         (__deregister_frame_info_bases): Likewise.
38512         (__register_frame_info): Do not use INTUSE.
38513         (__register_frame): Likewise.
38514         (__register_frame_info_table): Likewise.
38515         (__register_frame_table): Likewise.
38516         (__deregister_frame_info): Likewise.
38517         (__deregister_frame): Likewise.
38518
38519 2014-10-27  Gratian Crisan  <gratian.crisan@ni.com>
38520
38521         * sysdeps/unix/sysv/linux/arm/kernel-features.h
38522         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_FUTEX_LOCK_PI): Do
38523         not undefine.
38524         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_REQUEUE_PI):
38525         Likewise.
38526         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_SET_ROBUST_LIST):
38527         Likewise.
38528
38529 2014-10-27  Joseph Myers  <joseph@codesourcery.com>
38530
38531         [BZ #14138]
38532         * sysdeps/unix/sysv/linux/arm/setfsgid.c: Remove file.
38533         * sysdeps/unix/sysv/linux/arm/setfsuid.c: Likewise.
38534         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
38535         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
38536         * sysdeps/unix/sysv/linux/m68k/setfsgid.c: Likewise.
38537         * sysdeps/unix/sysv/linux/m68k/setfsuid.c: Likewise.
38538         * sysdeps/unix/sysv/linux/s390/s390-32/setfsgid.c: Likewise.
38539         * sysdeps/unix/sysv/linux/s390/s390-32/setfsuid.c: Likewise.
38540         * sysdeps/unix/sysv/linux/sh/setfsgid.c: Likewise.
38541         * sysdeps/unix/sysv/linux/sh/setfsuid.c: Likewise.
38542         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsgid.c: Likewise.
38543         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsuid.c: Likewise.
38544         * sysdeps/unix/sysv/linux/arm/syscalls.list (setfsgid): Add
38545         syscall.
38546         (setfsuid): Likewise.
38547         * sysdeps/unix/sysv/linux/i386/syscalls.list (setfsgid): Likewise.
38548         (setfsuid): Likewise.
38549         * sysdeps/unix/sysv/linux/m68k/syscalls.list (setfsgid): Likewise.
38550         (setfsuid): Likewise.
38551         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setfsgid):
38552         Likewise.
38553         (setfsuid): Likewise.
38554         * sysdeps/unix/sysv/linux/sh/syscalls.list (setfsgid): Likewise.
38555         (setfsuid): Likewise.
38556         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (setfsgid):
38557         Likewise.
38558         (setfsuid): Likewise.
38559
38560 2014-10-27  Andreas Schwab  <schwab@suse.de>
38561
38562         [BZ #17501]
38563         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Fix
38564         check for Slow_SSE4_2 feature bit.
38565         * sysdeps/i386/i686/multiarch/strcmp.S (STRCMP): Likewise.
38566         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
38567         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP, __strcascmp):
38568         Likewise.  Fix check for Fast_Unaligned_Load feature bit.
38569
38570 2014-10-24  Roland McGrath  <roland@hack.frob.com>
38571
38572         * configure.ac: Validate compiler version with a empirical test of
38573         __GNUC__ and __GNUC_MINOR__ predefined values, rather than by grepping
38574         $CC -v output.
38575         * configure: Regenerated.
38576
38577         * inet/htons.c (htons): Prototypify.
38578         * inet/htonl.c (htonl): Likewise.
38579
38580 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
38581
38582         * string/strncat.c (strncat): Improve performance by using strlen.
38583
38584 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
38585
38586         * string/strcat.c (strcat): Improve performance by using strlen/strcpy.
38587
38588 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
38589
38590         * sysdeps/aarch64/fpu/fgetexcptflg.c (fegetexceptflag):
38591         Call libc_fetestexcept_aarch64.
38592
38593 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
38594
38595         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept):
38596         Call libc_feholdexcept_aarch64.
38597
38598 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
38599
38600         * sysdeps/aarch64/fpu/fegetround.c (fegetround):
38601         Call get_rounding_mode.
38602
38603 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
38604
38605         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
38606         Simplify logic.
38607
38608 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
38609
38610         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept):
38611         Simplify logic.
38612
38613 2014-10-24  Joseph Myers  <joseph@codesourcery.com>
38614
38615         [BZ #14138]
38616         * sysdeps/unix/sysv/linux/arm/getegid.c: Remove file.
38617         * sysdeps/unix/sysv/linux/arm/geteuid.c: Likewise.
38618         * sysdeps/unix/sysv/linux/arm/getgid.c: Likewise.
38619         * sysdeps/unix/sysv/linux/arm/getgroups.c: Likewise.
38620         * sysdeps/unix/sysv/linux/arm/getresgid.c: Likewise.
38621         * sysdeps/unix/sysv/linux/arm/getresuid.c: Likewise.
38622         * sysdeps/unix/sysv/linux/arm/getuid.c: Likewise.
38623         * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
38624         * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
38625         * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
38626         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
38627         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
38628         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
38629         * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
38630         * sysdeps/unix/sysv/linux/m68k/getegid.c: Likewise.
38631         * sysdeps/unix/sysv/linux/m68k/geteuid.c: Likewise.
38632         * sysdeps/unix/sysv/linux/m68k/getgid.c: Likewise.
38633         * sysdeps/unix/sysv/linux/m68k/getgroups.c: Likewise.
38634         * sysdeps/unix/sysv/linux/m68k/getresgid.c: Likewise.
38635         * sysdeps/unix/sysv/linux/m68k/getresuid.c: Likewise.
38636         * sysdeps/unix/sysv/linux/m68k/getuid.c: Likewise.
38637         * sysdeps/unix/sysv/linux/s390/s390-32/getegid.c: Likewise.
38638         * sysdeps/unix/sysv/linux/s390/s390-32/geteuid.c: Likewise.
38639         * sysdeps/unix/sysv/linux/s390/s390-32/getgid.c: Likewise.
38640         * sysdeps/unix/sysv/linux/s390/s390-32/getgroups.c: Likewise.
38641         * sysdeps/unix/sysv/linux/s390/s390-32/getresgid.c: Likewise.
38642         * sysdeps/unix/sysv/linux/s390/s390-32/getresuid.c: Likewise.
38643         * sysdeps/unix/sysv/linux/s390/s390-32/getuid.c: Likewise.
38644         * sysdeps/unix/sysv/linux/sh/getegid.c: Likewise.
38645         * sysdeps/unix/sysv/linux/sh/geteuid.c: Likewise.
38646         * sysdeps/unix/sysv/linux/sh/getgid.c: Likewise.
38647         * sysdeps/unix/sysv/linux/sh/getgroups.c: Likewise.
38648         * sysdeps/unix/sysv/linux/sh/getresgid.c: Likewise.
38649         * sysdeps/unix/sysv/linux/sh/getresuid.c: Likewise.
38650         * sysdeps/unix/sysv/linux/sh/getuid.c: Likewise.
38651         * sysdeps/unix/sysv/linux/sparc/sparc32/getegid.c: Likewise.
38652         * sysdeps/unix/sysv/linux/sparc/sparc32/geteuid.c: Likewise.
38653         * sysdeps/unix/sysv/linux/sparc/sparc32/getgid.c: Likewise.
38654         * sysdeps/unix/sysv/linux/sparc/sparc32/getgroups.c: Likewise.
38655         * sysdeps/unix/sysv/linux/sparc/sparc32/getuid.c: Likewise.
38656         * sysdeps/unix/sysv/linux/arm/syscalls.list (getegid): Add
38657         syscall.
38658         (geteuid): Likewise.
38659         (getgid): Likewise.
38660         (getuid): Likewise.
38661         (getresgid): Likewise.
38662         (getresuid): Likewise.
38663         (getgroups): Likewise.
38664         * sysdeps/unix/sysv/linux/i386/syscalls.list (getegid): Likewise.
38665         (geteuid): Likewise.
38666         (getgid): Likewise.
38667         (getuid): Likewise.
38668         (getresgid): Likewise.
38669         (getresuid): Likewise.
38670         (getgroups): Likewise.
38671         * sysdeps/unix/sysv/linux/m68k/syscalls.list (getegid): Likewise.
38672         (geteuid): Likewise.
38673         (getgid): Likewise.
38674         (getuid): Likewise.
38675         (getresgid): Likewise.
38676         (getresuid): Likewise.
38677         (getgroups): Likewise.
38678         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (getegid):
38679         Likewise.
38680         (geteuid): Likewise.
38681         (getgid): Likewise.
38682         (getuid): Likewise.
38683         (getresgid): Likewise.
38684         (getresuid): Likewise.
38685         (getgroups): Likewise.
38686         * sysdeps/unix/sysv/linux/sh/syscalls.list (getegid): Likewise.
38687         (geteuid): Likewise.
38688         (getgid): Likewise.
38689         (getuid): Likewise.
38690         (getresgid): Likewise.
38691         (getresuid): Likewise.
38692         (getgroups): Likewise.
38693         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (getegid):
38694         Likewise.
38695         (geteuid): Likewise.
38696         (getgid): Likewise.
38697         (getuid): Likewise.
38698         (getgroups): Likewise.
38699
38700         [BZ #14138]
38701         * sysdeps/unix/sysv/linux/i386/chown.c: Remove file.
38702         * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
38703         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
38704         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
38705         * sysdeps/unix/sysv/linux/s390/s390-32/fchown.c: Remove file.
38706         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
38707         * sysdeps/unix/sysv/linux/sh/chown.c: Likewise.
38708         * sysdeps/unix/sysv/linux/sh/fchown.c: Likewise.
38709         * sysdeps/unix/sysv/linux/sh/lchown.c: Likewise.
38710         * sysdeps/unix/sysv/linux/sparc/sparc32/chown.c: Likewise.
38711         * sysdeps/unix/sysv/linux/sparc/sparc32/fchown.c: Likewise.
38712         * sysdeps/unix/sysv/linux/sparc/sparc32/lchown.c: Likewise.
38713         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (GLIBC_2.1): Add
38714         __chown.
38715         * sysdeps/unix/sysv/linux/i386/syscalls.list (chown): Add syscall.
38716         (lchown): Likewise.
38717         (fchown): Likewise.
38718         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (chown):
38719         Likewise.
38720         (lchown): Likewise.
38721         (fchown): Likewise.
38722         * sysdeps/unix/sysv/linux/sh/syscalls.list (chown): Likewise.
38723         (lchown): Likewise.
38724         (fchown): Likewise.
38725         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (chown):
38726         Likewise.
38727         (lchown): Likewise.
38728         (fchown): Likewise.
38729
38730 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
38731
38732         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept):
38733         Simplify logic.
38734
38735 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
38736
38737         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
38738         Cleanup logic.
38739
38740 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
38741
38742         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
38743         Remove unused include.
38744
38745 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
38746
38747         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Remove spaces.
38748         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Remove spaces.
38749         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Remove spaces.
38750         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Remove spaces.
38751
38752 2014-10-23  Carlos O'Donell  <carlos@systemhalted.org>
38753             Helge Deller <deller@gmx.de>
38754
38755         [BZ #17508]
38756         * sysdeps/unix/sysv/linux/hppa/bits/signum.h: Remove SIGEMT.
38757         Define SIGSTKFLT as 7. Define SIGSYS as 31. Define SIGXCPU as 12.
38758         Remove SIGLOST. Define SIGXFSZ as 30. Define __SIGRTMIN as 32.
38759
38760 2014-10-23  Joseph Myers  <joseph@codesourcery.com>
38761
38762         [BZ #14132]
38763         * sysdeps/powerpc/powerpc32/libgcc-compat.S (__ashldi3_v_glibc20):
38764         Remove macro definition.
38765         (__ashrdi3_v_glibc20): Likewise.
38766         (__lshrdi3_v_glibc20): Likewise.
38767         (__cmpdi2_v_glibc20): Likewise.
38768         (__ucmpdi2_v_glibc20): Likewise.
38769         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixdfdi_v_glibc20): Likewise.
38770         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
38771         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
38772         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
38773         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
38774         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdisf_v_glibc20): Likewise.
38775
38776 2014-10-22  Roland McGrath  <roland@hack.frob.com>
38777
38778         * inet/netgroup.h (struct name_list): Use C99 [] syntax rather than
38779         old GNU extension [0] syntax.
38780         * nscd/nscd_helper.c (open_socket): Use a flexible array member and
38781         alloca rather than an array member with variable length.
38782         * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
38783         * nscd/nscd.c (invalidate_db): New function, broken out of ...
38784         (parse_opt): ... here.  Likewise use alloca there.
38785         Validate the -i argument before checking for rootness.
38786         (send_shutdown): New function, broken out of ...
38787         (parse_opt): ... here.
38788
38789 2014-10-22  Roland McGrath  <roland@hack.frob.com>
38790
38791         * sysdeps/arm/__longjmp.S [NEED_HWCAP] [IS_IN_rtld]: Use LDST_PCREL
38792         macro to get at the _rt_local_ro field.
38793         [NEED_HWCAP] [!IS_IN_rtld]: Use LDR_GLOBAL to get at _rtld_global_ro
38794         ([PIC] case) or _dl_hwcap ([!PIC] case).
38795         * sysdeps/arm/setjmp.S: Likewise.
38796
38797         * config.h.in (ARM_PCREL_MOVW_OK): New macro.
38798         * sysdeps/arm/configure.ac: New check to define it.
38799         * sysdeps/arm/configure: Regenerated.
38800         * sysdeps/arm/sysdep.h [__ASSEMBLER__]: Include <arm-features.h>.
38801         (LDST_INDEXED_NOINDEX, LDST_INDEXED_INDEX): New macros.
38802         (LDST_INDEXED, LDST_PC_INDEXED): New macros, differing definitions
38803         depending on [ARM_NO_INDEX_REGISTER] and [__thumb2__].
38804         (LDST_PCREL) [!__thumb2__ && ARCH_HAS_T2 && ARM_PCREL_MOVW_OK]:
38805         Use move/movt pair instead of a load.
38806         (LDST_GLOBAL): Macro removed.
38807         (LDR_GLOBAL): New macro replaces it.
38808         (LDR_HIDDEN): New macro.
38809         (PTR_MANGLE_LOAD): Use LDR_GLOBAL rather than LDST_GLOBAL.
38810         Use LDR_HIDDEN instead for __pointer_chk_guard_local.
38811
38812         * setjmp/tst-setjmp-static.c: New file.
38813         * setjmp/Makefile (tests): Add it.
38814         (tests-static): New variable.
38815
38816 2014-10-22  Maciej W. Rozycki  <macro@codesourcery.com>
38817
38818         [BZ #17485]
38819         * sysdeps/unix/sysv/linux/mips/vfork.S (__libc_vfork): Define.
38820
38821 2014-10-21  Joseph Myers  <joseph@codesourcery.com>
38822
38823         [BZ #14132]
38824         * math/s_ldexpf.c (__ldexpf): Do not use INTDEF.
38825
38826 2014-10-21  Roland McGrath  <roland@hack.frob.com>
38827
38828         * nptl/version.c (__nptl_main): Call __libc_write, not __write.
38829
38830 2014-10-20  Roland McGrath  <roland@hack.frob.com>
38831
38832         * io/fts.c (dirent_not_directory): New function.
38833         (fts_build): Call it.
38834
38835 2014-10-20  Roland McGrath  <roland@hack.frob.com>
38836
38837         * nptl/version.c (__nptl_main): Use normal __write rather than
38838         INTERNAL_SYSCALL.
38839         (banner): Update copyright years.
38840
38841         * nptl/pthread_rwlock_timedrdlock.c: #include <sys/time.h> before using
38842         gettimeofday.
38843         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
38844         * nptl/pthread_cond_timedwait.c: Likewise.
38845         * nptl/pthread_mutex_timedlock.c: Likewise.
38846         * nptl/sem_timedwait.c: Likewise.
38847
38848         * sysdeps/nptl/bits/libc-lock.h
38849         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
38850         (__libc_lock_init_recursive): Return void, not 0.
38851         * sysdeps/nptl/bits/libc-lockP.h (__libc_lock_init): Likewise.
38852         (__libc_rwlock_init): Likewise.
38853         * sysdeps/nptl/bits/stdio-lock.h (_IO_lock_init): Likewise.
38854
38855 2014-10-20  Torvald Riegel  <triegel@redhat.com>
38856
38857         [BZ #15215]
38858         * nptl/pthread_once.c (__pthread_once): Split out fast path to ...
38859         (__pthread_once_slow): ... here.
38860         * sysdeps/unix/sysv/linux/i386/pthread_once.S: Remove file.
38861         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Remove file.
38862
38863 2014-10-20  Torvald Riegel  <triegel@redhat.com>
38864
38865         [BZ #15215]
38866         * nptl/pthreadP.h (__PTHREAD_ONCE_INPROGRESS, __PTHREAD_ONCE_DONE,
38867         __PTHREAD_ONCE_FORK_GEN_INCR): New.
38868         * sysdeps/nptl/fork.c (__libc_fork): Use them.
38869         * nptl/pthread_once.c (__pthread_once): Likewise.
38870         Update comments.
38871
38872 2014-10-20  Joseph Myers  <joseph@codesourcery.com>
38873
38874         [BZ #14138]
38875         * sysdeps/unix/syscalls.list (readv): Use __libc_readv as strong
38876         name.
38877         (writev): Use __libc_writev as strong name.
38878         * sysdeps/unix/sysv/linux/readv.c: Remove file.
38879         * sysdeps/unix/sysv/linux/writev.c: Likewise.
38880
38881 2014-10-17  Roland McGrath  <roland@hack.frob.com>
38882
38883         * nptl/createthread.c (TLS_DEFINE_INIT_TP, TLS_VALUE): Macros removed.
38884
38885         * sysdeps/i386/nptl/tls.h
38886         (THREAD_SELF_SYSINFO, THREAD_SYSINFO): Macros removed.
38887         [NEED_DL_SYSINFO] (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO):
38888         New macros.
38889         * sysdeps/ia64/nptl/tls.h [NEED_DL_SYSINFO]
38890         (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO): New macros.
38891         * nptl/allocatestack.c (allocate_stack) [NEED_DL_SYSINFO]:
38892         Call SETUP_THREAD_SYSINFO instead of doing an assignment.
38893         * nptl/createthread.c (create_thread) [NEED_DL_SYSINFO]:
38894         Call CHECK_THREAD_SYSINFO instead of doing an assert.
38895
38896         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
38897         Conditionalize FUTEX_PRIVATE_FLAG and FUTEX_CLOCK_REALTIME probes
38898         on [__NR_futex].
38899         * nptl/pthread_mutex_init.c (prio_inherit_missing): New function,
38900         broken out of ...
38901         (__pthread_mutex_init): ... here.  Call it.
38902         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full):
38903         Conditionalize PI cases on [__NR_futex].
38904         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
38905         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
38906         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
38907
38908         * nptl/nptl-init.c (sighandler_setxid, __xidcmd): Make definitions
38909         conditional on [SIGSETXID].
38910         (sigcancel_handler): Make definition conditional on [SIGCANCEL].
38911         (__pthread_initialize_minimal_internal): Set up SIGCANCEL only if it
38912         is defined.  Likewise for SIGSETXID.
38913         * nptl/allocatestack.c (setxid_mark_thread, setxid_unmark_thread):
38914         Conditionalize definitions on [SIGSETXID].
38915         (setxid_signal_thread, __nptl_setxid_error, __nptl_setxid): Likewise.
38916         * nptl/pthread_create.c (start_thread): Conditionalize SIGCANCEL
38917         unblocking on [SIGCANCEL].
38918
38919         * nptl/nptl-init.c (__nptl_set_robust): Conditionalize body on
38920         [__NR_set_robust_list].
38921
38922 2014-10-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
38923
38924         * string/strcoll_l.c (get_next_seq): Fix up formatting.
38925         (do_compare): Likewise.
38926
38927 2014-10-17  Leonhard Holz  <leonhard.holz@web.de>
38928
38929         [BZ #15884]
38930         * string/strcoll_l.c: Don't include stdio.h.
38931         (coll_seq): Remove members idxarr and rulearr.
38932         (get_next_seq_cached): Remove function.
38933         (get_next_seq): Likewise.
38934         (get_next_seq_nocache): Rename to get_next_seq.
38935         (do_compare): Remove function.
38936         (do_compare_nocache): Rename to do_compare.
38937         (STRCOLL): Remove weight and rules cache.
38938
38939 2014-10-16  Roland McGrath  <roland@hack.frob.com>
38940
38941         * sysdeps/arm/soft-fp/sfp-machine.h: Filed moved ...
38942         * sysdeps/arm/sfp-machine.h: ... to here.
38943         * sysdeps/arm/Implies: Remove arm/soft-fp.
38944
38945 2014-10-14  Joseph Myers  <joseph@codesourcery.com>
38946
38947         * conform/data/sys/utsname.h-data (*_t): Allow.
38948         * conform/data/sys/wait.h-data [POSIX] (uid_t): Do not define.
38949         [POSIX] (WEXITED): Do not expect constant.
38950         [POSIX] (WSTOPPED): Likewise.
38951         [POSIX] (WNOHANG): Likewise.
38952         [POSIX] (WNOWAIT): Likewise.
38953         [POSIX] (siginfo_t): Do not expect type or elements.
38954         [POSIX] (pid_t): Do not expect type.
38955         [POSIX] (signal.h): Do not allow header.
38956         [POSIX] (sys/resource.h): Likewise.
38957         [POSIX] (si_*): Do not allow pattern.
38958         [POSIX] (W*): Likewise.
38959         [POSIX] (P_*): Likewise.
38960         [POSIX] (BUS_*): Likewise.
38961         [POSIX] (CLD_*): Likewise.
38962         [POSIX] (FPE_*): Likewise.
38963         [POSIX] (ILL_*): Likewise.
38964         [POSIX] (POLL_*): Likewise.
38965         [POSIX] (SEGV_*): Likewise.
38966         [POSIX] (SI_*): Likewise.
38967         [POSIX] (TRAP_*): Likewise.
38968         * conform/Makefile (test-xfail-POSIX/sys/wait.h/conform): New
38969         variable.
38970
38971 2014-10-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
38972
38973         [BZ #12926]
38974         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Avoid
38975         infinite loop when __recvmsg returns 0.
38976
38977 2014-10-10  Joseph Myers  <joseph@codesourcery.com>
38978
38979         * CANCEL-FCT-WAIVE: Remove file.
38980         * CANCEL-FILE-WAIVE: Likewise.
38981
38982         [BZ #14132]
38983         * elf/dl-sysdep.c (__libc_enable_secure): Use rtld_hidden_data_def
38984         instead of INTVARDEF.
38985         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
38986         * sysdeps/mach/hurd/dl-sysdep.c (__libc_enable_secure): Use
38987         rtld_hidden_data_def instead of INTVARDEF.
38988         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
38989         * elf/dl-deps.c (expand_dst): Likewise.
38990         * elf/dl-load.c (_dl_dst_count): Likewise.
38991         (_dl_dst_substitute): Likewise.
38992         (decompose_rpath): Likewise.
38993         (_dl_init_paths): Likewise.
38994         (open_path): Likewise.
38995         (_dl_map_object): Likewise.
38996         * elf/rtld.c (dl_main): Likewise.
38997         (process_dl_audit): Likewise.
38998         (process_envvars): Likewise.
38999         * include/unistd.h [IS_IN_rtld] (__libc_enable_secure_internal):
39000         Remove declaration.
39001         (__libc_enable_secure): Use rtld_hidden_proto.
39002
39003 2014-10-09  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
39004
39005         * elf/dl-load.c
39006         (add_path): New function broken out of _dl_rtld_di_serinfo.
39007         (_dl_rtld_di_serinfo): Remove that nested function.  Update call sites.
39008
39009 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
39010
39011         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_D): Use
39012         parentheses around macro arguments.
39013         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_DP): Likewise.
39014         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_D): Likewise.
39015         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_DP): Likewise.
39016         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_D): Likewise.
39017         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_DP): Likewise.
39018         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_D): Likewise.
39019         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
39020         [_FP_W_TYPE_SIZE < 64] (FP_PACK_D): Likewise.
39021         [_FP_W_TYPE_SIZE < 64] (FP_PACK_DP): Likewise.
39022         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_D): Likewise.
39023         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_DP): Likewise.
39024         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_D): Likewise.
39025         [_FP_W_TYPE_SIZE < 64] (FP_CMP_D): Likewise.
39026         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_D): Likewise.
39027         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_D): Likewise.
39028         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_D): Likewise.
39029         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_D): Likewise.
39030         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_D): Likewise.
39031         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_DP): Likewise.
39032         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_D): Likewise.
39033         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_DP): Likewise.
39034         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_D): Likewise.
39035         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_DP): Likewise.
39036         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D): Likewise.
39037         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
39038         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_D): Likewise.
39039         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_DP): Likewise.
39040         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_D): Likewise.
39041         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_DP): Likewise.
39042         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_D): Likewise.
39043         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_D): Likewise.
39044         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_D): Likewise.
39045         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_D): Likewise.
39046         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_D): Likewise.
39047         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_D): Likewise.
39048         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_E):
39049         Likewise.
39050         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_EP): Likewise.
39051         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_E): Likewise.
39052         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
39053         [_FP_W_TYPE_SIZE < 64] (FP_PACK_E): Likewise.
39054         [_FP_W_TYPE_SIZE < 64] (FP_PACK_EP): Likewise.
39055         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_E): Likewise.
39056         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_EP): Likewise.
39057         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_E): Likewise.
39058         [_FP_W_TYPE_SIZE < 64] (FP_CMP_E): Likewise.
39059         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_E): Likewise.
39060         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_E): Likewise.
39061         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_E): Likewise.
39062         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_E): Likewise.
39063         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_E): Likewise.
39064         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_EP): Likewise.
39065         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_E): Likewise.
39066         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
39067         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_E): Likewise.
39068         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_EP): Likewise.
39069         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_E): Likewise.
39070         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_EP): Likewise.
39071         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_E): Likewise.
39072         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_E): Likewise.
39073         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_E): Likewise.
39074         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_E): Likewise.
39075         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_E): Likewise.
39076         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_E): Likewise.
39077         * soft-fp/op-1.h (_FP_FRAC_SRST_1): Likewise.
39078         (_FP_FRAC_SRS_1): Likewise.
39079         (_FP_FRAC_CLZ_1): Likewise.
39080         (_FP_MUL_MEAT_1_imm): Likewise.
39081         (_FP_MUL_MEAT_1_wide): Likewise.
39082         (_FP_MUL_MEAT_1_hard): Likewise.
39083         (_FP_SQRT_MEAT_1): Likewise.
39084         (_FP_FRAC_ASSEMBLE_1): Likewise.
39085         (_FP_FRAC_DISASSEMBLE_1): Likewise.
39086         * soft-fp/op-2.h (_FP_FRAC_CLZ_2): Likewise.
39087         (__FP_CLZ_2): Likewise.
39088         (_FP_MUL_MEAT_2_wide): Likewise.
39089         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
39090         (_FP_MUL_MEAT_2_gmp): Likewise.
39091         (_FP_MUL_MEAT_2_120_240_double): Likewise.
39092         (_FP_SQRT_MEAT_2): Likewise.
39093         (_FP_FRAC_ASSEMBLE_2): Likewise.
39094         (_FP_FRAC_DISASSEMBLE_2): Likewise.
39095         * soft-fp/op-4.h (_FP_FRAC_SRS_4): Likewise.
39096         (_FP_FRAC_CLZ_4): Likewise.
39097         (_FP_MUL_MEAT_4_wide): Likewise.
39098         (_FP_MUL_MEAT_4_gmp): Likewise.
39099         (_FP_SQRT_MEAT_4): Likewise.
39100         (_FP_FRAC_ASSEMBLE_4): Likewise.
39101         (_FP_FRAC_DISASSEMBLE_4): Likewise.
39102         * soft-fp/op-common.h (_FP_CMP): Likewise.
39103         (_FP_CMP_EQ): Likewise.
39104         (_FP_CMP_UNORD): Likewise.
39105         (_FP_TO_INT): Likewise.
39106         (_FP_FROM_INT): Likewise.
39107         [!__FP_CLZ] (__FP_CLZ): Likewise.
39108         (_FP_DIV_HELP_imm): Likewise.
39109         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_Q):
39110         Likewise.
39111         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_QP): Likewise.
39112         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_Q): Likewise.
39113         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_QP): Likewise.
39114         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_Q): Likewise.
39115         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_QP): Likewise.
39116         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
39117         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
39118         [_FP_W_TYPE_SIZE < 64] (FP_PACK_Q): Likewise.
39119         [_FP_W_TYPE_SIZE < 64] (FP_PACK_QP): Likewise.
39120         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_Q): Likewise.
39121         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_QP): Likewise.
39122         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_Q): Likewise.
39123         [_FP_W_TYPE_SIZE < 64] (FP_CMP_Q): Likewise.
39124         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_Q): Likewise.
39125         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_Q): Likewise.
39126         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_Q): Likewise.
39127         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_Q): Likewise.
39128         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_Q): Likewise.
39129         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_QP): Likewise.
39130         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_Q): Likewise.
39131         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_QP): Likewise.
39132         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_Q): Likewise.
39133         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_QP): Likewise.
39134         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
39135         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
39136         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_Q): Likewise.
39137         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_QP): Likewise.
39138         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_Q): Likewise.
39139         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_QP): Likewise.
39140         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_Q): Likewise.
39141         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_Q): Likewise.
39142         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_Q): Likewise.
39143         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_Q): Likewise.
39144         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_Q): Likewise.
39145         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_Q): Likewise.
39146         * soft-fp/single.h (FP_UNPACK_RAW_S): Likewise.
39147         (FP_UNPACK_RAW_SP): Likewise.
39148         (FP_PACK_RAW_S): Likewise.
39149         (FP_PACK_RAW_SP): Likewise.
39150         (FP_UNPACK_S): Likewise.
39151         (FP_UNPACK_SP): Likewise.
39152         (FP_UNPACK_SEMIRAW_S): Likewise.
39153         (FP_UNPACK_SEMIRAW_SP): Likewise.
39154         (FP_PACK_S): Likewise.
39155         (FP_PACK_SP): Likewise.
39156         (FP_PACK_SEMIRAW_S): Likewise.
39157         (FP_PACK_SEMIRAW_SP): Likewise.
39158         (_FP_SQRT_MEAT_S): Likewise.
39159         (FP_CMP_S): Likewise.
39160         (FP_CMP_EQ_S): Likewise.
39161         (FP_CMP_UNORD_S): Likewise.
39162         (FP_TO_INT_S): Likewise.
39163         (FP_FROM_INT_S): Likewise.
39164
39165         * soft-fp/op-common.h (_FP_TO_INT): Handle rsigned == 2.
39166
39167         * soft-fp/soft-fp.h (FP_EX_INVALID_SNAN): New macro.
39168         (FP_EX_INVALID_IMZ): Likewise.
39169         (FP_EX_INVALID_IMZ_FMA): Likewise.
39170         (FP_EX_INVALID_ISI): Likewise.
39171         (FP_EX_INVALID_ZDZ): Likewise.
39172         (FP_EX_INVALID_IDI): Likewise.
39173         (FP_EX_INVALID_SQRT): Likewise.
39174         (FP_EX_INVALID_CVI): Likewise.
39175         (FP_EX_INVALID_VC): Likewise.
39176         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Specify more precise
39177         "invalid" exceptions.
39178         (_FP_CHECK_SIGNAN_SEMIRAW): Likewise.
39179         (_FP_ADD_INTERNAL): Likewise.
39180         (_FP_MUL): Likewise.
39181         (_FP_FMA): Likewise.
39182         (_FP_DIV): Likewise.
39183         (_FP_CMP_CHECK_NAN): Likewise.
39184         (_FP_SQRT): Likewise.
39185         (_FP_TO_INT): Likewise.
39186         (FP_EXTEND): Likewise.
39187
39188 2014-10-09  Allan McRae  <allan@archlinux.org>
39189
39190         * po/fr.po: Update French translation from translation project.
39191
39192 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
39193
39194         [BZ #14132]
39195         * stdlib/cxa_atexit.c (__cxa_atexit): Use libc_hidden_def instead
39196         of INTDEF.
39197         * include/stdlib.h (__cxa_atexit_internal): Remove declaration.
39198         (__cxa_atexit): Use libc_hidden_proto.
39199         [!NOT_IN_libc] (__cxa_atexit): Remove macro definition.
39200
39201         [BZ #14132]
39202         * include/wctype.h [!_ISOMAC] (__iswalpha_l_internal): Remove
39203         declaration.
39204         [!_ISOMAC] (__iswdigit_l_internal): Likewise.
39205         [!_ISOMAC] (__iswspace_l_internal): Likewise.
39206         [!_ISOMAC] (__iswxdigit_l_internal): Likewise.
39207         [!_ISOMAC] (__iswctype_internal): Likewise.
39208         * stdio-common/siglist.c (_sys_siglist_internal): Remove alias.
39209         * sysdeps/unix/syscalls.list (chown): Remove __chown_internal
39210         alias.
39211         (fcntl): Remove __fcntl_internal alias.
39212         * sysdeps/unix/sysv/linux/hppa/syscalls.list (connect): Remove
39213         __connect_internal alias.
39214         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (connect):
39215         Likewise.
39216
39217         * soft-fp/soft-fp.h (FP_DENORM_ZERO): New macro.
39218         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Check
39219         FP_DENORM_ZERO.
39220         (_FP_CHECK_FLUSH_ZERO): New macro.
39221         (_FP_ADD_INTERNAL): Call _FP_CHECK_FLUSH_ZERO.
39222         (_FP_CMP): Likewise.
39223         (_FP_CMP_EQ): Likewise.
39224         (_FP_TO_INT): Do not set inexact for subnormal arguments if
39225         FP_DENORM_ZERO.
39226         (FP_EXTEND): Call _FP_CHECK_FLUSH_ZERO.
39227         (FP_TRUNC): Likewise.
39228
39229         * soft-fp/op-common.h (_FP_TO_INT): Ensure maximum exponent is
39230         treated as invalid conversion, not as normal exponent.
39231
39232         * soft-fp/op-common.h (_FP_CMP_CHECK_NAN): New macro.
39233         (_FP_CMP): Add extra argument EX.  Call _FP_CMP_CHECK_NAN.
39234         (_FP_CMP_EQ): Likewise.
39235         (_FP_CMP_UNORD): Likewise.
39236         * soft-fp/double.h (FP_CMP_D): Add extra argument EX.
39237         (FP_CMP_EQ_D): Likewise.
39238         (FP_CMP_UNORD_D): Likewise.
39239         * soft-fp/extended.h (FP_CMP_E): Likewise.
39240         (FP_CMP_EQ_E): Likewise.
39241         (FP_CMP_UNORD_E): Likewise.
39242         * soft-fp/quad.h (FP_CMP_Q): Likewise.
39243         (FP_CMP_EQ_Q): Likewise.
39244         (FP_CMP_UNORD_Q): Likewise.
39245         * soft-fp/single.h (FP_CMP_S): Likewise.
39246         (FP_CMP_EQ_S): Likewise.
39247         (FP_CMP_UNORD_S): Likewise.
39248         * soft-fp/eqdf2.c (__eqdf2): Update call to FP_CMP_EQ_D.
39249         * soft-fp/eqsf2.c (__eqsf2): Update call to FP_CMP_EQ_S.
39250         * soft-fp/eqtf2.c (__eqtf2): Update call to FP_CMP_EQ_Q.
39251         * soft-fp/gedf2.c (__gedf2): Update call to FP_CMP_D.
39252         * soft-fp/gesf2.c (__gesf2): Update call to FP_CMP_S.
39253         * soft-fp/getf2.c (__getf2): Update call to FP_CMP_Q.
39254         * soft-fp/ledf2.c (__ledf2): Update call to FP_CMP_D.
39255         * soft-fp/lesf2.c (__lesf2): Update call to FP_CMP_S.
39256         * soft-fp/letf2.c (__letf2): Update call to FP_CMP_Q.
39257         * soft-fp/unorddf2.c (__unorddf2): Update call to FP_CMP_UNORD_D.
39258         * soft-fp/unordsf2.c (__unordsf2): Update call to FP_CMP_UNORD_S.
39259         * soft-fp/unordtf2.c (__unordtf2): Update call to FP_CMP_UNORD_Q.
39260         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Update call
39261         to FP_CMP_Q.
39262         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c (_Q_cmp): Update call to
39263         FP_CMP_Q.
39264         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c (_Q_cmpe): Likewise.
39265         * sysdeps/sparc/sparc32/soft-fp/q_feq.c (_Q_feq): Update call to
39266         FP_CMP_EQ_Q.
39267         * sysdeps/sparc/sparc32/soft-fp/q_fge.c (_Q_fge): Update call to
39268         FP_CMP_Q.
39269         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c (_Q_fgt): Likewise.
39270         * sysdeps/sparc/sparc32/soft-fp/q_fle.c (_Q_fle): Likewise.
39271         * sysdeps/sparc/sparc32/soft-fp/q_flt.c (_Q_flt): Likewise.
39272         * sysdeps/sparc/sparc32/soft-fp/q_fne.c (_Q_fne): Update call to
39273         FP_CMP_EQ_Q.
39274         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c (_Qp_cmp): Update call to
39275         FP_CMP_Q.
39276         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c (_Qp_cmpe): Likewise.
39277         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c (_Qp_feq): Update call to
39278         FP_CMP_EQ_Q.
39279         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c (_Qp_fge): Update call to
39280         FP_CMP_Q.
39281         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c (_Qp_fgt): Likewise.
39282         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c (_Qp_fle): Likewise.
39283         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c (_Qp_flt): Likewise.
39284         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c (_Qp_fne): Update call to
39285         FP_CMP_EQ_Q.
39286
39287         * soft-fp/op-common.h (FP_EXTEND): When a subnormal input produces
39288         a subnormal result, set the underflow exception if trapping on
39289         underflow is enabled.
39290         * soft-fp/soft-fp.h (FP_INIT_TRAPPING_EXCEPTIONS): New macro.
39291         (FP_INIT_EXCEPTIONS): Default to FP_INIT_TRAPPING_EXCEPTIONS.
39292         [FP_NO_EXACT_UNDERFLOW] (FP_TRAPPING_EXCEPTIONS): Undefine and
39293         redefine to 0.
39294         * soft-fp/extenddftf2.c (FP_NO_EXACT_UNDERFLOW): Define.
39295         * soft-fp/extendsfdf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
39296         * soft-fp/extendsftf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
39297         * soft-fp/extendxftf2.c (__extendxftf2): Use
39298         FP_INIT_TRAPPING_EXCEPTIONS instead of FP_INIT_ROUNDMODE.
39299
39300         * soft-fp/soft-fp.h (FP_CLEAR_EXCEPTIONS): Remove macro.
39301         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Define FP_NO_EXCEPTIONS.
39302         (_Q_itoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
39303         FP_HANDLE_EXCEPTIONS.
39304         * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Define FP_NO_EXCEPTIONS.
39305         (_Q_lltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
39306         FP_HANDLE_EXCEPTIONS.
39307         * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Define FP_NO_EXCEPTIONS.
39308         (_Q_ulltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
39309         FP_HANDLE_EXCEPTIONS.
39310         * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Define FP_NO_EXCEPTIONS.
39311         (_Q_utoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
39312         FP_HANDLE_EXCEPTIONS.
39313
39314 2014-10-08  Joseph Myers  <joseph@codesourcery.com>
39315
39316         [BZ #14132]
39317         * sysdeps/unix/sysv/linux/include/sys/timex.h: New file.
39318         * sysdeps/unix/sysv/linux/adjtime.c [!ADJTIMEX] (ADJTIMEX): Do not
39319         use INTUSE.
39320         [!ADJTIMEX] (INTUSE(__adjtimex)): Remove declaration.
39321         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal):
39322         Remove alias.
39323         (__adjtimex): Define using libc_hidden_ver.
39324         * sysdeps/unix/sysv/linux/ntp_gettime.c (INTUSE(__adjtimex)):
39325         Remove declaration.
39326         (ntp_gettime): Call __adjtimex directly.
39327         * sysdeps/unix/sysv/linux/ntp_gettimex.c (INTUSE(__adjtimex)):
39328         Remove declaration.
39329         (ntp_gettimex): Call __adjtimex directly.
39330         * sysdeps/unix/sysv/linux/syscalls.list (adjtimex): Remove
39331         __adjtimex_internal alias.
39332
39333 2014-10-08  Roland McGrath  <roland@hack.frob.com>
39334
39335         [BZ #17460]
39336         * nscd/nscd.c (more_help): Rewrite list of tables collection
39337         using xstrdup and asprintf.
39338
39339         * nscd/nscd_conf.c: Remove local xstrdup declaration.
39340
39341 2014-10-08  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
39342             Roland McGrath  <roland@hack.frob.com>
39343
39344         * elf/dl-lookup.c (enter_unique_sym): New function, broken out of ...
39345         (do_lookup_unique): ... local function 'enter' here; update callers.
39346
39347 2014-10-06  Joseph Myers  <joseph@codesourcery.com>
39348
39349         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Condition
39350         compat_symbol calls on [SHARED].
39351         * sysdeps/unix/sysv/linux/powerpc/lchown.S: Remove file.
39352         * sysdeps/unix/sysv/linux/i386/syscalls.list (oldsetrlimit):
39353         Remove.
39354         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
39355         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list
39356         (oldsetrlimit): Remove.
39357         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
39358         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
39359         (lchown): New syscall entry.
39360         (oldsetrlimit): Remove.
39361         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
39362         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list
39363         (oldsetrlimit): Remove.
39364         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
39365
39366         [BZ #14138]
39367         * sysdeps/unix/sysv/linux/arm/fchown.c: Remove file.
39368         * sysdeps/unix/sysv/linux/arm/lchown.c: Likewise.
39369         * sysdeps/unix/sysv/linux/m68k/fchown.c: Likewise.
39370         * sysdeps/unix/sysv/linux/m68k/lchown.c: Likewise.
39371         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
39372         * sysdeps/unix/sysv/linux/arm/syscalls.list (lchown): Add syscall.
39373         (fchown): Likewise.
39374         * sysdeps/unix/sysv/linux/m68k/syscalls.list (lchown): Likewise.
39375         (fchown): Likewise.
39376         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (chown):
39377         Likewise.
39378
39379 2014-10-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39380
39381         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Remove file.
39382         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c
39383         (pthread_spin_unlock): Use __ARCH_REL_INSTR instead of
39384         __lll_rel_instr and __ARCH_ACQ_INSTR instead of __lll_acq_instr.
39385         * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
39386         Likewise.
39387         (__old_sem_post): Likewise.
39388
39389 2014-10-06  Chris Metcalf  <cmetcalf@tilera.com>
39390
39391         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Define
39392         INLINE_VSYSCALL, INTERNAL_VSYSCALL, and
39393         HAVE_CLOCK_GETTIME_VSYSCALL macros.
39394         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (__gettimeofday):
39395         Use INLINE_VSYSCALL macro.
39396         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso: Add declaration of
39397         __vdso_clock_gettime.
39398         * sysdeps/unix/sysv/linux/tile/init-first.c
39399         (_libc_vdso_platform_setup): Set new __vdso_clock_gettime global.
39400         * sysdeps/unix/sysv/linux/tile/Versions (GLIBC_PRIVATE): Add
39401         __vdso_clock_gettime.
39402
39403         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Fix code
39404         to set up frame more cleanly.
39405
39406         * sysdeps/tile/memcmp.c: New file.
39407
39408         * sysdeps/unix/sysv/linux/tile/sysconf.c: New file.
39409
39410         * sysdeps/tile/tilegx/string-endian.h (STRSHIFT): New macro.
39411         * sysdeps/tile/tilegx/strcasestr.c: New file.
39412         * sysdeps/tile/tilegx/strnlen.c: New file.
39413         * sysdeps/tile/tilegx/strstr.c: New file.
39414
39415         * sysdeps/tile/tilegx/string-endian.h (copy_byte): Optimize.
39416
39417 2014-10-06  Arjun Shankar  <arjun.is@lostca.se>
39418
39419         * nptl/tst-setuid3.c: Write errors to stdout.
39420
39421 2014-10-01  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
39422
39423         * elf/dl-deps.c
39424         (preload): New functions broken out of _dl_map_object_deps.
39425         (_dl_map_object_deps):  Remove a nested function. Update call sites.
39426
39427 2014-10-01  Joseph Myers  <joseph@codesourcery.com>
39428
39429         [BZ #14138]
39430         * sysdeps/unix/sysv/linux/execve.c: Remove file.
39431         * sysdeps/unix/sysv/linux/syscalls.list (execve): Add syscall.
39432
39433 2014-10-01  Steve Ellcey  <sellcey@mips.com>
39434
39435         * sysdeps/mips/strcmp.S: New.
39436
39437 2014-09-30  Joseph Myers  <joseph@codesourcery.com>
39438
39439         [BZ #14138]
39440         * sysdeps/unix/sysv/linux/syscalls.list (fchownat): New syscall.
39441         (linkat): Likewise.
39442         (mkdirat): Likewise.
39443         (readlinkat): Likewise.
39444         (renameat): Likewise.
39445         (symlinkat): Likewise.
39446         (unlinkat): Likewise.
39447         * sysdeps/unix/sysv/linux/fchownat.c: Remove file.
39448         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
39449         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
39450         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
39451         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
39452         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
39453         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
39454
39455 2014-09-30  Will Newton  <will.newton@linaro.org>
39456
39457         * math/math.h: Define long double math functions if
39458         _LIBC_TEST is defined.
39459         * stdlib/tst-strtod-round.c: Define _LIBC_TEST.
39460
39461         * localedata/Makefile: Move assignment to tests-special
39462         into an ifdef testing run-built-tests.
39463         * timezone/Makefile: Likewise.
39464
39465 2014-09-29  Joseph Myers  <joseph@codesourcery.com>
39466
39467         * sysdeps/x86/Makefile ($(objpfx)tst-ld-sse-use.out): Run script
39468         with $(BASH) not $(SHELL).
39469
39470 2014-09-29  Carlos O'Donell  <carlos@redhat.com>
39471             Matthew LeGendre  <legendre1@llnl.gov>
39472
39473         [BZ #17411]
39474         * elf/dl-reloc.c (_dl_relocate_object): Allocate correct amount for
39475         l_reloc_result.
39476
39477 2014-09-29  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
39478
39479         * stdio-common/printf_fp.c
39480         (hack_digit): New function, broken out of ...
39481         (__printf_fp): ... local function here.  Update call sites.
39482         hack_digit now takes an additional parameter that is a pointer
39483         to a struct of the referenced locals.  Those locals moved inside
39484         the struct and references updated.
39485
39486 2014-09-29  H.J. Lu  <hongjiu.lu@intel.com>
39487
39488         * aclocal.m4: Require autoconf 2.69.
39489         * configure: Regenerated.
39490         * sysdeps/aarch64/configure: Likewise.
39491         * sysdeps/alpha/configure: Likewise.
39492         * sysdeps/arm/armv7/configure: Likewise.
39493         * sysdeps/arm/configure: Likewise.
39494         * sysdeps/ia64/configure: Likewise.
39495         * sysdeps/mach/configure: Likewise.
39496         * sysdeps/mips/configure: Likewise.
39497         * sysdeps/s390/configure: Likewise.
39498         * sysdeps/unix/sysv/linux/mips/configure: Likewise.
39499         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Likewise.
39500
39501         * sysdeps/alpha/configure.ac: Avoid empty lines at the end of
39502         file.
39503         * sysdeps/ia64/configure.ac: Likewise.
39504
39505 2014-09-26  Joseph Myers  <joseph@codesourcery.com>
39506
39507         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Do not
39508         specify symbol version for ld.so.  Do not include entry for
39509         libpthread.
39510         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
39511         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
39512         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
39513
39514         [BZ #14171]
39515         * Makeconfig [$(build-shared) = yes]
39516         ($(common-objpfx)soversions.mk): Don't handle SONAMEs specified in
39517         makefiles.
39518         [$(build-shared) = yes && $(soversions.mk-done) = t]
39519         ($(common-objpfx)gnu/lib-names.h): Remove rule.
39520         [$(build-shared) = yes && $(soversions.mk-done) = t]
39521         ($(common-objpfx)gnu/lib-names.stmp): Likewise.  Split and moved
39522         to Makerules.
39523         [$(build-shared) = yes && $(soversions.mk-done) = t]
39524         (before-compile): Don't append $(common-objpfx)gnu/lib-names.h
39525         here.
39526         [$(build-shared) = yes && $(soversions.mk-done) = t]
39527         (common-generated): Don't append gnu/lib-names.h and
39528         gnu/lib-names.stmp here.
39529         * Makerules [$(build-shared) = yes && $(soversions.mk-done) = t]
39530         (lib-names-h-abi): New variable.
39531         [$(build-shared) = yes && $(soversions.mk-done) = t]
39532         (lib-names-stmp-abi): Likewise.
39533         [$(build-shared) = yes && $(soversions.mk-done) = t &&
39534         abi-variants] (before-compile): Append
39535         $(common-objpfx)$(lib-names-h-abi).
39536         [$(build-shared) = yes && $(soversions.mk-done) = t &&
39537         abi-variants] (common-generated): Append gnu/lib-names.h.
39538         [$(build-shared) = yes && $(soversions.mk-done) = t &&
39539         abi-variants] (install-others-nosubdir): Depend on
39540         $(inst_includedir)/$(lib-names-h-abi).
39541         [$(build-shared) = yes && $(soversions.mk-done) = t &&
39542         abi-variants] ($(common-objpfx)gnu/lib-names.h): New rule.
39543         [$(build-shared) = yes && $(soversions.mk-done) = t]
39544         ($(common-objpfx)$(lib-names-h-abi)): New rule.
39545         [$(build-shared) = yes && $(soversions.mk-done) = t]
39546         ($(common-objpfx)$(lib-names-stmp-abi)): Likewise.
39547         [$(build-shared) = yes && $(soversions.mk-done) = t]
39548         (common-generated): Append $(lib-names-h-abi) and
39549         $(lib-names-stmp-abi).
39550         * scripts/lib-names.awk: Do not handle multi being set.
39551         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-ld-soname):
39552         Remove variable.
39553         (abi-lp64_be-ld-soname): Likewise.
39554         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-ld-soname):
39555         Likewise.
39556         (abi-hard-ld-soname): Likewise.
39557         * sysdeps/unix/sysv/linux/i386/shlib-versions: New file.
39558         * sysdeps/unix/sysv/linux/mips/Makefile (abi-o32_soft-ld-soname):
39559         Remove variable.
39560         (abi-o32_hard-ld-soname): Likewise.
39561         (abi-o32_soft_2008-ld-soname): Likewise.
39562         (abi-o32_hard_2008-ld-soname): Likewise.
39563         (abi-n32_soft-ld-soname): Likewise.
39564         (abi-n32_hard-ld-soname): Likewise.
39565         (abi-n32_soft_2008-ld-soname): Likewise.
39566         (abi-n32_hard_2008-ld-soname): Likewise.
39567         (abi-n64_soft-ld-soname): Likewise.
39568         (abi-n64_hard-ld-soname): Likewise.
39569         (abi-n64_soft_2008-ld-soname): Likewise.
39570         (abi-n64_hard_2008-ld-soname): Likewise.
39571         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-64-v1-ld-soname):
39572         Likewise.
39573         (abi-64-v2-ld-soname): Likewise.
39574         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Add
39575         ld.so entries.
39576         * sysdeps/unix/sysv/linux/s390/Makefile (abi-64-ld-soname): Remove
39577         variable.
39578         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Add ld.so
39579         entry.
39580         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-ld-soname): Remove
39581         variable.
39582         (abi-64-ld-soname): Likewise.
39583         (abi-x32-ld-soname): Likewise.
39584         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Add ld.so
39585         entry.
39586         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
39587
39588 2014-09-23  Joseph Myers  <joseph@codesourcery.com>
39589
39590         [BZ #14138]
39591         * sysdeps/unix/sysv/linux/arm/setrlimit.c: Remove file.
39592         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
39593         * sysdeps/unix/sysv/linux/m68k/setrlimit.c: Likewise.
39594         * sysdeps/unix/sysv/linux/powerpc/setrlimit.c: Likewise.
39595         * sysdeps/unix/sysv/linux/s390/s390-32/setrlimit.c: Likewise.
39596         * sysdeps/unix/sysv/linux/sh/setrlimit.c: Likewise.
39597         * sysdeps/unix/sysv/linux/i386/syscalls.list (setrlimit): Add
39598         syscall entry for GLIBC_2.2 symbol version.
39599         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list (setrlimit):
39600         Likewise.
39601         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
39602         (setrlimit): Likewise.
39603         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setrlimit):
39604         Likewise.
39605
39606 2014-09-23  Will Newton  <will.newton@linaro.org>
39607
39608         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h: Check for
39609         _LINUX_ARM_SYSDEP_H include guard too.
39610         * sysdeps/unix/sysv/linux/arm/sysdep.h (_SYS_AUXV_H): Remove
39611         define.
39612
39613 2014-09-20  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
39614
39615         * sysdeps/unix/sysv/linux/eventfd.c:
39616         Make first argument unsigned.
39617         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Likewise.
39618         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
39619
39620 2014-09-20  Ondřej Bílka  <neleai@seznam.cz>
39621
39622         [BZ #16852]
39623         * socket/recvmmsg.c (recvmmsg): Drop const argument.
39624         * socket/sys/socket.h: Likewise.
39625         * sysdeps/unix/sysv/linux/recvmmsg.c: Likewise.
39626
39627 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39628
39629         * stdlib/longlong.h: Add __udiv_w_sdiv prototype.
39630
39631 2014-09-17  Arjun Shankar  <arjun.is@lostca.se>
39632
39633         * time/tst-ftime.c: New test.
39634         * time/Makefile (tests): Add tst-ftime.
39635
39636 2014-09-17  Joseph Myers  <joseph@codesourcery.com>
39637
39638         * soft-fp/extended.h: Fix comment formatting.
39639         * soft-fp/op-1.h: Likewise.
39640         * soft-fp/op-2.h: Likewise.
39641         * soft-fp/op-4.h: Likewise.
39642         * soft-fp/op-8.h: Likewise.
39643         * soft-fp/op-common.h: Likewise.
39644         * soft-fp/soft-fp.h: Likewise.
39645
39646         * soft-fp/op-common.h (_FP_TO_INT): Correct formatting.
39647
39648 2014-09-16  Joseph Myers  <joseph@codesourcery.com>
39649
39650         [BZ #6652]
39651         * Makeconfig (soversions-default-setname): Remove variable.
39652         ($(common-objpfx)soversions.i): Don't pass default_setname to
39653         soversions.awk.
39654         * Makerules ($(common-objpfx)abi-versions.h): Don't pass
39655         oldest_abi to abi-versions.awk.
39656         * config.h.in (GLIBC_OLDEST_ABI): Remove macro undefine.
39657         * config.make.in (oldest-abi): Remove variable.
39658         * configure.ac (--enable-oldest-abi): Remove configure option.
39659         * configure: Regenerated.
39660         * csu/version.c (banner) [GLIBC_OLDEST_ABI]: Remove conditional
39661         text.
39662         * scripts/abi-versions.awk: Do not handle oldest_abi variable.
39663         * scripts/soversions.awk: Do not handle default_setname variable.
39664         * sysdeps/mach/hurd/configure.ac: Do not handle oldest_abi
39665         variable.
39666         * sysdeps/mach/hurd/configure: Regenerated.
39667         * sysdeps/unix/sysv/linux/configure.ac: Do not handle oldest_abi
39668         variable.
39669         * sysdeps/unix/sysv/linux/configure: Regenerated.
39670
39671 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
39672
39673         * elf/Makefile (CFLAGS-interp.c): Remove.
39674         ($(elf-objpfx)runtime-linker.h): Generate header with linker
39675         path string.
39676         * elf/interp.c: Include generated runtime-linker.h
39677
39678         * Makerules (lib%.so): Don't include $(+interp) in
39679         prerequisites.
39680         * elf/Makefile (CFLAGS-interp.c): Don't define NOT_IN_libc.
39681         * dlfcn/eval.c: Remove file.
39682
39683         * posix/getconf.c (vars): Don't check for _[SP]C_* and _CS
39684         macros.
39685
39686         [BZ #17266]
39687         * misc/sys/cdefs.h: Define __extern_always_inline for clang
39688         4.2 and newer.
39689
39690         [BZ #17370]
39691         * libio/wfileops.c (do_ftell_wide): Free OUT on error path.
39692
39693 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
39694             Jakub Jelinek  <jakub@redhat.com>
39695
39696         [BZ #17266]
39697         * libio/stdio.h: Check definition of __fortify_function
39698         instead of __extern_always_inline to include bits/stdio2.h.
39699         * math/bits/math-finite.h [__USE_XOPEN || __USE_ISOC99]: Also
39700         check if __extern_always_inline is defined.
39701         [__USE_MISC || __USE_XOPEN]: Likewise.
39702         [__USE_ISOC99] Likewise.
39703         * misc/sys/cdefs.h (__fortify_function): Define only if
39704         __extern_always_inline is defined.
39705         [!__cplusplus || __GNUC_PREREQ (4,3)]: Revert to defining
39706         __extern_always_inline and __extern_inline only for g++-4.3
39707         and newer or a compatible gcc.
39708
39709 2014-09-15  Andreas Schwab  <schwab@linux-m68k.org>
39710
39711         [BZ #17371]
39712         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
39713         last change to handle zero prefix length.
39714
39715 2014-09-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
39716
39717         * sysdeps/posix/sysconf.c (__sysconf): Return -1 for
39718         _SC_REGEX_VERSION.
39719
39720         * posix/getconf.c (vars): Add _POSIX_IPV6 and
39721         _POSIX_RAW_SOCKETS.
39722
39723 2014-09-13  Allan McRae  <allan@archlinux.org>
39724
39725         * po/ru.po: Update Russian translation from translation project.
39726
39727 2014-09-12  Roland McGrath  <roland@hack.frob.com>
39728
39729         * locale/programs/locale.c (show_locale_vars): Inline local function
39730         into its sole call site.  Clean up some style nits.
39731         (print_item): New function, broken out of ...
39732         (show_info): ... local function here.  Clean up style nits.
39733
39734         * locale/programs/ld-ctype.c (set_one_default): New function, broken
39735         out of ...
39736         (set_class_defaults): ... local function set_default here.
39737         Define set_default as a macro locally to pass constant parameters.
39738         (allocate_arrays, set_class_defaults): Use C99 for scope for each CNT,
39739         rather than a shared local.
39740
39741         * stdlib/rpmatch.c (try): New function, broken out of ...
39742         (rpmatch): ... local function here.  Also, prototypify definition.
39743
39744 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
39745
39746         * scripts/soversions.awk: Do not handle configuration names.
39747         * Makeconfig ($(common-objpfx)soversions.i): Do not pass cpu,
39748         vendor and os variables to soversions.awk.
39749         * configure.ac: Do not modify gnu-* host_os.
39750         * configure: Regenerated
39751         * shlib-versions: Remove first column with configuration names.
39752         * nptl/shlib-versions: Likewise.
39753         * nptl_db/shlib-versions: Likewise.
39754         * sysdeps/hppa/shlib-versions: Likewise.
39755         * sysdeps/m68k/shlib-versions: Likewise.
39756         * sysdeps/mach/hurd/shlib-versions: Likewise.
39757         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: Likewise.
39758         * sysdeps/unix/sysv/linux/alpha/shlib-versions: Likewise.
39759         * sysdeps/unix/sysv/linux/arm/shlib-versions: Likewise.
39760         * sysdeps/unix/sysv/linux/hppa/shlib-versions: Likewise.
39761         * sysdeps/unix/sysv/linux/ia64/shlib-versions: Likewise.
39762         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: Likewise.
39763         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: Likewise.
39764         * sysdeps/unix/sysv/linux/mips/shlib-versions: Likewise.
39765         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
39766         Likewise.
39767         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
39768         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
39769         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
39770         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
39771         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
39772         * sysdeps/unix/sysv/linux/tile/shlib-versions: Likewise.
39773         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
39774         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
39775
39776         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
39777         (HAVE_ELFV2_ABI): AC_DEFINE in ELFv2 case.
39778         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
39779         Regenerated.
39780         * config.h.in (HAVE_ELFV2_ABI): New macro undefine.
39781         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
39782         Condition symbol version definitions on [HAVE_ELFV2_ABI].
39783
39784         * shlib-versions: Remove OS-specific entries.  Moved to files in
39785         sysdeps.
39786         * sysdeps/mach/hurd/shlib-versions: New file.
39787         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
39788
39789         * nptl/shlib-versions: Remove architecture-specific entries.
39790         Moved to files in sysdeps.
39791         * shlib-versions: Likewise.
39792         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: New
39793         file.
39794         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
39795         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
39796         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
39797         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
39798
39799         * sysdeps/gnu/netinet/udp.h (UDP_NO_CHECK6_TX): New macro.
39800         (UDP_NO_CHECK6_RX): Likewise.
39801
39802 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
39803
39804         * sysdeps/posix/sysconf.c (__sysconf): Spell
39805         _POSIX_DEVICE_SPECIFIC and _POSIX_DEVICE_SPECIFIC_R correctly.
39806
39807 2014-08-12  Florian Weimer  <fweimer@redhat.com>
39808
39809         * iconv/gconv_open.c (__gconv_open): Remove transliteration module
39810         loading.
39811         * iconv/Versions (__gconv_transliterate): Export for use from
39812         gconv modules.
39813         * iconv/gconv.h (__GCONV_TRANSLIT): New flag.
39814         (struct __gconv_trans_data, __gconv_trans_fct,
39815         __gconv_trans_context_fct, __gconv_trans_query_fct,
39816         __gconv_trans_init_fct, __gconv_trans_end_fct): Remove type
39817         definitions.
39818         (struct __gconv_step_data): Remove __trans member.
39819         (__gconv_transliterate): Declaration moved from gconv_int.h.  No
39820         longer hidden.  Remove unused trans_data argument.
39821         * iconv/gconv_int.h (struct trans_struct): Remove definition.
39822         (__gconv_translit_find): Remove declaration.
39823         (__gconv_transliterate): Declaration moved to gconv.h.  Add hidden
39824         prototype.
39825         * iconv/gconv_close.c (__gconv_close): Remove __trans cleanup.
39826         * iconv/gconv_trans.c (__gconv_transliterate): Remove unused
39827         trans_data argument.  Add hidden definition.
39828         (__gconv_translit_find): Remove.
39829         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): Call
39830         __gconv_transliterate directly if __GCONV_TRANSLIT is set.
39831         * iconv/skeleton.c: Remove transliteration initialization.
39832         * libio/fileops.c (_IO_new_file_fopen): Adjust struct
39833         __gconv_step_data initialization.
39834         * libio/iofwide.c (__libio_translit_): Remove.
39835         (_IO_fwide): Adjust struct __gconv_step_data initialization.
39836         * wcsmbs/btowc.c (__btowc): Likewise.
39837         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
39838         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
39839         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
39840         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
39841         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
39842         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
39843         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
39844         * wcsmbs/wctob.c (wctob): Likewise.
39845
39846 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
39847
39848         [BZ #16194]
39849         * sysdeps/x86/tst-xmmymm.sh: Rename file to...
39850         * sysdeps/x86/tst-ld-sse-use.sh: ... this.  Check for zmm
39851         register usage.
39852         * sysdeps/x86/Makefile: Adjust.
39853
39854 2014-09-11  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
39855             Roland McGrath  <roland@hack.frob.com>
39856
39857         * locale/weight.h: Add include guard.
39858         (findidx): Make static rather than auto; take new parameters
39859         TABLE, INDIRECT, and EXTRA instead of getting them as outer locals.
39860         * locale/weightwc.h: Likewise.
39861         * posix/fnmatch_loop.c
39862         (FCT): Change type of EXTRA from int32_t to wint_t.
39863         Don't include either header inside the function.
39864         Call FINDIDX rather than findidx, and pass new arguments.
39865         #undef FINDIDX at the end of the file.
39866         * posix/fnmatch.c [_LIBC]: #include <locale/weight.h> and define
39867         FINDIDX before including fnmatch_loop.c for the non-wide version.
39868         [_LIBC] [HANDLE_MULTIBYTE]: #define findidx to findidxwc around
39869         #include <locale/weightwc.h>, and define FINDIDX to findidxwc
39870         for the wide version.
39871         * posix/regcomp.c [_LIBC]: #include <locale/weight.h>.
39872         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
39873         Pass new arguments to findidx.
39874         * posix/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
39875         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
39876         Don't #include it inside the function.  Pass new arguments to findidx.
39877         * posix/regex_internal.h
39878         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
39879         (re_string_elem_size_at): Don't #include it inside the function.
39880         Pass new arguments to findidx.
39881         * string/strcoll_l.c: #include WEIGHT_H at top level.
39882         (get_next_seq): Don't #include it inside the function.
39883         Pass new arguments to findidx.
39884         (get_next_seq_nocache): Likewise.
39885         * string/strxfrm_l.c: #include WEIGHT_H at top level.
39886         (STRXFRM): Don't #include it inside the function.
39887         Pass new arguments to findidx.
39888
39889 2014-09-11  Florian Weimer  <fweimer@redhat.com>
39890
39891         [BZ #17344]
39892         * malloc/malloc.c (unlink): Turn asserts into a call to
39893         malloc_printerr.
39894
39895 2014-09-11  Tim Lammens  <tim.lammens@gmail.com>
39896
39897         [BZ #17370]
39898         * libio/wfileops (do_ftell_wide): Free OUT.
39899
39900 2014-09-10  Chris Metcalf  <cmetcalf@tilera.com>
39901
39902         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Remove file.
39903
39904 2014-09-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
39905
39906         [BZ #17363]
39907         * inet/getnetgrent_r.c (__internal_getnetgrent_r): Try next
39908         group if the current group is empty.
39909
39910 2014-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39911
39912         * benchtests/bench-memset.c (test_main): Add more test from size
39913         from 32 to 512 bytes.
39914         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
39915         Add POWER8 memset object.
39916         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39917         (__libc_ifunc_impl_list): Add POWER8 memset and bzero implementations.
39918         * sysdeps/powerpc/powerpc64/multiarch/bzero.c (__bzero): Add POWER8
39919         implementation.
39920         * sysdeps/powerpc/powerpc64/multiarch/memset.c (__libc_memset):
39921         Likewise.
39922         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: New file:
39923         multiarch POWER8 memset optimization.
39924         * sysdeps/powerpc/powerpc64/power8/memset.S: New file: optimized
39925         POWER8 memset optimization.
39926
39927         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
39928         Remove bzero multiarch objects.
39929         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: Remove file.
39930         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: Likewise.
39931         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: Likewise.
39932         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S [NO_BZERO_IMPL]:
39933         Remove define.
39934         [__bzero]: Redefine to specific name.
39935         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
39936         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
39937         * sysdeps/powerpc/powerpc64/power4/memset.S [NO_BZERO_IMPL]: Remove
39938         define.
39939         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
39940         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
39941
39942 2014-09-10  Florian Weimer  <fweimer@redhat.com>
39943
39944         * Makeconfig (gccwarn-c): Turn implicit-function-declaration
39945         warnings into errors.
39946
39947         * stdlib/tst-tls-atexit-lib.c: Include <stdlib.h>, for the
39948         __cxa_thread_atexit_impl prototype.
39949
39950 2014-09-09  Steve Ellcey  <sellcey@mips.com>
39951
39952         * sysdeps/mips/preconfigure: Put code inside mips* case statement.
39953         Fix capitalization of error message.
39954
39955 2014-09-09  Steve Ellcey  <sellcey@mips.com>
39956
39957         * sysdeps/mips/preconfigure: Modify ABI tests.
39958
39959 2014-09-07  Carlos O'Donell  <carlos@systemhalted.org>
39960
39961         * sysdeps/unix/sysv/linux/hppa/c++-types.data: New file.
39962
39963 2014-09-07  Roland McGrath  <roland@hack.frob.com>
39964             Carlos O'Donell  <carlos@systemhalted.org>
39965
39966         * sysdeps/unix/sysv/linux/hppa/nptl/libc-lowlevellock.c: File removed.
39967         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Moved ...
39968         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: ... here.
39969         * sysdeps/unix/sysv/linux/hppa/nptl/pt-vfork.S: Moved ...
39970         * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: ... here.
39971         * sysdeps/unix/sysv/linux/hppa/nptl/pthread.h: Moved ...
39972         * sysdeps/unix/sysv/linux/hppa/pthread.h: ... here.
39973         * sysdeps/unix/sysv/linux/hppa/nptl/pthreadP.h: Moved ...
39974         * sysdeps/unix/sysv/linux/hppa/pthreadP.h: ... here.
39975         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_broadcast.c: Moved ...
39976         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c: ... here.
39977         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_destroy.c: Moved ...
39978         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c: ... here.
39979         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_init.c: Moved ...
39980         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c: ... here.
39981         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_signal.c: Moved ...
39982         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c: ... here.
39983         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_timedwait.c: Moved ...
39984         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c: ... here.
39985         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_wait.c: Moved ...
39986         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c: ... here.
39987         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Moved ...
39988         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: ... here.
39989         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h: Moved ...
39990         * sysdeps/hppa/nptl/bits/pthreadtypes.h: ... here.
39991         * sysdeps/unix/sysv/linux/hppa/nptl/bits/semaphore.h: Moved ...
39992         * sysdeps/hppa/nptl/bits/semaphore.h: ... here.
39993         * sysdeps/unix/sysv/linux/hppa/clone.S: Include <tcb-offsets.h>.
39994         Deconditionalize the code that was previously under [RESET_PID].
39995         * sysdeps/unix/sysv/linux/hppa/nptl/clone.S: File removed.
39996         * sysdeps/unix/sysv/linux/hppa/arch-fork.h: New file.
39997         * sysdeps/unix/sysv/linux/hppa/nptl/fork.c: File removed.
39998         * sysdeps/hppa/nptl/tcb-offsets.sym: Include pthread.h and don't
39999         include sysdep.h.
40000
40001 2014-09-08  Allan McRae  <allan@archlinux.org>
40002
40003         * version.h (RELEASE): Set to "development".
40004         (VERSION): Set to "2.20.90"
40005
40006 2014-09-07  Allan McRae  <allan@archlinux.org
40007
40008         * version.h (RELEASE): Set to "stable".
40009         (VERSION): Set to "2.20"
40010         * include/features.h (__GLIBC_MINOR__): Set to 20.
40011
40012         * manual/contrib.texi: Add entries for Wilco Dijkstra and Stefan
40013         Liebler.
40014
40015         * po/ko.po: Update Korean translation from translation project.
40016
40017 2014-09-06  Chris Metcalf  <cmetcalf@tilera.com>
40018
40019         [BZ #17354]
40020         * sysdeps/tile/dl-machine.h (elf_machine_rela): Add a MUNGE_SIGNED
40021         macro for handling signed relocations.
40022
40023 2014-09-03  Florian Weimer  <fweimer@redhat.com>
40024
40025         [BZ #17325]
40026         * iconvdata/ibm1364.c (BODY): Fix check for sentinel.
40027         * iconvdata/ibm932.c (BODY): Replace invalid sentinel check with
40028         assert.
40029         * iconvdata/ibm933.c (BODY): Fix check for sentinel.
40030         * iconvdata/ibm935.c (BODY): Likewise.
40031         * iconvdata/ibm937.c (BODY): Likewise.
40032         * iconvdata/ibm939.c (BODY): Likewise.
40033         * iconvdata/ibm943.c (BODY): Replace invalid sentinel check with
40034         assert.
40035         * iconvdata/Makefile (iconv-test.out): Pass module list to test
40036         script.
40037         * iconvdata/run-iconv-test.sh: New test loop for checking for
40038         decoder crashers.
40039
40040 2014-09-02  Khem Raj  <raj.khem@gmail.com>
40041
40042         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (fegetenv): Add
40043         libm_hidden_ver.
40044
40045 2014-09-01  Allan McRae  <allan@archlinux.org>
40046
40047         * po/eo.po: Update Esperanto translation from translation project.
40048
40049         * po/ca.po: Update Catalan translation from translation project.
40050
40051 2014-08-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
40052
40053         * sysdeps/mach/hurd/fork.c (__fork): Lock SS->lock around
40054         __proc_dostop call.
40055
40056 2014-08-27  Mark Wielaard  <mjw@redhat.com>
40057
40058         [BZ #17319]
40059         * sysdeps/i386/nptl/tls.h (TLS_INIT_TP): Use INTERNAL_SYSCALL
40060         to call set_thread_area instead of hand written asm.
40061         (__NR_set_thread_area): Removed define.
40062         (TLS_FLAG_WRITABLE): Likewise.
40063         (__ASSUME_SET_THREAD_AREA): Remove check.
40064         (TLS_EBX_ARG): Remove define.
40065         (TLS_LOAD_EBX): Likewise.
40066
40067 2014-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
40068
40069         Simplify atomicity of socket creation in bind.
40070
40071         * sysdeps/mach/hurd/bind.c (__bind): Use dir_lookup(node, "") instead of
40072         looking up the name after linking the file.
40073
40074 2014-08-27  Allan McRae  <allan@archlinux.org>
40075
40076         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
40077
40078 2014-08-26  Florian Weimer  <fweimer@redhat.com>
40079
40080         [BZ #17187]
40081         * iconv/gconv_trans.c (struct known_trans, search_tree, lock,
40082         trans_compare, open_translit, __gconv_translit_find):
40083         Remove module loading code.
40084
40085 2014-08-26  Allan McRae  <allan@archlinux.org>
40086
40087         * po/vi.po: Update Vietnamese translation from translation project.
40088
40089         * po/uk.po: Update Ukrainian translation from translation project.
40090
40091         * po/fr.po: Update French translation from translation project.
40092
40093         * po/ru.po: Update Russian translation from translation project.
40094
40095         * po/pl.po: Update Polish translation from translation project.
40096
40097         * po/cs.po: Update Czech translation from translation project.
40098
40099         * po/de.po: Update German translation from translation project.
40100
40101         * po/bg.po: Update Bulgarian translation from translation project.
40102
40103         * po/sv.po: Update Sweedish translation from translation project.
40104
40105         * po/nl.po: Update Dutch translation from translation project.
40106
40107         * po/es.po: Update Spanish translation from translation project.
40108
40109 2014-08-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
40110
40111         * nptl/Makefile (CFLAGS-pthread_atfork.c): Remove.
40112
40113         * catgets/Makefile (CPPFLAGS-gencat): Remove.
40114         * iconv/Makefile (CPPFLAGS-iconv_prog): Likewise.
40115         (CPPFLAGS-iconvconfig): Likewise.
40116         * timezone/Makefile (CPPFLAGS-zic): Likewise.
40117
40118         * include/libc-symbols.h: Remove unnecessary check for
40119         NOT_IN_libc.
40120         * nptl/pthreadP.h: Likewise.
40121         * sysdeps/aarch64/setjmp.S: Likewise.
40122         * sysdeps/alpha/setjmp.S: Likewise.
40123         * sysdeps/arm/sysdep.h: Likewise.
40124         * sysdeps/i386/setjmp.S: Likewise.
40125         * sysdeps/m68k/setjmp.c: Likewise.
40126         * sysdeps/posix/getcwd.c: Likewise.
40127         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
40128         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
40129         * sysdeps/s390/s390-32/setjmp.S: Likewise.
40130         * sysdeps/s390/s390-64/setjmp.S: Likewise.
40131         * sysdeps/sh/sh3/setjmp.S: Likewise.
40132         * sysdeps/sh/sh4/setjmp.S: Likewise.
40133         * sysdeps/unix/alpha/sysdep.h: Likewise.
40134         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
40135         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
40136         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
40137         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
40138         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
40139         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
40140         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
40141         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
40142         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
40143         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
40144         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
40145         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
40146         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
40147         * sysdeps/x86_64/setjmp.S: Likewise.
40148
40149 2014-08-13  Joseph Myers  <joseph@codesourcery.com>
40150
40151         [BZ #17263]
40152         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Include
40153         <stdint.h>.
40154         (__get_clockfreq): Use uint64_t instead of hp_timing_t in
40155         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK call.
40156
40157 2014-08-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
40158
40159         * sysdeps/x86/fpu/bits/mathinline.h: Fix typo in comment.
40160
40161         [BZ #17262]
40162         * sysdeps/x86/fpu/bits/mathinline.h: Check both __SSE2_MATH__
40163         and __x86_64__ when disabling x87 inline functions.
40164
40165 2014-08-12  H.J. Lu  <hongjiu.lu@intel.com>
40166
40167         [BZ #17259]
40168         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Replace cpuid
40169         asm statement with __cpuid_count.
40170
40171 2014-08-12  Mike Frysinger  <vapier@gentoo.org>
40172
40173         * configure.ac: Change __ehdr_start code to dereference the struct.
40174         Run readelf on the output to look for relocations.
40175         * configure: Regenerated.
40176
40177 2014-08-12  Joseph Myers  <joseph@codesourcery.com>
40178
40179         [BZ #17261]
40180         * sysdeps/powerpc/nofpu/fenv_const.c (__fe_enabled_env): Change
40181         value to 0.
40182         (__fe_nonieee_env): Define as an alias for __fe_dfl_env.
40183
40184 2014-08-12  Roland McGrath  <roland@hack.frob.com>
40185
40186         * NEWS: Mention x86-64 ld.so use of Intel MPX instructions.
40187
40188 2014-08-12  Bernard Ogden  <bernie.ogden@linaro.org>
40189
40190         [BZ #16892]
40191         * sysdeps/nptl/lowlevellock.h (__lll_timedlock): Use
40192         atomic_compare_and_exchange_bool_acq rather than atomic_exchange_acq.
40193
40194 2014-08-12  Sean Anderson  <seanga2@gmail.com>
40195
40196         * malloc/malloc.c: Fix typo in comment.
40197
40198 2014-08-09  Allan McRae  <allan@archlinux.org>
40199
40200         * Regenerate libc.po.
40201
40202 2014-08-08  Mike Frysinger  <vapier@gentoo.org>
40203
40204         * intl/tst-gettext2.sh: Check every lang file for creation.
40205
40206 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
40207
40208         * sysdeps/aarch64/fpu/math_private.h
40209         (libc_feholdsetround_noex_aarch64_ctx): New function.
40210
40211 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
40212
40213         * sysdeps/arm/armv6/strcpy.S (strcpy):
40214         Fix performance issue in misaligned cases.
40215
40216 2014-08-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40217
40218         * sysdeps/unix/sysv/linux/powerpc/bits/ioctl-types.h (struct winsize):
40219         Move definition from termios.h.
40220         (struct termio): Likewise.
40221         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
40222         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
40223         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
40224         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
40225         Likewise.
40226         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct winsize):
40227         Move definition to ioctl-types.h
40228         (struct termio): Likewise.
40229         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
40230         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
40231         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
40232         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
40233         Likewise.
40234
40235 2014-08-05  Richard Henderson  <rth@redhat.com>
40236
40237         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Always raise
40238         exceptions.
40239         * sysdeps/alpha/soft-fp/Makefile [soft-fp] (sysdep_routines):
40240         Add fraiseexcpt.
40241         * sysdeps/alpha/soft-fp/sfp-machine.h (FP_HANDLE_EXCEPTIONS):
40242         Use __feraiseexcept.
40243         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (feraiseexcept):
40244         Protect libm symbols with IS_IN_libm.
40245
40246         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Remove file.
40247
40248 2014-08-04  Bernard Ogden  <bernie.ogden@linaro.org>
40249
40250         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Remove file.
40251
40252 2014-08-04  Will Newton  <will.newton@linaro.org>
40253
40254         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Remove
40255         file.
40256
40257 2014-08-04  Mike Frysinger  <vapier@gentoo.org>
40258
40259         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Add nocancel
40260         variants for each function.
40261
40262 2014-08-04  Roland McGrath  <roland@hack.frob.com>
40263
40264         * sysdeps/unix/sysv/linux/ia64/nptl/Makefile: File removed, contents
40265         appended ...
40266         * sysdeps/unix/sysv/linux/ia64/Makefile: ... here.
40267         * sysdeps/unix/sysv/linux/ia64/nptl/Versions: File removed, contents
40268         appended ...
40269         * sysdeps/unix/sysv/linux/ia64/Versions: ... here.
40270         * sysdeps/unix/sysv/linux/ia64/nptl/__ia64_longjmp.S: Moved ...
40271         * sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S: ... here.
40272         * sysdeps/unix/sysv/linux/ia64/nptl/__sigstack_longjmp.c: Moved ...
40273         * sysdeps/unix/sysv/linux/ia64/__sigstack_longjmp.c: ... here.
40274         * sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data: Moved ...
40275         * sysdeps/unix/sysv/linux/ia64/c++-types.data: ... here.
40276         * sysdeps/unix/sysv/linux/ia64/nptl/dl-sysdep.h: Moved ...
40277         * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: ... here.
40278         * sysdeps/unix/sysv/linux/ia64/nptl/ld.abilist: Moved ...
40279         * sysdeps/unix/sysv/linux/ia64/ld.abilist: ... here.
40280         * sysdeps/unix/sysv/linux/ia64/nptl/libBrokenLocale.abilist: Moved ...
40281         * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: ... here.
40282         * sysdeps/unix/sysv/linux/ia64/nptl/libanl.abilist: Moved ...
40283         * sysdeps/unix/sysv/linux/ia64/libanl.abilist: ... here.
40284         * sysdeps/unix/sysv/linux/ia64/nptl/libc.abilist: Moved ...
40285         * sysdeps/unix/sysv/linux/ia64/libc.abilist: ... here.
40286         * sysdeps/unix/sysv/linux/ia64/nptl/libcrypt.abilist: Moved ...
40287         * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: ... here.
40288         * sysdeps/unix/sysv/linux/ia64/nptl/libdl.abilist: Moved ...
40289         * sysdeps/unix/sysv/linux/ia64/libdl.abilist: ... here.
40290         * sysdeps/unix/sysv/linux/ia64/nptl/libm.abilist: Moved ...
40291         * sysdeps/unix/sysv/linux/ia64/libm.abilist: ... here.
40292         * sysdeps/unix/sysv/linux/ia64/nptl/libnsl.abilist: Moved ...
40293         * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: ... here.
40294         * sysdeps/unix/sysv/linux/ia64/nptl/libpthread.abilist: Moved ...
40295         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: ... here.
40296         * sysdeps/unix/sysv/linux/ia64/nptl/libresolv.abilist: Moved ...
40297         * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: ... here.
40298         * sysdeps/unix/sysv/linux/ia64/nptl/librt.abilist: Moved ...
40299         * sysdeps/unix/sysv/linux/ia64/librt.abilist: ... here.
40300         * sysdeps/unix/sysv/linux/ia64/nptl/libthread_db.abilist: Moved ...
40301         * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: ... here.
40302         * sysdeps/unix/sysv/linux/ia64/nptl/libutil.abilist: Moved ...
40303         * sysdeps/unix/sysv/linux/ia64/libutil.abilist: ... here.
40304         * sysdeps/unix/sysv/linux/ia64/nptl/localplt.data: Moved ...
40305         * sysdeps/unix/sysv/linux/ia64/localplt.data: ... here.
40306         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Moved ...
40307         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: ... here.
40308         * sysdeps/unix/sysv/linux/ia64/nptl/sysdep-cancel.h: Moved ...
40309         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: ... here.
40310         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Moved ...
40311         * sysdeps/unix/sysv/linux/ia64/timer_create.c: ... here.
40312         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Moved ...
40313         * sysdeps/unix/sysv/linux/ia64/timer_delete.c: ... here.
40314         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Moved ...
40315         * sysdeps/unix/sysv/linux/ia64/timer_getoverr.c: ... here.
40316         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c: Moved ...
40317         * sysdeps/unix/sysv/linux/ia64/timer_gettime.c: ... here.
40318         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c: Moved ...
40319         * sysdeps/unix/sysv/linux/ia64/timer_settime.c: ... here.
40320         * sysdeps/unix/sysv/linux/ia64/nptl/unwind-forcedunwind.c: Moved ...
40321         * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c: ... here.
40322         Update #include.
40323         * sysdeps/unix/sysv/linux/ia64/nptl/unwind_longjmp.c: Moved ...
40324         * sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c: ... here.
40325
40326 2014-08-04  Roland McGrath  <roland@hack.frob.com>
40327
40328         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h: Moved ...
40329         * sysdeps/ia64/nptl/bits/pthreadtypes.h: ... here.
40330         * sysdeps/unix/sysv/linux/ia64/nptl/bits/semaphore.h: Moved ...
40331         * sysdeps/ia64/nptl/bits/semaphore.h: ... here.
40332         * sysdeps/unix/sysv/linux/ia64/nptl/bits/local_lim.h: Moved ...
40333         * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: ... here.
40334
40335 2014-08-04  Roland McGrath  <roland@hack.frob.com>
40336
40337         * nptl/sysdeps/pthread/createthread.c: Include <arch-fork.h>.
40338         * sysdeps/unix/sysv/linux/ia64/arch-fork.h (ARCH_CLONE): New macro.
40339         * sysdeps/ia64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
40340         * sysdeps/unix/sysv/linux/ia64/nptl/createthread.c: File removed.
40341
40342 2014-08-04  Roland McGrath  <roland@hack.frob.com>
40343
40344         * sysdeps/unix/sysv/linux/ia64/nptl/vfork.S: Moved ...
40345         * sysdeps/unix/sysv/linux/ia64/vfork.S: ... here.
40346         (__libc_vfork): Define function under this name.
40347         (__vfork): Define as an alias.
40348         * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: New file.
40349         * sysdeps/unix/sysv/linux/ia64/nptl/pt-vfork.S: File removed.
40350
40351 2014-08-04  Roland McGrath  <roland@hack.frob.com>
40352
40353         * sysdeps/unix/sysv/linux/ia64/clone2.S: Deconditionalize the code
40354         that was previously under [RESET_PID].
40355         * sysdeps/unix/sysv/linux/ia64/nptl/clone2.S: File removed.
40356
40357 2014-08-04  Andreas Schwab  <schwab@suse.de>
40358
40359         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <math_private.h>.
40360
40361 2014-08-03  Mike Frysinger  <vapier@gentoo.org>
40362
40363         * stdlib/tst-setcontext.c (test_stack): Fix coding style.
40364         (main): Likewise.
40365
40366 2014-08-01  Roland McGrath  <roland@hack.frob.com>
40367
40368         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: File removed.
40369
40370 2014-08-01  Richard Henderon  <rth@redhat.com>
40371
40372         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval before
40373         feclearexcept; use math_opt_barrier instead of open-coded asm; fix
40374         typo in exact zero test.
40375         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
40376         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
40377         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
40378
40379 2014-08-01  Roland McGrath  <roland@hack.frob.com>
40380
40381         * sysdeps/unix/sysv/linux/arm/sysdep.h (PTR_MANGLE_LOAD, PTR_MANGLE)
40382         (PTR_MANGLE2, PTR_DEMANGLE, PTR_DEMANGLE2): Move these macros...
40383         * sysdeps/arm/sysdep.h: ... here.
40384         [!__ASSEMBLER__]: Include <stdint.h>.
40385
40386 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
40387
40388         * include/libc-symbols.h (HAVE_LIBINTL_H): Define macro.
40389         (HAVE_WCTYPE_H): Likewise.
40390         (HAVE_ISWCTYPE): Likewise.
40391         (ENABLE_NLS): Likewise.
40392         * posix/regex_internal.h [(defined MB_CUR_MAX && HAVE_WCTYPE_H
40393         && HAVE_ISWCTYPE) || _LIBC]: Sync up with gnulib.
40394
40395         * posix/regex_internal.c: Check if DEBUG is defined and is
40396         set.
40397
40398         * include/libc-symbols.h (HAVE_MBSTATE_T): Define macro.
40399         (HAVE_MBSRTOWCS): Likewise.
40400         * posix/fnmatch.c: Include string.h unconditionally.
40401
40402 2014-08-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
40403
40404         * NEWS: Explain the s390 jmp_buf / ucontext_t ABI change
40405         reversal.
40406
40407 2014-07-31  Roland McGrath  <roland@hack.frob.com>
40408
40409         * sysdeps/generic/safe-fatal.h: New file.
40410         * sysdeps/unix/sysv/linux/safe-fatal.h: New file.
40411         * nptl/forward.c: Include it.
40412         (__pthread_unwind): Use __safe_fatal as default action, rather
40413         than a bogus use of INTERNAL_SYSCALL that could never work.
40414
40415         * config.h.in (HAVE_BUILTIN_TRAP): New #define to 0.
40416         * configure.ac (libc_cv_builtin_trap): New test.
40417         * configure: Regenerated.
40418         * sysdeps/generic/abort-instr.h [HAVE_BUILTIN_TRAP]
40419         (ABORT_INSTRUCTION): Define using __builtin_trap.
40420
40421         * nptl/pthreadP.h (SIGCANCEL, SIGTIMER, SIGSETXID, __xidcmd): Moved ...
40422         * sysdeps/unix/sysv/linux/nptl-signals.h: ... to this new file.
40423         * sysdeps/nptl/nptl-signals.h: New file.
40424         * nptl/pthreadP.h: Include <nptl-signals.h>.
40425
40426 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
40427
40428         * sysdeps/s390/s390-64/utf16-utf32-z9.c
40429         (ONE_DIRECTION): Define.
40430         * sysdeps/s390/s390-64/utf8-utf16-z9.c
40431         (ONE_DIRECTION): Define.
40432         * sysdeps/s390/s390-64/utf8-utf32-z9.c
40433         (ONE_DIRECTION): Define.
40434
40435 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
40436
40437         * sysdeps/s390/Makefile: Delete file.
40438         * sysdeps/s390/Versions (GLIBC_2.19): Remove __setjmp.
40439         * sysdeps/s390/__longjmp.c: Delete file.
40440         * sysdeps/s390/bits/setjmp.h (__s390_jmp_buf):
40441         Remove fields __flags and __reserved.
40442         * sysdeps/s390/longjmp.c: Include setjmp/longjmp.c
40443         and add versioning.
40444         * sysdeps/s390/rtld-__longjmp.c: Delete file.
40445         * sysdeps/s390/rtld-global-offsets.sym: Likewise.
40446         * sysdeps/s390/rtld-setjmp.S: Likewise.
40447         * sysdeps/s390/s390-32/__longjmp-common.c: Move to ...
40448         * sysdeps/s390/s390-32/__longjmp.c: ... here.
40449         * sysdeps/s390/s390-32/setjmp-common.S: Move to ...
40450         * sysdeps/s390/s390-32/setjmp.S: ... here.
40451         Add versioning.
40452         (__sigsetjmp): Remove setting __flags field.
40453         * sysdeps/s390/s390-64/__longjmp-common.c:Move to ...
40454         * sysdeps/s390/s390-64/__longjmp.c: ... here.
40455         * sysdeps/s390/s390-64/setjmp-common.S: Move to ...
40456         * sysdeps/s390/s390-64/setjmp.S: ... here.
40457         Add versioning.
40458         (__sigsetjmp): Remove setting __flags field.
40459         * sysdeps/s390/setjmp.S: Delete file.
40460         * sysdeps/s390/sigjmp.c: Likewise.
40461         * sysdeps/s390/v1-longjmp.c: Likewise.
40462         * sysdeps/s390/v1-setjmp.h: Likewise.
40463         * sysdeps/s390/v1-sigjmp.c: Likewise.
40464         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines):
40465         Remove v1-longjmp_chk.
40466         * sysdeps/unix/sysv/linux/s390/getcontext.S: Delete file.
40467         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c:
40468         Include debug/longjmp_chk.c and add versioning.
40469         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c:
40470         Include nptl/pt-longjmp.c and add versioning.
40471         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: Delete file.
40472         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c:
40473         Include __longjmp.c.
40474         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
40475         Move to ...
40476         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: ... here.
40477         (__getcontext): Remove setting __flags field.
40478         Add versioning.
40479         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
40480         Don't restore upper high grps.
40481         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S:
40482         Likewise.
40483         (__swapcontext): Remove setting uc_flags field.
40484         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym:
40485         Delete file.
40486         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
40487         Include __longjmp.c.
40488         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
40489         Move to ...
40490         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: ... here.
40491         (__getcontext): Remove setting __flags field.
40492         Add versioning.
40493         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S:
40494         (__swapcontext): Remove setting uc_flags field.
40495         * unix/sysv/linux/s390/s390-64/ucontext_i.sym: Delete file.
40496         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (ucontext):
40497         Remove fields uc_high_gprs and __reserved.
40498         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym:
40499         New file with reverted content.
40500         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: Delete file.
40501         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist:
40502         Regenerated.
40503         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist:
40504         Regenerated.
40505
40506 2014-07-31  Andreas Schwab  <schwab@suse.de>
40507
40508         * config.h.in (HAVE_IFUNC): Define to 0.
40509         * rt/clock-compat.c [HAVE_IFUNC]: Check for value, not
40510         definedness.
40511
40512 2014-07-30  Ling Ma  <ling.ml@alibaba-inc.com>
40513
40514         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
40515         memmove-avx-unaligned, memcpy-avx-unaligned and
40516         mempcpy-avx-unaligned.
40517         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
40518         Add tests for AVX memcpy functions.
40519         * sysdeps/x86_64/multiarch/memcpy.S: Add support for AVX memcpy.
40520         * sysdeps/x86_64/multiarch/memcpy_chk.S: Add support for AVX
40521         memcpy_chk.
40522         * sysdeps/x86_64/multiarch/memmove.c: Add support for AVX memmove.
40523         * sysdeps/x86_64/multiarch/memmove_chk.c: Add support for AVX
40524         memmove_chk.
40525         * sysdeps/x86_64/multiarch/mempcpy.S: Add support for AVX mempcpy.
40526         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Add support for AVX
40527         mempcpy_chk.
40528         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: New file.
40529         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: New file.
40530         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: New file.
40531
40532 2013-07-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40533
40534         [BZ #17213]
40535         * sysdeps/powerpc/powerpc64/entry.h: Fix TEXT_START definition for
40536         powerpc64le.
40537
40538 2014-07-29  Jeff Layton  <jlayton@poochiereds.net>
40539
40540         [BZ #16839]
40541         * manual/llio.texi: Add section about open file description locks.
40542         * manual/examples/ofdlocks.c: Example of open file description
40543         lock usage.
40544         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Define F_OFD_GETLK,
40545         F_OFD_SETLK, and F_OFD_SETLKW.
40546
40547 2014-07-23  Allan McRae  <allan@archlinux.org>
40548
40549         * po/es.po: Update Spanish translation from translation project.
40550
40551 2014-07-18  Andreas Schwab  <schwab@linux-m68k.org>
40552
40553         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Removed.
40554
40555 2014-07-17  Maciej W. Rozycki  <macro@codesourcery.com>
40556
40557         [BZ #17078]
40558         * sysdeps/arm/dl-machine.h (elf_machine_rela)
40559         [RESOLVE_CONFLICT_FIND_MAP]: Handle R_ARM_TLS_DESC relocation.
40560         (elf_machine_lazy_rel): Handle prelinked R_ARM_TLS_DESC entries.
40561
40562 2014-07-17  Joseph Myers  <joseph@codesourcery.com>
40563
40564         [BZ #17088]
40565         * math/fesetenv.c (__fesetenv)
40566         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Return 1 for FE_NOMASK_ENV.
40567         * math/feupdateenv.c (__feupdateenv)
40568         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Likewise.
40569
40570         * sysdeps/unix/sysv/linux/s390/kernel-features.h: New file.
40571         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
40572         (__ASSUME_SOCKETCALL): Do not define.
40573
40574         * sysdeps/unix/sysv/linux/sh/kernel-features.h: New file.
40575         * sysdeps/unix/sysv/linux/kernel-features.h [__sh__]
40576         (__ASSUME_SOCKETCALL): Do not define.
40577         (__ASSUME_ST_INO_64_BIT): Define unconditionally.
40578         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
40579         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
40580         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
40581         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
40582         [__LINUX_KERNEL_VERSION >= 0x030000 && __sh__]
40583         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
40584         [__sh__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
40585
40586         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: New file.
40587         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]
40588         (__ASSUME_SOCKETCALL): Do not define.
40589         (__ASSUME_IPC64): Define unconditionally.
40590         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
40591         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
40592         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
40593         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
40594         [__LINUX_KERNEL_VERSION >= 0x030000 && __powerpc__]
40595         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
40596         [__powerpc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL):
40597         Likewise.
40598
40599         * sysdeps/unix/sysv/linux/sparc/kernel-features.h: New file.
40600         * sysdeps/unix/sysv/linux/kernel-features.h [__sparc__]
40601         (__ASSUME_SOCKETCALL): Do not define.
40602         (__ASSUME_SET_ROBUST_LIST): Define unconditionally.
40603         (__ASSUME_FUTEX_LOCK_PI): Likewise.
40604         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL): Do not define.
40605         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
40606         (__ASSUME_REQUEUE_PI): Define unconditionally.
40607         [__LINUX_KERNEL_VERSION >= 0x020621 && __sparc__]
40608         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
40609         [__sparc__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
40610         [__LINUX_KERNEL_VERSION >= 0x030000 && __sparc__]
40611         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
40612         [__sparc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
40613
40614         * sysdeps/unix/sysv/linux/i386/kernel-features.h: New file.
40615         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__]
40616         (__ASSUME_SOCKETCALL): Do not define.
40617         [__LINUX_KERNEL_VERSION >= 0x020621 && __i386__]
40618         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
40619         [__i386__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
40620         [__LINUX_KERNEL_VERSION >= 0x030000 && __i386__]
40621         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
40622         [__i386__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
40623
40624         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h: New file.
40625         * sysdeps/unix/sysv/linux/kernel-features.h [__x86_64__]
40626         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
40627         [__LINUX_KERNEL_VERSION >= 0x020621 && __x86_64__]
40628         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
40629         [__LINUX_KERNEL_VERSION >= 0x030000 && __x86_64__]
40630         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
40631         [__x86_64__ && __LINUX_KERNEL_VERSION >= 0x030100]
40632         (__ASSUME_GETCPU_SYSCALL): Likewise.
40633
40634         * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): New macro.
40635         * sysdeps/gnu/configure.ac: Use LIBC_SLIBDIR_RTLDDIR.  Remove
40636         cases for individual architectures.
40637         * sysdeps/gnu/configure: Regenerated.
40638         * sysdeps/unix/sysv/linux/aarch64/configure.ac: Use
40639         LIBC_SLIBDIR_RTLDDIR.
40640         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerated.
40641         * sysdeps/unix/sysv/linux/mips/configure.ac: Use
40642         LIBC_SLIBDIR_RTLDDIR.
40643         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
40644         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: Use
40645         LIBC_SLIBDIR_RTLDDIR.
40646         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
40647         Regenerated.
40648         * sysdeps/unix/sysv/linux/s390/s390-64/configure.ac: New file.
40649         * sysdeps/unix/sysv/linux/s390/s390-64/configure: New generated
40650         file.
40651         * sysdeps/unix/sysv/linux/sparc/sparc64/configure.ac: New file.
40652         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: New generated
40653         file.
40654         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac: New file.
40655         * sysdeps/unix/sysv/linux/x86_64/64/configure: New generated file.
40656         * sysdeps/unix/sysv/linux/x86_64/x32/configure.ac: New file.
40657         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Generate.
40658
40659         * sysdeps/aarch64/shlib-versions: Move to ...
40660         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: ... here.
40661         * sysdeps/alpha/shlib-versions: Move to ...
40662         * sysdeps/unix/sysv/linux/alpha/shlib-versions: ... here.
40663         * sysdeps/arm/shlib-versions: Move to ...
40664         * sysdeps/unix/sysv/linux/arm/shlib-versions: ... here.
40665         * sysdeps/hppa/shlib-versions: Move all contents except for
40666         libgcc_s entry to ...
40667         * sysdeps/unix/sysv/linux/hppa/shlib-versions: ... here.  Merge in
40668         entry from ...
40669         * sysdeps/hppa/nptl/shlib-versions: ... here.  Remove file.
40670         * sysdeps/ia64/shlib-versions: Move to ...
40671         * sysdeps/unix/sysv/linux/ia64/shlib-versions: ... here.  Merge in
40672         entry from ...
40673         * sysdeps/ia64/nptl/shlib-versions: ... here.  Remove file.
40674         * sysdeps/m68k/coldfire/shlib-versions: Move to ...
40675         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: ... here.
40676         * sysdeps/microblaze/shlib-versions: Move to ...
40677         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: ... here.
40678         * sysdeps/mips/shlib-versions: Move to ...
40679         * sysdeps/unix/sysv/linux/mips/shlib-versions: ... here.  Merge in
40680         entry from ...
40681         * sysdeps/mips/nptl/shlib-versions: ... here.  Remove file.
40682         * sysdeps/tile/shlib-versions: Move to ...
40683         * sysdeps/unix/sysv/linux/tile/shlib-versions: ... here.
40684         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Merge in entry
40685         from ...
40686         * sysdeps/x86_64/64/shlib-versions: ... here.  Remove file.
40687         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Merge in
40688         entry from ...
40689         * sysdeps/x86_64/x32/shlib-versions: ... here.  Remove file.
40690
40691 2014-07-17  Will Newton  <will.newton@linaro.org>
40692
40693         * sysdeps/arm/bits/atomic.h
40694         (__arch_compare_and_exchange_bool_8_int): Evaluate to zero.
40695         (__arch_compare_and_exchange_bool_16_int): Likewise.
40696         (__arch_compare_and_exchange_bool_64_int): Likewise.
40697
40698         * iconv/loop.c: Move definition of LOOPFCT and gconv_btowc
40699         into an #else block.
40700
40701 2014-07-16  Roland McGrath  <roland@hack.frob.com>
40702
40703         * sysdeps/arm/preconfigure.ac: Apply EABI sanity check to arm*, not
40704         just Linux configurations.  Test empirically that the compiler sets
40705         __ARM_EABI__, rather than using the tuple to decide.
40706         * sysdeps/arm/preconfigure: Regenerated.
40707         * sysdeps/unix/sysv/linux/arm/configure: File removed.
40708         * sysdeps/unix/sysv/linux/arm/configure.ac: File removed,
40709         contents appended ...
40710         * sysdeps/arm/configure.ac: ... here.
40711         * sysdeps/arm/configure: Regenerated.
40712
40713 2014-07-15  Roland McGrath  <roland@hack.frob.com>
40714
40715         * nptl/pthread_kill.c: New file.
40716         * nptl/pthread_sigmask.c: New file.
40717         * nptl/pthread_sigqueue.c: New file.
40718
40719         * sysdeps/nptl/lowlevellock.h: New file.
40720         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: New file.
40721         * sysdeps/nptl/lowlevellock-futex.h: New file.
40722
40723         * nptl/pthreadP.h (__current_sigrtmin, __current_sigrtmax):
40724         Remove dead declarations.
40725
40726 2014-07-14  H.J. Lu  <hongjiu.lu@intel.com>
40727
40728         * config.h.in (HAVE_AVX2_SUPPORT): New #undef.
40729         * sysdeps/i386/configure.ac: Set HAVE_AVX2_SUPPORT and
40730         config-cflags-avx2.
40731         * sysdeps/x86_64/configure.ac: Likewise.
40732         * sysdeps/i386/configure: Regenerated.
40733         * sysdeps/x86_64/configure: Likewise.
40734         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
40735         memset-avx2 only if config-cflags-avx2 is yes.
40736         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
40737         Tests for memset_chk and memset only if HAVE_AVX2_SUPPORT is
40738         defined.
40739         * sysdeps/x86_64/multiarch/memset.S: Define multiple versions
40740         only if HAVE_AVX2_SUPPORT is defined.
40741         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
40742
40743 2014-07-14  Alan Modra  <amodra@gmail.com>
40744
40745         [BZ #17153]
40746         * elf/elf.h (DT_PPC64_NUM): Correct value.
40747         * NEWS: Add to fixed bug list.
40748
40749 2014-07-13  Jim Meyering  <meyering@fb.com>
40750
40751         [BZ 17150]
40752         regex: don't deref NULL upon heap allocation failure
40753         * posix/regcomp.c: (parse_dup_op): Handle duplicate_tree
40754         failure in one more place.
40755         To trigger the segfault, configure grep -with-included-regex,
40756         build it, and run these commands:
40757         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
40758
40759 2014-07-13  Andreas Schwab  <schwab@linux-m68k.org>
40760
40761         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
40762
40763 2014-07-11  Richard Henderson  <rth@redhat.com>
40764
40765         * sysdeps/aarch64/libm-test-ulps: Update.
40766
40767 2014-07-10  Florian Weimer  <fweimer@redhat.com>
40768
40769         [BZ #17135]
40770         * nptl/pthreadP.h (__nptl_setxid_error): Declare function.
40771         * nptl/allocatestack.c (__nptl_setxid_error): New function.
40772         (__nptl_setxid): Initialize error member.  Call
40773         __nptl_setxid_error.
40774         * nptl/nptl-init.c (sighandler_setxid): Call __nptl_setxid_error.
40775         * nptl/descr.h (struct xid_command): Add error member.
40776         * nptl/tst-setuid3.c: New file.
40777         * nptl/Makefile (tests): Add it.
40778
40779 2014-07-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40780
40781         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_base_trylock):
40782         New define.
40783         (__lll_trylock): Use __lll_base_trylock.
40784         (__lll_cond_trylock): Likewise.
40785
40786 2014-07-10  Roland McGrath  <roland@hack.frob.com>
40787
40788         * nptl/pthread_create.c (start_thread): Use atomic_or and
40789         lll_futex_wake directly rather than lll_robust_dead.
40790         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
40791         (lll_robust_dead): Macro removed.
40792         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Likewise.
40793         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
40794         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
40795         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
40796         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
40797         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
40798         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
40799         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
40800         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
40801         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
40802         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
40803         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
40804         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
40805         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
40806         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
40807
40808         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
40809         Use atomic_compare_and_exchange_val_acq directly rather than
40810         lll_robust_trylock.
40811         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
40812         (__lll_robust_trylock, lll_robust_trylock): Removed.
40813         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
40814         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
40815         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
40816         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
40817         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
40818         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
40819         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
40820         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
40821         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
40822         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
40823         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
40824         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
40825         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
40826         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
40827
40828 2014-07-02  Florian Weimer  <fweimer@redhat.com>
40829
40830         * manual/locale.texi (Locale Names): New section documenting
40831         locale name syntax.  Adjust menu and node chaining accordingly.
40832         (Choosing Locale): Reference Locale Names, Locale Categories.
40833         Mention setting LC_ALL=C.  Reflect that name syntax is now
40834         documented.
40835         (Locale Categories): New section title.  Reference Locale Names.
40836         LC_ALL is an environment variable, but not a category.
40837         (Setting the Locale): Remove "locale -a" invocation and LOCPATH
40838         description, now in Locale Name.  Reference that section.  Locale
40839         name syntax is now documented.
40840
40841 2014-07-02  Florian Weimer  <fweimer@redhat.com>
40842
40843         [BZ #17137]
40844         * locale/findlocale.c (name_present, valid_locale_name): New
40845         functions.
40846         (_nl_find_locale): Use the loc_name variable to store name
40847         candidates.  Call name_present and valid_locale_name to check and
40848         validate locale names.  Return an error if the locale is invalid.
40849
40850 2014-07-02  Florian Weimer  <fweimer@redhat.com>
40851
40852         * locale/setlocale.c (setlocale): Use strdup for allocating
40853         composite name copy.
40854
40855 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
40856
40857         Sync up with gnulib.
40858         * misc/error.c: Use !_LIBC instead of HAVE_CONFIG_H.
40859         [!_LIBC && ENABLE_NLS]: Include gettext.h.
40860         [_LIBC]: Define USE_UNLOCKED_IO, _GL_ATTRIBUTE_FORMAT_PRINTF
40861         and _GL_ARG_NONNULL.
40862         [USE_UNLOCKED_IO]: Include unlocked-io.h.
40863         [!_LIBC]: Include code for Windows and Cygwin.
40864         [!_LIBC && !HAVE_DECL_STRERROR_R && !STRERROR_R_CHAR_P]:
40865         Include prototype for int strerror_r.
40866         [!_LIBC] (is_open): New function.
40867         (flush_stdout): New function.
40868         (print_errno_message): Use it.
40869         (error): Likewise.
40870         (error_at_line): Likewise.
40871         (error_tail) Add function attribute macros.  Use
40872         __builtin_expect.
40873
40874         * time/strptime_l.c [_LIBC]: Define HAVE_LOCALTIME_R.
40875
40876         * time/strftime_l.c [_LIBC]: Define HAVE_STRFTIME.
40877
40878         * io/ftw.c: Include sys/param.h unconditionally.
40879
40880         * locale/programs/simple-hash.c [!HAVE_OBSTACK]: Remove code.
40881
40882         [BZ #17125]
40883         * sysdeps/unix/sysv/linux/check_pf.c (cache): Don't use
40884         libc_freeres_ptr.
40885         (freecache): New function to free CACHE on exit.
40886
40887         * sunrpc/xdr.c (xdr_string): Add comment about SIZE
40888         initialization.
40889
40890 2014-07-09  David S. Miller  <davem@davemloft.net>
40891
40892         * sysdeps/sparc/fpu/libm-test-ulps: Update.
40893
40894         * sysdeps/sparc/nptl/internaltypes.h: Delete.
40895         * sysdeps/sparc/nptl/sparc-nptl.h: New file.
40896         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Include it.
40897         * sysdeps/sparc/nptl/pthread_barrier_init.c: Likewise.
40898         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Likewise.
40899         * sysdeps/sparc/nptl/sem_init.c: Likewise.
40900         * sysdeps/sparc/nptl/sem_post.c: Likewise.
40901         * sysdeps/sparc/nptl/sem_timedwait.c: Likewise.
40902         * sysdeps/sparc/nptl/sem_wait.c: Likewise.
40903         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Likewise.
40904         * sysdeps/sparc/sparc32/nptl/sem_post.c: Likewise.
40905         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Likewise.
40906         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Likewise.
40907
40908 2014-07-09  Andreas Schwab  <schwab@suse.de>
40909
40910         * sysdeps/powerpc/test-gettimebase.c (do_test): Add newline to
40911         output.
40912         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c
40913         (do_test): Likewise.
40914
40915         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
40916
40917 2014-07-09  Will Newton  <will.newton@linaro.org>
40918
40919         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Test SHARED with #ifdef.
40920         * sysdeps/arm/tlsdesc.c (_dl_unmap): Likewise.
40921         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
40922         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
40923         * sysdeps/hppa/start.S (_start): Likewise.
40924
40925 2014-07-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
40926
40927         * sunrpc/xdr.c (xdr_string): Initialize SIZE to 0.
40928
40929         * sysdeps/generic/unwind-pe.h: Only check if __cplusplus is
40930         defined.
40931
40932 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
40933
40934         * resolv/res_query.c (__libc_res_nsearch): Dereference resplen2
40935         after checking that it is non-NULL.
40936
40937         * sysdeps/i386/dl-machine.h: Define ELF_MACHINE_NO_REL.
40938
40939 2014-07-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40940
40941         * sysdeps/powerpc/memmove.c: Remove file.
40942         * sysdeps/powerpc/powerpc32/power4/memcopy.h
40943         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Define it to 1.
40944         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
40945         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Remove define.
40946         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c:
40947         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Likewise.
40948         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Include default
40949         string memmove instead of removed powerpc one.
40950
40951         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
40952         [weak_alias]: Fix compiler warning due trailing data.
40953         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S:
40954         [weak_alias]: Likewise.
40955         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: Fix compile
40956         warnigs due missing definition of __strcpy_power7 and __strlen_power7.
40957
40958         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
40959         (__libc_ifunc_impl_list): Add memmove functions.
40960
40961 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
40962
40963         * localedata/tests-mbwc/dat_iswalnum.c [SHOJI_IS_RIGHT]:
40964         Remove code.
40965         * localedata/tests-mbwc/dat_iswalpha.c [SHOJI_IS_RIGHT]:
40966         Likewise.
40967         * localedata/tests-mbwc/dat_iswctype.c [SHOJI_IS_RIGHT]:
40968         Likewise.
40969         * localedata/tests-mbwc/dat_iswgraph.c [SHOJI_IS_RIGHT]:
40970         Likewise.
40971         * localedata/tests-mbwc/dat_iswprint.c [SHOJI_IS_RIGHT]:
40972         Likewise.
40973         * localedata/tests-mbwc/dat_iswpunct.c [SHOJI_IS_RIGHT]:
40974         Likewise.
40975         * localedata/tests-mbwc/dat_mbrlen.c [SHOJI_IS_RIGHT]:
40976         Likewise.
40977         * localedata/tests-mbwc/dat_mbstowcs.c [SHOJI_IS_RIGHT]:
40978         Likewise.
40979         * localedata/tests-mbwc/dat_mbtowc.c [SHOJI_IS_RIGHT]:
40980         Likewise.
40981         * localedata/tests-mbwc/dat_strcoll.c [SHOJI_IS_RIGHT]:
40982         Likewise.
40983         * localedata/tests-mbwc/dat_swscanf.c [SHOJI_IS_RIGHT]:
40984         Likewise.
40985         * localedata/tests-mbwc/dat_towctrans.c [SHOJI_IS_RIGHT]:
40986         Likewise.
40987         * localedata/tests-mbwc/dat_wcscoll.c [SHOJI_IS_RIGHT]:
40988         Likewise.
40989         * localedata/tests-mbwc/dat_wcswidth.c [SHOJI_IS_RIGHT]:
40990         Likewise.
40991         * localedata/tests-mbwc/dat_wctob.c [SHOJI_IS_RIGHT]:
40992         Likewise.
40993         * localedata/tests-mbwc/dat_wcwidth.c [SHOJI_IS_RIGHT]:
40994         Likewise.
40995         * localedata/tests-mbwc/tst_towctrans.c [SHOJI_IS_RIGHT]:
40996         Likewise.
40997
40998 2014-07-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40999
41000         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Align VSX copies to 16B
41001         to avoid alignment traps in non-cacheable memory.
41002         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
41003
41004         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memmove
41005         multiarch objects.
41006         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c: New
41007         file: multiarch power7 memmove.
41008         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c: New file:
41009         multiarch default memmove.
41010         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: New file:
41011         multiarch memove for powerpc32/power4.
41012
41013         * string/bcopy.c: Use full path to include memmove.c.
41014         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memmove and bcopy
41015         multiarch objects.
41016         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c: New file: default
41017         bcopy for powerpc64.
41018         * sysdeps/powerpc/powerpc64/multiarch/bcopy.c: New file: multiarch
41019         bcopy for powerpc64.
41020         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add bcopy
41021         and memmove implementations.
41022         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: New file:
41023         optimized multiarch memmove for POWER7/powerpc64.
41024         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: New file:
41025         default multiarch memmove for powerpc64.
41026         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: New file: memmove
41027         multiarch for powerpc64.
41028         * sysdeps/powerpc/powerpc64/power7/bcopy.c: New file: optimized bcopy
41029         for POWER7/powerpc64.
41030         * sysdeps/powerpc/powerpc64/power7/memmove.S: New file: optimized
41031         memmove for POWER7/powerpc64.
41032
41033         * sysdeps/powerpc/memmove.c (memmove): Cleanup impplementation to use
41034         glibc default one.
41035
41036         * sysdeps/powerpc/bits/link.h [_CALL_ELF]: Guard check for
41037         __ELF_NATIVE_CLASS equal to 64.
41038
41039 2014-07-07  Roland McGrath  <roland@hack.frob.com>
41040
41041         * sysdeps/nptl/lowlevellock.h: File removed.
41042
41043         * NEWS: NPTL is no longer an add-on!
41044         * nptl/internaltypes.h: Moved ...
41045         * sysdeps/nptl/internaltypes.h: ... here.
41046         * sysdeps/nptl/aio_misc.h: Use <nptl/pthreadP.h> in #include.
41047         * sysdeps/nptl/fork.c: Likewise.
41048         * sysdeps/nptl/gai_misc.h: Likewise.
41049         * sysdeps/nptl/librt-cancellation.c: Likewise.
41050         * sysdeps/nptl/jmp-unwind.c: Likewise.
41051         * sysdeps/nptl/setxid.h: Likewise.
41052         * sysdeps/unix/sysv/linux/aarch64/Implies: New file.
41053         * sysdeps/unix/sysv/linux/alpha/Implies: Add alpha/nptl.
41054         * sysdeps/unix/sysv/linux/arm/Implies: New file.
41055         * sysdeps/unix/sysv/linux/hppa/Implies: New file.
41056         * sysdeps/unix/sysv/linux/i386/Implies: Add i386/nptl.
41057         * sysdeps/unix/sysv/linux/i386/i686/Implies: New file.
41058         * sysdeps/unix/sysv/linux/ia64/Implies: Add ia64/nptl.
41059         * sysdeps/unix/sysv/linux/m68k/Implies: New file.
41060         * sysdeps/unix/sysv/linux/microblaze/Implies: New file.
41061         * sysdeps/unix/sysv/linux/mips/Implies: New file.
41062         * sysdeps/unix/sysv/linux/powerpc/Implies: New file.
41063         * sysdeps/unix/sysv/linux/s390/Implies: Add s390/nptl.
41064         * sysdeps/unix/sysv/linux/sh/Implies: New file.
41065         * sysdeps/unix/sysv/linux/sparc/Implies: New file.
41066         * sysdeps/unix/sysv/linux/tile/Implies: New file.
41067         * sysdeps/unix/sysv/linux/x86_64/Implies: Add x86_64/nptl.
41068         * sysdeps/unix/sysv/linux/x86_64/x32/Implies: New file.
41069         * nptl/Makeconfig: Moved ...
41070         * sysdeps/nptl/Makeconfig: ... here.
41071         * nptl/configure: File removed.
41072         * nptl/ANNOUNCE: File removed.
41073         * sysdeps/unix/sysv/linux/configure.ac: Remove nptl sanity check.
41074         * sysdeps/unix/sysv/linux/configure: Regenerated.
41075
41076         * nptl/Makefile (routines): Add libc_pthread_init,
41077         libc_multiple_threads, register-atfork and unregister-atfork.
41078         (libpthread-routines): Add pthread_mutex_cond_lock and pt-fork here.
41079         (gen-as-const-headers): Add lowlevelcond.sym, lowlevelrwlock.sym,
41080         lowlevelbarrier.sym, unwindbuf.sym, lowlevelrobustlock.sym,
41081         pthread-pi-defines.sym, structsem.sym.
41082         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = posix]
41083         (CFLAGS-fork.c, CFLAGS-getpid.o, CFLAGS-getpid.os): New variables.
41084         [$(subdir) = nptl] (tests): Add tst-setgetname.
41085         * nptl/sysdeps/unix/sysv/linux/Makefile: File removed.
41086         * sysdeps/unix/sysv/linux/sigaction.c: Just include
41087         <nptl/sigaction.c> directly here, instead of WRAPPER_INCLUDE.
41088         [!LIBC_SIGACTION]: Remove aliases.
41089         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
41090         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
41091         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
41092         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
41093         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
41094         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
41095         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
41096         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
41097         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
41098         * nptl/Versions (libc: GLIBC_2.3.2): Add __register_atfork.
41099         (libc: GLIBC_PRIVATE): Add __libc_pthread_init,
41100         __libc_current_sigrtmin_private, __libc_current_sigrtmax_private,
41101         __libc_allocate_rtsig_private.
41102         * nptl/sysdeps/unix/sysv/linux/Versions: File removed.
41103         * sysdeps/unix/sysv/linux/sigtimedwait.c: Include <nptl/pthreadP.h>.
41104         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
41105         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
41106         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
41107         * nptl/sysdeps/unix/sysv/linux/sigwait.c: File removed.
41108         * nptl/sysdeps/unix/sysv/linux/sigtimedwait.c: File removed.
41109         * nptl/sysdeps/unix/sysv/linux/sigwaitinfo.c: File removed.
41110         * nptl/sysdeps/unix/sysv/linux/sleep.c: File removed.
41111         * nptl/sysdeps/unix/sysv/linux/createthread.c: File removed.
41112         * sysdeps/unix/sysv/linux/ia64/fork.S: File removed.
41113         * nptl/sysdeps/unix/sysv/linux/internaltypes.h: Moved ...
41114         * nptl/internaltypes.h: ... here.
41115         * nptl/sysdeps/unix/sysv/linux/jmp-unwind.c: Moved ...
41116         * sysdeps/nptl/jmp-unwind.c: ... here.
41117         * nptl/sysdeps/unix/sysv/linux/libc-lowlevellock.c: Moved ...
41118         * nptl/libc-lowlevellock.c: ... here.
41119         * nptl/sysdeps/unix/sysv/linux/libc_multiple_threads.c: Moved ...
41120         * nptl/libc_multiple_threads.c: ... here.
41121         * nptl/sysdeps/unix/sysv/linux/libc_pthread_init.c: Moved ...
41122         * nptl/libc_pthread_init.c: ... here.
41123         * nptl/sysdeps/unix/sysv/linux/lowlevelbarrier.sym: Moved ...
41124         * nptl/lowlevelbarrier.sym: ... here.
41125         * nptl/sysdeps/unix/sysv/linux/lowlevelcond.sym: Moved ...
41126         * nptl/lowlevelcond.sym: ... here.
41127         * nptl/sysdeps/unix/sysv/linux/lowlevellock.c: Moved ...
41128         * nptl/lowlevellock.c: ... here.
41129         * nptl/lowlevellock.h: Moved ...
41130         * sysdeps/nptl/lowlevellock.h: ... here.
41131         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Moved ...
41132         * nptl/lowlevelrobustlock.c: ... here.
41133         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.sym: Moved ...
41134         * nptl/lowlevelrobustlock.sym: ... here.
41135         * nptl/sysdeps/unix/sysv/linux/lowlevelrwlock.sym: Moved ...
41136         * nptl/lowlevelrwlock.sym: ... here.
41137         * nptl/sysdeps/unix/sysv/linux/pt-fork.c: Moved ...
41138         * nptl/pt-fork.c: ... here.
41139         * nptl/sysdeps/unix/sysv/linux/pthread-pi-defines.sym: Moved ...
41140         * nptl/pthread-pi-defines.sym: ... here.
41141         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Moved ...
41142         * nptl/pthread_attr_getaffinity.c: ... here.
41143         * nptl/sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: Moved ...
41144         * nptl/pthread_attr_setaffinity.c: ... here.
41145         * nptl/sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Moved ...
41146         * nptl/pthread_mutex_cond_lock.c: ... here.
41147         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
41148         Update #include.
41149         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Likewise.
41150         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: Moved ...
41151         * nptl/pthread_once.c: ... here, replacing old file.
41152         * nptl/sysdeps/unix/sysv/linux/pthread_yield.c: Moved ...
41153         * nptl/pthread_yield.c: ... here.
41154         * nptl/sysdeps/unix/sysv/linux/register-atfork.c: Moved ...
41155         * nptl/register-atfork.c: ... here.
41156         * nptl/sysdeps/unix/sysv/linux/sem_post.c: Moved ...
41157         * nptl/sem_post.c: ... here.
41158         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Update #include.
41159         * nptl/sysdeps/unix/sysv/linux/sem_timedwait.c: Moved ...
41160         * nptl/sem_timedwait.c: ... here.
41161         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Moved ...
41162         * nptl/sem_trywait.c: ... here.
41163         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Update #include.
41164         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Moved ...
41165         * nptl/sem_wait.c: ... here.
41166         * nptl/sysdeps/unix/sysv/linux/structsem.sym: Moved ...
41167         * nptl/structsem.sym: ... here.
41168         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Moved ...
41169         * sysdeps/unix/sysv/linux/mq_notify.c: ... here, replacing old file.
41170         * nptl/sysdeps/unix/sysv/linux/unregister-atfork.c: Moved ...
41171         * nptl/unregister-atfork.c: ... here.
41172         * nptl/sysdeps/unix/sysv/linux/unwindbuf.sym: Moved ...
41173         * nptl/unwindbuf.sym: ... here.
41174         * nptl/sysdeps/unix/sysv/linux/fork.c: Moved ...
41175         * sysdeps/nptl/fork.c: ... here.
41176         * nptl/sysdeps/unix/sysv/linux/fork.h: Moved ...
41177         * sysdeps/nptl/fork.h: ... here.
41178         * sysdeps/unix/sysv/linux/syscalls.list: Remove fork.
41179         * nptl/sysdeps/unix/sysv/linux/aio_misc.h: Moved ...
41180         * sysdeps/unix/sysv/linux/aio_misc.h: ... here.
41181         * nptl/sysdeps/unix/sysv/linux/allocrtsig.c: Moved ...
41182         * sysdeps/unix/sysv/linux/allocrtsig.c: ... here.
41183         * nptl/sysdeps/unix/sysv/linux/getpid.c: Moved ...
41184         * sysdeps/unix/sysv/linux/getpid.c: ... here.
41185         * nptl/sysdeps/unix/sysv/linux/kernel-posix-timers.h: Moved ...
41186         * sysdeps/unix/sysv/linux/kernel-posix-timers.h: ... here.
41187         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Moved ...
41188         * sysdeps/unix/sysv/linux/pt-raise.c: ... here.
41189         * nptl/sysdeps/unix/sysv/linux/pthread_getaffinity.c: Moved ...
41190         * sysdeps/unix/sysv/linux/pthread_getaffinity.c: ... here.
41191         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Moved ...
41192         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: ... here.
41193         * nptl/sysdeps/unix/sysv/linux/pthread_getname.c: Moved ...
41194         * sysdeps/unix/sysv/linux/pthread_getname.c: ... here.
41195         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Moved ...
41196         * sysdeps/unix/sysv/linux/pthread_kill.c: ... here.
41197         * nptl/sysdeps/unix/sysv/linux/pthread_setaffinity.c: Moved ...
41198         * sysdeps/unix/sysv/linux/pthread_setaffinity.c: ... here.
41199         * nptl/sysdeps/unix/sysv/linux/pthread_setname.c: Moved ...
41200         * sysdeps/unix/sysv/linux/pthread_setname.c: ... here.
41201         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Moved ...
41202         * sysdeps/unix/sysv/linux/pthread_sigqueue.c: ... here.
41203         * nptl/sysdeps/unix/sysv/linux/raise.c: Moved ...
41204         * sysdeps/unix/sysv/linux/raise.c: ... here.
41205         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Moved ...
41206         * sysdeps/unix/sysv/linux/timer_create.c: ... here.
41207         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Moved ...
41208         * sysdeps/unix/sysv/linux/timer_delete.c: ... here.
41209         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Moved ...
41210         * sysdeps/unix/sysv/linux/timer_getoverr.c: ... here.
41211         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Moved ...
41212         * sysdeps/unix/sysv/linux/timer_gettime.c: ... here.
41213         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Moved ...
41214         * sysdeps/unix/sysv/linux/timer_routines.c: ... here.
41215         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Moved ...
41216         * sysdeps/unix/sysv/linux/timer_settime.c: ... here.
41217         * nptl/sysdeps/unix/sysv/linux/tst-setgetname.c: Moved ...
41218         * sysdeps/unix/sysv/linux/tst-setgetname.c: ... here.
41219         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Update #include.
41220
41221 2014-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
41222
41223         * sysdeps/generic/memcopy.h: Add comment for
41224         MEMCPY_OK_FOR_FWD_MEMMOVE.
41225
41226 2014-07-04  Will Newton  <will.newton@linaro.org>
41227
41228         * string/memchr.c: Merge from gnulib.
41229         [_LIBC]: Remove conditionals.
41230         (__ptr_t): Remove define.
41231         (LONG_MAX_32_BITS): Likewise.
41232         (LONG_MAX): Likewise.
41233         (MEMCHR): Use ANSI prototype and optimize algorithm.
41234
41235         * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_REL): Define.
41236
41237 2014-07-03  Roland McGrath  <roland@hack.frob.com>
41238
41239         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
41240         (lll_futex_timed_wait_bitset): Fix syscall argument count.
41241
41242         * sysdeps/nptl/configure.ac (libc_cv_forced_unwind):
41243         Use -Dinhibit_libc=1 for unwind.h check to prevent false failure
41244         in a bare environment with no <stdlib.h> installed.
41245         * sysdeps/nptl/configure: Regenerated.
41246
41247         * sysdeps/alpha/fpu/s_nearbyint.c: Include <math_ldbl_opt.h>.
41248
41249         * sysdeps/unix/sysv/linux/configure.ac: Use AC_TRY_COMPILE rather than
41250         AC_EGREP_CPP for kernel header checks, so they only succeed if
41251         including <linux/version.h> actually works right.
41252         * sysdeps/unix/sysv/linux/configure: Regenerated.
41253
41254         * sysdeps/s390/nptl/tls.h (THREAD_SET_POINTER_GUARD): Refer to the
41255         value so it's not diagnosed as unused.
41256
41257         * sysdeps/pthread/Makefile: Conditionalize tst-timer bits (the only
41258         thing) with "ifeq ($(subdir),rt)".
41259
41260 2014-07-03  Richard Henderson  <rth@redhat.com>
41261
41262         * sysdeps/alpha/fpu/s_nearbyintf.c: Remove file.
41263         * sysdeps/alpha/fpu/s_nearbyint.c (__nearbyint): Remove;
41264         include sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c.
41265
41266         * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): New.
41267         (math_force_eval): New.
41268
41269         * sysdeps/alpha/fpu/s_lround.c: Add 0.5 with chopped rounding.
41270         * sysdeps/alpha/fpu/s_lroundf.c: Likewise.
41271
41272         * sysdeps/alpha/fpu/s_round.c: Remove file.
41273         * sysdeps/alpha/fpu/s_roundf.c: Remove file.
41274
41275         * elf/dl-support.c (HP_TIMING_AVAIL): Do not redefine.
41276         (_dl_non_dynamic_init): Check HP_SMALL_TIMING_AVAIL instead.
41277         * elf/rtld.c (HP_TIMING_AVAIL): Do not redefine.
41278         (_dl_start_final): Check HP_SMALL_TIMING_AVAIL instead.
41279         (_dl_start, print_statistics): Likewise.
41280         * sysdeps/generic/ldsodefs.h (struct rtld_global): Only check
41281         HP_SMALL_TIMING_AVAIL in defining _dl_cpuclock_offset.
41282
41283         * sysdeps/aarch64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
41284         * sysdeps/generic/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
41285         * sysdeps/i386/i686/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
41286         * sysdeps/ia64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
41287         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
41288         (HP_SMALL_TIMING_AVAIL): Define.
41289         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
41290         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
41291         (HP_SMALL_TIMING_AVAIL): Define.
41292         * sysdeps/sparc/sparc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
41293         * sysdeps/x86_64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
41294
41295         * sysdeps/aarch64/hp-timing.h: New file.
41296
41297         * sysdeps/generic/hp-timing.h: Remove dead comment.
41298         * sysdeps/generic/hp-timing-common.h: New file.
41299         * sysdeps/alpha/hp-timing.h: Include it.
41300         (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT, HP_TIMING_PRINT): Remove.
41301         * sysdeps/i386/i686/hp-timing.h: Likewise.
41302         * sysdeps/ia64/hp-timing.h: Likewise.
41303         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
41304         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
41305         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
41306         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
41307         * sysdeps/x86_64/hp-timing.h: Don't include the i686 version.
41308         (HP_TIMING_AVAIL, HP_TIMING_INLINE): Define.
41309         (hp_timing_t): New.
41310
41311         * benchtests/bench-string.h (_dl_hp_timing_overhead): Remove.
41312         * benchtests/bench-timing.h (_dl_hp_timing_overhead): Remove.
41313         (TIMING_INIT): Remove call to HP_TIMING_DIFF_INIT.
41314         * elf/rtld.c (_dl_start_final): Likewise.
41315         * sysdeps/generic/ldsodefs.h (_dl_hp_timing_overhead): Remove.
41316         * sysdeps/alpha/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
41317         * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
41318         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
41319         * sysdeps/ia64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
41320         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
41321         (HP_TIMING_DIFF_INIT): Remove.
41322         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
41323         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
41324         (HP_TIMING_DIFF_INIT): Remove.
41325         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
41326         * sysdeps/i386/i686/hp-timing.c: Remove file.
41327         * sysdeps/x86_64/hp-timing.c: Remove file.
41328         * sysdeps/ia64/hp-timing.c: Remove file.
41329         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Remove file.
41330         * sysdeps/powerpc/powerpc64/hp-timing.c: Remove file.
41331         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Remove file.
41332         * sysdeps/sparc/sparc64/hp-timing.c: Remove file.
41333
41334         * sysdeps/alpha/hp-timing.h (HP_TIMING_ACCUM): Remove.
41335         * sysdeps/generic/hp-timing.h (HP_TIMING_ACCUM): Remove.
41336         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ACCUM): Remove.
41337         * sysdeps/ia64/hp-timing.h (HP_TIMING_ACCUM): Remove.
41338         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
41339         (HP_TIMING_ACCUM): Remove.
41340         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
41341         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ACCUM): Remove.
41342         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
41343
41344         * sysdeps/alpha/hp-timing.h (HP_TIMING_ZERO): Remove.
41345         * sysdeps/generic/hp-timing.h (HP_TIMING_ZERO): Remove.
41346         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ZERO): Remove.
41347         * sysdeps/ia64/hp-timing.h (HP_TIMING_ZERO): Remove.
41348         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_ZERO): Remove.
41349         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ZERO): Remove.
41350         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ZERO): Remove.
41351         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ZERO): Remove.
41352
41353         * sysdeps/powerpc/powerpc32/hp-timing.h: Remove file.
41354
41355 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
41356
41357         * stdlib/tst-strtod-overflow.c (TIMEOUT): Bump up to 30.
41358
41359 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
41360
41361         Sync up with gettext.
41362         * intl/loadmsgcat.c: Define O_BINARY if not defined.
41363         [_MSC_VER]: Include malloc.h
41364         [_LIBC]: Define PRI_MACROS_BROKEN if it is not defined.
41365         (get_sysdep_segment_value) [!__UCLIBC__]: Return "I" flag.
41366         (_nl_load_domain): Open DOMAIN_FILE in binary mode.  Don't use
41367         TEMP_FAILURE_RETRY.  Cast return of alloca.
41368         [!_LIBC] Call gl_rwlock_init.
41369         [IN_LIBGLOCALE]: Call _nl_find_msg with one less argument.
41370
41371 2014-07-02  Roland McGrath  <roland@hack.frob.com>
41372
41373         * misc/sys/cdefs.h: Check if __STDC_VERSION__ is defined
41374         before checking its value.
41375
41376 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
41377
41378         * intl/loadmsgcat.c (_nl_load_domain): Use __builtin_expect.
41379
41380         * debug/memcpy_chk.c: Don't include pagecopy.h.
41381         * debug/mempcpy_chk.c: Likewise.
41382         * string/memcpy.c: Likewise.
41383         * string/memmove.c: Likewise.
41384         * sysdeps/powerpc/memmove.c: Likewise.
41385         * sysdeps/generic/memcopy.h: Include pagecopy.h.  Move
41386         definition of PAGE_COPY_FWD_MAYBE here...
41387         * sysdeps/generic/pagecopy.h: ... from here.
41388         * sysdeps/mach/pagecopy.h: Don't include generic pagecopy.h.
41389
41390 2014-07-02  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
41391             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41392
41393         * sysdeps/powerpc/strcat.c: Using macro to redefine symbol name.
41394         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcat multiarch
41395         optimizations.
41396         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
41397         (__libc_ifunc_impl_list): Likewise.
41398         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: New file:
41399         multiarch strcat for PPC64.
41400         * sysdeps/powerpc/powerpc64/multiarch/strcat-ppc64.c: New file/
41401         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: New file.
41402
41403 2014-07-02  Roland McGrath  <roland@hack.frob.com>
41404
41405         * sysdeps/unix/sysv/linux/dl-sysdep.c: Include <sys/param.h>.
41406
41407 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
41408
41409         * intl/loadmsgcat.c: Remove declaration of
41410         get_sysdep_segment_value.
41411         (get_sysdep_segment_value): Use ISO C style.
41412         (_nl_load_domain): Use ISO C style.  Get rid of redundant
41413         semicolon.  Fix typo and formatting in comment.
41414         (_nl_unload_domain): Use ISO C style.
41415
41416         * sysdeps/posix/sysconf.c (__sysconf): Fix typo in macro name.
41417
41418 2014-07-02  Will Newton  <will.newton@linaro.org>
41419
41420         * malloc/obstack.c: Merge from gnulib master.
41421         [HAVE_CONFIG_H]: Remove conditional code.
41422         [!_LIBC]: Include config.h.
41423         [!ELIDE_CODE]: Don't include inttypes.h, include
41424         stdint.h unconditionally.
41425         (print_and_abort): Mark as _Noreturn.
41426         (_obstack_allocated_p): Mark as __attribute_pure__.
41427         (obstack_free): Rename to __obstack_free.
41428         [!__attribute__]: Remove conditional code.
41429         * malloc/obstack.h: Merge from gnulib master.
41430         [__cplusplus]: Move conditional down.
41431         [!__attribute_pure__]: Define __attribute_pure__ here
41432         if it is not already defined.
41433         (_obstack_memory_used): Mark as __attribute_pure__.
41434         [!__obstack_free]: Define as obstack_free.
41435         [__GNUC__]: Remove check for ancient NeXT gcc.
41436
41437 2014-07-02  Will Newton  <will.newton@linaro.org>
41438             Paul Eggert  <eggert@cs.ucla.edu>
41439
41440         * misc/sys/cdefs.h (_Noreturn): New macro, for pre-C11 compilers.
41441
41442 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
41443
41444         * resolv/gethnamaddr.c: Add comment warning that the file is
41445         not maintained.
41446
41447 2014-07-01  Carlos O'Donell  <carlos@redhat.com>
41448
41449         * sysdeps/unix/sysv/linux/hppa/librt.abilist: Remove GLIBC_2.3
41450         entries.
41451
41452         * sysdeps/unix/sysv/linux/hppa/Versions: Remove librt GLIBC_2.3
41453         entry for aio_cancel and aio_cancel64.
41454         * sysdeps/unix/sysv/linux/hppa/ld.abilist: New file.
41455         * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: New file.
41456         * sysdeps/unix/sysv/linux/hppa/libanl.abilist: New file.
41457         * sysdeps/unix/sysv/linux/hppa/libc.abilist: New file.
41458         * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: New file.
41459         * sysdeps/unix/sysv/linux/hppa/libdl.abilist: New file.
41460         * sysdeps/unix/sysv/linux/hppa/libm.abilist: New file.
41461         * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: New file.
41462         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: New file.
41463         * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: New file.
41464         * sysdeps/unix/sysv/linux/hppa/librt.abilist: New file.
41465         * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: New file.
41466         * sysdeps/unix/sysv/linux/hppa/libutil.abilist: New file.
41467
41468 2014-07-01  Roland McGrath  <roland@hack.frob.com>
41469
41470         * sysdeps/unix/sysv/linux/sysconf.c: Include <sys/param.h>.
41471         * nptl/pthread_mutex_lock.c: Likewise.
41472         * nptl/pthread_mutex_timedlock.c: Likewise.
41473         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Likewise.
41474
41475 2014-07-01  Richard henderson  <rth@redhat.com>
41476
41477         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanf): Remove.
41478         (__isnan, __isnanl): Remove.
41479         * sysdeps/alpha/fpu/s_isnan.c (__isnan): Use integer arithmetic.
41480
41481         * sysdeps/alpha/fpu/libm-test-ulps: Update.
41482
41483 2014-07-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
41484
41485         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
41486
41487 2014-07-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
41488
41489         * resolv/nss_dns/dns-host.c (getanswer_r)
41490         [MULTI_PTRS_ARE_ALIASES]: Remove code.
41491
41492 2014-07-01  Joseph Myers  <joseph@codesourcery.com>
41493
41494         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
41495         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PSELECT): Do not
41496         undefine.
41497         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PREADV): Likewise.
41498         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PWRITEV): Likewise.
41499
41500 2014-07-01  Roland McGrath <roland@hack.frob.com>
41501
41502         * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: New file.
41503         * sysdeps/unix/sysv/linux/microblaze/nptl/fork.c: File removed.
41504
41505         * sysdeps/microblaze/nptl/tls.h: Define TLS_DEFINE_INIT_TP.
41506         * sysdeps/unix/sysv/linux/microblaze/nptl/createthread.c: File removed.
41507
41508         * sysdeps/microblaze/nptl/bits/pthreadtypes.h: Moved ...
41509         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h:
41510         ... here.
41511         * sysdeps/microblaze/nptl/bits/semaphore.h: Moved ...
41512         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/semaphore.h: ... here.
41513
41514         * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Moved ...
41515         * sysdeps/unix/sysv/linux/microblaze/nptl/pt-vfork.S: ... here.
41516         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Moved ...
41517         * sysdeps/unix/sysv/linux/microblaze/vfork.S: ... here.
41518
41519         * sysdeps/unix/sysv/linux/microblaze/c++-types.data: Moved ...
41520         * sysdeps/unix/sysv/linux/microblaze/nptl/c++-types.data: ... here.
41521         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Moved ...
41522         * sysdeps/unix/sysv/linux/microblaze/nptl/ld.abilist: ... here.
41523         * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist:
41524         Moved ...
41525         * sysdeps/unix/sysv/linux/microblaze/nptl/libBrokenLocale.abilist:
41526         ... here.
41527         * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Moved ...
41528         * sysdeps/unix/sysv/linux/microblaze/nptl/libanl.abilist: ... here.
41529         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Moved ...
41530         * sysdeps/unix/sysv/linux/microblaze/nptl/libc.abilist: ... here.
41531         * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Moved ...
41532         * sysdeps/unix/sysv/linux/microblaze/nptl/libcrypt.abilist: ... here.
41533         * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Moved ...
41534         * sysdeps/unix/sysv/linux/microblaze/nptl/libdl.abilist: ... here.
41535         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Moved ...
41536         * sysdeps/unix/sysv/linux/microblaze/nptl/libm.abilist: ... here.
41537         * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Moved ...
41538         * sysdeps/unix/sysv/linux/microblaze/nptl/libnsl.abilist: ... here.
41539         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Moved ...
41540         * sysdeps/unix/sysv/linux/microblaze/nptl/libpthread.abilist: ... here.
41541         * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Moved ...
41542         * sysdeps/unix/sysv/linux/microblaze/nptl/libresolv.abilist: ... here.
41543         * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Moved ...
41544         * sysdeps/unix/sysv/linux/microblaze/nptl/librt.abilist: ... here.
41545         * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Moved ...
41546         * sysdeps/unix/sysv/linux/microblaze/nptl/libthread_db.abilist:
41547         ... here.
41548         * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Moved ...
41549         * sysdeps/unix/sysv/linux/microblaze/nptl/libutil.abilist: ... here.
41550         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Moved ...
41551         * sysdeps/unix/sysv/linux/microblaze/nptl/localplt.data: ... here.
41552         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Moved ...
41553         * sysdeps/unix/sysv/linux/microblaze/nptl/lowlevellock.h: ... here.
41554         * sysdeps/unix/sysv/linux/microblaze/nptl/pthread_once.c: Moved ...
41555         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: ... here.
41556
41557 2014-07-01  David Holsgrove  <david.holsgrove@xilinx.com>
41558
41559         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: New file.
41560         * sysdeps/unix/sysv/linux/microblaze/socket.S: Update SINGLE_THREAD_P use.
41561         * sysdeps/unix/sysv/linux/microblaze/Makefile(libpthread-routines):
41562         Add sysdep.
41563
41564 2014-06-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41565
41566         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
41567
41568 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
41569
41570         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
41571         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
41572
41573         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
41574
41575         * sysdeps/arm/libm-test-ulps: Regenerated.
41576
41577 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
41578             Roland McGrath <roland@hack.frob.com>
41579
41580         * test-skeleton.c (signal_handler): Kill the whole process group
41581         before killing the child individually.
41582         (main): Report any failure on `setpgid'.
41583
41584 2014-06-30  Roland McGrath  <roland@hack.frob.com>
41585
41586         * sysdeps/arm/nptl/tls.h: Rename the multiple inclusion guard
41587         from _TLS_H to _ARM_NPTL_TLS_H.
41588         (TLS_INIT_TP): Move macro, and #include of <sysdep.h>, to ...
41589         * sysdeps/unix/sysv/linux/arm/tls.h: ... this new file.
41590
41591 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
41592
41593         [BZ #16539]
41594         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <float.h>.
41595         (__expm1l): Return argument unchanged when small but not
41596         subnormal.
41597
41598         * soft-fp/op-1.h (_FP_UNPACK_RAW_1): Rename local variables to
41599         include macro name.
41600         (_FP_UNPACK_RAW_1_P): Likewise.
41601         (_FP_PACK_RAW_1): Likewise.
41602         (_FP_PACK_RAW_1_P): Likewise.
41603         (_FP_MUL_MEAT_1_wide): Likewise.
41604         (_FP_MUL_MEAT_DW_1_hard): Likewise.
41605         (_FP_MUL_MEAT_1_hard): Likewise.
41606         (_FP_DIV_MEAT_1_imm): Likewise.
41607         (_FP_DIV_MEAT_1_udiv_norm): Likewise.
41608         (_FP_DIV_MEAT_1_udiv): Likewise.
41609         * soft-fp/op-2.h (__FP_FRAC_DEC_2): Likewise.
41610         (_FP_UNPACK_RAW_2): Likewise.
41611         (_FP_UNPACK_RAW_2_P): Likewise.
41612         (_FP_PACK_RAW_2): Likewise.
41613         (_FP_PACK_RAW_2_P): Likewise.
41614         (_FP_MUL_MEAT_DW_2_wide): Likewise.
41615         (_FP_MUL_MEAT_2_wide): Likewise.
41616         (_FP_MUL_MEAT_DW_2_wide_3mul): Likewise.
41617         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
41618         (_FP_MUL_MEAT_DW_2_gmp): Likewise.
41619         (_FP_MUL_MEAT_2_gmp): Likewise.
41620         (_FP_DIV_MEAT_2_udiv): Likewise.
41621         * soft-fp/op-4.h (_FP_FRAC_SLL_4): Likewise.
41622         (_FP_FRAC_SRL_4): Likewise.
41623         (_FP_FRAC_SRST_4): Likewise.
41624         (_FP_FRAC_SRS_4): Likewise.
41625         (_FP_UNPACK_RAW_4): Likewise.
41626         (_FP_UNPACK_RAW_4_P): Likewise.
41627         (_FP_PACK_RAW_4): Likewise.
41628         (_FP_PACK_RAW_4_P): Likewise.
41629         (_FP_MUL_MEAT_DW_4_wide): Likewise.
41630         (_FP_MUL_MEAT_4_wide): Likewise.
41631         (_FP_MUL_MEAT_4_gmp): Likewise.
41632         (umul_ppppmnnn): Likewise.
41633         (_FP_DIV_MEAT_4_udiv): Likewise.
41634         (__FP_FRAC_ADD_4): Likewise.
41635         (__FP_FRAC_SUB_3): Likewise.
41636         (__FP_FRAC_SUB_4): Likewise.
41637         (__FP_FRAC_DEC_3): Likewise.
41638         (__FP_FRAC_DEC_4): Likewise.
41639         (__FP_FRAC_ADDI_4): Likewise.
41640         * soft-fp/op-8.h (_FP_FRAC_SLL_8): Likewise.
41641         (_FP_FRAC_SRL_8): Likewise.
41642         (_FP_FRAC_SRS_8): Likewise.
41643
41644         * soft-fp/extended.h (FP_UNPACK_RAW_E): Rename local variables to
41645         include macro name.
41646         (FP_UNPACK_RAW_EP): Likewise.
41647         (FP_PACK_RAW_E): Likewise.
41648         (FP_PACK_RAW_EP): Likewise.
41649         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Likewise.
41650         (_FP_ISSIGNAN): Likewise.
41651         (_FP_ADD_INTERNAL): Likewise.
41652         (_FP_FMA): Likewise.
41653         (_FP_CMP): Likewise.
41654         (_FP_SQRT): Likewise.
41655         (_FP_TO_INT): Likewise.
41656         (_FP_FROM_INT): Likewise.
41657         (FP_EXTEND): Likewise.
41658         (_FP_DIV_MEAT_N_loop): Likewise.
41659
41660 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
41661
41662         * sysdeps/unix/sysv/linux/bits/socket.h: Adjust macro formatting
41663         throughout.
41664
41665 2014-06-29  Joseph Myers  <joseph@codesourcery.com>
41666
41667         [BZ #17097]
41668         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Return
41669         result with correct sign in case of exponents that produce
41670         overflow except for X very close to 1.
41671
41672 2014-06-28  Paul Eggert  <eggert@cs.ucla.edu>
41673
41674         mktime: merge #if/#ifdef usage from glibc
41675         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
41676         as that works with both Glibc's and Gnulib's style.
41677         See thread starting at Siddhesh Poyarekar's bug report at:
41678         http://lists.gnu.org/archive/html/bug-gnulib/2014-06/msg00102.html
41679
41680 2014-06-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
41681
41682         * sysdeps/generic/memcopy.h: Define MEMCPY_OK_FOR_FWD_MEMMOVE.
41683         * sysdeps/tile/memcopy.h: Redefine MEMCPY_OK_FOR_FWD_MEMMOVE.
41684         * sysdeps/tile/tilegx/memmove.c: Remove file.
41685
41686 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
41687
41688         * Makeconfig ($(common-objpfx)soversions.mk): Do not generate
41689         abi-name definition.
41690         * scripts/soversions.awk: Do not handle or generate ABI lines.
41691         * shlib-versions: Remove ABI entries.
41692         * sysdeps/powerpc/nofpu/shlib-versions: Remove file.
41693         * sysdeps/x86_64/x32/shlib-versions: Remove ABI entry.
41694
41695 2014-06-27  Roland McGrath  <roland@hack.frob.com>
41696
41697         * sysdeps/unix/sysv/linux/mips/mips32/nptl/c++-types.data: Moved ...
41698         * sysdeps/unix/sysv/linux/mips/mips32/c++-types.data: ... here.
41699         * sysdeps/unix/sysv/linux/mips/mips32/fpu/nptl/libc.abilist: Moved ...
41700         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: ... here.
41701         * sysdeps/unix/sysv/linux/mips/mips32/nptl/ld.abilist: Moved ...
41702         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: ... here.
41703         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libBrokenLocale.abilist:
41704         Moved ...
41705         * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
41706         ... here.
41707         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libanl.abilist: Moved ...
41708         * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: ... here.
41709         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcidn.abilist: Moved ...
41710         * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: ... here.
41711         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcrypt.abilist: Moved ...
41712         * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: ... here.
41713         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libdl.abilist: Moved ...
41714         * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: ... here.
41715         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libm.abilist: Moved ...
41716         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: ... here.
41717         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnsl.abilist: Moved ...
41718         * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: ... here.
41719         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_compat.abilist:
41720         Moved ...
41721         * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: ... here.
41722         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_db.abilist: Moved ...
41723         * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: ... here.
41724         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_dns.abilist: Moved ...
41725         * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: ... here.
41726         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_files.abilist:
41727         Moved ...
41728         * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: ... here.
41729         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_hesiod.abilist:
41730         Moved ...
41731         * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: ... here.
41732         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nis.abilist: Moved ...
41733         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: ... here.
41734         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nisplus.abilist:
41735         Moved ...
41736         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: ... here.
41737         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libpthread.abilist: Moved ...
41738         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: ... here.
41739         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libresolv.abilist: Moved ...
41740         * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: ... here.
41741         * sysdeps/unix/sysv/linux/mips/mips32/nptl/librt.abilist: Moved ...
41742         * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: ... here.
41743         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libthread_db.abilist:
41744         Moved ...
41745         * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: ... here.
41746         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libutil.abilist: Moved ...
41747         * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: ... here.
41748         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/nptl/libc.abilist:
41749         Moved ...
41750         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: ... here.
41751         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/c++-types.data:
41752         Moved ...
41753         * sysdeps/unix/sysv/linux/mips/mips64/n32/c++-types.data: ... here.
41754         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/ld.abilist: Moved ...
41755         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: ... here.
41756         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libBrokenLocale.abilist:
41757         Moved ...
41758         * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
41759         ... here.
41760         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libBrokenLocale.abilist:
41761         Identical file removed.
41762         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libanl.abilist:
41763         Moved ...
41764         * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: ... here.
41765         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libanl.abilist:
41766         Identical file removed.
41767         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libc.abilist: Moved ...
41768         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: ... here.
41769         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libcrypt.abilist:
41770         Moved ...
41771         * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: ... here.
41772         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libcrypt.abilist:
41773         Identical file removed.
41774         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libdl.abilist: Moved ...
41775         * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: ... here.
41776         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libdl.abilist:
41777         Identical file removed.
41778         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libm.abilist: Moved ...
41779         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: ... here.
41780         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libm.abilist:
41781         Identical file removed.
41782         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libnsl.abilist: Moved ...
41783         * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: ... here.
41784         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libnsl.abilist:
41785         Identical file removed.
41786         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libpthread.abilist:
41787         Moved ...
41788         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: ... here.
41789         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libpthread.abilist:
41790         Identical file removed.
41791         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libresolv.abilist:
41792         Moved ...
41793         * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: ... here.
41794         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/librt.abilist: Moved ...
41795         * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: ... here.
41796         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/librt.abilist:
41797         Identical file removed.
41798         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libthread_db.abilist:
41799         Moved ...
41800         * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist:
41801         ... here.
41802         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libthread_db.abilist:
41803         Identical file removed.
41804         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libutil.abilist:
41805         Moved ...
41806         * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: ... here.
41807         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libutil.abilist:
41808         Identical file removed.
41809         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/c++-types.data:
41810         Moved ...
41811         * sysdeps/unix/sysv/linux/mips/mips64/n64/c++-types.data: ... here.
41812         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/ld.abilist: Moved ...
41813         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: ... here.
41814         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libc.abilist: Moved ...
41815         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: ... here.
41816         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libresolv.abilist:
41817         Moved ...
41818         * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: ... here.
41819         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h: Moved ...
41820         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: ... here.
41821
41822         * sysdeps/unix/sysv/linux/mips/vfork.S: Incorporate
41823         SAVE_PID and RESTORE_PID blocks from nptl/pt-vfork.S.
41824         * sysdeps/unix/sysv/linux/mips/nptl/vfork.S: File removed.
41825         * sysdeps/unix/sysv/linux/mips/nptl/pt-vfork.S: File removed.
41826         * sysdeps/unix/sysv/linux/mips/pt-vfork.S: New file.
41827
41828 2014-06-27  Arjun Shankar  <arjun.is@lostca.se>
41829
41830         [BZ #17092]
41831         * nscd/nscd.c (monitor_child): Return exit status of child
41832         instead of return value from wait syscall.
41833
41834 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
41835
41836         * configure.ac (libc_commonpagesize): Remove variable.
41837         (libc_relro_required): Likewise.
41838         (libc_cv_z_relro): Remove configure test.
41839         * configure: Regenerated.
41840         * sysdeps/aarch64/preconfigure (libc_commonpagesize): Do not set
41841         variable.
41842         (libc_relro_required): Likewise.
41843         * sysdeps/alpha/preconfigure (libc_commonpagesize): Likewise.
41844         (libc_relro_required): Likewise.
41845         * sysdeps/arm/preconfigure.ac (libc_commonpagesize): Likewise.
41846         (libc_relro_required): Likewise.
41847         * sysdeps/arm/preconfigure: Regenerated.
41848         * sysdeps/ia64/preconfigure: Remove file.
41849         * sysdeps/tile/preconfigure (libc_commonpagesize): Do not set
41850         variable.
41851         (libc_relro_required): Likewise.
41852
41853         [BZ #16561]
41854         [BZ #16562]
41855         * sysdeps/ieee754/dbl-64/e_jn.c: Include <float.h>.
41856         (__ieee754_yn): Set FE_TONEAREST mode internally and then
41857         recompute overflowing results in original rounding mode.
41858         * sysdeps/ieee754/flt-32/e_jnf.c: Include <float.h>.
41859         (__ieee754_ynf): Set FE_TONEAREST mode internally and then
41860         recompute overflowing results in original rounding mode.
41861         * sysdeps/ieee754/ldbl-128/e_jnl.c: Include <float.h>.
41862         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
41863         recompute overflowing results in original rounding mode.
41864         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Include <float.h>.
41865         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
41866         recompute overflowing results in original rounding mode.
41867         * sysdeps/ieee754/ldbl-96/e_jnl.c: Include <float.h>.
41868         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
41869         recompute overflowing results in original rounding mode.
41870         * sysdeps/i386/fpu/fenv_private.h [!__SSE2_MATH__]
41871         (libc_feholdsetround_ctx): New macro.
41872         * math/libm-test.inc (yn_test): Use ALL_RM_TEST.
41873         * sysdeps/i386/fpu/libm-test-ulps: Update.
41874         * sysdeps/x86_64/fpu/libm-test-ulps : Likewise.
41875
41876 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
41877
41878         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h
41879         [__PIC__] (PSEUDO): Use name of _nocancel entry point in
41880         corresponding .cpsetup call.
41881
41882 2014-06-26  Roland McGrath  <roland@hack.frob.com>
41883
41884         * sysdeps/unix/sysv/linux/arm/libc-aeabi_read_tp.S: Moved ...
41885         * sysdeps/arm/libc-aeabi_read_tp.S: ... here.
41886         * sysdeps/arm/Makefile [$(subdir) = csu]
41887         (aeabi_routines): Add aeabi_read_tp and libc-aeabi_read_tp here.
41888         (static-only-routines): Add aeabi_read_tp here.
41889         (shared-only-routines): Add libc-aeabi_read_tp here.
41890         (CFLAGS-libc-start.c): Add -fexceptions here.
41891         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = csu]
41892         (sysdep_routines, static-only-routines, shared-only-routines):
41893         Don't add to these here.
41894         (CFLAGS-libc-start.c): Likewise.
41895
41896         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: Moved ...
41897         * sysdeps/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
41898         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: Moved ...
41899         * sysdeps/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
41900         * sysdeps/arm/Makefile [$(subdir) = rt]
41901         (librt-sysdep_routines, librt-shared-only-routines):
41902         Append rt-aeabi_unwind_cpp_pr1 here.
41903         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = rt]
41904         (librt-sysdep_routines, librt-shared-only-routines): Don't do it here.
41905         * sysdeps/arm/nptl/Makefile [$(subdir) = nptl]
41906         (libpthread-sysdep_routines, libpthread-shared-only-routines):
41907         Append nptl-aeabi_unwind_cpp_pr1 here.
41908         (tests): Filter out tst-cleanupx4 here.
41909         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = nptl]
41910         (libpthread-sysdep_routines, libpthread-shared-only-routines, tests):
41911         Don't do those here.
41912
41913 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
41914
41915         * scripts/list-sources.sh: Do not handle ports specially.
41916
41917 2014-06-26  Roland McGrath  <roland@hack.frob.com>
41918
41919         * sysdeps/arm/fesetenv.c: Include <fpu_control.h>.
41920         * sysdeps/arm/feupdateenv.c: Likewise.
41921
41922         * posix/spawn_faction_addopen.c: Include <stdlib.h> for free decl.
41923
41924 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
41925
41926         * manual/texinfo.tex: Update to version 2014-05-05.10 with
41927         trailing whitespace removed.
41928         * scripts/config.guess: Update to version 2014-03-23.
41929         * scripts/config.sub: Update to version 2014-05-01
41930         * scripts/install-sh: Update to version 2013-12-25.23.
41931         * scripts/move-if-change: Update from gnulib.
41932
41933 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
41934
41935         * debug/memmove_chk.c: Remove pagecopy.h include.
41936
41937 2014-06-26  Paul Eggert  <eggert@cs.ucla.edu>
41938
41939         * time/mktime.c (leapyear): Remove inline keyword.  The code is now
41940         identical to gnulib mktime.
41941
41942 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
41943
41944         * configure.ac: Do not test for machine being rs6000.  Do not test
41945         for powerpc*-*soft.
41946         * configure: Regenerated.
41947
41948         [BZ #11505]
41949         * configure.ac (libc_cv_asm_cfi_directives): Remove configure
41950         test.
41951         * configure: Regenerated.
41952         * config.h.in (HAVE_ASM_CFI_DIRECTIVES): Remove macro undefine.
41953         * sysdeps/arm/configure.ac (libc_cv_asm_cfi_directive_sections):
41954         Remove configure test.
41955         * sysdeps/arm/configure: Regenerated.
41956         * sysdeps/nptl/configure.ac: Do not check
41957         libc_cv_asm_cfi_directives.
41958         * sysdeps/nptl/configure: Regenerated.
41959         * sysdeps/x86_64/nptl/configure.ac: Remove file.
41960         * sysdeps/x86_64/nptl/configure: Remove generated file.
41961         * b/sysdeps/generic/sysdep.h [HAVE_ASM_CFI_DIRECTIVES]: Make code
41962         unconditional.
41963         [!HAVE_ASM_CFI_DIRECTIVES]: Remove conditional code.
41964
41965 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
41966
41967         * posix/fnmatch.c: Define WIDE_CHAR_VERSION.
41968         * posix/fnmatch_loop.c: Undefine WIDE_CHAR_VERSION.
41969         (FCT): Check value of WIDE_CHAR_VERSION instead of checking if
41970         it is defined.
41971
41972         * elf/dl-runtime.c: Check for value of ELF_MACHINE_NO_RELA
41973         instead of whether it is defined.
41974         * sysdeps/aarch64/dl-machine.h: Define ELF_MACHINE_NO_RELA.
41975         * sysdeps/hppa/dl-machine.h: Likewise.
41976         * sysdeps/ia64/dl-machine.h: Likewise.
41977         * sysdeps/m68k/dl-machine.h: Likewise.
41978         * sysdeps/microblaze/dl-machine.h: Likewise.
41979         * sysdeps/mips/dl-machine.: Likewise.
41980         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
41981         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
41982         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
41983         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
41984         * sysdeps/sh/dl-machine.h: Likewise.
41985         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
41986         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
41987         * sysdeps/tile/dl-machine.h: Likewise.
41988         * sysdeps/x86_64/dl-machine.h: Likewise.
41989
41990         * nscd/connections.c (enum usekey) [SEPARATE_KEY]: Remove
41991         code.
41992         (verify_persistent_db): Likewise.
41993
41994 2014-06-26  Roland McGrath  <roland@hack.frob.com>
41995
41996         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data: Moved ...
41997         * sysdeps/unix/sysv/linux/s390/s390-32/c++-types.data: ... here.
41998         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Moved ...
41999         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: ... here.
42000         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
42001         Moved ...
42002         * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
42003         ... here.
42004         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: Moved ...
42005         * sysdeps/unix/sysv/linux/s390/libanl.abilist: ... here.
42006         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist:
42007         Identical file removed.
42008         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Moved ...
42009         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: ... here.
42010         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: Moved ...
42011         * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: ... here.
42012         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: Moved ...
42013         * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: ... here.
42014         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Moved ...
42015         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: ... here.
42016         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: Moved ...
42017         * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: ... here.
42018         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
42019         Moved ...
42020         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: ... here.
42021         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: Moved ...
42022         * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: ... here.
42023         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Moved ...
42024         * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: ... here.
42025         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
42026         Moved ...
42027         * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: ... here.
42028         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Moved ...
42029         * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: ... here.
42030         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data: Moved ...
42031         * sysdeps/unix/sysv/linux/s390/localplt.data: ... here.
42032         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
42033         Identical file removed.
42034         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data: Moved ...
42035         * sysdeps/unix/sysv/linux/s390/s390-64/c++-types.data: ... here.
42036         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Moved ...
42037         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: ... here.
42038         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
42039         Moved ...
42040         * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
42041         ... here.
42042         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Moved ...
42043         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: ... here.
42044         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: Moved ...
42045         * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: ... here.
42046         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: Moved ...
42047         * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: ... here.
42048         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Moved ...
42049         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: ... here.
42050         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: Moved ...
42051         * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: ... here.
42052         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
42053         Moved ...
42054         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: ... here.
42055         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist:
42056         Moved ...
42057         * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: ... here.
42058         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: Moved ...
42059         * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: ... here.
42060         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
42061         Moved ...
42062         * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: ... here.
42063         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: Moved ...
42064         * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: ... here.
42065
42066         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: File removed, contents
42067         folded into ...
42068         * sysdeps/unix/sysv/linux/s390/Makefile [$(subdir) = nptl]: ... here.
42069         * sysdeps/unix/sysv/linux/s390/Versions
42070         (libpthread: GLIBC_2.19): New version set.
42071         * nptl/sysdeps/unix/sysv/linux/s390/Versions: File removed.
42072         * sysdeps/unix/sysv/linux/s390/s390-64/Versions
42073         (librt: GLIBC_2.3.3): New version set.
42074         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/Versions: File removed.
42075         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: Moved ...
42076         * sysdeps/unix/sysv/linux/s390/elision-conf.c: ... here.
42077         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Moved ...
42078         * sysdeps/unix/sysv/linux/s390/elision-conf.h: ... here.
42079         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Moved ...
42080         * sysdeps/unix/sysv/linux/s390/elision-lock.c: ... here.
42081         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Moved ...
42082         * sysdeps/unix/sysv/linux/s390/elision-timed.c: ... here.
42083         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Moved ...
42084         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: ... here.
42085         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Moved ...
42086         * sysdeps/unix/sysv/linux/s390/elision-unlock.c: ... here.
42087         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Moved ...
42088         * sysdeps/unix/sysv/linux/s390/force-elision.h: ... here.
42089         * nptl/sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Moved ...
42090         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: ... here.
42091         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h: Moved ...
42092         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: ... here.
42093         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Moved ...
42094         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: ... here.
42095         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: Moved ...
42096         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: ... here.
42097         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: Moved ...
42098         * sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: ... here.
42099         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: Moved ...
42100         * sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: ... here.
42101         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: Moved ...
42102         * sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: ... here.
42103         * nptl/sysdeps/unix/sysv/linux/s390/pthread_once.c: Moved ...
42104         * sysdeps/unix/sysv/linux/s390/pthread_once.c: ... here.
42105         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Moved ...
42106         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: ... here.
42107         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Moved ...
42108         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: ... here.
42109         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Moved ...
42110         * sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: ... here.
42111         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Moved ...
42112         * sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: ... here.
42113         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Moved ...
42114         * sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: ... here.
42115         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Moved ...
42116         * sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: ... here.
42117         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Moved ...
42118         * sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: ... here.
42119
42120         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Moved ...
42121         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: ... here.
42122         (__libc_vfork): Define the function under this name.
42123         [!NOT_IN_libc] (__vfork): Make this an alias.
42124         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
42125         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Moved ...
42126         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: ... here.
42127         (__libc_vfork): Define the function under this name.
42128         [!NOT_IN_libc] (__vfork): Make this an alias.
42129         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
42130         * sysdeps/unix/sysv/linux/s390/pt-vfork.S: New file.
42131         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: File removed.
42132         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: File removed.
42133         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Remove vfork.
42134         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
42135
42136         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Deconditionalize the
42137         code that was previously under [RESET_PID].
42138         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
42139         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/clone.S: File removed.
42140         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/clone.S: File removed.
42141
42142         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h: Moved ...
42143         * sysdeps/aarch64/nptl/bits/pthreadtypes.h: ... here.
42144         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/semaphore.h: Moved ...
42145         * sysdeps/aarch64/nptl/bits/semaphore.h: ... here.
42146         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/local_lim.h: Moved ...
42147         * sysdeps/unix/sysv/linux/aarch64/bits/local_lim.h: ... here.
42148         * sysdeps/unix/sysv/linux/aarch64/nptl/c++-types.data: Moved ...
42149         * sysdeps/unix/sysv/linux/aarch64/c++-types.data: ... here.
42150         * sysdeps/unix/sysv/linux/aarch64/nptl/ld.abilist: Moved ...
42151         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: ... here.
42152         * sysdeps/unix/sysv/linux/aarch64/nptl/libBrokenLocale.abilist:
42153         Moved ...
42154         * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: ... here.
42155         * sysdeps/unix/sysv/linux/aarch64/nptl/libanl.abilist: Moved ...
42156         * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: ... here.
42157         * sysdeps/unix/sysv/linux/aarch64/nptl/libc.abilist: Moved ...
42158         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: ... here.
42159         * sysdeps/unix/sysv/linux/aarch64/nptl/libcrypt.abilist: Moved ...
42160         * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: ... here.
42161         * sysdeps/unix/sysv/linux/aarch64/nptl/libdl.abilist: Moved ...
42162         * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: ... here.
42163         * sysdeps/unix/sysv/linux/aarch64/nptl/libm.abilist: Moved ...
42164         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: ... here.
42165         * sysdeps/unix/sysv/linux/aarch64/nptl/libnsl.abilist: Moved ...
42166         * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: ... here.
42167         * sysdeps/unix/sysv/linux/aarch64/nptl/libpthread.abilist: Moved ...
42168         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: ... here.
42169         * sysdeps/unix/sysv/linux/aarch64/nptl/libresolv.abilist: Moved ...
42170         * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: ... here.
42171         * sysdeps/unix/sysv/linux/aarch64/nptl/librt.abilist: Moved ...
42172         * sysdeps/unix/sysv/linux/aarch64/librt.abilist: ... here.
42173         * sysdeps/unix/sysv/linux/aarch64/nptl/libthread_db.abilist: Moved ...
42174         * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: ... here.
42175         * sysdeps/unix/sysv/linux/aarch64/nptl/libutil.abilist: Moved ...
42176         * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: ... here.
42177         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data: Moved ...
42178         * sysdeps/unix/sysv/linux/aarch64/localplt.data: ... here.
42179         * sysdeps/unix/sysv/linux/aarch64/nptl/lowlevellock.h: Moved ...
42180         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: ... here.
42181         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Moved ...
42182         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: ... here.
42183
42184 2014-06-25  Roland McGrath  <roland@hack.frob.com>
42185
42186         * sysdeps/unix/sysv/linux/mips/clone.S: Deconditionalize the code
42187         that was previously under [RESET_PID].
42188         * sysdeps/unix/sysv/linux/mips/nptl/clone.S: File removed.
42189
42190 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
42191
42192         * sysdeps/unix/sysv/linux/dl-opendir.c (__ASSUME_O_CLOEXEC): Do
42193         not undefine and redefine.
42194         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs)
42195         [O_CLOEXEC]: Make code unconditional.
42196         (__get_nprocs) [!O_CLOEXEC]: Remove conditional code.
42197         * sysdeps/unix/sysv/linux/shm_open.c: Do not include
42198         <kernel-features.h>.
42199         [O_CLOEXEC && !__ASSUME_O_CLOEXEC] (have_o_cloexec): Remove
42200         conditional variable definition.
42201         (shm_open) [O_CLOEXEC]: Make code unconditional.
42202         (shm_open) [!O_CLOEXEC || !__ASSUME_O_CLOEXEC]: Remove conditional
42203         code.
42204
42205         * configure.ac (USE_REGPARMS): Don't define here.
42206         * configure: Regenerated.
42207         * sysdeps/i386/configure.ac (USE_REGPARMS): Define here.
42208         * sysdeps/i386/configure: Regenerated.
42209
42210         * nptl/createthread.c: Don't include kernel-features.h.
42211         * nptl/pthread_cancel.c: Likewise.
42212         * nptl/pthread_condattr_setclock.c: Likewise.
42213         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Likewise.
42214         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Likewise.
42215         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
42216         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Likewise.
42217         * nptl/sysdeps/unix/sysv/linux/raise.c: Likewise.
42218         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: Likewise.
42219         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
42220         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: Likewise.
42221         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
42222         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Likewise.
42223         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Likewise.
42224         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Likewise.
42225         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Likewise.
42226         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Likewise.
42227         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Likewise.
42228         * nscd/gai.c: Likewise.
42229         * nss/nss_db/db-open.c: Likewise.
42230         * sysdeps/generic/ldsodefs.h: Likewise.
42231         * sysdeps/sh/nptl/tls.h: Likewise.
42232         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
42233         * sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h: Likewise.
42234         * sysdeps/unix/sysv/linux/aarch64/vfork.S: Likewise.
42235         * sysdeps/unix/sysv/linux/adjtime.c: Likewise.
42236         * sysdeps/unix/sysv/linux/alpha/xstatconv.h: Likewise.
42237         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
42238         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise.
42239         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
42240         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
42241         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
42242         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
42243         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
42244         * sysdeps/unix/sysv/linux/clock_settime.c: Likewise.
42245         * sysdeps/unix/sysv/linux/dl-execstack.c: Likewise.
42246         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
42247         * sysdeps/unix/sysv/linux/dl-sysdep.c: Likewise.
42248         * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
42249         * sysdeps/unix/sysv/linux/generic/poll.c: Likewise.
42250         * sysdeps/unix/sysv/linux/generic/wordsize-32/fcntl.c: Likewise.
42251         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
42252         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
42253         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
42254         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Likewise.
42255         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
42256         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
42257         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
42258         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Likewise.
42259         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
42260         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
42261         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
42262         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
42263         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
42264         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
42265         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
42266         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
42267         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
42268         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
42269         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
42270         * sysdeps/unix/sysv/linux/ia64/system.c: Likewise.
42271         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
42272         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
42273         * sysdeps/unix/sysv/linux/ifreq.c: Likewise.
42274         * sysdeps/unix/sysv/linux/ldsodefs.h: Likewise.
42275         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
42276         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
42277         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Likewise.
42278         * sysdeps/unix/sysv/linux/mips/mips32/accept4.c: Likewise.
42279         * sysdeps/unix/sysv/linux/mips/mips32/recvmmsg.c: Likewise.
42280         * sysdeps/unix/sysv/linux/mips/mips32/sendmmsg.c: Likewise.
42281         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
42282         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
42283         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
42284         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
42285         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
42286         * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
42287         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
42288         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
42289         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c: Likewise.
42290         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
42291         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: Likewise.
42292         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
42293         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
42294         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise.
42295         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
42296         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
42297         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
42298         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
42299         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
42300         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
42301         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: Likewise.
42302         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
42303         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
42304         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
42305         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
42306         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
42307         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
42308         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
42309         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
42310         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
42311         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
42312         * sysdeps/unix/sysv/linux/pread.c: Likewise.
42313         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
42314         * sysdeps/unix/sysv/linux/prof-freq.c: Likewise.
42315         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
42316         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
42317         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
42318         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
42319         * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
42320         * sysdeps/unix/sysv/linux/sh/pread.c: Likewise.
42321         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
42322         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
42323         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
42324         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
42325         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
42326         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
42327         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
42328         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
42329         * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
42330         * sysdeps/unix/sysv/linux/syslog.c: Likewise.
42331         * sysdeps/unix/sysv/linux/system.c: Likewise.
42332         * sysdeps/unix/sysv/linux/testrtsig.h: Likewise.
42333         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
42334         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
42335         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
42336         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
42337         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
42338         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
42339
42340         * configure.ac (libc_cv_c_asmcr0_bug): Remove configure test.
42341         * configure: Regenerated.
42342         * config.h.in (BROKEN_PPC_ASM_CR0): Remove macro.
42343
42344         * configure.ac (base_machine): Do not set specially for particular
42345         machines here.
42346         * configure: Regenerated.
42347         * sysdeps/powerpc/preconfigure: Move machine and base_machine
42348         settings from configure.ac.
42349         * sysdeps/i386/preconfigure: New file.
42350         * sysdeps/s390/preconfigure: Likewise.
42351         * sysdeps/sh/preconfigure: Likewise.
42352         * sysdeps/sparc/preconfigure: Likewise.
42353
42354 2014-06-25  Roland McGrath  <roland@hack.frob.com>
42355
42356         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: Moved ...
42357         * sysdeps/sparc/sparc64/cpu_relax.S: ... here.
42358         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: Moved ...
42359         * sysdeps/sparc/sparc64/pthread_spin_init.c: ... here.
42360         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: Moved ...
42361         * sysdeps/sparc/sparc64/pthread_spin_lock.S: ... here.
42362         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: Moved ...
42363         * sysdeps/sparc/sparc64/pthread_spin_trylock.S: ... here.
42364         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: Moved ...
42365         * sysdeps/sparc/sparc64/pthread_spin_unlock.S: ... here.
42366         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: Moved ...
42367         * sysdeps/sparc/sparc64/pthreaddef.h: ... here.
42368         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Update #include.
42369         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Likewise.
42370         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Likewise.
42371         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Likewise.
42372         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Likewise.
42373         * sysdeps/sparc/sparc64/nptl/Makefile: File removed, its contents ...
42374         * sysdeps/sparc/sparc64/Makefile: ... appended here.
42375
42376         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: Moved ...
42377         * sysdeps/sparc/sparc32/lowlevellock.c: ... here.
42378         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Moved ...
42379         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: ... here.
42380         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: Moved ...
42381         * sysdeps/sparc/sparc32/pthread_spin_lock.S: ... here.
42382         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: Moved ...
42383         * sysdeps/sparc/sparc32/pthread_spin_trylock.S: ... here.
42384         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: Moved ...
42385         * sysdeps/sparc/sparc32/pthreaddef.h: ... here.
42386         * sysdeps/sparc/sparc32/nptl/sem_post.c: Moved ...
42387         * sysdeps/sparc/sparc32/sem_post.c: ... here.
42388         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Moved ...
42389         * sysdeps/sparc/sparc32/sem_timedwait.c: ... here.
42390         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: Moved ...
42391         * sysdeps/sparc/sparc32/sem_trywait.c: ... here.
42392         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Moved ...
42393         * sysdeps/sparc/sparc32/sem_wait.c: ... here.
42394         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: Moved ...
42395         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: ... here.
42396         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: Moved ...
42397         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: ... here.
42398         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: Moved ...
42399         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: ... here.
42400         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: Moved ...
42401         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: ... here.
42402         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: Moved ...
42403         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: ... here.
42404         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Moved ...
42405         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: ... here.
42406         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: Moved ...
42407         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: ... here.
42408         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: Moved ...
42409         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: ... here.
42410         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: Moved ...
42411         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: ... here.
42412         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: Moved ...
42413         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: ... here.
42414
42415         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data: Moved ...
42416         * sysdeps/unix/sysv/linux/sparc/sparc32/c++-types.data: ... here.
42417         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: Moved ...
42418         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: ... here.
42419         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
42420         Moved ...
42421         * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
42422         ... here.
42423         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: Moved ...
42424         * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: ... here.
42425         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Moved ...
42426         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: ... here.
42427         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist:
42428         Moved ...
42429         * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: ... here.
42430         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: Moved ...
42431         * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: ... here.
42432         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: Moved ...
42433         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: ... here.
42434         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: Moved ...
42435         * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: ... here.
42436         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
42437         Moved ...
42438         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: ... here.
42439         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
42440         Moved ...
42441         * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: ... here.
42442         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: Moved ...
42443         * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: ... here.
42444         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
42445         Moved ...
42446         * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: ... here.
42447         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: Moved ...
42448         * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: ... here.
42449         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data: Moved ...
42450         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: ... here.
42451         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data: Moved ...
42452         * sysdeps/unix/sysv/linux/sparc/sparc64/c++-types.data: ... here.
42453         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: Moved ...
42454         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: ... here.
42455         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
42456         Moved ...
42457         * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
42458         ... here.
42459         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: Moved ...
42460         * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: ... here.
42461         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Moved ...
42462         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: ... here.
42463         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist:
42464         Moved ...
42465         * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: ... here.
42466         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: Moved ...
42467         * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: ... here.
42468         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: Moved ...
42469         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: ... here.
42470         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: Moved ...
42471         * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: ... here.
42472         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
42473         Moved ...
42474         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: ... here.
42475         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
42476         Moved ...
42477         * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: ... here.
42478         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: Moved ...
42479         * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: ... here.
42480         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
42481         Moved ...
42482         * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: ... here.
42483         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: Moved ...
42484         * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: ... here.
42485         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data: Moved ...
42486         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: ... here.
42487
42488 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
42489
42490         * timezone/checktab.awk: Update from tzcode 2014e.
42491         * timezone/private.h: Likewise.
42492         * timezone/tzfile.h: Likewise.
42493         * timezone/zdump.c: Likewise.
42494         * timezone/zic.c: Likewise.
42495
42496         * sysdeps/unix/sysv/linux/kernel-features.h
42497         (__ASSUME_XFS_RESTRICTED_CHOWN): Remove macro.
42498         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_chown_restricted)
42499         [__ASSUME_XFS_RESTRICTED_CHOWN]: Make code unconditional.
42500         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
42501         Remove conditional code.
42502
42503 2014-06-25  Will Newton  <will.newton@linaro.org>
42504
42505         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c
42506         (_dl_arm_cap_flags): Add HWCAP2 values.
42507         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h
42508         (_DL_HWCAP_COUNT): Increase to 37.
42509         (_DL_HWCAP_LAST): New define.
42510         (_DL_HWCAP2_LAST): New define.
42511         (_dl_procinfo): Add support for printing
42512         AT_HWCAP2 entries.
42513         (_dl_string_hwcap): Use _dl_hwcap_string.
42514
42515 2014-06-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42516
42517         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
42518
42519 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
42520
42521         * README: Do not mention ports directory.
42522
42523         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMENSAT):
42524         Remove macro.
42525         * sysdeps/unix/sysv/linux/futimes.c: Do not include
42526         <kernel-features.h>.
42527         [__NR_utimensat && !__ASSUME_UTIMENSAT] (miss_utimensat): Remove
42528         conditional variable definition.
42529         (__futimes): Update comment.
42530         (__futimes) [__ASSUME_UTIMENSAT]: Make code unconditional.
42531         (__futimes) [!__ASSUME_UTIMENSAT]: Remove conditional code.
42532
42533         [BZ #16560]
42534         * sysdeps/ieee754/dbl-64/e_exp10.c (__ieee754_exp10): Return 1 for
42535         arguments close to 0.
42536         * sysdeps/ieee754/ldbl-128/e_exp10l.c (__ieee754_exp10l):
42537         Likewise.
42538         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (__ieee754_exp10l):
42539         Likewise.
42540         * math/auto-libm-test-in: Add more tests of exp10.
42541         * math/auto-libm-test-out: Regenerated.
42542         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
42543
42544         * sysdeps/unix/sysv/linux/kernel-features.h
42545         (__ASSUME_COMPLETE_READV_WRITEV): Remove macro.
42546         * sysdeps/unix/sysv/linux/readv.c: Do not include
42547         <kernel-features.h>.
42548         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
42549         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
42550         (__libc_readv) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
42551         unconditional.
42552         (__libc_readv) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
42553         conditional code.
42554         * sysdeps/unix/sysv/linux/writev.c: Do not include
42555         <kernel-features.h>.
42556         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
42557         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
42558         (__libc_writev) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
42559         unconditional.
42560         (__libc_writev) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
42561         conditional code.
42562
42563 2014-06-25  Will Newton  <will.newton@linaro.org>
42564
42565         * sysdeps/posix/tempname.c: Merge from gnulib, cosmetic
42566         comment changes throughout the file.  Remove checks
42567         for HAVE_*_H definitions that are not required.
42568         (__gen_tempname): Call abort if an unknown kind value is
42569         passed.
42570
42571 2014-06-25  Andreas Schwab  <schwab@suse.de>
42572
42573         [BZ #17086]
42574         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Add compat symbols for
42575         scalbln, scalblnf, scalblnl in libc.
42576
42577 2014-06-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
42578
42579         [BZ #17086]
42580         * sysdeps/i386/fpu/s_scalbn.S: Add compat symbol for libc.so.
42581         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
42582         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
42583
42584 2014-06-24  Roland McGrath  <roland@hack.frob.com>
42585
42586         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: Moved ...
42587         * sysdeps/i386/i486/pthread_spin_trylock.S: ... here.
42588         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: Moved ...
42589         * sysdeps/i386/i586/pthread_spin_trylock.S: ... here.
42590         Update #include.
42591         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: Moved ...
42592         * sysdeps/i386/i686/pthread_spin_trylock.S: ... here.
42593         Update #include.
42594         * sysdeps/x86_64/64/nptl/shlib-versions: Moved ...
42595         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: ... here.
42596         * sysdeps/x86_64/x32/nptl/shlib-versions: Moved ...
42597         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: ... here.
42598         * sysdeps/x86/nptl/bits/pthreadtypes.h: Moved ...
42599         * sysdeps/x86/bits/pthreadtypes.h: ... here.
42600         * sysdeps/x86/nptl/bits/semaphore.h: Moved ...
42601         * sysdeps/x86/bits/semaphore.h: ... here.
42602         * sysdeps/x86/nptl/elide.h: Moved ...
42603         * sysdeps/x86/elide.h: ... here.
42604         * sysdeps/x86_64/nptl/Implies: File removed.
42605         * sysdeps/i386/nptl/Implies: File removed.
42606
42607 2014-06-24  Joseph Myers  <joseph@codesourcery.com>
42608
42609         [BZ #16539]
42610         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Just
42611         return the argument for normal arguments with exponent below -64.
42612         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
42613         Likewise.
42614         * math/auto-libm-test-in: Add another test of expm1.
42615         * math/auto-libm-test-out: Regenerated.
42616
42617         [BZ #16287]
42618         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Return 1 without
42619         calling __erfcl for arguments at least 16.
42620         * math/auto-libm-test-in: Add more tests of erf.
42621         * math/auto-libm-test-out: Regenerated.
42622
42623         * sysdeps/unix/sysv/linux/configure.ac: Remove cases for
42624         individual architectures.
42625         * sysdeps/unix/sysv/linux/configure: Regenerated.
42626         * sysdeps/unix/sysv/linux/i386/configure.ac: New file.
42627         * sysdeps/unix/sysv/linux/i386/configure: New generated file.
42628         * sysdeps/unix/sysv/linux/powerpc/configure.ac
42629         (ldd_rewrite_script): Define variable.
42630         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
42631         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure.ac: New
42632         file.
42633         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure: New
42634         generated file.
42635         * sysdeps/unix/sysv/linux/s390/configure.ac: New file.
42636         * sysdeps/unix/sysv/linux/s390/configure: New generated file.
42637         * sysdeps/unix/sysv/linux/sh/configure.ac: New file.
42638         * sysdeps/unix/sysv/linux/sh/configure: New generated file.
42639         * sysdeps/unix/sysv/linux/sparc/configure.ac: New file.
42640         * sysdeps/unix/sysv/linux/sparc/configure: New generated file.
42641         * sysdeps/unix/sysv/linux/x86_64/configure.ac: New file.
42642         * sysdeps/unix/sysv/linux/x86_64/configure: New generated file.
42643
42644 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
42645
42646         [BZ #17084]
42647         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_mutex_t):
42648         Rename member __data.d to __data.__elision_data.
42649
42650 2014-06-24  Wilco  <wdijkstr@arm.com>
42651
42652         * NEWS: Add 16918 to fixed bug list.
42653
42654 2014-06-24  Wilco  <wdijkstr@arm.com>
42655
42656         * sysdeps/arm/fesetenv.c (fesetenv): Optimize implementation.
42657
42658 2014-06-24  Wilco  <wdijkstr@arm.com>
42659
42660         * sysdeps/arm/fpu_control.h (_FPU_MASK_RM): Define.
42661         * sysdeps/arm/fenv_private.h (libc_fesetround_vfp)
42662         (libc_feholdexcept_setround_vfp) (libc_feholdsetround_vfp)
42663         (libc_feresetround_vfp) (libc_feholdsetround_vfp_ctx)
42664         (libc_feresetround_vfp_ctx): Use _FPU_MASK_RM.
42665         * sysdeps/arm/fesetround.c (fesetround): Use _FPU_MASK_RM.
42666         * sysdeps/arm/get-rounding-mode.h (get_rounding_mode):
42667         Use _FPU_MASK_RM.
42668
42669 2014-06-24  Wilco  <wdijkstr@arm.com>
42670
42671         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Remove unused include.
42672
42673 2014-06-24  Wilco  <wdijkstr@arm.com>
42674
42675         * sysdeps/arm/feholdexcpt.c (feholdexcept): Remove space.
42676         * sysdeps/arm/fesetenv.c (fesetenv): Remove space.
42677         * sysdeps/arm/fesetround.c (fesetround): Remove space.
42678         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Remove space.
42679
42680 2014-06-24  Wilco  <wdijkstr@arm.com>
42681
42682         [BZ #16918]
42683         * sysdeps/arm/feupdateenv.c (feupdateenv):
42684         Rewrite to reduce FPSCR accesses and fix return value.
42685
42686 2014-06-24  Wilco  <wdijkstr@arm.com>
42687
42688         * sysdeps/arm/fclrexcpt.c (feclearexcept):
42689         Optimize to avoid unnecessary FPSCR writes.
42690         * sysdeps/arm/fedisblxcpt.c (fedisableexcept): Likewise.
42691         * sysdeps/arm/feenablxcpt.c (feenableexcept): Likewise.
42692         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Likewise.
42693         * sysdeps/arm/setfpucw.c (__setfpucw): Likewise.
42694
42695 2014-06-24  Wilco  <wdijkstr@arm.com>
42696
42697         * sysdeps/arm/fegetround.c (fegetround): Call get_rounding_mode.
42698         * sysdeps/arm/feholdexcpt.c (feholdexcept): Call libc_feholdexcept_vfp.
42699         * sysdeps/arm/fesetround.c (fesetround): Call libc_fesetround_vfp.
42700         * sysdeps/arm/fgetexcptflg.c (fegetexceptflag):
42701         Call libc_fetestexcept_vfp.
42702         * sysdeps/arm/ftestexcept.c (fetestexcept): Call libc_fetestexcept_vfp.
42703         * sysdeps/arm/fenv_private.h: Move libc_*_vfp functions outside of
42704         __SOFTFP__ ifdef so that they can be built for softfp.
42705
42706 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
42707
42708         * sysdeps/x86/nptl/elide.h (elision_adapt): Make first
42709         argument type signed char.
42710
42711         * Makerules (check-abi): Dump diff of symlist if the test
42712         fails.
42713
42714 2014-06-23  Roland McGrath  <roland@hack.frob.com>
42715
42716         * sysdeps/generic/get-rounding-mode.h: Include <stdlib.h> before
42717         using abort.
42718
42719         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
42720         Remove unused variable ST.
42721
42722 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
42723
42724         [BZ #16354]
42725         [BZ #17061]
42726         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Check for
42727         small arguments before calling __expm1.
42728         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Check for
42729         small arguments before calling __expm1f.
42730         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Check for
42731         small arguments before calling __expm1l.
42732         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
42733         Likewise.
42734         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
42735         * math/auto-libm-test-in: Add more cosh tests.  Do not allow
42736         spurious underflow for some cosh tests.
42737         * math/auto-libm-test-out: Regenerated.
42738         * sysdeps/i386/fpu/libm-test-ulps: Update.
42739
42740         [BZ #17050]
42741         * sysdeps/ieee754/dbl-64/e_j1.c: Include <errno.h>.
42742         (__ieee754_y1): Set errno if return value overflows.
42743         * sysdeps/ieee754/flt-32/e_j1f.c: Include <errno.h>.
42744         (__ieee754_y1f): Set errno if return value overflows.
42745         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <errno.h>.
42746         (__ieee754_y1l): Set errno if return value overflows.
42747         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <errno.h>.
42748         (__ieee754_y1l): Set errno if return value overflows.
42749         * math/auto-libm-test-in: Add more tests of y0, y1 and yn.
42750         * math/auto-libm-test-out: Regenerated.
42751
42752         * math/gen-auto-libm-tests.c: Document use of
42753         ignore-zero-inf-sign.
42754         (input_flag_type): Add value flag_ignore_zero_inf_sign.
42755         (input_flags): Add ignore-zero-inf-sign.
42756         (output_for_one_input_case): Handle flag_ignore_zero_inf_sign.
42757         * math/gen-libm-test.pl (generate_testfile): Handle
42758         ignore-zero-inf-sign.
42759         * math/auto-libm-test-in: Mark some cpow tests with
42760         ignore-zero-inf-sign and some with xfail-rounding.
42761         * math/auto-libm-test-out: Regenerated.
42762         * math/libm-test.inc (cpow_test): Use ALL_RM_TEST.
42763         * sysdeps/i386/fpu/libm-test-ulps: Update.
42764         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
42765
42766         [BZ #16315]
42767         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Ensure possibly
42768         overflowing or underflowing operations take place with sign of
42769         result.
42770         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
42771         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
42772         * sysdeps/ieee754/dbl-64/e_pow.c: Include <math.h>.
42773         (__ieee754_pow): Recompute overflowing and underflowing results in
42774         original rounding mode.
42775         * sysdeps/x86/fpu/powl_helper.c: Include <stdbool.h>.
42776         (__powl_helper): Allow negative argument X and scale negated value
42777         as needed.  Avoid passing value outside [-1, 1] to f2xm1.
42778         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Ensure possibly
42779         overflowing or underflowing operations take place with sign of
42780         result.
42781         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]:
42782         Include <math.h>.
42783         * math/auto-libm-test-in: Add more tests of pow.
42784         * math/auto-libm-test-out: Regenerated.
42785         * math/libm-test.inc (pow_test): Use ALL_RM_TEST.
42786         (pow_tonearest_test_data): Remove.
42787         (pow_test_tonearest): Likewise.
42788         (pow_towardzero_test_data): Likewise.
42789         (pow_test_towardzero): Likewise.
42790         (pow_downward_test_data): Likewise.
42791         (pow_test_downward): Likewise.
42792         (pow_upward_test_data): Likewise.
42793         (pow_test_upward): Likewise.
42794         (main): Don't call removed functions.
42795         * sysdeps/i386/fpu/libm-test-ulps: Update.
42796         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
42797
42798 2014-06-23  Roland McGrath  <roland@hack.frob.com>
42799
42800         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/c++-types.data:
42801         Moved ...
42802         * sysdeps/unix/sysv/linux/powerpc/powerpc32/c++-types.data: ... here.
42803         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
42804         Moved ...
42805         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: ... here.
42806         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
42807         Moved ...
42808         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: ... here.
42809         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
42810         Moved ...
42811         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data: ... here.
42812         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
42813         File removed.
42814         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
42815         File removed.
42816         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libBrokenLocale.abilist:
42817         File removed.
42818         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libanl.abilist:
42819         File removed.
42820         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libcrypt.abilist:
42821         File removed.
42822         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libdl.abilist:
42823         File removed.
42824         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libnsl.abilist:
42825         File removed.
42826         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
42827         File removed.
42828         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libresolv.abilist:
42829         File removed.
42830         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
42831         File removed.
42832         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libthread_db.abilist:
42833         File removed.
42834         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libutil.abilist:
42835         File removed.
42836         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/ld.abilist:
42837         Moved ...
42838         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: ... here.
42839         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libBrokenLocale.abilist:
42840         Moved ...
42841         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
42842         ... here.
42843         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libanl.abilist:
42844         Moved ...
42845         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: ... here.
42846         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libcrypt.abilist:
42847         Moved ...
42848         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: ... here.
42849         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libdl.abilist:
42850         Moved ...
42851         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: ... here.
42852         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libnsl.abilist:
42853         Moved ...
42854         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: ... here.
42855         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libpthread.abilist:
42856         Moved ...
42857         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist: ... here.
42858         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libresolv.abilist:
42859         Moved ...
42860         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist: ... here.
42861         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/librt.abilist:
42862         Moved ...
42863         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: ... here.
42864         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libthread_db.abilist: Moved ...
42865         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
42866         ... here.
42867         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libutil.abilist:
42868         Moved ...
42869         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: ... here.
42870         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
42871         Moved ...
42872         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
42873         ... here.
42874         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libm.abilist:
42875         Moved ...
42876         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
42877         ... here.
42878         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
42879         Moved ...
42880         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
42881         ... here.
42882         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
42883         Moved ...
42884         * sysdeps/unix/sysv/linux/powerpc/powerpc64/c++-types.data: ... here.
42885         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
42886         Moved ...
42887         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: ... here.
42888         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: Moved ...
42889         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: ... here.
42890         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
42891         Moved ...
42892         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
42893         ... here.
42894         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
42895         Moved ...
42896         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
42897         ... here.
42898         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
42899         Moved ...
42900         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist: ... here.
42901         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
42902         Moved ...
42903         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: ... here.
42904         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
42905         Moved ...
42906         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: ... here.
42907         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
42908         Moved ...
42909         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: ... here.
42910         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
42911         Moved ...
42912         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
42913         ... here.
42914         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
42915         Moved ...
42916         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: ... here.
42917         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
42918         Moved ...
42919         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: ... here.
42920         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
42921         Moved ...
42922         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: ... here.
42923         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
42924         Moved ...
42925         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: ... here.
42926         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: Moved ...
42927         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: ... here.
42928         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
42929         Moved ...
42930         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist: ... here.
42931         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
42932         Moved ...
42933         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: ... here.
42934         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
42935         Moved ...
42936         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
42937         ... here.
42938         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
42939         Moved ...
42940         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
42941         ... here.
42942         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
42943         Moved ...
42944         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
42945         ... here.
42946         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
42947         Moved ...
42948         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist: ... here.
42949         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
42950         Moved ...
42951         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: ... here.
42952         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
42953         Moved ...
42954         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: ... here.
42955         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
42956         Moved ...
42957         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
42958         ... here.
42959         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
42960         Moved ...
42961         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
42962         ... here.
42963         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
42964         Moved ...
42965         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
42966         ... here.
42967         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
42968         Moved ...
42969         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: ... here.
42970         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
42971         Moved ...
42972         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: ... here.
42973
42974 2014-06-23  Will Newton  <will.newton@linaro.org>
42975             Wilco  <wdijkstr@arm.com>
42976
42977         * sysdeps/generic/math_private.h: Add generic HAVE_RM_CTX
42978         implementation.  Include get-rounding-mode.h.
42979         [!HAVE_RM_CTX]: Define HAVE_RM_CTX to zero.
42980         [!libc_feholdsetround_noex_ctx]: Define
42981         libc_feholdsetround_noex_ctx.
42982         [!libc_feholdsetround_noexf_ctx]: Define
42983         libc_feholdsetround_noexf_ctx.
42984         [!libc_feholdsetround_noexl_ctx]: Define
42985         libc_feholdsetround_noexl_ctx.
42986         (libc_feholdsetround_ctx): New function.
42987         (libc_feresetround_ctx): New function.
42988         (libc_feholdsetround_noex_ctx): New function.
42989         (libc_feresetround_noex_ctx): New function.
42990
42991 2014-06-23  Roland McGrath  <roland@hack.frob.com>
42992
42993         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h: Moved ...
42994         * sysdeps/mips/nptl/bits/pthreadtypes.h: ... here.
42995         * sysdeps/unix/sysv/linux/mips/nptl/bits/semaphore.h: Moved ...
42996         * sysdeps/mips/nptl/bits/semaphore.h: ... here.
42997         * sysdeps/unix/sysv/linux/mips/nptl/bits/local_lim.h: Moved ...
42998         * sysdeps/unix/sysv/linux/mips/bits/local_lim.h: ... here.
42999
43000         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h: Moved ...
43001         * sysdeps/m68k/nptl/bits/pthreadtypes.h: ... here.
43002         * sysdeps/unix/sysv/linux/m68k/nptl/bits/semaphore.h: Moved ...
43003         * sysdeps/m68k/nptl/bits/semaphore.h: ... here.
43004         * sysdeps/unix/sysv/linux/m68k/nptl/c++-types.data: Moved ...
43005         * sysdeps/unix/sysv/linux/m68k/c++-types.data: ... here.
43006         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/bits/atomic.h: Moved ...
43007         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: ... here.
43008         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/ld.abilist: Moved ...
43009         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: ... here.
43010         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libBrokenLocale.abilist:
43011         Moved ...
43012         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
43013         ... here.
43014         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libanl.abilist: Moved ...
43015         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: ... here.
43016         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libc.abilist: Moved ...
43017         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: ... here.
43018         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libcrypt.abilist:
43019         Moved ...
43020         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: ... here.
43021         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libdl.abilist: Moved ...
43022         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: ... here.
43023         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libm.abilist: Moved ...
43024         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: ... here.
43025         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libnsl.abilist: Moved ...
43026         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: ... here.
43027         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libpthread.abilist:
43028         Moved ...
43029         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: ... here.
43030         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libresolv.abilist:
43031         Moved ...
43032         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: ... here.
43033         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/librt.abilist: Moved ...
43034         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: ... here.
43035         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libthread_db.abilist:
43036         Moved ...
43037         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: ... here.
43038         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libutil.abilist: Moved ...
43039         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: ... here.
43040         * sysdeps/unix/sysv/linux/m68k/nptl/localplt.data: Moved ...
43041         * sysdeps/unix/sysv/linux/m68k/localplt.data: ... here.
43042         * sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h: Moved ...
43043         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: ... here.
43044         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/ld.abilist: Moved ...
43045         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: ... here.
43046         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libBrokenLocale.abilist:
43047         Moved ...
43048         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
43049         ... here.
43050         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libanl.abilist: Moved ...
43051         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: ... here.
43052         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libc.abilist: Moved ...
43053         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: ... here.
43054         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libcrypt.abilist: Moved ...
43055         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: ... here.
43056         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libdl.abilist: Moved ...
43057         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: ... here.
43058         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libm.abilist: Moved ...
43059         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: ... here.
43060         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libnsl.abilist: Moved ...
43061         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: ... here.
43062         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libpthread.abilist:
43063         Moved ...
43064         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: ... here.
43065         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libresolv.abilist: Moved ...
43066         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: ... here.
43067         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/librt.abilist: Moved ...
43068         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: ... here.
43069         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libthread_db.abilist:
43070         Moved ...
43071         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: ... here.
43072         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libutil.abilist: Moved ...
43073         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: ... here.
43074         * sysdeps/unix/sysv/linux/m68k/nptl/sysdep-cancel.h: Moved ...
43075         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: ... here.
43076
43077         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: Moved ...
43078         * sysdeps/unix/sysv/linux/sh/c++-types.data: ... here.
43079         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: Moved ...
43080         * sysdeps/unix/sysv/linux/sh/ld.abilist: ... here.
43081         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: Moved ...
43082         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: ... here.
43083         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: Moved ...
43084         * sysdeps/unix/sysv/linux/sh/libanl.abilist: ... here.
43085         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Moved ...
43086         * sysdeps/unix/sysv/linux/sh/libc.abilist: ... here.
43087         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: Moved ...
43088         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: ... here.
43089         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: Moved ...
43090         * sysdeps/unix/sysv/linux/sh/libdl.abilist: ... here.
43091         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Moved ...
43092         * sysdeps/unix/sysv/linux/sh/libm.abilist: ... here.
43093         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: Moved ...
43094         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: ... here.
43095         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: Moved ...
43096         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: ... here.
43097         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: Moved ...
43098         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: ... here.
43099         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Moved ...
43100         * sysdeps/unix/sysv/linux/sh/librt.abilist: ... here.
43101         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: Moved ...
43102         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: ... here.
43103         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: Moved ...
43104         * sysdeps/unix/sysv/linux/sh/libutil.abilist: ... here.
43105
43106 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
43107
43108         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
43109         (FALLOC_FL_COLLAPSE_RANGE): New macro.
43110         [__USE_GNU] (FALLOC_FL_ZERO_RANGE): Likewise.
43111         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_OMIT): Likewise.
43112         (IPV6_PMTUDISC_INTERFACE): Likewise.
43113         (IPV6_PMTUDISC_OMIT): Likewise.
43114
43115 2014-06-23  Andreas Schwab  <schwab@suse.de>
43116
43117         * nptl/sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink):
43118         Remove unused errout label.
43119
43120 2014-06-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43121
43122         * sysdeps/powerpc/bits/hwcap.h [PPC_FEATURE2_HAS_VEC_CRYPTO]: New
43123         macro: hardware supports Vector Crypto instructions.
43124
43125 2014-06-23  Will Newton  <will.newton@linaro.org>
43126
43127         * elf/dl-lookup.c: Use __glibc_unlikely and __glibc_likely
43128         rather than __builtin_expect.
43129
43130         * elf/dl-lookup.c (undefined_msg): Remove variable.
43131         (_dl_lookup_symbol_x): Replace undefined_msg with string
43132         literal.
43133
43134         * elf/dl-lookup.c (do_lookup_unique): New function.
43135         (do_lookup_x): Move STB_GNU_UNIQUE handling code
43136         to a separate function.
43137
43138 2014-06-23  Andreas Schwab  <schwab@suse.de>
43139
43140         [BZ #17079]
43141         * nss/nss_files/files-XXX.c (get_contents): Store overflow marker
43142         before reading the next line.
43143
43144 2014-06-23  Will Newton  <will.newton@linaro.org>
43145
43146         * test-skeleton.c (signal_handler): Use printf and %m
43147         rather than perror.  Use printf rather than fprintf to
43148         stderr.  Use puts rather than fputs to stderr.
43149         (main): Likewise.
43150
43151 2014-06-22  Ludovic Courtès  <ludo@gnu.org>
43152
43153         * nscd/nscd.c (thread_info_t): Remove typedef.
43154         (thread_info): Remove variable.
43155
43156 2014-06-21  Allan McRae  <allan@archlinux.org>
43157
43158         * NEWS: Mention CVE-2014-4043.
43159
43160 2014-06-20  Roland McGrath  <roland@hack.frob.com>
43161
43162         * nptl/sysdeps/unix/sysv/linux/smp.h: Moved ...
43163         * nptl/smp.h: ... here.
43164
43165         * nptl/sysdeps/unix/sysv/linux/rtld-lowlevel.h: File removed.
43166
43167         * include/libc-symbols.h (HAVE_CONFIG_H, STDC_HEADERS): New macros.
43168         * catgets/Makefile (catgets-CPPFLAGS): Remove -DHAVE_CONFIG_H.
43169         * locale/Makefile (CPPFLAGS-locale-programs): Likewise.
43170         * stdlib/strtol_l.c [_LIBC] (STDC_HEADERS): Don't define it.
43171
43172         * nptl/allocatestack.c: Include <stack-aliasing.h>.
43173         * nptl/stack-aliasing.h: New file.
43174         * sysdeps/i386/i686/stack-aliasing.h: New file.
43175         * sysdeps/i386/i686/nptl/Makefile: File removed.
43176         * sysdeps/x86_64/stack-aliasing.h: New file.
43177         * sysdeps/x86_64/nptl/Makefile
43178         (CFLAGS-pthread_create.c): Variable removed.
43179
43180         * nptl/sysdeps/unix/sysv/linux/bits/local_lim.h: Moved ...
43181         * sysdeps/unix/sysv/linux/bits/local_lim.h: ... here, replacing the
43182         old file.
43183         * nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h: Moved ...
43184         * sysdeps/unix/sysv/linux/bits/posix_opt.h: ... here, replacing the
43185         old file.
43186
43187 2014-06-21  Joseph Myers  <joseph@codesourcery.com>
43188
43189         * sysdeps/unix/sysv/linux/arm/kernel-features.h
43190         (__ASSUME_SIGFRAME_V2): Remove macro.
43191         * sysdeps/unix/sysv/linux/arm/sigrestorer.S: Update comment.
43192         [!__ASSUME_SIGFRAME_V2]: Remove conditional code.
43193         (__default_sa_restorer_v2): Rename to __default_sa_restorer.
43194         (__default_rt_sa_restorer_v2): Rename to __default_rt_sa_restorer.
43195         * sysdeps/unix/sysv/linux/arm/sigaction.c (__default_sa_restorer):
43196         Declare as function.  Remove conditional macro definitions.
43197         (__default_rt_sa_restorer): Likewise.
43198         (__default_sa_restorer_v1): Remove declaration.
43199         (__default_sa_restorer_v2): Likewise.
43200         (__default_rt_sa_restorer_v1): Likewise.
43201         (__default_rt_sa_restorer_v2): Likewise.
43202         * sysdeps/unix/sysv/linux/arm/Versions (GLIBC_PRIVATE): Remove
43203         __default_sa_restorer_v1, __default_rt_sa_restorer_v1,
43204         __default_sa_restorer_v2 and __default_rt_sa_restorer_v2.
43205
43206 2014-06-20  Roland McGrath  <roland@hack.frob.com>
43207
43208         * sysdeps/unix/sysv/linux/sparc/Makefile [$(subdir) = nptl]
43209         (libpthread-routines): Add sysdep.
43210         * nptl/sysdeps/unix/sysv/linux/sparc/Makefile: File removed.
43211         * sysdeps/unix/sysv/linux/sparc/Versions
43212         (libpthread: GLIBC_2.3.3): New version set.
43213         * nptl/sysdeps/unix/sysv/linux/sparc/Versions: File removed.
43214         * nptl/sysdeps/unix/sysv/linux/sparc/aio_cancel.c: Moved ...
43215         * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: ... here.
43216         * nptl/sysdeps/unix/sysv/linux/sparc/internaltypes.h: Moved ...
43217         * sysdeps/sparc/nptl/internaltypes.h: ... here.  Use #include_next.
43218         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c:
43219         Moved ...
43220         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: ... here.
43221         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c: Moved ...
43222         * sysdeps/sparc/nptl/pthread_barrier_init.c: ... here.
43223         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c: Moved ...
43224         * sysdeps/sparc/nptl/pthread_barrier_wait.c: ... here.
43225         * nptl/sysdeps/unix/sysv/linux/sparc/sem_init.c: Moved ...
43226         * sysdeps/sparc/nptl/sem_init.c: ... here.
43227         * nptl/sysdeps/unix/sysv/linux/sparc/sem_post.c: Moved ...
43228         * sysdeps/sparc/nptl/sem_post.c: ... here.
43229         * nptl/sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: Moved ...
43230         * sysdeps/sparc/nptl/sem_timedwait.c: ... here.
43231         * nptl/sysdeps/unix/sysv/linux/sparc/sem_wait.c: Moved ...
43232         * sysdeps/sparc/nptl/sem_wait.c: ... here.
43233         * nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Moved ...
43234         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: ... here.
43235         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(subdir) = nptl]
43236         (libpthread-routines): Add cpu_relax.
43237         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/Makefile:
43238         File removed.
43239         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions
43240         (librt: GLIBC_2.3.3): New version set.
43241         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Versions: File removed.
43242         * sysdeps/sparc/sparc64/nptl/Makefile: New file.
43243         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile [$(subdir) = nptl]
43244         (CFLAGS-pause.c, CFLAGS-sigsuspend.c): New variables.
43245         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: File removed.
43246         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: Moved ...
43247         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: ... here.
43248         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c:
43249         Moved ...
43250         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: ... here.
43251         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: Moved ...
43252         * sysdeps/sparc/sparc32/nptl/sem_post.c: ... here.
43253         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: Moved ...
43254         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: ... here.
43255         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c: Moved ...
43256         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: ... here.
43257         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: Moved ...
43258         * sysdeps/sparc/sparc32/nptl/sem_wait.c: ... here.
43259         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/cpu_relax.S:
43260         Moved ...
43261         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: ... here.
43262         Update #include.
43263         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
43264         Moved ...
43265         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: ... here.
43266         Update #include.
43267         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c:
43268         Moved ...
43269         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: ... here.
43270         Update #include.
43271         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c:
43272         Moved ...
43273         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: ... here.
43274         Update #include.
43275         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_trywait.c:
43276         Moved ...
43277         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: ... here.
43278         Update #include.
43279         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c:
43280         Moved ...
43281         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: ... here.
43282         Update #include.
43283         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/cpu_relax.S: Moved ...
43284         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: ... here.
43285         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Moved ...
43286         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: ... here.
43287         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Moved ...
43288         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: ... here.
43289         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: Moved ...
43290         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: ... here.
43291         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: Moved ...
43292         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: ... here.
43293         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
43294         Moved ...
43295         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: ... here.
43296         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: Moved ...
43297         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: ... here.
43298         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: Moved ...
43299         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: ... here.
43300
43301 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
43302
43303         * nptl/pthread_cond_wait.c: Include <kernel-features.h>.
43304         * nptl/pthread_rwlock_timedrdlock.c: Likewise.
43305         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
43306         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Likewise.
43307         * nscd/nscd.c: Likewise.
43308         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
43309         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
43310         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
43311         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
43312
43313         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Do not include
43314         <kernel-features.h>.
43315         (init_mq_netlink): Remove conditional have_sock_cloexec
43316         definitions.  Remove code conditional on have_sock_cloexec < 0.
43317         (init_mq_netlink) [!SOCK_CLOEXEC]: Remove conditional code.
43318         (init_mq_netlink) [!__ASSUME_SOCK_CLOEXEC]: Likewise.
43319         * sysdeps/unix/sysv/linux/opensock.c: Do not include
43320         <kernel-features.h>.
43321         (__opensock) [SOCK_CLOEXEC]: Make code unconditional.
43322         (__opensock) [!__ASSUME_SOCK_CLOEXEC]: Remove conditional code.
43323
43324 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
43325
43326         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
43327         Add tests for memset_chk and memset.
43328
43329         * sysdeps/x86_64/multiarch/init-arch.h (HAS_AVX2): Defined
43330         with AVX2_Usable.
43331
43332 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
43333
43334         [BZ #16046]
43335         * elf/tst-dl-iter-static.c: New file.
43336         * elf/Makefile (tests-static): Add tst-dl-iter-static.
43337
43338         * stdlib/tst-qsort2.c (main): Fix off-by-one argc interpretation
43339         error.
43340
43341 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
43342
43343         * sysdeps/unix/sysv/linux/kernel-features.h
43344         (__ASSUME_F_GETOWN_EX): Remove macro.
43345         * sysdeps/unix/sysv/linux/fcntl.c: Do not include
43346         <kernel-features.h>.
43347         (miss_F_GETOWN_EX): Remove variable or macro.
43348         (do_fcntl): Do not check miss_F_GETOWN_EX.
43349         (do_fcntl) [!__ASSUME_F_GETOWN_EX]: Remove conditional code.
43350
43351         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_RANDOM):
43352         Remove macro.
43353         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard)
43354         [!__ASSUME_AT_RANDOM]: Remove conditional code.
43355         (_dl_setup_pointer_guard) [!__ASSUME_AT_RANDOM]: Likewise.
43356
43357         * sysdeps/unix/sysv/linux/kernel-features.h
43358         (__ASSUME_ADJ_OFFSET_SS_READ): Remove macro.
43359         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME)
43360         [ADJ_OFFSET_SS_READ]: Make code unconditional.
43361         (ADJTIME) [!ADJ_OFFSET_SS_READ]: Remove conditional code.
43362
43363 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
43364
43365         [BZ #17075]
43366         * sysdeps/arm/dl-machine.h (elf_machine_rel) <R_ARM_TLS_DESC>:
43367         Fix calculation of the symbol's value.
43368         * sysdeps/arm/tst-armtlsdescloc.c: New file.
43369         * sysdeps/arm/tst-armtlsdesclocmod.c: New file.
43370         * sysdeps/arm/tst-armtlsdescextnow.c: New file.
43371         * sysdeps/arm/tst-armtlsdescextlazymod.c: New file.
43372         * sysdeps/arm/tst-armtlsdescextlazy.c: New file.
43373         * sysdeps/arm/tst-armtlsdescextnowmod.c: New file.
43374         * sysdeps/arm/Makefile (tests): Add `tst-armtlsdesc',
43375         `tst-armtlsdescextnow' and `tst-armtlsdescextlazy'.
43376         (modules-names): Add `tst-armtlsdescmod',
43377         `tst-armtlsdescextlazymod' and `tst-armtlsdescextnowmod'.
43378         (CPPFLAGS-tst-armtlsdescextnowmod.c): New variable.
43379         (CPPFLAGS-tst-armtlsdescextlazymod.c): Likewise.
43380         (CFLAGS-tst-armtlsdesclocmod.c): Likewise.
43381         (CFLAGS-tst-armtlsdescextnowmod.c): Likewise.
43382         (CFLAGS-tst-armtlsdescextlazymod.c): Likewise.
43383         (LDFLAGS-tst-armtlsdescextnowmod.so): Likewise.
43384         ($(objpfx)tst-armtlsdescloc): New dependency.
43385         ($(objpfx)tst-armtlsdescextnow): Likewise.
43386         ($(objpfx)tst-armtlsdescextlazy): Likewise.
43387         * sysdeps/arm/configure.ac: Add a check for tools' GNU descriptor
43388         TLS scheme support.
43389         * sysdeps/arm/configure: Regenerate.
43390
43391 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
43392
43393         * include/fcntl.h (__atfct_seterrno): Remove prototype.
43394         (__atfct_seterrno_2): Likewise.
43395         * sysdeps/unix/sysv/linux/alpha/dl-fxstatat64.c: Do not include
43396         <kernel-features.h>.
43397         (__ASSUME_ATFCTS): Do not undefine and redefine.
43398         * sysdeps/unix/sysv/linux/alpha/fxstatat.c [__ASSUME_ATFCTS]
43399         (__have_atfcts): Remove conditional definition.
43400         (__fxstatat([__NR_fstatat64]: Make code unconditional.
43401         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code and code
43402         unreachable if [__ASSUME_ATFCTS].
43403         * sysdeps/unix/sysv/linux/dl-fxstatat64.c (__ASSUME_ATFCTS): Do
43404         not undefine and redefine.
43405         * sysdeps/unix/sysv/linux/faccessat.c: Do not include
43406         <kernel-features.h>.
43407         (faccessat) [__NR_faccessat]: Make code unconditional.
43408         (faccessat) [!__ASSUME_ATFCTS]: Remove conditional code.
43409         * sysdeps/unix/sysv/linux/fchmodat.c: Do not include
43410         <kernel-features.h>.
43411         (fchmodat) [__NR_fchmodat]: Make code unconditional.
43412         (fchmodat) [!__ASSUME_ATFCTS]: Remove conditional code.
43413         * sysdeps/unix/sysv/linux/fchownat.c: Do not include
43414         <kernel-features.h>.
43415         (fchownat) [__NR_fchownat]: Make code unconditional.
43416         (fchownat) [!__ASSUME_ATFCTS]: Remove conditional code.
43417         * sysdeps/unix/sysv/linux/futimesat.c: Do not include
43418         <kernel-features.h>.
43419         (futimesat) [__NR_futimesat]: Make code unconditional.
43420         (futimesat) [!__ASSUME_ATFCTS]: Remove conditional code.
43421         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
43422         <kernel-features.h>.
43423         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
43424         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
43425         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
43426         <kernel-features.h>.
43427         (__fxstatat64) [__NR_fstatat64]: Make code unconditional.
43428         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
43429         * sysdeps/unix/sysv/linux/i386/fchownat.c: Remove file.
43430         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
43431         <kernel-features.h>.
43432         (__fxstatat) [__NR_fstatat64]: Make code unconditional.
43433         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
43434         * sysdeps/unix/sysv/linux/linkat.c: Do not include
43435         <kernel-features.h>.
43436         (linkat) [__NR_linkat]: Make code unconditional.
43437         (linkat) [!__ASSUME_ATFCTS]: Remove conditional code.
43438         * sysdeps/unix/sysv/linux/m68k/fchownat.c: Remove file.
43439         * sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c: Do not include
43440         <kernel-features.h>.
43441         (__fxstatat64) [__NR_newfstatat]: Make code unconditional.
43442         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
43443         * sysdeps/unix/sysv/linux/mkdirat.c: Do not include
43444         <kernel-features.h>.
43445         (mkdirat) [__NR_mkdirat]: Make code unconditional.
43446         (mkdirat) [!__ASSUME_ATFCTS]: Remove conditional code.
43447         * sysdeps/unix/sysv/linux/openat.c: Do not include
43448         <kernel-features.h>.
43449         [!__ASSUME_ATFCTS] (__atfct_seterrno): Remove function.
43450         [!__ASSUME_ATFCTS] (__have_atfcts): Remove variable.
43451         (OPENAT_NOT_CANCEL) [__NR_openat]: Make code unconditional.
43452         (OPENAT_NOT_CANCEL) [!__ASSUME_ATFCTS]: Remove conditional code.
43453         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Remove file.
43454         * sysdeps/unix/sysv/linux/readlinkat.c: Do not include
43455         <kernel-features.h>.
43456         (readlinkat) [__NR_readlinkat]: Make code unconditional.
43457         (readlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.  Return
43458         result of INLINE_SYSCALL directly, not via int variable.
43459         * sysdeps/unix/sysv/linux/renameat.c: Do not include
43460         <kernel-features.h>.
43461         [!__ASSUME_ATFCTS] (__atfct_seterrno_2): Remove function.
43462         (renameat) [__NR_renameat]: Make code unconditional.
43463         (renameat) [!__ASSUME_ATFCTS]: Remove conditional code.
43464         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Remove file.
43465         * sysdeps/unix/sysv/linux/sh/fchownat.c: Remove file.
43466         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Remove file.
43467         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c
43468         (__ASSUME_ATFCTS): Do not undefine and redefine.
43469         * sysdeps/unix/sysv/linux/symlinkat.c: Do not include
43470         <kernel-features.h>.
43471         (symlinkat) [__NR_symlinkat]: Make code unconditional.
43472         (symlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
43473         * sysdeps/unix/sysv/linux/unlinkat.c: Do not include
43474         <kernel-features.h>.
43475         (unlinkat) [__NR_unlinkat]: Make code unconditional.
43476         (unlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
43477         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c
43478         (__ASSUME_ATFCTS): Do not undefine and redefine.
43479         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
43480         <kernel-features.h>.
43481         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
43482         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
43483         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
43484         <kernel-features.h>.
43485         (__xmknodat) [__NR_mknodat]: Make code unconditional.
43486         (__xmknodat) [!__ASSUME_ATFCTS]: Remove conditional code.
43487
43488 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
43489
43490         * sysdeps/x86_64/multiarch/rtld-strlen.S: Removed.
43491
43492 2014-06-20  Andreas Schwab  <schwab@linux-m68k.org>
43493
43494         [BZ #17069]
43495         * posix/regcomp.c (parse_reg_exp): Deallocate partially
43496         constructed tree before returning error.
43497         * posix/bug-regexp36.c: Expand test case.
43498
43499 2014-06-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
43500
43501         [BZ #6803]
43502         * math/libm-test.inc (scalbln_test_date):
43503         Add errno expectations.
43504         * math/w_scalblnf.c: New File.
43505         Add wrapper which checks for setting errno to ERANGE.
43506         Add weak_alias for corresponding scalbln function.
43507         * math/w_scalbln.c: Likewise.
43508         * math/w_scalblnl.c: Likewise.
43509         * math/Makefile (libm-calls): Add w_scalbln.
43510         * sysdeps/ieee754/flt-32/s_scalblnf.c:
43511         Remove weak_alias for corresponding scalbln function.
43512         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
43513         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
43514         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
43515         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
43516         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
43517         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
43518         * sysdeps/i386/fpu/s_scalbn.S: Likewise.
43519         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
43520         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Likewise.
43521         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c:
43522         Remove long_double_symbol for scalblnl function in libm, libc.
43523         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: New File.
43524         Add wrapper which checks for setting errno to ERANGE.
43525         Add long_double_symbol for scalblnl function in libm, libc.
43526         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c:
43527         Remove long_double_symbol for scalblnl in libm.
43528         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: New File.
43529         Add wrapper which checks for setting errno to ERANGE.
43530         Add long_double_symbol for scalblnl function in libm.
43531         * sysdeps/ia64/fpu/w_scalblnf.c: New File.
43532         Do not use wrapper because of own implementation.
43533
43534 2014-06-19  H.J. Lu  <hongjiu.lu@intel.com>
43535
43536         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Use
43537         3 bytes for __pad1 for x32.
43538         (__PTHREAD_RWLOCK_ELISION_EXTRA): Likewise.
43539
43540 2014-06-19  Ling Ma  <ling.ml@alibaba-inc.com>
43541             H.J. Lu  <hongjiu.lu@intel.com>
43542
43543         * sysdeps/x86_64/multiarch/Makefile: Add memset-avx2.
43544         * sysdeps/x86_64/multiarch/memset-avx2.S: New file.
43545         * sysdeps/x86_64/multiarch/memset.S: Likewise.
43546         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
43547         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
43548
43549 2014-06-19  Andreas Schwab  <schwab@linux-m68k.org>
43550
43551         [BZ #17069]
43552         * posix/regcomp.c (parse_expression): Deallocate partially
43553         constructed tree before returning error.
43554         * posix/Makefile.c (tests): Add bug-regex36.
43555         (generated): Add bug-regex36.mtrace.
43556         (tests-special): Add $(objpfx)bug-regex36-mem.out
43557         (bug-regex36-ENV): New variable.
43558         ($(objpfx)bug-regex36-mem.out): New rule.
43559         * posix/bug-regex36.c: New file.
43560
43561 2014-06-19  Will Newton  <will.newton@linaro.org>
43562
43563         * malloc/malloc.c (systrim): If extra is zero then return
43564         early.
43565
43566 2014-06-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
43567
43568         * benchtests/Makefile ($(objpfx)bench-%.c): Remove $(.).
43569
43570 2014-06-19  Richard Earnshaw  <rearnsha@arm.com>
43571
43572         * sysdeps/aarch64/strchr.S: New file.
43573
43574 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
43575
43576         [BZ #17022]
43577         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Do not subtract 1
43578         from arguments -2 or below.
43579         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
43580         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
43581
43582 2014-06-18  Andreas Schwab  <schwab@suse.de>
43583
43584         [BZ #17062]
43585         * posix/fnmatch_loop.c (FCT): Rerrange loop for skipping over rest
43586         of a bracket expr not to run off the end of the string.
43587         * posix/Makefile (tests): Add tst-fnmatch3.
43588         * posix/tst-fnmatch3.c: New file.
43589
43590 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
43591
43592         * elf/Makefile ($(objpfx)tst-unused-dep.out): Use $(rtld-prefix).
43593         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
43594         [$(cross-compiling) = no]: Likewise.
43595         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
43596         [$(cross-compiling) = no]: Likewise.
43597
43598 2014-16-17  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
43599
43600         [BZ #17031]
43601         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Consider the low
43602         double, adjusted for any remainder from the high double.
43603         * math/libm-test.inc (nearbyint): Add tests.
43604         (rint): Likewise.
43605
43606 2014-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43607
43608         * nptl/sysdeps/powerpc/Makefile: Moved ...
43609         * sysdeps/powerpc/nptl/Makefile: ... here.
43610         * nptl/sysdeps/powerpc/pthread_spin_lock.c: Moved ...
43611         * sysdeps/powerpc/nptl/pthread_spin_lock.c: .. here.
43612         * nptl/sysdeps/powerpc/pthread_spin_trylock.c: Moved ...
43613         * sysdeps/powerpc/nptl/pthread_spin_trylock.c: ... here.
43614         * nptl/sysdeps/powerpc/pthreaddef.h: Moved ...
43615         * sysdeps/powerpc/nptl/pthreaddef.h: ... here.
43616         * nptl/sysdeps/powerpc/tcb-offsets.sym: Moved ...
43617         * sysdeps/powerpc/nptl/tcb-offsets.sym: ... here.
43618         * nptl/sysdeps/powerpc/tls.h: Moved ...
43619         * sysdeps/powerpc/nptl/tls.h: ... here.
43620
43621 2014-06-16  Joseph Myers  <joseph@codesourcery.com>
43622
43623         [BZ #16681]
43624         * sysdeps/i386/fpu/s_ceil.S (__ceil): Add CFI.
43625         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
43626         * sysdeps/i386/fpu/s_ceill.S (__ceill): Likewise.
43627         * sysdeps/i386/fpu/s_floor.S (__floor): Likewise.
43628         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
43629         * sysdeps/i386/fpu/s_floorl.S (__floorl): Likewise.
43630         * sysdeps/i386/fpu/s_trunc.S (__trunc): Likewise.
43631         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
43632         * sysdeps/i386/fpu/s_truncl.S (__truncl): Likewise.
43633
43634 2014-06-17  Andreas Schwab  <schwab@linux-m68k.org>
43635
43636         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
43637
43638 2014-06-16  Andreas Schwab  <schwab@linux-m68k.org>
43639
43640         * sysdeps/m68k/m680x0/bits/huge_vall.h: Fix missing space after
43641         defined operator.
43642
43643         * scripts/cross-test-ssh.sh (timeoutfactor): Default to
43644         $TIMEOUTFACTOR.
43645
43646 2014-06-16  Florian Weimer  <fweimer@redhat.com>
43647
43648         [BZ #17058]
43649         * nptl/tst-setuid2.c (do_test): Fix tautological comparison in
43650         non-executed part of the test.
43651
43652 2014-06-16  Andreas Schwab  <schwab@suse.de>
43653
43654         * string/bits/string2.h (strdup, strndup): Update feature guard.
43655
43656 2014-06-14  David S. Miller  <davem@davemloft.net>
43657
43658         * sysdeps/sparc/fpu/libm-test-ulps: Update.
43659
43660 2014-06-14  Andreas Schwab  <schwab@linux-m68k.org>
43661
43662         * sysdeps/unix/sysv/linux/m68k/clone.S: Deconditionalize the code
43663         that was previously under [RESET_PID].
43664         * sysdeps/unix/sysv/linux/m68k/nptl/clone.S: Remove file.
43665
43666         * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: New file.
43667         * sysdeps/unix/sysv/linux/m68k/nptl/pt-vfork.S: Remove file.
43668         * sysdeps/unix/sysv/linux/m68k/vfork.S: Include <tcb-offsets.h>.
43669         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
43670         (__libc_vfork): New strong alias.
43671         * sysdeps/unix/sysv/linux/m68k/nptl/vfork.S: Remove file.
43672
43673 2014-06-14 Andi Kleen  <ak@linux.intel.com>
43674
43675         * sysdeps/generic/elide.h: New file.
43676
43677 2014-06-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
43678
43679         * Makefile (installed-headers): Adjust path of pthread.h header.
43680
43681 2014-06-13  Roland McGrath  <roland@hack.frob.com>
43682
43683         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Moved ...
43684         * sysdeps/s390/nptl/bits/pthreadtypes.h: ... here.
43685         * nptl/sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Moved ...
43686         * sysdeps/s390/nptl/bits/semaphore.h: ... here.
43687
43688         * nptl/sysdeps/s390/Makefile: Moved ...
43689         * sysdeps/s390/nptl/Makefile: ... here.
43690         * nptl/sysdeps/s390/pthread_spin_init.c: Moved ...
43691         * sysdeps/s390/nptl/pthread_spin_init.c: ... here.
43692         * nptl/sysdeps/s390/pthread_spin_lock.c: Moved ...
43693         * sysdeps/s390/nptl/pthread_spin_lock.c: ... here.
43694         * nptl/sysdeps/s390/pthread_spin_trylock.c: Moved ...
43695         * sysdeps/s390/nptl/pthread_spin_trylock.c: ... here.
43696         * nptl/sysdeps/s390/pthread_spin_unlock.c: Moved ...
43697         * sysdeps/s390/nptl/pthread_spin_unlock.c: ... here.
43698         * nptl/sysdeps/s390/pthreaddef.h: Moved ...
43699         * sysdeps/s390/nptl/pthreaddef.h: ... here.
43700         * nptl/sysdeps/s390/tcb-offsets.sym: Moved ...
43701         * sysdeps/s390/nptl/tcb-offsets.sym: ... here.
43702         * nptl/sysdeps/s390/tls.h: Moved ...
43703         * sysdeps/s390/nptl/tls.h: ... here.
43704
43705         * sysdeps/unix/sysv/linux/s390/arch-fork.h: New file.
43706         * nptl/sysdeps/unix/sysv/linux/s390/fork.c: File removed.
43707
43708 2014-06-13  David S. Miller  <davem@davemloft.net>
43709
43710         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Delete.
43711         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: Delete.
43712         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Moved ...
43713         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: ... here.
43714         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Delete.
43715         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Delete.
43716         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Moved ...
43717         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: ... here.
43718         * sysdeps/unix/sysv/linux/sparc/fork.S: Delete.
43719         * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
43720         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
43721         Remove RESET_PID cpp guards.
43722         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
43723         Remove RESET_PID cpp guards.
43724         * sysdeps/unix/sysv/linux/sparc/vfork.S: Delete.
43725
43726 2014-06-13  Andreas Schwab  <schwab@linux-m68k.org>
43727
43728         * sysdeps/m68k/jmpbuf-unwind.h (_JMPBUF_UNWINDS, _jmpbuf_sp): Cast
43729         __sp to uintptr_t.
43730
43731 2014-06-13  Andi Kleen  <ak@linux.intel.com>
43732
43733         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Remove.
43734         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: dito.
43735         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: dito.
43736         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: dito.
43737         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: dito.
43738         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: dito.
43739         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S: dito.
43740         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S: dito.
43741         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: dito.
43742         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: dito.
43743         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: dito.
43744         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S: dito.
43745         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S: dito.
43746         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: dito.
43747         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: dito.
43748         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: dito.
43749         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: dito.
43750         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: dito.
43751         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: dito.
43752         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: dito.
43753
43754         * nptl/pthread_rwlock_rdlock.c: Include elide.h.
43755         (pthread_rwlock_rdlock): Add elision.
43756         * nptl/pthread_rwlock_wrlock.c: Include elide.h.
43757         (pthread_rwlock_wrlock): Add elision.
43758         * nptl/pthread_rwlock_trywrlock.c: Include elide.h.
43759         (pthread_rwlock_trywrlock): Add elision.
43760         * nptl/pthread_rwlock_tryrdlock.c: Include elide.h.
43761         (pthread_rwlock_tryrdlock): Add elision.
43762         * nptl/pthread_rwlock_unlock.c: Include elide.h.
43763         (pthread_rwlock_tryrdlock): Add elision unlock.
43764         * nptl/sysdeps/pthread/pthread.h:
43765         (__PTHREAD_RWLOCK_ELISION_EXTRA): Handle new define
43766         (PTHREAD_RWLOCK_INITIALIZER,
43767         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP):
43768         Handle new elision field.
43769         * sysdeps/x86/nptl/elide.h: New file. Add generic elision macros.
43770         * sysdeps/arm/nptl/bits/pthreadtypes.h
43771         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
43772         * sysdeps/sh/nptl/bits/pthreadtypes.h
43773         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
43774         * sysdeps/tile/nptl/bits/pthreadtypes.h
43775         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
43776         * sysdeps/a/nptl/bits/pthreadtypes.h
43777         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
43778         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
43779         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
43780         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
43781         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
43782         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h
43783         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
43784         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
43785         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
43786         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
43787         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
43788         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
43789         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
43790         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
43791         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
43792         * sysdeps/unix/sysv/linux/powerpc/nptl/bits/pthreadtypes.h
43793         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
43794         * sysdeps/unix/sysv/linux/x86/elision-conf.c:
43795         (elision_init): Set try_xbegin to zero when no RTM.
43796         * sysdeps/x86/nptl/bits/pthreadtypes.h
43797         (pthread_rwlock_t): Change __pad1 to __rwelision.
43798         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
43799
43800 2014-06-13  Andi Kleen  <ak@linux.intel.com>
43801
43802         * nptl/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
43803         Split into __do_pthread_rwlock_rdlock and __pthread_rwlock_rdlock.
43804         * nptl/pthread_rwlock_wrlock (__pthread_rwlock_wrlock):
43805         Split into __do_pthread_rwlock_wrlock and __pthread_wrlock_rdlock.
43806
43807 2014-06-13  Meador Inge  <meadori@codesourcery.com>
43808
43809         [BZ #16996]
43810         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Ensure
43811         that the cached result has been set before returning it.
43812
43813 2014-06-12  Roland McGrath  <roland@hack.frob.com>
43814
43815         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Moved ...
43816         * sysdeps/sparc/nptl/bits/pthreadtypes.h: ... here.
43817         * nptl/sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Moved ...
43818         * sysdeps/sparc/nptl/bits/semaphore.h: ... here.
43819         * nptl/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Moved ...
43820         * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: ... here.
43821
43822         * nptl/sysdeps/sparc/Makefile: Moved ...
43823         * sysdeps/sparc/nptl/Makefile: ... here.
43824         * nptl/sysdeps/sparc/tcb-offsets.sym: Moved ...
43825         * sysdeps/sparc/nptl/tcb-offsets.sym: ... here.
43826         * nptl/sysdeps/sparc/tls.h: Moved ...
43827         * sysdeps/sparc/nptl/tls.h: ... here.
43828         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S: Moved ...
43829         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: ... here.
43830         * nptl/sysdeps/sparc/sparc32/pthread_spin_trylock.S: Moved ...
43831         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: ... here.
43832         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Moved ...
43833         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: ... here.
43834         * nptl/sysdeps/sparc/sparc64/pthread_spin_init.c: Moved ...
43835         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: ... here.
43836         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S: Moved ...
43837         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: ... here.
43838         * nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.S: Moved ...
43839         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: ... here.
43840         * nptl/sysdeps/sparc/sparc64/pthread_spin_unlock.S: Moved ...
43841         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: ... here.
43842         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Moved ...
43843         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: ... here.
43844         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Moved ...
43845         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: ... here.
43846         Update #include.
43847         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Moved ...
43848         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: ... here.
43849         Update #include.
43850         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Moved ...
43851         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: ... here.
43852         Update #include.
43853         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: Moved ...
43854         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: ... here.
43855         Update #include.
43856
43857         * nptl/sysdeps/sparc/tls.h (TLS_DEFINE_INIT_TP): New macro.
43858
43859         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file.
43860         * nptl/sysdeps/unix/sysv/linux/sparc/fork.c: File removed.
43861
43862         * sysdeps/pthread/posix-timer.h: Include <list.h>.
43863         (struct list_links): Type removed.
43864         (struct thread_node, struct timer_node): Replace struct list_links
43865         with struct list_head.
43866         (list_unlink_ip): Likewise.
43867         * sysdeps/pthread/timer_routines.c
43868         (timer_free_list, thread_free_list, thread_active_list): Likewise.
43869         (list_append, list_insbefore): Likewise.
43870         (list_init): Function removed.
43871         (thread_init, init_module): Use INIT_LIST_HEAD instead.
43872         * sysdeps/nptl/Makefile: Move tst-timer bits to ...
43873         * sysdeps/pthread/Makefile: ... here, new file.
43874
43875         * nptl/sysdeps/unix/sysv/linux/Implies: Moved ...
43876         * sysdeps/nptl/Implies: ... here.
43877         * sysdeps/unix/sysv/linux/Implies: Add nptl.
43878         * nptl/sysdeps/pthread/list.h: Moved ...
43879         * include/list.h: ... here.
43880         * nptl/sysdeps/pthread/createthread.c: Moved ...
43881         * nptl/createthread.c: ... here.
43882         * nptl/sysdeps/unix/sysv/linux/createthread.c: Update #include.
43883         * nptl/sysdeps/pthread/pt-longjmp.c: Moved ...
43884         * nptl/pt-longjmp.c: ... here.
43885         * nptl/sysdeps/pthread/Makefile: Moved ...
43886         * sysdeps/nptl/Makefile: ... here.
43887         * nptl/sysdeps/pthread/Subdirs: Moved ...
43888         * sysdeps/nptl/Subdirs: ... here.
43889         * nptl/sysdeps/pthread/aio_misc.h: Moved ...
43890         * sysdeps/nptl/aio_misc.h: ... here.
43891         * nptl/sysdeps/pthread/bits/libc-lock.h: Moved ...
43892         * sysdeps/nptl/bits/libc-lock.h: ... here.
43893         * nptl/sysdeps/pthread/bits/libc-lockP.h: Moved ...
43894         * sysdeps/nptl/bits/libc-lockP.h: ... here.
43895         * nptl/sysdeps/pthread/bits/stdio-lock.h: Moved ...
43896         * sysdeps/nptl/bits/stdio-lock.h: ... here.
43897         * nptl/sysdeps/pthread/configure: Moved ...
43898         * sysdeps/nptl/configure: ... here.
43899         * nptl/sysdeps/pthread/configure.ac: Moved ...
43900         * sysdeps/nptl/configure.ac: ... here.
43901         * nptl/sysdeps/pthread/gai_misc.h: Moved ...
43902         * sysdeps/nptl/gai_misc.h: ... here.
43903         * nptl/sysdeps/pthread/librt-cancellation.c: Moved ...
43904         * sysdeps/nptl/librt-cancellation.c: ... here.
43905         * nptl/sysdeps/pthread/malloc-machine.h: Moved ...
43906         * sysdeps/nptl/malloc-machine.h: ... here.
43907         * nptl/sysdeps/pthread/pthread-functions.h: Moved ...
43908         * sysdeps/nptl/pthread-functions.h: ... here.
43909         * nptl/sysdeps/pthread/pthread.h: Moved ...
43910         * sysdeps/nptl/pthread.h: ... here.
43911         * nptl/sysdeps/pthread/setxid.h: Moved ...
43912         * sysdeps/nptl/setxid.h: ... here.
43913         * nptl/sysdeps/pthread/sigfillset.c: Moved ...
43914         * sysdeps/nptl/sigfillset.c: ... here.
43915         * nptl/sysdeps/pthread/tcb-offsets.h: Moved ...
43916         * sysdeps/nptl/tcb-offsets.h: ... here.
43917         * nptl/sysdeps/pthread/tst-mqueue8x.c: Moved ...
43918         * sysdeps/nptl/tst-mqueue8x.c: ... here.
43919         * nptl/sysdeps/pthread/unwind-forcedunwind.c: Moved ...
43920         * sysdeps/nptl/unwind-forcedunwind.c: ... here.
43921         * nptl/sysdeps/pthread/allocalim.h: Moved ...
43922         * sysdeps/pthread/allocalim.h: ... here.
43923         * nptl/sysdeps/pthread/bits/sigthread.h: Moved ...
43924         * sysdeps/pthread/bits/sigthread.h: ... here.
43925         * nptl/sysdeps/pthread/flockfile.c: Moved ...
43926         * sysdeps/pthread/flockfile.c: ... here.
43927         * nptl/sysdeps/pthread/ftrylockfile.c: Moved ...
43928         * sysdeps/pthread/ftrylockfile.c: ... here.
43929         * nptl/sysdeps/pthread/funlockfile.c: Moved ...
43930         * sysdeps/pthread/funlockfile.c: ... here.
43931         * nptl/sysdeps/pthread/posix-timer.h: Moved ...
43932         * sysdeps/pthread/posix-timer.h: ... here.
43933         * nptl/sysdeps/pthread/timer_create.c: Moved ...
43934         * sysdeps/pthread/timer_create.c: ... here.
43935         * nptl/sysdeps/pthread/timer_delete.c: Moved ...
43936         * sysdeps/pthread/timer_delete.c: ... here.
43937         * nptl/sysdeps/pthread/timer_getoverr.c: Moved ...
43938         * sysdeps/pthread/timer_getoverr.c: ... here.
43939         * nptl/sysdeps/pthread/timer_gettime.c: Moved ...
43940         * sysdeps/pthread/timer_gettime.c: ... here.
43941         * nptl/sysdeps/pthread/timer_routines.c: Moved ...
43942         * sysdeps/pthread/timer_routines.c: ... here.
43943         * nptl/sysdeps/pthread/timer_settime.c: Moved ...
43944         * sysdeps/pthread/timer_settime.c: ... here.
43945         * nptl/sysdeps/pthread/tst-timer.c: Moved ...
43946         * sysdeps/pthread/tst-timer.c: ... here.
43947         * nptl/sysdeps/pthread/pthread_sigmask.c: Moved ...
43948         * sysdeps/unix/sysv/linux/pthread_sigmask.c: ... here.
43949
43950         * sysdeps/unix/sysv/linux/sigprocmask.c: Include <nptl/pthreadP.h>.
43951         * nptl/sysdeps/pthread/sigprocmask.c: File removed.
43952
43953         * nptl/sysdeps/i386/i486/pthread_spin_trylock.S: Moved ...
43954         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: ... here.
43955         * nptl/sysdeps/i386/i586/pthread_spin_trylock.S: Moved ...
43956         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: ... here.
43957         Update #include target.
43958         * nptl/sysdeps/i386/i686/Makefile: Moved ...
43959         * sysdeps/i386/i686/nptl/Makefile: ... here.
43960         * nptl/sysdeps/i386/i686/pthread_spin_trylock.S: Moved ...
43961         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: ... here.
43962         Update #include target.
43963         * nptl/sysdeps/i386/i686/tls.h: Moved ...
43964         * sysdeps/i386/i686/nptl/tls.h: ... here.  Use #include_next.
43965         * nptl/sysdeps/i386/Makefile: Moved ...
43966         * sysdeps/i386/nptl/Makefile: ... here.
43967         * nptl/sysdeps/i386/pthread_spin_init.c: Moved ...
43968         * sysdeps/i386/nptl/pthread_spin_init.c: ... here.
43969         * sysdeps/x86_64/nptl/pthread_spin_init.c: Update #include target.
43970         * nptl/sysdeps/i386/pthread_spin_lock.S: Moved ...
43971         * sysdeps/i386/nptl/pthread_spin_lock.S: ... here.
43972         * nptl/sysdeps/i386/pthread_spin_unlock.S: Moved ...
43973         * sysdeps/i386/nptl/pthread_spin_unlock.S: ... here.
43974         * nptl/sysdeps/i386/pthreaddef.h: Moved ...
43975         * sysdeps/i386/nptl/pthreaddef.h: ... here.
43976         * nptl/sysdeps/i386/tcb-offsets.sym: Moved ...
43977         * sysdeps/i386/nptl/tcb-offsets.sym: ... here.
43978         * nptl/sysdeps/i386/tls.h: Moved ...
43979         * sysdeps/i386/nptl/tls.h: ... here.
43980
43981         * sysdeps/sh/Makefile [$(subdir) = csu]
43982         (gen-as-const-headers): Add tcb-offsets.sym.
43983         * nptl/sysdeps/sh/Makefile: File removed.
43984         * nptl/sysdeps/sh/pthread_spin_init.c: Moved ...
43985         * sysdeps/sh/nptl/pthread_spin_init.c: ... here.
43986         * nptl/sysdeps/sh/pthread_spin_lock.c: Moved ...
43987         * sysdeps/sh/nptl/pthread_spin_lock.c: ... here.
43988         * nptl/sysdeps/sh/pthread_spin_trylock.S: Moved ...
43989         * sysdeps/sh/nptl/pthread_spin_trylock.S: ... here.
43990         * nptl/sysdeps/sh/pthread_spin_unlock.S: Moved ...
43991         * sysdeps/sh/nptl/pthread_spin_unlock.S: ... here.
43992         * nptl/sysdeps/sh/pthreaddef.h: Moved ...
43993         * sysdeps/sh/nptl/pthreaddef.h: ... here.
43994         * nptl/sysdeps/sh/tcb-offsets.sym: Moved ...
43995         * sysdeps/sh/nptl/tcb-offsets.sym: ... here.
43996         * nptl/sysdeps/sh/tls.h: Moved ...
43997         * sysdeps/sh/nptl/tls.h: ... here.
43998         * nptl/sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Moved ...
43999         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: ... here.
44000         * nptl/sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: Moved ...
44001         * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: ... here.
44002         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S: Moved ...
44003         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: ... here.
44004         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.h: Moved ...
44005         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: ... here.
44006         * nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Moved ...
44007         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: ... here.
44008         * nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Moved ...
44009         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: ... here.
44010         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Moved ...
44011         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: ... here.
44012         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Moved ...
44013         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: ... here.
44014         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Moved ...
44015         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: ... here.
44016         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Moved ...
44017         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: ... here.
44018         * nptl/sysdeps/unix/sysv/linux/sh/pthread_once.S: Moved ...
44019         * sysdeps/unix/sysv/linux/sh/pthread_once.S: ... here.
44020         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Moved ...
44021         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: ... here.
44022         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
44023         Moved ...
44024         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: ... here.
44025         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
44026         Moved ...
44027         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: ... here.
44028         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Moved ...
44029         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: ... here.
44030         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Moved ...
44031         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: ... here.
44032         * nptl/sysdeps/unix/sysv/linux/sh/sem_post.S: Moved ...
44033         * sysdeps/unix/sysv/linux/sh/sem_post.S: ... here.
44034         * nptl/sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Moved ...
44035         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: ... here.
44036         * nptl/sysdeps/unix/sysv/linux/sh/sem_trywait.S: Moved ...
44037         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: ... here.
44038         * nptl/sysdeps/unix/sysv/linux/sh/sem_wait.S: Moved ...
44039         * sysdeps/unix/sysv/linux/sh/sem_wait.S: ... here.
44040         * nptl/sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Moved ...
44041         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: ... here.
44042         * nptl/sysdeps/unix/sysv/linux/sh/smp.h: Moved ...
44043         * sysdeps/unix/sysv/linux/sh/smp.h: ... here.
44044         * nptl/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Moved ...
44045         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: ... here.
44046
44047 2014-06-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
44048
44049         * posix/spawn_faction_addopen.c: Include string.h.
44050
44051 2014-06-11  Roland McGrath  <roland@hack.frob.com>
44052
44053         * nptl/sysdeps/x86_64/64/shlib-versions: Moved ...
44054         * sysdeps/x86_64/64/nptl/shlib-versions: ... here.
44055         * nptl/sysdeps/x86_64/Makefile: Moved ...
44056         * sysdeps/x86_64/nptl/Makefile: ... here.
44057         * nptl/sysdeps/x86_64/configure: Moved ...
44058         * sysdeps/x86_64/nptl/configure: ... here.
44059         * nptl/sysdeps/x86_64/configure.ac: Moved ...
44060         * sysdeps/x86_64/nptl/configure.ac: ... here.
44061         * nptl/sysdeps/x86_64/pthread_spin_init.c: Moved ...
44062         * sysdeps/x86_64/nptl/pthread_spin_init.c: ... here.
44063         * nptl/sysdeps/x86_64/pthread_spin_lock.S: Moved ...
44064         * sysdeps/x86_64/nptl/pthread_spin_lock.S: ... here.
44065         * nptl/sysdeps/x86_64/pthread_spin_trylock.S: Moved ...
44066         * sysdeps/x86_64/nptl/pthread_spin_trylock.S: ... here.
44067         * nptl/sysdeps/x86_64/pthread_spin_unlock.S: Moved ...
44068         * sysdeps/x86_64/nptl/pthread_spin_unlock.S: ... here.
44069         * nptl/sysdeps/x86_64/pthreaddef.h: Moved ...
44070         * sysdeps/x86_64/nptl/pthreaddef.h: ... here.
44071         * nptl/sysdeps/x86_64/tcb-offsets.sym: Moved ...
44072         * sysdeps/x86_64/nptl/tcb-offsets.sym: ... here.
44073         * nptl/sysdeps/x86_64/tls.h: Moved ...
44074         * sysdeps/x86_64/nptl/tls.h: ... here.
44075         * nptl/sysdeps/x86_64/x32/shlib-versions: Moved ...
44076         * sysdeps/x86_64/x32/nptl/shlib-versions: ... here.
44077         * nptl/sysdeps/x86_64/x32/tls.h: Moved ...
44078         * sysdeps/x86_64/x32/nptl/tls.h: ... here.
44079
44080         * sysdeps/x86_64/x32/nptl/tls.h: Use #include_next.
44081
44082 2014-06-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44083
44084         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
44085
44086 2014-06-11  Joseph Myers  <joseph@codesourcery.com>
44087
44088         * conform/data/sys/mman.h-data [POSIX] (size_t): Do not require
44089         type.
44090         [POSIX] (off_t): Likewise.
44091         * conform/data/sys/stat.h-data (S_IRGRP): Require constant.
44092         [POSIX] (S_ISBLK): Require macro.
44093         [POSIX] (S_ISCHR): Likewise.
44094         [POSIX] (S_ISDIR): Likewise.
44095         [POSIX] (S_ISFIFO): Likewise.
44096         [POSIX] (S_ISREG): Likewise.
44097         [POSIX || XPG3 || XPG4 || UNIX98] (S_TYPEISTMO): Do not list
44098         optional-macro.
44099         * conform/data/sys/types.h-data [POSIX] (blkcnt_t): Do not require
44100         type.
44101         [POSIX] (time_t): Likewise.
44102         [POSIX] (timer_t): Likewise.
44103
44104 2014-06-11  Florian Weimer  <fweimer@redhat.com>
44105
44106         [BZ #17048]
44107         * posix/spawn_int.h (struct __spawn_action): Make the path string
44108         non-const to support deallocation.
44109         * posix/spawn_faction_addopen.c
44110         (posix_spawn_file_actions_addopen): Make a copy of the pathname.
44111         * posix/spawn_faction_destroy.c
44112         (posix_spawn_file_actions_destroy): Adjust comment.  Deallocate
44113         path in all spawn_do_open actions.
44114         * posix/tst-spawn.c (do_test): Exercise the copy operation in
44115         posix_spawn_file_actions_addopen.
44116
44117 2014-06-11  Chris Metcalf  <cmetcalf@tilera.com>
44118
44119         * sysdeps/unix/sysv/linux/tile/pt-vfork.c: New file.
44120         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: Remove file.
44121         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Make PT_VFORK
44122         conditional code always true.
44123         (__libc_vfork): New alias.
44124
44125 2014-06-11  Roland McGrath  <roland@hack.frob.com>
44126
44127         * sysdeps/tile/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
44128         * sysdeps/unix/sysv/linux/tile/createthread.c: File removed.
44129
44130         * nptl/sysdeps/s390/tls.h (TLS_DEFINE_INIT_TP): New macro.
44131
44132         * sysdeps/alpha/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
44133         * sysdeps/unix/sysv/linux/alpha/createthread.c: File removed.
44134
44135         * nptl/sysdeps/powerpc/tls.h (TLS_DEFINE_INIT_TP): New macro.
44136         * sysdeps/unix/sysv/linux/powerpc/createthread.c: File removed.
44137
44138         * sysdeps/aarch64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
44139         * sysdeps/unix/sysv/linux/aarch64/nptl/createthread.c: File removed.
44140
44141 2014-06-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
44142
44143         * sysdeps/powerpc/powerpc64/power7/strcmp.S: New file: Optimization.
44144         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: New file:
44145         multiarch strcmp for PPC64.
44146         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: New file.
44147         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: New file.
44148         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcmp
44149         multiarch optimizations.
44150         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
44151         (__libc_ifunc_impl_list): Likewise.
44152
44153 2014-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
44154
44155         * benchtests/scripts/validate_benchout.py: New script.
44156         * benchtests/Makefile (bench-func): Call it.
44157         * benchtests/scripts/benchout.schema.json: New file.
44158
44159 2014-06-10  Chris Metcalf  <cmetcalf@tilera.com>
44160
44161         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h: Moved ...
44162         * sysdeps/tile/nptl/bits/pthreadtypes.h: ... here.
44163         * sysdeps/unix/sysv/linux/tile/nptl/bits/semaphore.h: Moved ...
44164         * sysdeps/tile/nptl/bits/semaphore.h: ... here.
44165         * sysdeps/unix/sysv/linux/tile/nptl/Makefile: Removed, merged into ...
44166         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
44167         * sysdeps/unix/sysv/linux/tile/nptl/clone.S: Moved ...
44168         * sysdeps/unix/sysv/linux/tile/clone.S: ... here.
44169         * sysdeps/unix/sysv/linux/tile/nptl/createthread.c: Moved ...
44170         * sysdeps/unix/sysv/linux/tile/createthread.c: ... here.
44171         * sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h: Moved ...
44172         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: ... here.
44173         * sysdeps/unix/sysv/linux/tile/nptl/pt-vfork.S: Moved ...
44174         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: ... here.
44175         * sysdeps/unix/sysv/linux/tile/nptl/sysdep-cancel.h: Moved ...
44176         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: ... here.
44177         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/c++-types.data:
44178         Moved ...
44179         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/c++-types.data:
44180         ... here.
44181         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/ld.abilist:
44182         Moved ...
44183         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: ... here.
44184         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libBrokenLocale.abilist:
44185         Moved ...
44186         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libBrokenLocale.abilist:
44187         ... here.
44188         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libanl.abilist:
44189         Moved ...
44190         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libanl.abilist:
44191         ... here.
44192         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libc.abilist:
44193         Moved ...
44194         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: ... here.
44195         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libcrypt.abilist:
44196         Moved ...
44197         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libcrypt.abilist:
44198         ... here.
44199         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libdl.abilist:
44200         Moved ...
44201         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libdl.abilist:
44202         ... here.
44203         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libm.abilist:
44204         Moved ...
44205         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: ... here.
44206         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libnsl.abilist:
44207         Moved ...
44208         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libnsl.abilist:
44209         ... here.
44210         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libpthread.abilist:
44211         Moved ...
44212         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libpthread.abilist:
44213         ... here.
44214         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libresolv.abilist:
44215         Moved ...
44216         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libresolv.abilist:
44217         ... here.
44218         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/librt.abilist:
44219         Moved ...
44220         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/librt.abilist: ... here.
44221         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libthread_db.abilist:
44222         Moved ...
44223         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libthread_db.abilist:
44224         ... here.
44225         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libutil.abilist:
44226         Moved ...
44227         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libutil.abilist:
44228         ... here.
44229         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/c++-types.data:
44230         Moved ...
44231         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/c++-types.data:
44232         ... here.
44233         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/ld.abilist:
44234         Moved ...
44235         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: ... here.
44236         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libBrokenLocale.abilist:
44237         Moved ...
44238         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libBrokenLocale.abilist:
44239         ... here.
44240         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libanl.abilist:
44241         Moved ...
44242         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libanl.abilist:
44243         ... here.
44244         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libc.abilist:
44245         Moved ...
44246         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: ... here.
44247         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libcrypt.abilist:
44248         Moved ...
44249         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libcrypt.abilist:
44250         ... here.
44251         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libdl.abilist:
44252         Moved ...
44253         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libdl.abilist: ... here.
44254         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libm.abilist:
44255         Moved ...
44256         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: ... here.
44257         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libnsl.abilist:
44258         Moved ...
44259         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libnsl.abilist:
44260         ... here.
44261         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libpthread.abilist:
44262         Moved ...
44263         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libpthread.abilist:
44264         ... here.
44265         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libresolv.abilist:
44266         Moved ...
44267         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libresolv.abilist:
44268         ... here.
44269         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/librt.abilist:
44270         Moved ...
44271         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/librt.abilist: ... here.
44272         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libthread_db.abilist:
44273         Moved ...
44274         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libthread_db.abilist:
44275         ... here.
44276         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libutil.abilist:
44277         Moved ...
44278         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libutil.abilist:
44279         ... here.
44280         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/c++-types.data: Moved ...
44281         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: ... here.
44282         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/ld.abilist: Moved ...
44283         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: ... here.
44284         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libBrokenLocale.abilist:
44285         Moved ...
44286         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
44287         ... here.
44288         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libanl.abilist: Moved ...
44289         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: ... here.
44290         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libc.abilist: Moved ...
44291         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: ... here.
44292         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libcrypt.abilist: Moved ...
44293         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: ... here.
44294         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libdl.abilist: Moved ...
44295         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: ... here.
44296         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libm.abilist: Moved ...
44297         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: ... here.
44298         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libnsl.abilist: Moved ...
44299         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: ... here.
44300         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libpthread.abilist:
44301         Moved ...
44302         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: ... here.
44303         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libresolv.abilist:
44304         Moved ...
44305         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: ... here.
44306         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/librt.abilist: Moved ...
44307         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: ... here.
44308         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libthread_db.abilist:
44309         Moved ...
44310         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: ... here.
44311         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libutil.abilist: Moved ...
44312         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: ... here.
44313         * sysdeps/unix/sysv/linux/tile/nptl/vfork.S: Moved ...
44314         * sysdeps/unix/sysv/linux/tile/vfork.S: ... here.
44315         * sysdeps/unix/sysv/linux/tile/nptl/waitpid.S: Moved ...
44316         * sysdeps/unix/sysv/linux/tile/waitpid.S: ... here.
44317
44318 2014-06-10  Wilco  <wdijkstr@arm.com>
44319
44320         * math/test-fenv-return.c: New file.
44321         * math/Makefile: Add new test test-fenv-return.
44322
44323 2014-06-10  Joseph Myers  <joseph@codesourcery.com>
44324
44325         [BZ #17042]
44326         * sysdeps/i386/fpu/e_log2.S (__ieee754_log2): Take absolete value
44327         when x - 1 is zero.
44328         * sysdeps/i386/fpu/e_log2f.S (__ieee754_log2f): Likewise.
44329         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Likewise.
44330         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Return
44331         0.0L for an argument of 1.0L.
44332         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
44333         Likewise.
44334         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Take absolute
44335         value when x - 1 is zero.
44336         * math/libm-test.inc (log2_test): Use ALL_RM_TEST.
44337         * sysdeps/i386/fpu/libm-test-ulps: Update.
44338         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44339
44340 2014-06-09  Bernard Ogden  <bernie.ogden@linaro.org>
44341
44342         [BZ #15119]
44343         * ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c: Remove file.
44344
44345 2014-06-09  Roland McGrath  <roland@hack.frob.com>
44346
44347         * nptl/sysdeps/sh/tls.h (TLS_DEFINE_INIT_TP): New macro.
44348         * nptl/sysdeps/unix/sysv/linux/sh/createthread.c: File removed.
44349
44350 2014-06-09  Roland McGrath  <roland@hack.frob.com>
44351
44352         * sysdeps/m68k/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
44353         * sysdeps/unix/sysv/linux/m68k/nptl/createthread.c: File removed.
44354
44355         * sysdeps/hppa/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
44356         * sysdeps/unix/sysv/linux/hppa/nptl/createthread.c: File removed.
44357
44358         * sysdeps/mips/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
44359         * sysdeps/unix/sysv/linux/mips/nptl/createthread.c: File removed.
44360
44361         * sysdeps/arm/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
44362         * sysdeps/unix/sysv/linux/arm/createthread.c: File removed.
44363
44364         * nptl/sysdeps/pthread/createthread.c (TLS_DEFINE_INIT_TP): New macro,
44365         if not already defined.
44366         (do_clone): Use that in place of PREPARE_CREATE and TLS_VALUE.
44367         * nptl/sysdeps/x86_64/tls.h (TLS_DEFINE_INIT_TP): New macro.
44368         * nptl/sysdeps/i386/tls.h (tls_fill_user_desc): New function.
44369         (TLS_INIT_TP): Use it.
44370         (TLS_DEFINE_INIT_TP): New macro.
44371         * sysdeps/unix/sysv/linux/i386/createthread.c: File removed.
44372
44373 2014-06-09  Joseph Myers  <joseph@codesourcery.com>
44374
44375         * conform/data/termios.h-data [POSIX] (IUCLC): Do not expect
44376         constant.
44377         [POSIX] (IXANY): Likewise.
44378         [POSIX] (OLCUC): Likewise.
44379         [POSIX || POSIX2008] (CBAUD): Do not allow.
44380         [POSIX || POSIX2008] (DEFECHO): Likewise.
44381         [POSIX || POSIX2008] (ECHOCTL): Likewise.
44382         [POSIX || POSIX2008] (ECHOKE): Likewise.
44383         [POSIX || POSIX2008] (ECHOPRT): Likewise.
44384         [POSIX || POSIX2008] (EXTA): Likewise.
44385         [POSIX || POSIX2008] (EXTB): Likewise.
44386         [POSIX || POSIX2008] (FLUSHO): Likewise.
44387         [POSIX || POSIX2008] (LOBLK): Likewise.
44388         [POSIX || POSIX2008] (PENDIN): Likewise.
44389         [POSIX || POSIX2008] (SWTCH): Likewise.
44390         [POSIX || POSIX2008] (VDISCARD): Likewise.
44391         [POSIX || POSIX2008] (VDSUSP): Likewise.
44392         [POSIX || POSIX2008] (VLNEXT): Likewise.
44393         [POSIX || POSIX2008] (VREPRINT): Likewise.
44394         [POSIX || POSIX2008] (VSTATUS): Likewise.
44395         [POSIX || POSIX2008] (VWERASE): Likewise.
44396         (B*): Change to B[0123456789]*.
44397         * conform/data/time.h-data [POSIX || UNIX98]
44398         (CLOCK_PROCESS_CPUTIME_ID): Do not expect constant.
44399         [POSIX || UNIX98] (CLOCK_THREAD_CPUTIME_ID): Likewise.
44400         [POSIX || UNIX98] (CLOCK_MONOTONIC): Likewise.
44401         [POSIX] (tm_*): Do not allow.
44402
44403 2014-06-07  Joseph Myers  <joseph@codesourcery.com>
44404
44405         * Makefile (install): Don't set LANGUAGE.
44406         * Makefile.in (install): Likewise.
44407         * assert/Makefile (test-assert-ENV): Remove variable.
44408         (test-assert-perr-ENV): Likewise.
44409         * elf/Makefile (neededtest4-ENV): Likewise.
44410         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
44411         [$(cross-compiling) = no]: Don't set LANGUAGE.
44412         * io/ftwtest-sh (LANG): Remove variable.
44413         * libio/Makefile (tst-widetext-ENV): Likewise.
44414         * manual/install.texi (Running make install): Don't refer to
44415         environment settings for make install.
44416         * INSTALL: Regenerated.
44417         * nptl/tst-tls6.sh: Don't set LANG.
44418         * posix/globtest.sh (LANG): Remove variable.
44419         * string/Makefile (tester-ENV): Likewise.
44420         (inl-tester-ENV): Likewise.
44421         (noinl-tester-ENV): Likewise.
44422         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
44423         [$(cross-compiling) = no]: Don't set LANGUAGE.
44424         * timezone/Makefile (build-testdata): Use $(built-program-cmd)
44425         without explicit environment settings.
44426
44427 2014-06-06  Roland McGrath  <roland@hack.frob.com>
44428
44429         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Moved ...
44430         * sysdeps/sh/nptl/bits/pthreadtypes.h: ... here.
44431         * nptl/sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Moved ...
44432         * sysdeps/sh/nptl/bits/semaphore.h: ... here.
44433
44434 2014-06-06  Chris Metcalf  <cmetcalf@tilera.com>
44435
44436         * crypt/crypt-private.h [DOS]: Add some includes taken from the
44437         other files in the crypt directory.
44438         * crypt/crypt.c: Remove duplicate includes.
44439         * crypt/crypt-entry.c: Likewise.
44440         * crypt/crypt_util.c: Likewise.
44441
44442 2014-06-06  Joseph Myers  <joseph@codesourcery.com>
44443
44444         * Makeconfig (run-program-env): New variable.
44445         (run-program-prefix-before-env): Likewise.
44446         (run-program-prefix-after-env): Likewise.
44447         (run-program-prefix): Define in terms of new variables.
44448         (built-program-cmd-before-env): New variable.
44449         (built-program-cmd-after-env): Likewise.
44450         (built-program-cmd): Define in terms of new variables.
44451         (test-program-prefix-before-env): New variable.
44452         (test-program-prefix-after-env): Likewise.
44453         (test-program-prefix): Define in terms of new variables.
44454         (test-program-cmd-before-env): New variable.
44455         (test-program-cmd-after-env): Likewise.
44456         (test-program-cmd): Define in terms of new variables.
44457         * Rules (make-test-out): Use $(run-program-env).
44458         * scripts/cross-test-ssh.sh (env_blacklist): Remove variable.
44459         (help): Do not mention environment variables.  Mention
44460         --timeoutfactor option.
44461         (timeoutfactor): New variable.
44462         (blacklist_exports): Remove function.
44463         (exports): Remove variable.
44464         (command): Do not include ${exports}.
44465         * manual/install.texi (Configuring and compiling): Do not mention
44466         test wrappers preserving environment variables.  Mention that last
44467         assignment to a variable must take precedence.
44468         * INSTALL: Regenerated.
44469         * benchtests/Makefile (run-bench): Use $(run-program-env).
44470         * catgets/Makefile ($(objpfx)test1.cat): Use
44471         $(built-program-cmd-before-env), $(run-program-env) and
44472         $(built-program-cmd-after-env).
44473         ($(objpfx)test2.cat): Do not specify environment variables
44474         explicitly.
44475         ($(objpfx)de/libc.cat): Use $(built-program-cmd-before-env),
44476         $(run-program-env) and $(built-program-cmd-after-env).
44477         ($(objpfx)test-gencat.out): Use $(test-program-cmd-before-env),
44478         $(run-program-env) and $(test-program-cmd-after-env).
44479         ($(objpfx)sample.SJIS.cat): Do not specify environment variables
44480         explicitly.
44481         * catgets/test-gencat.sh: Use test_program_cmd_before_env,
44482         run_program_env and test_program_cmd_after_env arguments.
44483         * elf/Makefile ($(objpfx)tst-pathopt.out): Use $(run-program-env).
44484         * elf/tst-pathopt.sh: Use run_program_env argument.
44485         * iconvdata/Makefile ($(objpfx)iconv-test.out): Use
44486         $(test-wrapper-env) and $(run-program-env).
44487         * iconvdata/run-iconv-test.sh: Use test_wrapper_env and
44488         run_program_env arguments.
44489         * iconvdata/tst-table.sh: Do not set GCONV_PATH explicitly.
44490         * intl/Makefile ($(objpfx)tst-gettext.out): Use
44491         $(test-program-prefix-before-env), $(run-program-env) and
44492         $(test-program-prefix-after-env).
44493         ($(objpfx)tst-gettext2.out): Likewise.
44494         * intl/tst-gettext.sh: Use test_program_prefix_before_env,
44495         run_program_env and test_program_prefix_after_env arguments.
44496         * intl/tst-gettext2.sh: Likewise.
44497         * intl/tst-gettext4.sh: Do not set environment variables
44498         explicitly.
44499         * intl/tst-gettext6.sh: Likewise.
44500         * intl/tst-translit.sh: Likewise.
44501         * malloc/Makefile ($(objpfx)tst-mtrace.out): Use
44502         $(test-program-prefix-before-env), $(run-program-env) and
44503         $(test-program-prefix-after-env).
44504         * malloc/tst-mtrace.sh: Use test_program_prefix_before_env,
44505         run_program_env and test_program_prefix_after_env arguments.
44506         * math/Makefile (run-regen-ulps): Use $(run-program-env).
44507         * nptl/Makefile ($(objpfx)tst-tls6.out): Use $(run-program-env).
44508         * nptl/tst-tls6.sh: Use run_program_env argument.  Set LANG=C
44509         explicitly with each use of ${test_wrapper_env}.
44510         * posix/Makefile ($(objpfx)wordexp-tst.out): Use
44511         $(test-program-prefix-before-env), $(run-program-env) and
44512         $(test-program-prefix-after-env).
44513         * posix/tst-getconf.sh: Do not set environment variables
44514         explicitly.
44515         * posix/wordexp-tst.sh: Use test_program_prefix_before_env,
44516         run_program_env and test_program_prefix_after_env arguments.
44517         * stdio-common/tst-printf.sh: Do not set environment variables
44518         explicitly.
44519         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Use
44520         $(test-program-prefix-before-env), $(run-program-env) and
44521         $(test-program-prefix-after-env).
44522         * stdlib/tst-fmtmsg.sh: Use test_program_prefix_before_env,
44523         run_program_env and test_program_prefix_after_env arguments.
44524         Split $test calls into $test_pre and $test.
44525         * timezone/Makefile (build-testdata): Use
44526         $(built-program-cmd-before-env), $(run-program-env) and
44527         $(built-program-cmd-after-env).
44528
44529 2014-06-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44530
44531         * sysdeps/powerpc/powerpc64/power7/strncat.S [STRLEN]: Define it as
44532         strlen for non SHARED builds.
44533
44534 2014-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
44535
44536         * nptl/allocatestack.c (check_list): Inlined function...
44537         (__reclaim_stacks): ... here.
44538
44539 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
44540
44541         [BZ #15698]
44542         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
44543         memory overrun.
44544
44545 2014-06-05  Joseph Myers  <joseph@codesourcery.com>
44546
44547         * Rules (make-test-out): Include
44548         LOCPATH=$(common-objpfx)localedata in default environment.
44549         * debug/Makefile (tst-chk1-ENV): Remove variable.
44550         (tst-chk2-ENV): Likewise.
44551         (tst-chk3-ENV): Likewise.
44552         (tst-chk4-ENV): Likewise.
44553         (tst-chk5-ENV): Likewise.
44554         (tst-chk6-ENV): Likewise.
44555         (tst-lfschk1-ENV): Likewise.
44556         (tst-lfschk2-ENV): Likewise.
44557         (tst-lfschk3-ENV): Likewise.
44558         (tst-lfschk4-ENV): Likewise.
44559         (tst-lfschk5-ENV): Likewise.
44560         (tst-lfschk6-ENV): Likewise.
44561         * iconvdata/Makefile (bug-iconv6-ENV): Likewise.
44562         (tst-iconv7-ENV): Likewise.
44563         * intl/Makefile (LOCPATH-ENV): Likewise.
44564         (tst-codeset-ENV): Likewise.
44565         (tst-gettext3-ENV): Likewise.
44566         (tst-gettext5-ENV): Likewise.
44567         * libio/Makefile (tst-widetext-ENV): Don't set LOCPATH.
44568         (tst-fopenloc-ENV): Likewise.
44569         (tst-fgetws-ENV): Remove variable.
44570         (tst-ungetwc1-ENV): Likewise.
44571         (tst-ungetwc2-ENV): Likewise.
44572         (bug-ungetwc2-ENV): Likewise.
44573         (tst-swscanf-ENV): Likewise.
44574         (bug-ftell-ENV): Likewise.
44575         (tst-fgetwc-ENV): Likewise.
44576         (tst-fseek-ENV): Likewise.
44577         (tst-ftell-partial-wide-ENV): Likewise.
44578         (tst-ftell-active-handler-ENV): Likewise.
44579         (tst-ftell-append-ENV): Likewise.
44580         * posix/Makefile (tst-fnmatch-ENV): Likewise.
44581         (tst-regexloc-ENV): Likewise.
44582         (bug-regex1-ENV): Likewise.
44583         (tst-regex-ENV): Likewise.
44584         (tst-regex2-ENV): Likewise.
44585         (bug-regex5-ENV): Likewise.
44586         (bug-regex6-ENV): Likewise.
44587         (bug-regex17-ENV): Likewise.
44588         (bug-regex18-ENV): Likewise.
44589         (bug-regex19-ENV): Likewise.
44590         (bug-regex20-ENV): Likewise.
44591         (bug-regex22-ENV): Likewise.
44592         (bug-regex23-ENV): Likewise.
44593         (bug-regex25-ENV): Likewise.
44594         (bug-regex26-ENV): Likewise.
44595         (bug-regex30-ENV): Likewise.
44596         (bug-regex32-ENV): Likewise.
44597         (bug-regex33-ENV): Likewise.
44598         (bug-regex34-ENV): Likewise.
44599         (bug-regex35-ENV): Likewise.
44600         (tst-rxspencer-ENV): Likewise.
44601         (tst-rxspencer-no-utf8-ENV): Likewise.
44602         * stdio-common/Makefile (tst-sprintf-ENV): Likewise.
44603         (tst-sscanf-ENV): Likewise.
44604         (tst-swprintf-ENV): Likewise.
44605         (tst-swscanf-ENV): Likewise.
44606         (test-vfprintf-ENV): Likewise.
44607         (scanf13-ENV): Likewise.
44608         (bug14-ENV): Likewise.
44609         (tst-grouping-ENV): Likewise.
44610         * stdlib/Makefile (tst-strtod-ENV): Likewise.
44611         (tst-strtod3-ENV): Likewise.
44612         (tst-strtod4-ENV): Likewise.
44613         (tst-strtod5-ENV): Likewise.
44614         (testmb2-ENV): Likewise./
44615         * string/Makefile (tst-strxfrm-ENV): Likewise.
44616         (tst-strxfrm2-ENV): Likewise.
44617         (bug-strcoll1-ENV): Likewise.
44618         (test-strcasecmp-ENV): Likewise.
44619         (test-strncasecmp-ENV): Likewise.
44620         * time/Makefile (tst-strptime-ENV): Likewise.
44621         (tst-ftime_l-ENV): Likewise.
44622         * wcsmbs/Makefile (tst-btowc-ENV): Likewise.
44623         (tst-mbrtowc-ENV): Likewise.
44624         (tst-wcrtomb-ENV): Likewise.
44625         (tst-mbrtowc2-ENV): Likewise.
44626         (tst-c16c32-1-ENV): Likewise.
44627         (tst-mbsnrtowcs-ENV): Likewise.
44628
44629 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
44630
44631         * manual/resource.texi (How to get information about the memory
44632         subsystem?): Fix typo.
44633         Reported by Peon de la Parra Ivan <peon@keba.com>
44634
44635 2014-06-03  Guo Yixuan  <culu.gyx@gmail.com>
44636
44637         [BZ #16882]
44638         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S
44639         (pthread_spin_lock): Branch out of spin loop to proper location.
44640         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S
44641         (pthread_spin_lock): Likewise.
44642
44643         * nptl/tst-spin4.c: New test.
44644         * nptl/Makefile (tests): Add tst-spin4.
44645
44646 2014-06-03  Andreas Schwab  <schwab@suse.de>
44647
44648         [BZ #15946]
44649         * resolv/res_send.c (send_dg): Reload file descriptor after
44650         calling reopen.
44651
44652 2014-06-03  Stefan Liebler  <stli@linux.vnet.ibm.com>
44653
44654         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
44655
44656 2014-06-03  Richard Henderson  <rth@redhat.com>
44657
44658         * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: New file.
44659         * sysdeps/unix/sysv/linux/aarch64/nptl/pt-vfork.S: Remove file.
44660         * sysdeps/unix/sysv/linux/aarch64/vfork.S (__vfork): Incorporate
44661         SAVE_PID and RESTORE_PID blocks from pt-vfork.S.  Map 0 to INT_MIN
44662         in the SAVE_PID block.
44663         (__libc_vfork): New alias.
44664         * sysdeps/unix/sysv/linux/aarch64/nptl/vfork.S: Remove file.
44665
44666         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Save args for
44667         child in registers, not on the stack.  Remove RESET_PID conditionals.
44668         * sysdeps/unix/sysv/linux/aarch64/nptl/clone.S: Remove file.
44669
44670 2014-06-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
44671
44672         * sysdeps/aarch64/libm-test-ulps: Regenerate.
44673
44674 2014-06-03  Wilco  <wdijkstr@arm.com>
44675
44676         * sysdeps/aarch64/fpu/math_private.h (libc_fesetround_aarch64)
44677         (libc_feholdexcept_setround_aarch64) (libc_feholdsetround_aarch64)
44678         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
44679         Use _FPU_FPCR_RM_MASK for rounding mask rather than FE_TOWARDZERO.
44680         * sysdeps/aarch64/fpu/get-rounding-mode.h (get_rounding_mode):
44681         Likewise.
44682
44683 2014-06-03  Wilco  <wdijkstr@arm.com>
44684
44685         * sysdeps/aarch64/fpu/math_private.h
44686         (libc_feholdexcept_aarch64) (libc_feholdexcept_setround_aarch64)
44687         (libc_fetestexcept_aarch64) (libc_fesetenv_aarch64)
44688         (libc_feupdateenv_test_aarch64) (libc_feholdsetround_aarch64)
44689         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
44690         Fix declarations.
44691
44692 2014-06-03  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
44693
44694         * crypt/crypt-private.h: Include ufc-crypt.h.
44695         (__b64_from_24bit): Declare extern.
44696         * crypt/crypt_util.c(__b64_from_24bit): New function.
44697         (b64t): New static const variable.
44698         * crypt/md5-crypt.c (b64_from_24bit): Remove function.
44699         (b64t): Remove variable.
44700         (__md5_crypt_r): Replace b64_from_24bit with __b64_from_24bit.
44701         * crypt/sha256-crypt.c: Include crypt-private.h.
44702         (b64t): Remove variable.
44703         (__sha256_crypt_r): Remove b64_from_24bit and replace
44704         with __b64_from_24bit.
44705         * crypt/sha512-crypt.c: Likewise.
44706
44707 2014-06-02  Roland McGrath  <roland@hack.frob.com>
44708
44709         * nptl/sysdeps/unix/sysv/linux/sh/vfork.S: Moved ...
44710         * sysdeps/unix/sysv/linux/sh/vfork.S: ... here.
44711         Label the code __libc_vfork rather than __vfork.
44712         [!NOT_IN_libc] (vfork): Define as weak alias.
44713         [!NOT_IN_libc] (__vfork): Define as strong alias, and libc_hidden_def.
44714         * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
44715         * nptl/sysdeps/unix/sysv/linux/sh/pt-vfork.S: File removed.
44716
44717 2014-06-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
44718
44719         * malloc/malloc.c (malloc_info): Fix format specifier for
44720         n_mmaps.
44721
44722 2014-06-02  Wilco  <wdijkstr@arm.com>
44723
44724         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_SETCW): Remove ISB after
44725         FPCR write.
44726
44727 2014-06-02  Wilco  <wdijkstr@arm.com>
44728
44729         [BZ #17009]
44730         * sysdeps/aarch64/fpu/feupdateenv (feupdateenv):
44731         Rewrite to reduce FPCR/FPSR accesses.
44732
44733 2014-06-01  David S. Miller  <davem@davemloft.net>
44734
44735         * sysdeps/sparc/fpu/libm-test-ulps: Update.
44736
44737 2014-05-31  David S. Miller  <davem@davemloft.net>
44738
44739         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Force computations
44740         to occur in round to nearest mode when |x| >= 2.0
44741
44742 2014-05-30  Richard Henderson  <rth@twiddle.net>
44743
44744         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Remove.
44745         (PSEUDO_RET_NOERRNO): Remove.
44746         (ret): Don't redefine.
44747         (ret_NOERRNO): Define in terms of ret.
44748         (ret_ERRVAL): Likewise.
44749
44750         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Remove the
44751         use of PSEUDO_RET; perform the error check directly.
44752
44753 2014-05-30 Marko Myllynen  <myllynen@redhat.com>
44754
44755         * sysdeps/x86_64/link-defines.sym (BND_SIZE): Replace __int128
44756         with __int128_t.
44757
44758 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
44759
44760         * malloc/malloc (malloc_info): Fix formatting.
44761
44762 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
44763             Roland McGrath  <roland@hack.frob.com>
44764
44765         * malloc/malloc (malloc_info): Also print mmapped statistics.
44766
44767 2014-05-30  Roland McGrath  <roland@hack.frob.com>
44768
44769         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: New file.
44770         * sysdeps/unix/sysv/linux/m68k/nptl/fork.c: File removed.
44771
44772 2014-05-30  Ondřej Bílka  <neleai@seznam.cz>
44773
44774         * malloc/malloc.c (malloc_info): Inline mi_arena.
44775
44776 2014-05-29  Richard Henderson  <rth@twiddle.net>
44777
44778         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INTERNAL_VSYSCALL_NCS):
44779         Remove comma before expanding ASM_ARGS_##nr.
44780         (INTERNAL_SYSCALL_RAW): Make _sys_result signed, instead of casting.
44781         Make _x0 a strict output; make _x8 a strict input; adjust expansion
44782         of ASM_ARGS_##nr.
44783         (CLOBBER_ARGS_0, CLOBBER_ARGS_1, CLOBBER_ARGS_2): Remove.
44784         (CLOBBER_ARGS_3, CLOBBER_ARGS_4, CLOBBER_ARGS_5): Remove.
44785         (CLOBBER_ARGS_6, CLOBBER_ARGS_7): Remove.
44786         (ASM_ARGS_1): Add leading comma.
44787
44788         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [NOT_IN_libc]
44789         (SYSCALL_ERROR_HANDLER): Use tpidr_el0 instead of a call
44790         to __errno_location.
44791         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data (libpthread.so):
44792         Remove the expected plt for __errno_location.
44793
44794         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
44795         [NOT_IN_libc] (SINGLE_THREAD_P): Use tpidr_el0 instead of a
44796         call to __read_tp.
44797
44798         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
44799         Always allocate 64 bytes of stack frame.  Use ldp/stp to create
44800         it and break it down.
44801         (DOCARGS_0, DOCARGS_1): Do nothing.
44802         (DOCARGS_2): Update to store into the new stack frame.
44803         (DOCARGS_3, DOCARGS_4, DOCARGS_5, DOCARGS_6): Likewise.
44804         (UNDOCARGS_1): Update to restore from the new stack frame.
44805         (UNDOCARGS_2, UNDOCARGS_3, UNDOCARGS_4): Likewise.
44806         (UNDOCARGS_5, UNDOCARGS_6): Likewise.
44807
44808         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
44809         (SINGLE_THREAD_P): New parameter for result regno.
44810         (PSEUDO): Update to match; use cbz instead of beq.
44811
44812         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
44813         Use ENTRY to define the _nocancel entry point.  Share the syscall
44814         and syscall error check paths with the cancel path.
44815         (PSEUDO_END): New.
44816
44817         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Adjust
44818         whitespace; tabs before and after asm mnemonics.
44819
44820 2014-05-29  Eric Wong  <normalperson@yhbt.net>
44821
44822         [BZ #15132]
44823         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
44824         Call fstat64 or stat64 internally, depending on arguments passed.
44825         Replace stat buffer argument with file descriptor argument.
44826         (INTERNAL_STATVFS): Update arguments to match __statvfs_getflags.
44827         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
44828         Pass fd to __internal_statvfs instead of calling fstat64.
44829         * sysdeps/unix/sysv/linux/fstatvfs64.c (__fstatvfs64):
44830         Pass fd to __internal_statvfs64 instead of calling fstat64.
44831         * sysdeps/unix/sysv/linux/statvfs.c (statvfs):
44832         Pass -1 to __internal_statvfs instead of calling stat64.
44833         * sysdeps/unix/sysv/linux/statvfs64.c (__statvfs64):
44834         Pass -1 to __internal_statvfs64 instead of calling stat64.
44835
44836 2014-05-28  Roland McGrath  <roland@hack.frob.com>
44837
44838         * sysdeps/unix/sysv/linux/sh/clone.S: Deconditionalize the code
44839         that was previously under [RESET_PID].
44840         * nptl/sysdeps/unix/sysv/linux/sh/clone.S: File removed.
44841
44842         * sysdeps/unix/sysv/linux/tile/arch-fork.h: New file.
44843         * sysdeps/unix/sysv/linux/tile/nptl/fork.c: File removed.
44844
44845 2014-05-27  Roland McGrath  <roland@hack.frob.com>
44846
44847         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: New file.
44848
44849         * sysdeps/unix/sysv/linux/sh/arch-fork.h: New file.
44850         * nptl/sysdeps/unix/sysv/linux/sh/fork.c: File removed.
44851
44852 2014-05-27  Ondřej Bílka  <neleai@seznam.cz>
44853
44854         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate code.
44855
44856 2014-05-27  Andreas Schwab  <schwab@suse.de>
44857
44858         * csu/libc-tls.c (__libc_setup_tls): Remove second argument from
44859         TLS_INIT_TP macro.
44860         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
44861         * elf/rtld.c (init_tls, dl_main): Likewise.
44862         * nptl/sysdeps/i386/tls.h (TLS_INIT_TP): Likewise.
44863         * nptl/sysdeps/powerpc/tls.h (TLS_INIT_TP): Likewise.
44864         * nptl/sysdeps/s390/tls.h (TLS_INIT_TP): Likewise.
44865         * nptl/sysdeps/sh/tls.h (TLS_INIT_TP): Likewise.
44866         * nptl/sysdeps/sparc/tls.h (TLS_INIT_TP): Likewise.
44867         * nptl/sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
44868         * sysdeps/aarch64/nptl/tls.h (TLS_INIT_TP): Likewise.
44869         * sysdeps/alpha/nptl/tls.h (TLS_INIT_TP): Likewise.
44870         * sysdeps/arm/nptl/tls.h (TLS_INIT_TP): Likewise.
44871         * sysdeps/hppa/nptl/tls.h (TLS_INIT_TP): Likewise.
44872         * sysdeps/ia64/nptl/tls.h (TLS_INIT_TP): Likewise.
44873         * sysdeps/m68k/nptl/tls.h (TLS_INIT_TP): Likewise.
44874         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Likewise.
44875         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Likewise.
44876         * sysdeps/mips/nptl/tls.h (TLS_INIT_TP): Likewise.
44877         * sysdeps/tile/nptl/tls.h (TLS_INIT_TP): Likewise.
44878         * sysdeps/generic/tls.h: Update description.
44879
44880 2014-05-27  Will Newton  <will.newton@linaro.org>
44881
44882         [BZ #16990]
44883         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save
44884         and restore r2 rather than just restoring.
44885
44886 2014-05-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
44887
44888         [BZ #16724]
44889         * libio/tst-ftell-append.c: New test case.
44890         * libio/Makefile (tests): Add test case.
44891         * libio/fileops.c (do_ftell): Don't trust _IO_read_end when in
44892         append mode.
44893         * libio/wfileops.c (do_ftell_wide): Likewise.
44894
44895 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44896
44897         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
44898
44899         * nptl/sysdeps/unix/sysv/linux/powerpc/Versions: Remove, merge into
44900         ...
44901         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: ... here.
44902         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
44903         * nptl/sysdeps/unix/sysv/linux/powerpc/Makefile: Moved rules to ...
44904         * sysdeps/unix/sysv/linux/powerpc/Makefile: ... here.
44905         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Moved ...
44906         * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: ... here.
44907         * nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Moved ...
44908         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: ...here.
44909         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
44910         Moved ...
44911         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: ... here.
44912         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
44913         Moved ...
44914         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: ... here.
44915         * nptl/sysdeps/unix/sysv/linux/powerpc/createthread.c: Moved ...
44916         * sysdeps/unix/sysv/linux/powerpc/createthread.c: ... here.
44917         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Moved ...
44918         * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: ... here.
44919         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: Moved
44920         ...
44921         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: ... here.
44922         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
44923         Moved ...
44924         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: ...
44925         here.
44926         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Moved
44927         ...
44928         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: ... here.
44929         * nptl/sysdeps/unix/sysv/linux/powerpc/sem_post.c: Moved ...
44930         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here.
44931
44932         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Moved ...
44933         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: ... here.
44934         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Moved ...
44935         * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: ... here.
44936
44937         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Remove,
44938         merge into ...
44939         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: ... here.
44940         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: Moved
44941         ...
44942         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: ... here.
44943         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: Moved
44944         ...
44945         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: ... here.
44946         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
44947         Moved ...
44948         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: ...
44949         here.
44950         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
44951         Moved ...
44952         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: ... here.
44953         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
44954         Moved ...
44955         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: ... here.
44956
44957         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Remove
44958         conditional [RESET_PID].
44959         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
44960         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: File
44961         removed.
44962         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: File
44963         removed.
44964
44965         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Include
44966         <tcb-offsets.h>.
44967         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
44968         (__libc_vfork): New strong alias.
44969         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: File
44970         removed.
44971         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: File
44972         Removed.
44973
44974         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Include
44975         <tcb-offsets.h>.
44976         (__vfork): Incorporate save/retore of PID from nptl/vfork.S here.
44977         (__libc_vfork): New strong alias.
44978         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: File
44979         removed.
44980         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: File
44981         removed.
44982
44983 2014-05-26  Carlos O'Donell  <carlos@redhat.com>
44984
44985         * malloc/malloc.c (mi_arena): New function.
44986         (malloc_info): Remove nested function mi_arena. Call non-nosted
44987         function mi_arena.
44988
44989 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44990
44991         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Replace insrdi
44992         by insrwi.
44993         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
44994         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
44995         * sysdeps/powerpc/powerpc32/power7/memchr.S (memchr): Likewise.
44996         * sysdeps/powerpc/powerpc32/power7/memrchr.S (memrchr): Likewise.
44997         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S (rawmemchr): Likewise.
44998         * sysdeps/powerpc/powerpc32/power7/strchr.S (strchr): Likewise.
44999         * sysdeps/powerpc/powerpc32/power7/strchrnul.S (strchrnul): Likewise.
45000
45001 2014-05-26  Andreas Schwab  <schwab@suse.de>
45002
45003         [BZ #16984]
45004         * locale/programs/repertoire.c (repertoire_read): Add slash
45005         between I18NPATH element and file name.
45006         * locale/programs/locfile.c (locfile_read): Likewise.
45007
45008 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
45009
45010         * nptl/pthread_mutexattr_settype.c
45011         (__pthread_mutexattr_settype):
45012         Disable lock elision for PTHREAD_MUTEX_NORMAL.
45013
45014 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
45015
45016         * nptl/tst-mutex5 (do_test):
45017         Use #ifndef ENABLE_LOCK_ELISION instead of #ifdef.
45018
45019 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
45020
45021         * benchtests/README: Document 'init' directive.
45022         * benchtests/bench-skeleton.c (main) [BENCH_INIT]: Call
45023         BENCH_INIT.
45024         * scripts/bench.py (gen_source): Define BENCH_INIT macro.
45025         (parse_file): Recognize 'init' directive.
45026
45027 2014-05-26  Kyle McMartin  <kyle@redhat.com>
45028
45029         [BZ #16796]
45030         * sysdeps/aarch64/nptl/tls.h: increase TCB alignment to the
45031         alignment of struct pthread.
45032
45033 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
45034
45035         [BZ #16878]
45036         * nscd/netgroupcache.c (addgetnetgrentX): Look for
45037         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
45038         * nscd/nss_files/files-netgrp.c (_nss_netgroup_parseline): Use
45039         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
45040
45041 2014-05-25  Richard Henderson  <rth@twiddle.net>
45042
45043         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
45044         (SINGLE_THREAD_P_PIC): Remove.
45045         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
45046         (SINGLE_THREAD_P_PIC): Remove.
45047
45048         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Move
45049         branch to syscall error ...
45050         (PSEUDO): ... here.
45051         [NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Rename the label
45052         from __local_syscall_error to .Lsyscall_error.
45053         [!NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Branch to __syscall_error.
45054         (SYSCALL_ERROR): Update label name.
45055
45056         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
45057         Do not use DOARGS/UNDOARGS.
45058         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Likewise.
45059         (DOARGS_0, DOARGS_1, DOARGS_2, DOARGS_3): Remove.
45060         (DOARGS_4, DOARGS_5, DOARGS_6, DOARGS_7): Remove.
45061         (UNDOARGS_0, UNDOARGS_1, UNDOARGS_2, UNDOARGS_3): Remove.
45062         (UNDOARGS_4, UNDOARGS_5, UNDOARGS_6, UNDOARGS_7): Remove.
45063
45064         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Fix
45065         block comment.
45066
45067         * sysdeps/unix/sysv/linux/alpha/vfork.S (vfork, __vfork): Only
45068         define if !NOT_IN_libc.
45069         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S (vfork, __vfork): Only
45070         define with non-default symbol versions.
45071
45072 2014-05-23  Richard Henderson  <rth@twiddle.net>
45073
45074         * nptl/pt-vfork.c (vfork_resolve): Rename from vfork_ifunc.
45075         (vfork, __vfork): Define via compat_symbol.
45076
45077         * nptl/pt-vfork.c: Error if !HAVE_IFUNC.
45078         [!HAVE_IFUNC] (vfork_compat): Remove.
45079         [!HAVE_IFUNC] (DEFINE_VFORK): Remove.
45080
45081 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
45082
45083         [BZ #16978]
45084         * posix/tar.h [!__USE_XOPEN2K] (TSVTX): Define macro.
45085         * conform/Makefile (test-xfail-POSIX/tar.h/conform): Remove
45086         variable.
45087
45088 2014-05-23  Richard Henderson  <rth@twiddle.net>
45089
45090         * sysdeps/unix/sysv/linux/alpha/nptl/Makefile: Merge into...
45091         * sysdeps/unix/sysv/linux/alpha/Makefile: ... here.
45092         * sysdeps/unix/sysv/linux/alpha/nptl/Versions: Merge into...
45093         * sysdeps/unix/sysv/linux/alpha/Versions: ... here.
45094
45095         * sysdeps/unix/sysv/linux/alpha/nptl/aio_cancel.c: Moved ...
45096         * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: ... here.
45097         * sysdeps/unix/sysv/linux/alpha/nptl/bits/local_lim.h: Moved ...
45098         * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: ... here.
45099         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h: Moved ...
45100         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: ... here.
45101         * sysdeps/unix/sysv/linux/alpha/nptl/bits/semaphore.h: Moved ...
45102         * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: ... here.
45103         * sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data: Moved ...
45104         * sysdeps/unix/sysv/linux/alpha/c++-types.data: ... here.
45105         * sysdeps/unix/sysv/linux/alpha/nptl/createthread.c: Moved ...
45106         * sysdeps/unix/sysv/linux/alpha/createthread.c: ... here.
45107         * sysdeps/unix/sysv/linux/alpha/nptl/ld.abilist: Moved ...
45108         * sysdeps/unix/sysv/linux/alpha/ld.abilist: ... here.
45109         * sysdeps/unix/sysv/linux/alpha/nptl/libBrokenLocale.abilist: Moved ...
45110         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: ... here.
45111         * sysdeps/unix/sysv/linux/alpha/nptl/libanl.abilist: Moved ...
45112         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: ... here.
45113         * sysdeps/unix/sysv/linux/alpha/nptl/libc.abilist: Moved ...
45114         * sysdeps/unix/sysv/linux/alpha/libc.abilist: ... here.
45115         * sysdeps/unix/sysv/linux/alpha/nptl/libcrypt.abilist: Moved ...
45116         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: ... here.
45117         * sysdeps/unix/sysv/linux/alpha/nptl/libdl.abilist: Moved ...
45118         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: ... here.
45119         * sysdeps/unix/sysv/linux/alpha/nptl/libm.abilist: Moved ...
45120         * sysdeps/unix/sysv/linux/alpha/libm.abilist: ... here.
45121         * sysdeps/unix/sysv/linux/alpha/nptl/libnsl.abilist: Moved ...
45122         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: ... here.
45123         * sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist: Moved ...
45124         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: ... here.
45125         * sysdeps/unix/sysv/linux/alpha/nptl/libresolv.abilist: Moved ...
45126         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: ... here.
45127         * sysdeps/unix/sysv/linux/alpha/nptl/librt.abilist: Moved ...
45128         * sysdeps/unix/sysv/linux/alpha/librt.abilist: ... here.
45129         * sysdeps/unix/sysv/linux/alpha/nptl/libthread_db.abilist: Moved ...
45130         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: ... here.
45131         * sysdeps/unix/sysv/linux/alpha/nptl/libutil.abilist: Moved ...
45132         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: ... here.
45133         * sysdeps/unix/sysv/linux/alpha/nptl/localplt.data: Moved ...
45134         * sysdeps/unix/sysv/linux/alpha/localplt.data: ... here.
45135         * sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h: Moved ...
45136         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: ... here.
45137         * sysdeps/unix/sysv/linux/alpha/nptl/sem_post.c: Moved ...
45138         * sysdeps/unix/sysv/linux/alpha/sem_post.c: ... here.
45139         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h: Moved ...
45140         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: ... here.
45141         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Moved ...
45142         * sysdeps/unix/sysv/linux/alpha/timer_create.c: ... here.
45143         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Moved ...
45144         * sysdeps/unix/sysv/linux/alpha/timer_delete.c: ... here.
45145         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Moved ...
45146         * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: ... here.
45147         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Moved ...
45148         * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: ... here.
45149         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Moved ...
45150         * sysdeps/unix/sysv/linux/alpha/timer_settime.c: ... here.
45151
45152         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove vfork.
45153         * sysdeps/unix/sysv/linux/alpha/nptl/vfork.S: Move file ...
45154         * sysdeps/unix/sysv/linux/alpha/vfork.S: ... here.  Restore PID
45155         before exiting on error.
45156         (__libc_vfork): New strong alias.
45157         * sysdeps/unix/sysv/linux/alpha/nptl/pt-vfork.S: Remove file.
45158         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
45159
45160         * sysdeps/unix/sysv/linux/alpha/clone.S: Deconditionalize the code
45161         that was previously under [RESET_PID].
45162         * sysdeps/unix/sysv/linux/alpha/nptl/clone.S: File removed.
45163
45164         * sysdeps/unix/sysv/linux/alpha/nptl/fork.c: Remove file.
45165
45166 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
45167
45168         [BZ #16977]
45169         * sysdeps/i386/fpu/e_log10.S (__ieee754_log10): Take absolute
45170         value when x - 1 is zero.
45171         * sysdeps/i386/fpu/e_log10f.S (__ieee754_log10f): Likewise.
45172         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Likewise.
45173         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Return
45174         0.0L for an argument of 1.0L.
45175         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l):
45176         Likewise.
45177         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Take absolute
45178         value when x - 1 is zero.
45179         * math/libm-test.inc (log10_test): Use ALL_RM_TEST.
45180         * sysdeps/i386/fpu/libm-test-ulps: Update.
45181         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45182
45183 2014-05-23  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
45184
45185         * manual/filesys.texi (Scanning Directory Content): Fix prototype of
45186         alphasort and versionsort.
45187
45188 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45189
45190         * sysdeps/powerpc/fpu/math_private.h [copysign]: Remove unneeded
45191         macro.
45192         [copysignf]: Likewise.
45193
45194 2014-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
45195
45196         * crypt/md5-crypt.c: Fix formatting.
45197
45198 2014-05-22  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
45199
45200         * crypt/md5-crypt.c (__md5_crypt_r): Remove a nested function.
45201         (b64_from_24bit): New function.
45202
45203 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45204
45205         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c (memchr): Remove
45206         libc_hidden_builtin_def to ifunc.
45207         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
45208         [libc_hidden_builtin_def]: Define hidden definition to __memchr_ppc32.
45209
45210 2014-05-21  Roland McGrath  <roland@hack.frob.com>
45211
45212         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: New file.
45213         * sysdeps/unix/sysv/linux/aarch64/nptl/fork.c: File removed.
45214
45215 2014-05-21  Joseph Myers  <joseph@codesourcery.com>
45216
45217         * nscd/Depend (linuxthreads): Remove.
45218         (nptl): Add.
45219         * resolv/Depend (linuxthreads): Remove.
45220         * rt/Depend (linuxthreads): Remove.
45221
45222         * Makeconfig [$(build-hardcoded-path-in-tests) = yes]
45223         (rtld-tests-LDFLAGS): Use $(elf-objpfx) instead of
45224         $(common-objpfx)elf/.
45225         (link-libc-before-gnulib): Likewise.
45226         (elfobjdir): Remove variable.
45227         * Makefile (install): Use $(elf-objpfx) instead of
45228         $(common-objpfx)elf/.
45229         * Makerules (link-libc-args): Use $(elf-objpfx) instead of
45230         $(elfobjdir)/.
45231         (link-libc-deps): Likewise.
45232         ($(common-objpfx)libc.so): Likewise.
45233         ($(common-objpfx)linkobj/libc.so): Likewise.
45234         [$(cross-compiling) = no] (symbolic-link-prog): Use $(elf-objpfx)
45235         instead of $(common-objpfx)elf/.
45236         (symbolic-link-list): Likewise.
45237         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
45238         [$(cross-compiling) = no]: Likewise.
45239         * sysdeps/arm/Makefile (gnulib-arch): Use $(elf-objpfx) instead of
45240         $(elfobjdir)/.
45241         (static-gnulib-arch): Likewise.
45242         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
45243         [$(cross-compiling) = no]: Use $(elf-objpfx) instead of
45244         $(common-objpfx)elf/.
45245
45246 2014-05-21  Richard Henderson  <rth@redhat.com>
45247
45248         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
45249         (SINGLE_THREAD_P): Use the correct width load.  Fold
45250         into the ldr offset.
45251
45252         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [RTLD_PRIVATE_ERRNO]
45253         (SYSCALL_ERROR_HANDLER): Fold add insn into str offset.
45254
45255 2014-05-20  Joseph Myers  <joseph@codesourcery.com>
45256
45257         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c
45258         (libgcc_s_resume): Use __attribute_used__.
45259         * sysdeps/unix/sysv/linux/arm/unwind-resume.c (libgcc_s_resume):
45260         Likewise.
45261
45262 2014-05-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45263
45264         * sysdeps/powerpc/fpu/math_private.h [__copysignf]: Fix copysign macro
45265         optimization when used with float constants.
45266
45267         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
45268
45269 2014-05-20  Aurelien Jarno  <aurelien@aurel32.net>
45270
45271         [BZ #16915]
45272         * locale/nl_langinfo_l.c: Make direct reference to every
45273         _nl_current_CATEGORY symbol.
45274         * localedata/Makefile (test-srcs): Add tst-langinfo-static.
45275         (tests-static): Add tst-langinfo-static.
45276         (tests-special): Add tst-langinfo-static.out.
45277         ($(objpfx)tst-langinfo.out): Redirect output.
45278         ($(objpfx)tst-langinfo-static.out): New.
45279         * localedata/tst-langinfo.sh: Send output to stdout.
45280         * localedata/tst-langinfo-static.c: New file.
45281
45282         [BZ #16965]
45283         * stdlib/strtod_l.c (round_and_return): Add code to shift limbs
45284         when the shift amount is modulo the limb size.
45285
45286 2014-05-20  Richard Henderson  <rth@redhat.com>
45287
45288         [BZ #16967]
45289         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (struct sigaction):
45290         Change type of sa_flags from unsigned int to int.
45291
45292         [BZ #16966]
45293         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Remove file.
45294
45295         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_NO_RELA): Define.
45296
45297 2014-05-20  Will Newton  <will.newton@linaro.org>
45298
45299         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
45300         Test the return value of the system call in the nocancel case.
45301
45302 2014-05-20  Will Newton  <will.newton@linaro.org>
45303             Yvan Roux  <yvan.roux@linaro.org>
45304
45305         * sysdeps/unix/sysv/linux/aarch64/sys/user.h: Remove unused
45306         #include of asm/ptrace.h.
45307         (PTRACE_GET_THREAD_AREA): Remove #undef.
45308         (PTRACE_GETHBPREGS): Likewise.
45309         (PTRACE_SETHBPREGS): Likewise.
45310         (struct user_regs_struct): New structure.
45311         (struct user_fpsimd_struct): New structure.
45312         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove unused
45313         #include of asm/ptrace.h and second #include of sys/user.h.
45314         (PTRACE_GET_THREAD_AREA): Remove #undef.
45315         (PTRACE_GETHBPREGS): Likewise.
45316         (PTRACE_SETHBPREGS): Likewise.
45317         (ELF_NGREG): Use new struct user_regs_struct.
45318         (elf_fpregset_t): Use new struct user_fpsimd_struct.
45319
45320 2014-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45321
45322         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypof.c: Moved ...
45323         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: ... here.
45324
45325 2014-05-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
45326
45327         [BZ #16958]
45328         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Add missing
45329         membar to avoid block loads/stores to overlap previous stores.
45330
45331 2014-05-17  Richard Henderson  <rth@redhat.com>
45332
45333         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h (PSEUDO):
45334         Create the __##syscall_name##_nocancel entry point.
45335         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend_nocancel):
45336         Remove; let the sysdep-cancel.h code create it.
45337
45338 2014-05-17  David S. Miller  <davem@davemloft.net>
45339
45340         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (PAGEOUT, WRAP):
45341         Protect with __USE_GNU.
45342         (TIOCSET_TEMPT): Likewise.
45343         (TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
45344         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI): Remove as
45345         these are already provided in bits/ioctl-types.h
45346
45347 2014-05-16  Roland McGrath  <roland@hack.frob.com>
45348
45349         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: New file.
45350         * sysdeps/unix/sysv/linux/ia64/nptl/fork.c: File removed.
45351
45352         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel):
45353         Use wait4 regardless of [__NR_waitpid].
45354
45355 2014-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
45356
45357         PR libgcc/60166
45358         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
45359         (_FP_NANSIGN_Q): Set the quiet bit.
45360
45361 2014-05-16  Joseph Myers  <joseph@codesourcery.com>
45362
45363         * benchtests/Makefile
45364         ($(addprefix $(objpfx)bench-,$(bench-math))): Depend on $(libm),
45365         not $(common-objpfx)math/libm.so.
45366         ($(addprefix $(objpfx)bench-,$(bench-pthread))): Depend on
45367         $(shared-thread-library), not $(common-objpfx)nptl/libpthread.so.
45368         * elf/Makefile ($(objpfx)noload): Depend on $(libdl), not
45369         $(common-objpfx)dlfcn/libdl.so.
45370         ($(objpfx)tst-audit8): Depend on $(libm), not
45371         $(common-objpfx)math/libm.so.
45372         * malloc/Makefile ($(objpfx)libmemusage.so): Depend on $(libdl),
45373         not $(common-objpfx)dlfcn/libdl.so.
45374         * math/Makefile
45375         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
45376         Depend on $(libm), not $(objpfx)libm.so.  Do not condition on
45377         [$(build-shared) = yes].
45378         ($(objpfx)test-fenv-tls): Depend on $(shared-thread-library), not
45379         $(common-objpfx)nptl/libpthread.so.
45380         * misc/Makefile ($(objpfx)tst-tsearch): Depend on $(libm), not
45381         $(common-objpfx)math/libm.so$(libm.so-version) or
45382         $(common-objpfx)math/libm.a depending on [$(build-shared) = yes].
45383         * nptl/Makefile ($(objpfx)tst-unload): Depend on $(libdl), not
45384         $(common-objpfx)dlfcn/libdl.so.
45385         * setjmp/Makefile (link-libm): Remove variable.
45386         ($(objpfx)tst-setjmp-fp): Depend on $(libm), not $(link-libm).
45387         * stdio-common/Makefile (link-libm): Remove variable.
45388         ($(objpfx)tst-printf-round): Depend on $(libm), not $(link-libm).
45389         * stdlib/Makefile (link-libm): Remove variable.
45390         ($(objpfx)bug-getcontext): Depend on $(libm), not $(link-libm).
45391         ($(objpfx)tst-strtod-round): Likewise.
45392         ($(objpfx)tst-tininess): Likewise.
45393         ($(objpfx)tst-strtod-underflow): Likewise.
45394         ($(objpfx)tst-strtod6): Likewise.
45395         ($(objpfx)tst-tls-atexit): Depend on $(shared-thread-library) and
45396         $(libdl), not $(common-objpfx)nptl/libpthread.so and
45397         $(common-objpfx)dlfcn/libdl.so.
45398
45399 2014-05-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45400
45401         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]: Guard
45402         BSD terminal modes definitions.
45403
45404 2014-05-16  Roland McGrath  <roland@hack.frob.com>
45405
45406         * sysdeps/unix/sysv/linux/arm/arch-fork.h: New file.
45407         * sysdeps/unix/sysv/linux/arm/fork.c: File removed.
45408
45409         * sysdeps/unix/sysv/linux/arch-fork.h: New file.
45410         * sysdeps/unix/sysv/linux/i386/fork.h: Moved ...
45411         * sysdeps/unix/sysv/linux/i386/arch-fork.h: ... here.
45412         Don't do #include_next.
45413         * sysdeps/unix/sysv/linux/x86_64/fork.h: Moved ...
45414         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: ... here.
45415         Don't do #include_next.
45416         * sysdeps/unix/sysv/linux/mips/arch-fork.h: New file.
45417         * sysdeps/unix/sysv/linux/mips/fork.h: File removed.
45418         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: New file.
45419         * sysdeps/unix/sysv/linux/powerpc/fork.h: File removed.
45420
45421 2014-05-16  Allan McRae  <allan@archlinux.org>
45422
45423         * po/sv.po: Update Swedish translation from translation project.
45424
45425         * timezone/Makefile ($(objpfx)tzselect): Use correct variable
45426         in sed expression.
45427
45428 2014-05-16  Aurelien Jarno  <aurelien@aurel32.net>
45429
45430         [BZ #16917]
45431         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Return
45432         errno if the TIOCGPTN ioctl fails with an error different than
45433         EINVAL.
45434         * login/tst-ptsname.c: New file.
45435         * login/Makefile (tests): Add tst-ptsname.
45436
45437         [BZ #16943]
45438         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Declare prlimit
45439         and prlimit64.
45440
45441 2014-05-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
45442
45443         [BZ #16849]
45444         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only check for
45445         herrno to return EAI_AGAIN.
45446
45447 2014-05-14  Roland McGrath  <roland@hack.frob.com>
45448
45449         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: Moved ...
45450         * sysdeps/unix/sysv/linux/i386/c++-types.data: ... here.
45451         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: Moved ...
45452         * sysdeps/unix/sysv/linux/i386/ld.abilist: ... here.
45453         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: Moved ...
45454         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: ... here.
45455         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: Moved ...
45456         * sysdeps/unix/sysv/linux/i386/libanl.abilist: ... here.
45457         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Moved ...
45458         * sysdeps/unix/sysv/linux/i386/libc.abilist: ... here.
45459         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: Moved ...
45460         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: ... here.
45461         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: Moved ...
45462         * sysdeps/unix/sysv/linux/i386/libdl.abilist: ... here.
45463         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: Moved ...
45464         * sysdeps/unix/sysv/linux/i386/libm.abilist: ... here.
45465         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: Moved ...
45466         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: ... here.
45467         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Moved ...
45468         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: ... here.
45469         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: Moved ...
45470         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: ... here.
45471         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: Moved ...
45472         * sysdeps/unix/sysv/linux/i386/librt.abilist: ... here.
45473         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: Moved ...
45474         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: ... here.
45475         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: Moved ...
45476         * sysdeps/unix/sysv/linux/i386/libutil.abilist: ... here.
45477         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: Moved ...
45478         * sysdeps/unix/sysv/linux/i386/localplt.data: ... here.
45479         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: Moved ...
45480         * sysdeps/unix/sysv/linux/x86_64/64/c++-types.data: ... here.
45481         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Moved ...
45482         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: ... here.
45483         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
45484         Moved ...
45485         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: ... here.
45486         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Moved ...
45487         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: ... here.
45488         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Moved ...
45489         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: ... here.
45490         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Moved ...
45491         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: ... here.
45492         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Moved ...
45493         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: ... here.
45494         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Moved ...
45495         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: ... here.
45496         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Moved ...
45497         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: ... here.
45498         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist: Moved ...
45499         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: ... here.
45500         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist: Moved ...
45501         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: ... here.
45502         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Moved ...
45503         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: ... here.
45504         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist: Moved ...
45505         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: ... here.
45506         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Moved ...
45507         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: ... here.
45508         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data: Moved ...
45509         * sysdeps/unix/sysv/linux/x86_64/x32/c++-types.data: ... here.
45510         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: Moved ...
45511         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: ... here.
45512         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
45513         Moved ...
45514         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: ... here.
45515         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist: Moved ...
45516         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: ... here.
45517         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Moved ...
45518         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: ... here.
45519         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist: Moved ...
45520         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: ... here.
45521         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist: Moved ...
45522         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: ... here.
45523         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist: Moved ...
45524         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: ... here.
45525         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist: Moved ...
45526         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: ... here.
45527         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist: Moved ...
45528         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: ... here.
45529         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist: Moved ...
45530         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: ... here.
45531         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist: Moved ...
45532         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: ... here.
45533         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
45534         Moved ...
45535         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: ... here.
45536         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist: Moved ...
45537         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: ... here.
45538
45539         * nptl/sysdeps/unix/sysv/linux/x86/Makefile: File removed.
45540         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = nptl]
45541         (libpthread-sysdep_routines): Add elision-related stuff here instead.
45542         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c: Moved ...
45543         * sysdeps/unix/sysv/linux/x86/elision-conf.c: ... here.
45544         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.h: Moved ...
45545         * sysdeps/unix/sysv/linux/x86/elision-conf.h: ... here.
45546         * nptl/sysdeps/unix/sysv/linux/x86/elision-lock.c: Moved ...
45547         * sysdeps/unix/sysv/linux/x86/elision-lock.c: ... here.
45548         * nptl/sysdeps/unix/sysv/linux/x86/elision-timed.c: Moved ...
45549         * sysdeps/unix/sysv/linux/x86/elision-timed.c: ... here.
45550         * nptl/sysdeps/unix/sysv/linux/x86/elision-trylock.c: Moved ...
45551         * sysdeps/unix/sysv/linux/x86/elision-trylock.c: ... here.
45552         * nptl/sysdeps/unix/sysv/linux/x86/elision-unlock.c: Moved ...
45553         * sysdeps/unix/sysv/linux/x86/elision-unlock.c: ... here.
45554         * nptl/sysdeps/unix/sysv/linux/x86/force-elision.h: Moved ...
45555         * sysdeps/unix/sysv/linux/x86/force-elision.h: ... here.
45556         * nptl/sysdeps/unix/sysv/linux/x86/hle.h: Moved ...
45557         * sysdeps/unix/sysv/linux/x86/hle.h: ... here.
45558         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.c: Moved ...
45559         * sysdeps/unix/sysv/linux/x86/init-arch.c: ... here.
45560         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.h: Moved ...
45561         * sysdeps/unix/sysv/linux/x86/init-arch.h: ... here.
45562         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Moved ...
45563         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: ... here.
45564         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Moved ...
45565         * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: ... here.
45566         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Moved ...
45567         * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: ... here.
45568         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Moved ...
45569         * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: ... here.
45570
45571         * sysdeps/unix/sysv/linux/mips/fork.h: New file.
45572         * sysdeps/unix/sysv/linux/mips/nptl/fork.c: File removed.
45573
45574         * nptl/sysdeps/unix/sysv/linux/i386/Implies: File removed.
45575         * nptl/sysdeps/unix/sysv/linux/i386/i786/Implies: Moved ...
45576         * sysdeps/unix/sysv/linux/i386/i786/Implies: ... here.
45577         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Moved ...
45578         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: ... here.
45579         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S:
45580         Moved ...
45581         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: ... here.
45582         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
45583         Moved ...
45584         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: ... here.
45585         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
45586         Moved ...
45587         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S: ... here.
45588         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S:
45589         Moved ...
45590         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: ... here.
45591         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Moved ...
45592         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: ... here.
45593         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
45594         Moved ...
45595         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: ... here.
45596         * nptl/sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Moved ...
45597         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: ... here.
45598         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Moved ...
45599         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: ... here.
45600         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: Moved ...
45601         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: ... here.
45602         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
45603         Moved ...
45604         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: ... here.
45605         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
45606         Moved ...
45607         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
45608         ... here.
45609         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Moved ...
45610         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: ... here.
45611         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Moved ...
45612         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: ... here.
45613         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
45614         Moved ...
45615         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
45616         ... here.
45617         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S:
45618         Moved ...
45619         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: ... here.
45620         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Moved ...
45621         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: ... here.
45622         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Moved ...
45623         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: ... here.
45624         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
45625         Moved ...
45626         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: ... here.
45627         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
45628         Moved ...
45629         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: ... here.
45630         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
45631         Moved ...
45632         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: ... here.
45633         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
45634         Moved ...
45635         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: ... here.
45636         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Moved ...
45637         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: ... here.
45638         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
45639         Moved ...
45640         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: ... here.
45641         * nptl/sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved ...
45642         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: ... here.
45643         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved ...
45644         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: ... here.
45645         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved ...
45646         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: ... here.
45647         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
45648         Moved ...
45649         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: ... here.
45650         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
45651         Moved ...
45652         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
45653         ... here.
45654         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Moved ...
45655         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: ... here.
45656         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Moved ...
45657         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: ... here.
45658         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
45659         Moved ...
45660         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
45661         ... here.
45662         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
45663         Moved ...
45664         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: ... here.
45665         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved ...
45666         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: ... here.
45667         * nptl/sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Moved ...
45668         * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: ... here.
45669         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h: Moved ...
45670         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.
45671         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Moved ...
45672         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: ... here.
45673         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S:
45674         Moved ...
45675         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: ... here.
45676         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
45677         Moved ...
45678         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: ... here.
45679         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
45680         Moved ...
45681         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S: ... here.
45682         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S:
45683         Moved ...
45684         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: ... here.
45685         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Moved ...
45686         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: ... here.
45687         * nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Moved ...
45688         * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: ... here.
45689         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
45690         Moved ...
45691         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: ... here.
45692         * nptl/sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Moved ...
45693         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: ... here.
45694         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Moved ...
45695         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: ... here.
45696         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: Moved ...
45697         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: ... here.
45698         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
45699         Moved ...
45700         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: ... here.
45701         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
45702         Moved ...
45703         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
45704         ... here.
45705         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Moved ...
45706         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: ... here.
45707         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Moved ...
45708         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: ... here.
45709         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
45710         Moved ...
45711         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
45712         ... here.
45713         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S:
45714         Moved ...
45715         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: ... here.
45716         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Moved ...
45717         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: ... here.
45718         * nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Moved ...
45719         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: ... here.
45720         * nptl/sysdeps/unix/sysv/linux/i386/smp.h: Moved ...
45721         * sysdeps/unix/sysv/linux/i386/smp.h: ... here.
45722         * nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S: Moved ...
45723         * sysdeps/unix/sysv/linux/i386/pthread_once.S: ... here.
45724         * nptl/sysdeps/unix/sysv/linux/i386/createthread.c: Moved ...
45725         * sysdeps/unix/sysv/linux/i386/createthread.c: ... here.
45726
45727         * sysdeps/unix/sysv/linux/powerpc/fork.h: New file.
45728         * nptl/sysdeps/unix/sysv/linux/powerpc/fork.c: File removed.
45729
45730         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_init.c: File removed.
45731         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_unlock.S: File removed.
45732
45733         * nptl/sysdeps/unix/sysv/linux/x86_64/Implies: File removed.
45734         * nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S: Moved ...
45735         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: ... here.
45736         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: Moved ...
45737         * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: ... here.
45738         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Moved ...
45739         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: ... here.
45740         * nptl/sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: Moved ...
45741         * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: ... here.
45742         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Moved ...
45743         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: ... here.
45744         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Moved ...
45745         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: ... here.
45746         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Moved ...
45747         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: ... here.
45748         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Moved ...
45749         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: ... here.
45750         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
45751         Moved ...
45752         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: ... here.
45753         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Moved ...
45754         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: ... here.
45755         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
45756         Moved ...
45757         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: ... here.
45758         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Moved ...
45759         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: ... here.
45760         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Moved ...
45761         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: ... here.
45762         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Moved ...
45763         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: ... here.
45764         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
45765         Moved ...
45766         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: ... here.
45767         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
45768         Moved ...
45769         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: ... here.
45770         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Moved ...
45771         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: ... here.
45772         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Moved ...
45773         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: ... here.
45774         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: Moved ...
45775         * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: ... here.
45776         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S: Moved ...
45777         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: ... here.
45778         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Moved ...
45779         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: ... here.
45780         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Moved ...
45781         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: ... here.
45782         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Moved ...
45783         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: ... here.
45784         * nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Moved ...
45785         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: ... here.
45786
45787         * nptl/sysdeps/unix/sysv/linux/fork.c: Use <> for fork.h #include.
45788         * nptl/sysdeps/unix/sysv/linux/x86_64/fork.c: File removed.
45789         * sysdeps/unix/sysv/linux/x86_64/fork.h: New file.
45790         * nptl/sysdeps/unix/sysv/linux/i386/fork.c: File removed.
45791         * sysdeps/unix/sysv/linux/i386/fork.h: New file.
45792
45793         * nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h: Moved ...
45794         * sysdeps/unix/sysv/linux/not-cancel.h: ... here.
45795         * nptl/sysdeps/unix/sysv/linux/sparc/not-cancel.h: File removed.
45796         * nptl/sysdeps/unix/sysv/linux/sh/not-cancel.h: File removed.
45797         * nptl/sysdeps/unix/sysv/linux/powerpc/not-cancel.h: File removed.
45798         * nptl/sysdeps/unix/sysv/linux/x86_64/not-cancel.h: File removed.
45799         * nptl/sysdeps/unix/sysv/linux/s390/not-cancel.h: File removed.
45800         * sysdeps/unix/sysv/linux/generic/not-cancel.h: File removed.
45801         * sysdeps/unix/sysv/linux/generic/nptl/not-cancel.h: File removed.
45802         * sysdeps/unix/sysv/linux/m68k/nptl/not-cancel.h: File removed.
45803
45804         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_init.c: File removed.
45805         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_unlock.S: Likewise.
45806
45807         * nptl/sysdeps/unix/sysv/linux/x86_64/compat-timer.h: Moved ...
45808         * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: ... here.
45809         * nptl/sysdeps/unix/sysv/linux/x86_64/Versions: Remove, merge into ...
45810         * sysdeps/unix/sysv/linux/x86_64/Versions: ... here.
45811         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c: Moved ...
45812         * sysdeps/unix/sysv/linux/x86_64/timer_create.c: here.
45813         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_delete.c: Moved ...
45814         * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: ... here
45815         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: Moved ...
45816         * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: ... here
45817         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: Moved ...
45818         * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: ... here
45819         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_settime.c: Moved ...
45820         * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: ... here
45821         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c:
45822         Update #include.
45823         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c:
45824         Likewise.
45825         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
45826         Likewise.
45827         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
45828         Likewise.
45829         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
45830         Likewise.
45831         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c:
45832         Likewise.
45833         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c:
45834         Likewise.
45835         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
45836         Likewise.
45837         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c:
45838         Likewise.
45839         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c:
45840         Likewise.
45841         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Likewise.
45842         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Likewise.
45843         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Likewise.
45844         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Likewise.
45845         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Likewise.
45846         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Likewise.
45847         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Likewise.
45848         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Likewise.
45849         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Likewise.
45850         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Likewise.
45851         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Likewise.
45852         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Likewise.
45853         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Likewise.
45854         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c:  Likewise.
45855         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c:  Likewise.
45856
45857         * sysdeps/unix/sysv/linux/x86_64/clone.S: Deconditionalize the code
45858         that was previously under [RESET_PID].
45859         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
45860         * nptl/sysdeps/unix/sysv/linux/x86_64/clone.S: File removed.
45861         * nptl/sysdeps/unix/sysv/linux/i386/clone.S: File removed.
45862
45863         * sysdeps/i386/nptl/Implies: New file.
45864         * sysdeps/x86_64/nptl/Implies: New file.
45865         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Moved ...
45866         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
45867         * nptl/sysdeps/unix/sysv/linux/x86/bits/semaphore.h: Moved ...
45868         * sysdeps/x86/nptl/bits/semaphore.h: ... here.
45869
45870         * sysdeps/unix/sysv/linux/i386/vfork.S: Include <tcb-offsets.h>.
45871         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
45872         (__libc_vfork): New strong alias.
45873         * nptl/sysdeps/unix/sysv/linux/i386/vfork.S: File removed.
45874         * nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S: File removed.
45875
45876         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Include <tcb-offsets.h>.
45877         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
45878         (__libc_vfork): New strong alias.
45879         * nptl/sysdeps/unix/sysv/linux/x86_64/vfork.S: File removed.
45880         * nptl/sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: File removed.
45881
45882         * sysdeps/unix/sysv/linux/arm/vfork.S: Include <tcb-offsets.h>.
45883         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
45884         (__libc_vfork): New strong alias.
45885         * sysdeps/unix/sysv/linux/arm/nptl/vfork.S: File removed.
45886         * sysdeps/unix/sysv/linux/arm/nptl/pt-vfork.S: File removed.
45887         * nptl/pt-vfork.c: New file.
45888         * nptl/Versions (libc: GLIBC_PRIVATE): Add __libc_vfork.
45889         (libpthread: GLIBC_2.20): New version set (empty).
45890
45891 2014-05-14  Will Newton  <will.newton@linaro.org>
45892
45893         * stdlib/gmp-impl.h: Test USE_STACK_ALLOC #ifdef
45894         rather than #if.
45895
45896 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
45897
45898         [BZ #16564]
45899         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Do not add 1 to positive
45900         arguments with exponent 65 or above.
45901         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Do not add 1 to
45902         arguments 0x1p113L or above.
45903         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Do not add 1
45904         to arguments 0x1p107L or above.
45905         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Do not add 1 to
45906         positive arguments with exponent 65 or above.
45907         * math/auto-libm-test-in: Add more tests of log1p.
45908         * math/auto-libm-test-out: Regenerated.
45909
45910         [BZ #16928]
45911         * math/s_cacos.c (__cacos): Ensure zero real part of result from
45912         non-finite arguments is +0.
45913         * math/s_cacosf.c (__cacosf): Likewise.
45914         * math/s_cacosl.c (__cacosl): Likewise.
45915         * math/libm-test.inc (cacos_test): Use ALL_RM_TEST.
45916         * sysdeps/i386/fpu/libm-test-ulps: Update.
45917         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45918
45919         [BZ #16927]
45920         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): Use fabs on x-1
45921         value.
45922         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
45923         * sysdeps/i386/fpu/e_acoshl.S (__ieee754_acoshl): Likewise.
45924         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Correct
45925         for explicit high bit of mantissa when testing for argument equal
45926         to 1.
45927         * math/libm-test.inc (acosh_test): Use ALL_RM_TEST.
45928         * sysdeps/i386/fpu/libm-test-ulps: Update.
45929         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45930
45931         [BZ #16516]
45932         * sysdeps/ieee754/dbl-64/s_erf.c (efx8): Remove variable.
45933         (__erf): Scale by 16 instead of 8 in potentially underflowing
45934         case.  Ensure exception if result actually underflows.
45935         * sysdeps/ieee754/flt-32/s_erff.c (efx8): Remove variable.
45936         (__erff): Scale by 16 instead of 8 in potentially underflowing
45937         case.  Ensure exception if result actually underflows.
45938         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <float.h>.
45939         (efx8): Remove variable.
45940         (__erfl): Scale by 16 instead of 8 in potentially underflowing
45941         case.  Ensure exception if result actually underflows.
45942         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <float.h>.
45943         (efx8): Remove variable.
45944         (__erfl): Scale by 16 instead of 8 in potentially underflowing
45945         case.  Ensure exception if result actually underflows.
45946         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <float.h>.
45947         (efx8): Remove variable.
45948         (__erfl): Scale by 16 instead of 8 in potentially underflowing
45949         case.  Ensure exception if result actually underflows.
45950         * math/auto-libm-test-in: Add more tests of erf.
45951         * math/auto-libm-test-out: Regenerated.
45952
45953 2014-05-14  Andreas Schwab  <schwab@suse.de>
45954
45955         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, dl_main):
45956         Remove code conditionalized on USE___THREAD.
45957
45958         * config.h.in (HAVE_PT_CHOWN): Define as 0.
45959         * sysdeps/unix/grantpt.c (grantpt): Check HAVE_PT_CHOWN for value,
45960         not definedness.
45961
45962 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
45963
45964         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES):
45965         Define unconditionally.
45966         (__ASSUME_O_CLOEXEC): Likewise.
45967         (__ASSUME_SOCK_CLOEXEC): Likewise.
45968         (__ASSUME_IN_NONBLOCK): Likewise.
45969         (__ASSUME_PIPE2): Likewise.
45970         (__ASSUME_EVENTFD2): Likewise.
45971         (__ASSUME_SIGNALFD4): Likewise.
45972         (__ASSUME_DUP3): Likewise.
45973         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
45974         (__ASSUME_DUP3): Do not define.
45975         (__ASSUME_EVENTFD2): Likewise.
45976         (__ASSUME_IN_NONBLOCK): Likewise.
45977         (__ASSUME_O_CLOEXEC): Likewise.
45978         (__ASSUME_PIPE2): Likewise.
45979         (__ASSUME_SIGNALFD4): Likewise.
45980         (__ASSUME_SOCK_CLOEXEC): Likewise.
45981         (__ASSUME_UTIMES): Undefine.
45982         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
45983         (__ASSUME_UTIMES): Do not define.
45984         (__ASSUME_O_CLOEXEC): Likewise.
45985         (__ASSUME_SOCK_CLOEXEC): Likewise.
45986         (__ASSUME_IN_NONBLOCK): Undefine if [__LINUX_KERNEL_VERSION <
45987         0x020621] instead of defining if [__LINUX_KERNEL_VERSION >=
45988         0x020621].
45989         (__ASSUME_PIPE2): Likewise.
45990         (__ASSUME_EVENTFD2): Likewise.
45991         (__ASSUME_SIGNALFD4): Likewise.
45992         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_DUP3): Undefine.
45993         * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_UTIMES):
45994         Do not define.
45995         (__ASSUME_EVENTFD2): Likewise.
45996         (__ASSUME_SIGNALFD4): Likewise.
45997         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
45998         (__ASSUME_32BITUIDS): Likewise.
45999         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
46000         (__ASSUME_IPC64): Likewise.
46001         (__ASSUME_ST_INO_64_BIT): Likewise.
46002         (__ASSUME_GETDENTS64_SYSCALL): Likewise.
46003         [__LINUX_KERNEL_VERSION < 0x030e00] (__ASSUME_UTIMES): Undefine.
46004         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
46005         (__ASSUME_UTIMES): Do not define.
46006         (__ASSUME_PSELECT): Likewise.
46007         (__ASSUME_PPOLL): Likewise.
46008         (__ASSUME_O_CLOEXEC): Likewise.
46009         (__ASSUME_SOCK_CLOEXEC): Likewise.
46010         (__ASSUME_IN_NONBLOCK): Likewise.
46011         (__ASSUME_PIPE2): Likewise.
46012         (__ASSUME_EVENTFD2): Likewise.
46013         (__ASSUME_SIGNALFD4): Likewise.
46014         (__ASSUME_DUP3): Likewise.
46015         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
46016         (__ASSUME_UTIMES): Likewise.
46017         (__ASSUME_O_CLOEXEC): Likewise.
46018         (__ASSUME_SOCK_CLOEXEC): Likewise.
46019         (__ASSUME_IN_NONBLOCK): Likewise.
46020         (__ASSUME_PIPE2): Likewise.
46021         (__ASSUME_EVENTFD2): Likewise.
46022         (__ASSUME_SIGNALFD4): Likewise.
46023         (__ASSUME_DUP3): Likewise.
46024         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
46025         (__ASSUME_UTIMES): Likewise.
46026         (__ASSUME_O_CLOEXEC): Likewise.
46027         (__ASSUME_SOCK_CLOEXEC): Likewise.
46028         (__ASSUME_IN_NONBLOCK): Likewise.
46029         (__ASSUME_PIPE2): Likewise.
46030         (__ASSUME_EVENTFD2): Likewise.
46031         (__ASSUME_SIGNALFD4): Likewise.
46032         (__ASSUME_DUP3): Likewise.
46033         * sysdeps/unix/sysv/linux/mips/kernel-features.h (__ASSUME_IPC64):
46034         Likewise.
46035         (__ASSUME_UTIMES): Likewise.
46036         (__ASSUME_EVENTFD2): Likewise.
46037         (__ASSUME_SIGNALFD4): Likewise.
46038         * sysdeps/unix/sysv/linux/tile/kernel-features.h
46039         (__ASSUME_O_CLOEXEC): Likewise.
46040         (__ASSUME_SOCK_CLOEXEC): Likewise.
46041         (__ASSUME_IN_NONBLOCK): Likewise.
46042         (__ASSUME_PIPE2): Likewise.
46043         (__ASSUME_EVENTFD2): Likewise.
46044         (__ASSUME_SIGNALFD4): Likewise.
46045         (__ASSUME_DUP3): Likewise.
46046         (__ASSUME_UTIMES): Undefine.
46047
46048         * sysdeps/arm/fclrexcpt.c (__feclearexcept): Rename to
46049         feclearexcept.  Remove symbol versioning code.
46050         * sysdeps/arm/fegetenv.c (__fegetenv): Rename to fegetenv.  Remove
46051         symbol versioning code.
46052         * sysdeps/arm/fesetenv.c (__fesetenv): Rename to fesetenv.  Remove
46053         symbol versioning code.
46054         * sysdeps/arm/feupdateenv.c (__feupdateenv): Rename to
46055         feupdateenv.  Remove symbol versioning code.
46056         * sysdeps/arm/fgetexcptflg.c (__fegetexceptflag): Rename to
46057         fegetexceptflag.  Remove symbol versioning code.
46058         * sysdeps/arm/fsetexcptflg.c (__fesetexceptflag): Rename to
46059         fesetexceptflag.  Remove symbol versioning code.
46060         * sysdeps/unix/sysv/linux/arm/Versions (libc): Remove GLIBC_2.0,
46061         GLIBC_2.2 and GLIBC_2.3.3 entries.  Change GLIBC_2.1 to GLIBC_2.4.
46062         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c
46063         (__posix_fadvise64_l32): Remove prototype.
46064         [SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)]: Remove conditional
46065         code.
46066
46067 2014-05-13  Roland McGrath  <roland@hack.frob.com>
46068
46069         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h: Moved ...
46070         * sysdeps/arm/nptl/bits/pthreadtypes.h: ... here.
46071         * sysdeps/unix/sysv/linux/arm/nptl/bits/semaphore.h: Moved ...
46072         * sysdeps/arm/nptl/bits/semaphore.h: ... here.
46073
46074 2014-05-13  Sami Kerola  <kerolasa@iki.fi>
46075
46076         * timezone/Makefile ($(objpfx)tzselect): Use zonedir instead
46077         current working directory
46078
46079 2014-05-13  Roland McGrath  <roland@hack.frob.com>
46080
46081         * sysdeps/unix/sysv/linux/arm/nptl/c++-types.data: Moved ...
46082         * sysdeps/unix/sysv/linux/arm/c++-types.data: ... here.
46083         * sysdeps/unix/sysv/linux/arm/nptl/createthread.c: Moved ...
46084         * sysdeps/unix/sysv/linux/arm/createthread.c: ... here.
46085         * sysdeps/unix/sysv/linux/arm/nptl/fork.c: Moved ...
46086         * sysdeps/unix/sysv/linux/arm/fork.c: ... here.
46087         * sysdeps/unix/sysv/linux/arm/nptl/ld.abilist: Moved ...
46088         * sysdeps/unix/sysv/linux/arm/ld.abilist: ... here.
46089         * sysdeps/unix/sysv/linux/arm/nptl/libBrokenLocale.abilist: Moved ...
46090         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: ... here.
46091         * sysdeps/unix/sysv/linux/arm/nptl/libanl.abilist: Moved ...
46092         * sysdeps/unix/sysv/linux/arm/libanl.abilist: ... here.
46093         * sysdeps/unix/sysv/linux/arm/nptl/libc.abilist: Moved ...
46094         * sysdeps/unix/sysv/linux/arm/libc.abilist: ... here.
46095         * sysdeps/unix/sysv/linux/arm/nptl/libcrypt.abilist: Moved ...
46096         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: ... here.
46097         * sysdeps/unix/sysv/linux/arm/nptl/libdl.abilist: Moved ...
46098         * sysdeps/unix/sysv/linux/arm/libdl.abilist: ... here.
46099         * sysdeps/unix/sysv/linux/arm/nptl/libm.abilist: Moved ...
46100         * sysdeps/unix/sysv/linux/arm/libm.abilist: ... here.
46101         * sysdeps/unix/sysv/linux/arm/nptl/libnsl.abilist: Moved ...
46102         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: ... here.
46103         * sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist: Moved ...
46104         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: ... here.
46105         * sysdeps/unix/sysv/linux/arm/nptl/libresolv.abilist: Moved ...
46106         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: ... here.
46107         * sysdeps/unix/sysv/linux/arm/nptl/librt.abilist: Moved ...
46108         * sysdeps/unix/sysv/linux/arm/librt.abilist: ... here.
46109         * sysdeps/unix/sysv/linux/arm/nptl/libthread_db.abilist: Moved ...
46110         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: ... here.
46111         * sysdeps/unix/sysv/linux/arm/nptl/libutil.abilist: Moved ...
46112         * sysdeps/unix/sysv/linux/arm/libutil.abilist: ... here.
46113         * sysdeps/unix/sysv/linux/arm/nptl/localplt.data: Moved ...
46114         * sysdeps/unix/sysv/linux/arm/localplt.data: ... here.
46115         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Moved ...
46116         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: ... here.
46117         * sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h: Moved ...
46118         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: ... here.
46119         * sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c: Moved ...
46120         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: ... here.
46121         * sysdeps/unix/sysv/linux/arm/nptl/unwind-resume.c: Moved ...
46122         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: ... here.
46123
46124         * sysdeps/unix/sysv/linux/arm/Versions (libc: GLIBC_PRIVATE): New set.
46125         * sysdeps/unix/sysv/linux/arm/nptl/Versions: File removed.
46126
46127         * sysdeps/unix/sysv/linux/arm/Makefile
46128         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
46129         Add rt-aeabi_unwind_cpp_pr1.
46130         [$(subdir) = nptl] (librt-sysdep_routines, librt-shared-only-routines):
46131         Add nptl-aeabi_unwind_cpp_pr1.
46132         [$(subdir) = nptl] (tests): Filter out tst-cleanupx4.
46133         * sysdeps/unix/sysv/linux/arm/nptl/Makefile: File removed.
46134         * sysdeps/unix/sysv/linux/arm/nptl/rt-aeabi_unwind_cpp_pr1.c: Move ...
46135         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
46136         * sysdeps/unix/sysv/linux/arm/nptl/nptl-aeabi_unwind_cpp_pr1.c: Move ...
46137         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
46138
46139         * sysdeps/unix/sysv/linux/arm/configure.ac: Force -fexceptions here.
46140         * sysdeps/unix/sysv/linux/arm/configure: Regenerated.
46141         * sysdeps/unix/sysv/linux/arm/nptl/configure.ac: File removed.
46142         * sysdeps/unix/sysv/linux/arm/nptl/configure: File removed.
46143
46144         * sysdeps/unix/sysv/linux/arm/clone.S: Include <tcb-offsets.h>.
46145         Deconditionalize the code that was previously under [RESET_PID].
46146         * sysdeps/unix/sysv/linux/arm/nptl/clone.S: File removed.
46147
46148         * sysdeps/generic/exit-thread.h: New file.
46149         * sysdeps/unix/sysv/linux/exit-thread.h: New file.
46150         * include/unistd.h (__exit_thread): Remove declaration.
46151         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Drop exit-thread.
46152         * sysdeps/unix/sysv/linux/exit-thread.S: File removed.
46153         * csu/libc-start.c: Include <exit-thread.h>.
46154         (LIBC_START_MAIN): Pass no argument to __exit_thread.
46155         * nptl/pthread_create.c: Include <exit-thread.h>.
46156         (start_thread): Call __exit_thread in place of __exit_thread_inline.
46157         * nptl/sysdeps/i386/pthreaddef.h (__exit_thread_inline): Macro removed.
46158         * nptl/sysdeps/powerpc/pthreaddef.h: Likewise.
46159         * nptl/sysdeps/s390/pthreaddef.h: Likewise.
46160         * nptl/sysdeps/sh/pthreaddef.h: Likewise.
46161         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Likewise.
46162         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Likewise.
46163         * nptl/sysdeps/x86_64/pthreaddef.h: Likewise.
46164         * sysdeps/aarch64/nptl/pthreaddef.h: Likewise.
46165         * sysdeps/alpha/nptl/pthreaddef.h: Likewise.
46166         * sysdeps/arm/nptl/pthreaddef.h: Likewise.
46167         * sysdeps/hppa/nptl/pthreaddef.h: Likewise.
46168         * sysdeps/ia64/nptl/pthreaddef.h: Likewise.
46169         * sysdeps/m68k/nptl/pthreaddef.h: Likewise.
46170         * sysdeps/microblaze/nptl/pthreaddef.h: Likewise.
46171         * sysdeps/mips/nptl/pthreaddef.h: Likewise.
46172         * sysdeps/tile/nptl/pthreaddef.h: Likewise.
46173
46174 2014-05-13  Andreas Schwab  <schwab@suse.de>
46175
46176         * sysdeps/unix/grantpt.c (grantpt): Fix typo in assertion.
46177
46178 2014-05-12  Joseph Myers  <joseph@codesourcery.com>
46179
46180         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
46181         (__ASSUME_UTIMES): Do not condition on kernel version.
46182         (__ASSUME_PSELECT): Define unconditionally.
46183         (__ASSUME_PPOLL): Likewise.
46184         (__ASSUME_ATFCTS): Likewise.
46185         (__ASSUME_SET_ROBUST_LIST): Do not condition on kernel version.
46186         (__ASSUME_COMPLETE_READV_WRITEV): Define unconditionally.
46187         (__ASSUME_FUTEX_LOCK_PI): Do not condition on kernel version.
46188         (__ASSUME_UTIMENSAT): Define unconditionally.
46189         (__ASSUME_PRIVATE_FUTEX): Likewise.
46190         (__ASSUME_FALLOCATE): Likewise.
46191         (__ASSUME_O_CLOEXEC): Likewise.
46192         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Remove.
46193         (__ASSUME_ARG_MAX_STACK_BASED): Likewise.
46194         (__ASSUME_ADJ_OFFSET_SS_READ): Define unconditionally.
46195         (__ASSUME_SOCK_CLOEXEC): Do not condition on kernel version.
46196         (__ASSUME_IN_NONBLOCK): Likewise.
46197         (__ASSUME_PIPE2): Likewise.
46198         (__ASSUME_EVENTFD2): Likewise.
46199         (__ASSUME_SIGNALFD4): Likewise.
46200         (__ASSUME_DUP3): Likewise.
46201         [__x86_64__ || __sparc__] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
46202         (__ASSUME_FUTEX_CLOCK_REALTIME): Define unconditionally.
46203         (__ASSUME_AT_RANDOM): Likewise.
46204         (__ASSUME_PREADV): Likewise.
46205         (__ASSUME_PWRITEV): Likewise.
46206         (__ASSUME_REQUEUE_PI): Do not condition on kernel version.
46207         (__ASSUME_F_GETOWN_EX): Define unconditionally.
46208         (__ASSUME_XFS_RESTRICTED_CHOWN): Likewise.
46209         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
46210         [!__ASSUME_ARG_MAX_STACK_BASED]: Remove conditional code.
46211         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
46212         (__ASSUME_O_CLOEXEC): Define unconditionally.
46213         (__ASSUME_PSELECT): Do not undefine conditionally.
46214         (__ASSUME_PPOLL): Likewise.
46215         (__ASSUME_ATFCTS): Likewise.
46216         (__ASSUME_SET_ROBUST_LIST): Likewise.
46217         (__ASSUME_UTIMENSAT): Likewise.
46218         (__ASSUME_FDATASYNC): Define unconditionally.
46219         * sysdeps/unix/sysv/linux/arm/kernel-features.h
46220         (__ASSUME_SIGFRAME_V2): Likewise.
46221         )__ASSUME_EVENTFD2): Likewise.
46222         (__ASSUME_SIGNALFD4): Likewise.
46223         (__ASSUME_PSELECT): Do not undefine conditionally.
46224         (__ASSUME_PPOLL): Likewise.
46225         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
46226         (__ASSUME_PSELECT): Define unconditionally.
46227         (__ASSUME_PPOLL): Likewise.
46228         (__ASSUME_O_CLOEXEC): Likewise.
46229         (__ASSUME_SOCK_CLOEXEC): Likewise.
46230         (__ASSUME_IN_NONBLOCK): Likewise.
46231         (__ASSUME_PIPE2): Likewise.
46232         (__ASSUME_EVENTFD2): Likewise.
46233         (__ASSUME_SIGNALFD4): Likewise.
46234         (__ASSUME_DUP3): Likewise.
46235         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
46236         (__ASSUME_O_CLOEXEC): Likewise.
46237         (__ASSUME_SOCK_CLOEXEC): Likewise.
46238         (__ASSUME_IN_NONBLOCK): Likewise.
46239         (__ASSUME_PIPE2): Likewise.
46240         (__ASSUME_EVENTFD2): Likewise.
46241         (__ASSUME_SIGNALFD4): Likewise.
46242         (__ASSUME_DUP3): Likewise.
46243         * sysdeps/unix/sysv/linux/mips/kernel-features.h
46244         (__ASSUME_EVENTFD2): Likewise.
46245         (__ASSUME_SIGNALFD4): Likewise.
46246         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
46247
46248 2014-05-12  Andreas Schwab  <schwab@suse.de>
46249
46250         [BZ #16932]
46251         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r)
46252         (_nss_nis_gethostbyname4_r): Return error if item length is larger
46253         than maximum RPC packet size.
46254         * nis/nss_nis/nis-initgroups.c (initgroups_netid): Likewise.
46255         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
46256         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r)
46257         (_nss_nis_getservbyport_r): Likewise.
46258
46259 2014-05-12  Will Newton  <will.newton@linaro.org>
46260
46261         * malloc/Makefile (tests): Add tst-mallopt.
46262         * malloc/tst-mallopt.c: New file.
46263
46264 2014-05-09  Roland McGrath  <roland@hack.frob.com>
46265
46266         * sysdeps/arm/armv7/strcmp.S: Use sfi_breg prefix on loads not from sp.
46267         [NO_THUMB]: Cope without cbz, cnbz, and orn instructions.
46268
46269 2014-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46270
46271         * elf/Makefile (tst-tlsmod5.so): Add $(no-as-needed).
46272         (tst-tlsmod6.so): Likewise.
46273
46274 2014-05-09  Roland McGrath  <roland@hack.frob.com>
46275
46276         * sysdeps/gnu/unwind-resume.c (libgcc_s_resume): Mark as noreturn.
46277
46278 2014-05-09  Joseph Myers  <joseph@codesourcery.com>
46279
46280         [BZ #16064]
46281         * sysdeps/i386/fpu/fegetenv.c: Include <unistd.h>, <ldsodefs.h>
46282         and <dl-procinfo.h>.
46283         (__fegetenv): Save SSE state in envp->__eip if supported.
46284         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Save SSE state in
46285         envp->__eip if supported.
46286         * sysdeps/i386/fpu/fesetenv.c: Include <unistd.h>, <ldsodefs.h>
46287         and <dl-procinfo.h>.
46288         (__fesetenv): Always set __eip, __cs_selector, __opcode,
46289         __data_offset and __data_selector in environment to 0.  Set SSE
46290         state if supported.
46291         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
46292         test-fenv-sse.
46293         [$(subdir) = math] (CFLAGS-test-fenv-sse.c): Add -msse2
46294         -mfpmath=sse.
46295         * sysdeps/x86/fpu/test-fenv-sse.c: New file.
46296
46297 2014-05-09  Will Newton  <will.newton@linaro.org>
46298
46299         * sysdeps/arm/preconfigure.ac: Set libc_commonpagesize
46300         and libc_relro_required for ARM.
46301         * sysdeps/arm/preconfigure: Regenerate.
46302
46303 2014-05-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>
46304             Stefan Liebler  <stli@linux.vnet.ibm.com>
46305
46306         * config.make.in (enable-lock-elision): New Makefile variable.
46307         * configure.ac: Likewise.
46308         * configure: Regenerate.
46309         * sysdeps/s390/configure.ac:
46310         Add check for gcc transactions support.
46311         * sysdeps/s390/configure: Regenerate.
46312         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: New file.
46313         Build elision files if enabled.
46314         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: New file.
46315         Add lock elision support for s390.
46316         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
46317         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Likewise.
46318         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
46319         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
46320         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
46321         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
46322         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
46323         Likewise.
46324         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c:
46325         Likewise.
46326         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c:
46327         Likewise.
46328         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c:
46329         Likewise.
46330         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h:
46331         (__lll_timedlock_elision, __lll_lock_elision)
46332         (__lll_unlock_elision, __lll_trylock_elision)
46333         (lll_timedlock_elision, lll_lock_elision)
46334         (lll_unlock_elision, lll_trylock_elision): Add.
46335         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
46336         (pthread_mutex_t): Add lock elision support for s390.
46337
46338 2014-05-14  Wilco  <wdijkstr@arm.com>
46339
46340         * sysdeps/arm/fclrexcpt.c: Cleanup.
46341         * sysdeps/arm/fedisblxcpt.c: Cleanup.
46342         * sysdeps/arm/feenablxcpt.c: Cleanup.
46343         * sysdeps/arm/fegetenv.c: Cleanup.
46344         * sysdeps/arm/fegetexcept.c: Cleanup.
46345         * sysdeps/arm/fegetround.c: Cleanup.
46346         * sysdeps/arm/feholdexcpt.c: Cleanup.
46347         * sysdeps/arm/fesetenv.c: Cleanup.
46348         * sysdeps/arm/fesetround.c: Cleanup.
46349         * sysdeps/arm/feupdateenv.c: Cleanup.
46350         * sysdeps/arm/fgetexcptflg.c: Cleanup.
46351         * sysdeps/arm/fraiseexcpt.c: Cleanup.
46352         * sysdeps/arm/fsetexcptflg.c: Cleanup.
46353         * sysdeps/arm/ftestexcept.c: Cleanup.
46354         * sysdeps/arm/get-rounding-mode.h: Cleanup.
46355         * sysdeps/arm/setfpucw.c: Cleanup.
46356
46357 2014-05-09  Will Newton  <will.newton@linaro.org>
46358
46359         * sysdeps/arm/armv7/strcmp.S: New file.
46360         * NEWS: Mention addition of ARMv7 optimized strcmp.
46361
46362 2014-05-08  Roland McGrath  <roland@hack.frob.com>
46363
46364         * Makeconfig ($(common-objpfx)config.status): Fix patsubst uses to
46365         look for %.ac rather than %.in.
46366
46367         * sysdeps/mach/hurd/configure.ac (inhibit_glue): Remove variable.
46368         * sysdeps/unix/sysv/linux/configure.ac: Likewise.
46369         * sysdeps/mach/hurd/configure: Regenerated.
46370         * sysdeps/unix/sysv/linux/configure: Regenerated.
46371
46372         * bits/utsname.h (_UTSNAME_DOMAIN_LENGTH): New macro, set to 0.
46373
46374 2014-05-07  Steve Ellcey  <sellcey@mips.com>
46375
46376         [BZ #16922]
46377         * sysdeps/mips/sys/asm.h (INT_SUB): Fix definition.
46378         (LONG_SUB): Ditto.
46379         (PTR_SUB): Ditto.
46380
46381 2014-05-07  Andreas Schwab  <schwab@suse.de>
46382
46383         * sysdeps/posix/getaddrinfo.c (gaih_inet): Advance address pointer
46384         when skipping over non-matching result from nscd.
46385
46386 2014-05-07  Ondřej Bílka  <neleai@seznam.cz>
46387
46388         [BZ #16876]
46389         * nptl/sockperf.c (client): Check socket return value.
46390
46391         [BZ #16877]
46392         * nscd/selinux.c (nscd_request_avc_has_perm): Check if there is
46393         nscd security class.
46394
46395 2014-05-06  Roland McGrath  <roland@hack.frob.com>
46396
46397         * sysdeps/unix/sysv/linux/arm/nptl/unwind.h: File moved to ...
46398         * sysdeps/arm/unwind.h: ... here.
46399
46400 2014-05-06  Aurelien Jarno  <aurelien@aurel32.net>
46401
46402         [BZ #16916]
46403         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
46404         Define.
46405
46406 2014-05-06  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
46407
46408         * sysdeps/powerpc/powerpc64/power7/strncpy.S: New file: Optimization.
46409         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: New file:
46410         multiarch strncpy for PPC64.
46411         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: New file
46412         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: New file
46413         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpcpy, stpncpy
46414         multiarch optimizations.
46415         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
46416         (__libc_ifunc_impl_list): Likewise.
46417         * sysdeps/powerpc/powerpc64/power7/stpncpy.S: New file: Optimization.
46418         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: New file:
46419         multiarch stpncpy for PPC64.
46420         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-ppc64.c: New file
46421         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: New file
46422
46423 2014-05-06  Andreas Schwab  <schwab@suse.de>
46424
46425         [BZ #16912]
46426         * gmon/mcount.c (_MCOUNT_DECL): Use
46427         atomic_compare_and_exchange_bool_acq instead of
46428         catomic_compare_and_exchange_bool_acq.
46429
46430 2014-05-05  Roland McGrath  <roland@hack.frob.com>
46431
46432         * elf/Makefile (others, install-bin): Remove pldd.
46433         (pldd-modules): Variable removed.
46434         ($(objpfx)pldd): Target removed.
46435         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = elf]
46436         (others, install-bin): Append pldd here.
46437         ($(objpfx)pldd): New target.
46438
46439         * sysdeps/gnu/errlist.awk (BEGIN): Emit an initial #define of ERR_MAX
46440         to 0, so the first #if test emitted later doesn't see it undefined.
46441         (END): Emit "!defined ERRLIST_NO_COMPAT" to match what BEGIN does.
46442         * sysdeps/gnu/errlist.c: Regenerated.
46443
46444 2014-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46445
46446         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
46447         [libc_hidden_builtin_def]: Define to empty value.
46448         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S:
46449         [libc_hidden_builtin_def]: Likewise.
46450         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S:
46451         [libc_hidden_builtin_def]: Likewise.
46452         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S:
46453         [libc_hidden_builtin_def]: Likewise.
46454         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c (memcpy): Redefined to
46455         __redirect_memcpy and define ifunc as default hidden symbol.
46456         * sysdeps/powerpc/powerpc64/multiarch/memset.c (memset): Likewise.
46457         * sysdeps/powerpc/powerpc64/multiarch/strlen.c (strlen): Likewise.
46458
46459 2014-05-04  Adam Conrad  <adconrad@0c3.net>
46460
46461         * locale/iso-4217.def: Reintroduce XDR currency.
46462
46463 2014-05-04  Allan McRae  <allan@archlinux.org>
46464
46465         * po/eo.po: Update Esperanto translation from translation project.
46466
46467 2014-05-02  Carlos O'Donell  <carlos@redhat.com>
46468
46469         * sysdeps/x86_64/multiarch/init-arch.h: Define FEATURE_INDEX_1 to 0,
46470         and FEATURE_INDEX_MAX to 1.
46471         [!__ASSEMBLER__]: Remove anonymous enum for FEATURE_INDEX_*.
46472
46473 2014-05-01  Steve Ellcey  <sellcey@mips.com>
46474
46475         * iconvdata/ansi_x3.110.c (ONE_DIRECTION): Define.
46476         * iconvdata/armscii-8.c (ONE_DIRECTION): Define.
46477         * iconvdata/big5.c (ONE_DIRECTION): Define.
46478         * iconvdata/big5hkscs.c (ONE_DIRECTION): Define.
46479         * iconvdata/cp1255.c (ONE_DIRECTION): Define.
46480         * iconvdata/cp1258.c (ONE_DIRECTION): Define.
46481         * iconvdata/cp932.c (ONE_DIRECTION): Define.
46482         * iconvdata/euc-cn.c (ONE_DIRECTION): Define.
46483         * iconvdata/euc-jisx0213.c (ONE_DIRECTION): Define.
46484         * iconvdata/euc-jp-ms.c (ONE_DIRECTION): Define.
46485         * iconvdata/euc-jp.c (ONE_DIRECTION): Define.
46486         * iconvdata/euc-kr.c (ONE_DIRECTION): Define.
46487         * iconvdata/euc-tw.c (ONE_DIRECTION): Define.
46488         * iconvdata/gb18030.c (ONE_DIRECTION): Define.
46489         * iconvdata/gbbig5.c (ONE_DIRECTION): Define.
46490         * iconvdata/gbgbk.c (ONE_DIRECTION): Define.
46491         * iconvdata/gbk.c (ONE_DIRECTION): Define.
46492         * iconvdata/ibm1364.c (ONE_DIRECTION): Define.
46493         * iconvdata/ibm930.c (ONE_DIRECTION): Define.
46494         * iconvdata/ibm932.c (ONE_DIRECTION): Define.
46495         * iconvdata/ibm933.c (ONE_DIRECTION): Define.
46496         * iconvdata/ibm935.c (ONE_DIRECTION): Define.
46497         * iconvdata/ibm937.c (ONE_DIRECTION): Define.
46498         * iconvdata/ibm939.c (ONE_DIRECTION): Define.
46499         * iconvdata/ibm943.c (ONE_DIRECTION): Define.
46500         * iconvdata/iso-2022-cn-ext.c (ONE_DIRECTION): Define.
46501         * iconvdata/iso-2022-cn.c (ONE_DIRECTION): Define.
46502         * iconvdata/iso-2022-jp-3.c (ONE_DIRECTION): Define.
46503         * iconvdata/iso-2022-jp.c (ONE_DIRECTION): Define.
46504         * iconvdata/iso-2022-kr.c (ONE_DIRECTION): Define.
46505         * iconvdata/iso646.c (ONE_DIRECTION): Define.
46506         * iconvdata/iso8859-1.c (ONE_DIRECTION): Define.
46507         * iconvdata/iso_11548-1.c (ONE_DIRECTION): Define.
46508         * iconvdata/iso_6937-2.c (ONE_DIRECTION): Define.
46509         * iconvdata/iso_6937.c (ONE_DIRECTION): Define.
46510         * iconvdata/johab.c (ONE_DIRECTION): Define.
46511         * iconvdata/shift_jisx0213.c (ONE_DIRECTION): Define.
46512         * iconvdata/sjis.c (ONE_DIRECTION): Define.
46513         * iconvdata/t.61.c (ONE_DIRECTION): Define.
46514         * iconvdata/tcvn5712-1.c (ONE_DIRECTION): Define.
46515         * iconvdata/tscii.c (ONE_DIRECTION): Define.
46516         * iconvdata/uhc.c (ONE_DIRECTION): Define.
46517         * iconvdata/unicode.c (ONE_DIRECTION): Define.
46518         * iconvdata/utf-16.c (ONE_DIRECTION): Define.
46519         * iconvdata/utf-32.c (ONE_DIRECTION): Define.
46520         * iconvdata/utf-7.c (ONE_DIRECTION): Define.
46521
46522 2014-05-01  Roland McGrath  <roland@hack.frob.com>
46523
46524         * libio/libioP.h [!_IO_USE_OLD_IO_FILE && !_G_IO_NO_BACKWARD_COMPAT]
46525         (_IO_JUMPS_OFFSET): Define to 0.
46526
46527         * nptl/sysdeps/pthread/bits/libc-lock.h
46528         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
46529         (__libc_lock_define_initialized_recursive): Always define using
46530         initializer.  Modern compilers treat uninitialized (implicit zero) and
46531         explicit zero initializers the same (i.e. put the datum in bss).
46532
46533 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
46534
46535         * nscd/nscd-client.h: Include <string.h>.
46536
46537 2014-05-01  David S. Miller  <davem@davemloft.net>
46538
46539         [BZ #16885]
46540         * sysdeps/sparc/sparc64/strcmp.S: Fix end comparison handling when
46541         multiple zero bytes exist at the end of a string.
46542         Reported by Aurelien Jarno <aurelien@aurel32.net>
46543
46544         * string/test-strcmp.c (check): Add explicit test for situations where
46545         there are multiple zero bytes after the first.
46546
46547 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
46548
46549         [BZ #16890]
46550         * stdio-common/vfprintf.c (process_arg) [%p]: Mark string as wide
46551         when compiling wprintf.
46552         * stdio-common/tstdiomisc.c (t3): New function.
46553         (main): Call it.
46554
46555 2014-05-01  Steve Ellcey  <sellcey@mips.com>
46556
46557         * intl/iconv/skeleton.c (ONE_DIRECTION): Remove define.
46558         * iconv/gconv_simple.c (ONE_DIRECTION): Define.
46559         * iconvdata/8bit-gap.c (ONE_DIRECTION): Ditto.
46560         * iconvdata/8bit-generic.c (ONE_DIRECTION): Ditto.
46561
46562 2014-05-01  Steve Ellcey  <sellcey@mips.com>
46563
46564         * stdlib/longlong.h: Updated from GCC.
46565
46566 2014-05-01  Will Newton  <will.newton@linaro.org>
46567             Bernard Ogden  <bernie.ogden@linaro.org>
46568
46569         * NEWS: Update fixed bug list.
46570
46571         [BZ #15119]
46572         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c: Remove file.
46573
46574 2014-04-30  David S. Miller  <davem@davemloft.net>
46575
46576         * sysdeps/sparc/fpu/fenv_private.h (HAVE_RM_CTX): Define.
46577         (libc_feholdexcept_setround_sparc_ctx): New function.
46578         (libc_fesetenv_sparc_ctx): Likewise.
46579         (libc_feupdateenv_sparc_ctx): Likewise.
46580         (libc_feholdsetround_sparc_ctx): Likewise.
46581         (libc_feholdexcept_setround_ctx): Define.
46582         (libc_feholdexcept_setroundf_ctx): Likewise.
46583         (libc_feholdexcept_setroundl_ctx): Likewise.
46584         (libc_fesetenv_ctx): Likewise.
46585         (libc_fesetenvf_ctx): Likewise.
46586         (libc_fesetenvl_ctx): Likewise.
46587         (libc_feupdateenv_ctx): Likewise.
46588         (libc_feupdateenvf_ctx): Likewise.
46589         (libc_feupdateenvl_ctx): Likewise.
46590         (libc_feresetround_ctx): Likewise.
46591         (libc_feresetroundf_ctx): Likewise.
46592         (libc_feresetroundl_ctx): Likewise.
46593         (libc_feholdsetround_ctx): Likewise.
46594         (libc_feholdsetroundf_ctx): Likewise.
46595         (libc_feholdsetroundl_ctx): Likewise.
46596
46597         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
46598         with __USE_GNU instead of XOPEN cpp guards.
46599
46600         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Define to
46601         0.
46602
46603         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
46604         with XOPEN cpp guards.
46605
46606 2014-04-30  Julian Brown  <julian@codesourcery.com>
46607
46608         [BZ #16888]
46609         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix R_ARM_IRELATIVE
46610         handling.
46611
46612 2014-04-30  Joseph Myers  <joseph@codesourcery.com>
46613
46614         [BZ #9894]
46615         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
46616         Change to 2.6.32.
46617         (arch_minimum_kernel): Change all 2.6.16 settings to 2.6.32.
46618         * sysdeps/unix/sysv/linux/configure: Regenerated.
46619         * sysdeps/unix/sysv/linux/microblaze/configure.ac: Remove file.
46620         * sysdeps/unix/sysv/linux/microblaze/configure: Likewise.
46621         * sysdeps/unix/sysv/linux/tile/configure.ac: Likewise.
46622         * sysdeps/unix/sysv/linux/tile/configure: Likewise.
46623         * README: Update reference to required Linux kernel version.
46624         * manual/install.texi (Linux): Update reference to required Linux
46625         kernel headers version.
46626         * INSTALL: Regenerated.
46627
46628         * conform/data/stdlib.h-data [POSIX] (stddef.h): Do not allow
46629         header inclusion.
46630         [POSIX] (limits.h): Likewise.
46631         [POSIX] (math.h): Likewise.
46632         [POSIX] (sys/wait.h): Likewise.
46633         * conform/data/string.h-data [POSIX || UNIX98] (strtok_r): Require
46634         function.
46635         [POSIX] (stddef.h): Do not allow header inclusion.
46636
46637 2014-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46638
46639         * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias.
46640
46641 2014-04-30  Yang Yingliang  <yangyingliang@huawei.com>
46642
46643         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
46644         Return immediately after lll_futex_wake.
46645
46646 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
46647
46648         [BZ #16791]
46649         * nscd/nscd-client.h (datahead_init_common): Initialize entire
46650         structure.
46651         (datahead_init_pos): Call datahead_init_common early.
46652         (datahead_init_neg): Likewise.
46653
46654         * nscd/nscd-client.h (datahead_init_common, datahead_init_pos,
46655         datahead_init_neg): New functions.
46656         * nscd/aicache.c (addhstaiX): Use them.
46657         * nscd/grpcache.c (cache_addgr): Likewise.
46658         * nscd/hstcache.c (cache_addhst): Likewise.
46659         * nscd/initgrcache.c (addinitgroupsX): Likewise.
46660         * nscd/netgroupcache.c (do_notfound): Likewise.
46661         (addgetnetgrentX): Likewise.
46662         (addinnetgrX): Likewise.
46663         * nscd/pwdcache.c (cache_addpw): Likewise.
46664         * nscd/servicescache.c (cache_addserv): Likewise.
46665
46666 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
46667             Atsushi Onoe  <atsushi@onoe.org>
46668
46669         [BZ #14308]
46670         [BZ #12994]
46671         [BZ #13651]
46672         * resolv/res_query.c (__libc_res_nsearch): Return if at least
46673         one response is valid.
46674         * resolv/res_send.c (send_dg): Check for validity of other
46675         response if the current response is a referral.
46676
46677 2014-04-29  Steve Ellcey  <sellcey@mips.com>
46678
46679         * iconv/skeleton.c (ONE_DIRECTION): Set default value if not set.
46680
46681 2014-04-29  Stefan Liebler  <stli@linux.vnet.ibm.com>
46682
46683         [BZ #16823]
46684         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl):
46685         Always divide by positive zero when computing -Inf result.
46686         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
46687         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
46688
46689 2014-04-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46690
46691         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Do not update
46692         FPSCR if value do not change.
46693         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
46694         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
46695         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
46696         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
46697         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
46698         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_reg_to_exceptions): New helper
46699         function.
46700
46701 2014-05-29  Carlos O'Donell  <carlos@systemhalted.org>
46702
46703         * sysdeps/hppa: Move directory from ports/sysdeps/hppa.
46704         * sysdeps/unix/sysv/linux/hppa: Move directory from
46705         ports/systeps/unix/sysv/linux/hppa.
46706         * README: Update listing for hppa-*-linux-gnu.
46707
46708 2014-04-28  Ondřej Bílka  <neleai@seznam.cz>
46709
46710         [BZ #16754]
46711         * manual/stdio.texi (Hook functions): Fix types of stream hook
46712         functions.
46713         [BZ #16854]
46714         * socket/sys/socket.h: Fix typo in comment.
46715
46716 2014-04-28  Wilco  <wdijkstr@arm.com>
46717
46718         * sysdeps/arm/fenv_private.h: New file.
46719         * sysdeps/arm/math_private.h: New file.
46720         * sysdeps/arm/fpu_control.h: Add _FPU_MASK_NCZV and _FPU_MASK_EXCEPT.
46721
46722 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
46723
46724         * sysdeps/x86/bits/link.h (La_x86_64_regs): Replace __int128
46725         with __int128_t.
46726         (La_x86_64_retval): Likewise.
46727
46728 2014-04-24  Ian Bolton  <ian.bolton@arm.com>
46729
46730         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept): Don't write to
46731         fpsr if value didn't change.
46732         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept): Don't write
46733         to fpcr if value didn't change.
46734         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Likewise.
46735         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Don't write to
46736         fpsr or fpcr if value didn't change.
46737         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
46738         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Don't write to
46739         fpcr if value didn't change.
46740         * sysdeps/aarch64/fpu/fsetexcptflg.c (fesetexceptflag): Don't write
46741         to fpsr if value didn't change.
46742
46743 2014-02-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
46744
46745         * nptl/tst-sem3.c: Use test-skeleton.c
46746         (main): Rename to do_test.  Use return instead of
46747         exit.
46748         * nptl/tst-sem4.c: Use test-skeleton.c
46749         (main): Rename to do_test.
46750
46751 2014-04-22  David S. Miller  <davem@davemloft.net>
46752
46753         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
46754         (struct sigaction): New struct member __glibc_reserved0, change
46755         type of sa_flags to int.
46756
46757 2014-04-22  Yufeng Zhang  <yufeng.zhang@arm.com>
46758
46759         * stdlib/longlong.h (count_leading_zeros, count_trailing_zeros)
46760         (COUNT_LEADING_ZEROS_0): Define for AArch64.
46761
46762 2014-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
46763
46764         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Include atomic.h.
46765         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
46766
46767 2014-04-22  Will Newton  <will.newton@linaro.org>
46768             Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
46769
46770         * sysdeps/aarch64/__longjmp.S: Include stap-probe.h.
46771         (__longjmp): Add longjmp and longjmp_target SystemTap
46772         probes.
46773         * sysdeps/aarch64/setjmp.S: Include stap-probe.h.
46774         (__sigsetjmp): Add setjmp SystemTap probe.
46775
46776 2014-04-17  Carlos O'Donell  <carlos@redhat.com>
46777
46778         * manual/intro.texi (Roadmap to the manual): Sort chapter listing to
46779         match manual order.
46780
46781 2014-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46782
46783         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Remove file.
46784
46785         * sysdeps/powerpc/fpu/fenv_private.h
46786         (libc_feholdexcept_setroundl_ctx): Define to
46787         libc_feholdexcept_setround_ppc_ctx.
46788         (libc_fesetenvl_ctx): Define to libc_fesetenv_ppc_ctx.
46789         (libc_feholdsetroundl_ctx): Define to libc_feholdsetround_ppc_ctx.
46790         (libc_feresetroundl_ctx): Define to libc_feresetround_ppc_ctx.
46791         (libc_feupdateenvl_ctx): libc_feupdateenv_ppc_ctx.
46792
46793 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
46794
46795         * sysdeps/aarch64/math-tests.h: New file.
46796
46797 2014-04-17  Sihai Yao  <sihai.ysh@alibaba-inc.com>
46798
46799         * sysdeps/x86_64/multiarch/ifunc-defines.sym (COMMON_CPUID_INDEX_7):
46800         New.
46801         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
46802         Check and set bit_AVX2_Usable.
46803         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX2_Usable): New
46804         macro.
46805         (bit_AVX2): Likewise.
46806         (index_AVX2_Usable): Likewise.
46807         (CPUID_AVX2): Likewise.
46808         (HAS_AVX2): Likewise.
46809
46810 2014-04-17  Will Newton  <will.newton@linaro.org>
46811
46812         * manual/setjmp.texi (System V contexts): Add note that
46813         calling setcontext on a context created by a call to a
46814         signal handler is undefined.  Update text to note that
46815         setcontext from a signal handler is possible but not
46816         recommended.
46817
46818         [BZ #16629]
46819         * stdlib/tst-setcontext.c: Include signal.h.
46820         (main): Check that the signal stack before and
46821         after swapcontext is the same.
46822
46823         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext):
46824         Re-implement to restore registers in user code and avoid
46825         rt_sigreturn system call.
46826
46827 2014-04-17  Wilco  <wdijkstr@arm.com>
46828
46829         * sysdeps/arm/math-tests.h: New file: Set ARM math-test settings.
46830         * sysdeps/generic/math-tests.h: Add macro (EXCEPTION_ENABLE_SUPPORTED).
46831         * math/test-fenv.c: Skip exception trap tests on targets which only
46832         support non-stop mode.
46833
46834 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
46835             Wilco Dijkstra  <wilco.dijkstra@arm.com>
46836
46837         * sysdeps/aarch64/fpu/math_private.h (HAVE_RM_CTX)
46838         (libc_feholdsetround_aarch64_ctx)
46839         (libc_feholdsetround_ctx, libc_feholdsetroundf_ctx)
46840         (libc_feholdsetroundl_ctx, libc_feresetround_aarch64_ctx)
46841         (libc_feresetround_ctx, libc_feresetroundf_ctx)
46842         (libc_feresetroundl_ctx, libc_feresetround_noex_aarch64_ctx)
46843         (libc_feresetround_noex_ctx, libc_feresetround_noexf_ctx)
46844         (libc_feresetround_noexl_ctx): Define.
46845
46846 2014-04-16  Richard Henderson  <rth@redhat.com>
46847
46848         * sysdeps/unix/sysv/linux/alpha/nptl/pthread_once.c: Remove.
46849
46850         * sysdeps/alpha/Makefile [debug] (CFLAGS-backtrace.c): Enable
46851         unwind tables.
46852
46853         * sysdeps/unix/alpha/sysdep.h (__pointer_chk_guard): Remove
46854         const from the non-libc, non-ldso copy.
46855
46856         * sysdeps/alpha/libm-test-ulps: Regenerate.
46857
46858 2014-04-16  Ian Bolton  <ian.bolton@arm.com>
46859             Wilco Dijkstra  <wilco.dijkstra@arm.com>
46860
46861         * sysdeps/aarch64/fpu/math_private.h: New file.
46862
46863 2014-04-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
46864
46865         * sysdeps/aarch64/libm-test-ulps: Regenerate.
46866
46867 2014-04-16  Igor Zamyatin  <igor.zamyatin@intel.com>
46868
46869         [BZ #16275]
46870         * sysdeps/x86_64/bits/link.h (La_x86_64_regs): Add lr_bnd.
46871         (La_x86_64_retval): Add lrv_bnd0 and lrv_bnd1.
46872         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
46873         Intel MPX bound registers before _dl_profile_fixup.
46874         * sysdeps/x86_64/dl-trampoline.h: Restore Intel MPX bound
46875         registers after _dl_profile_fixup.  Save and restore bound
46876         registers bnd0/bnd1 when calling _dl_call_pltexit.
46877         * sysdeps/x86_64/link-defines.sym (BND_SIZE): New.
46878         (LR_BND_OFFSET): Likewise.
46879         (LRV_BND0_OFFSET): Likewise.
46880         (LRV_BND1_OFFSET): Likewise.
46881
46882 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
46883
46884         * sysdeps/mach/hurd/tls.h (dtv, dtv_t, tcbhead_t): Move declarations
46885         to...
46886         * sysdeps/mach/hurd/i386/tls.h: ... here.
46887         (tcbhead_t): Add multiple_threads, sysinfo, stack_guard,
46888         pointer_guard, gscope_flag, private_futex, __private_tm, __private_ss
46889         fields.
46890
46891 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
46892
46893         * sysdeps/mach/munmap.c (__munmap): Return EINVAL if `addr' is 0.
46894
46895 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
46896
46897         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
46898
46899 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
46900
46901         [BZ #14770]
46902         * sysdeps/s390/configure.ac: Check for Binutils >= 2.24.
46903         * sysdeps/s390/configure: Regenerate.
46904
46905         [BZ #16824]
46906         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l):
46907         Set round-to-nearest internally to reduce error accumulation.
46908
46909 2014-04-16  Alan Modra  <amodra@gmail.com>
46910
46911         [BZ #16740]
46912         [BZ #16619]
46913         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Rewrite.
46914         * math/libm-test.inc (frexp_test_data): Add tests.
46915         * NEWS: Update fixed bug list.
46916
46917 2014-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
46918
46919         * benchtests/Makefile: Depend on libraries in build directory.
46920         (bench-math): Separate out math tests.
46921         (bench-pthread): Separate out pthread tests.
46922         (bench): Include math and pthread tests.
46923
46924 2014-04-14  Carlos O'Donell  <carlos@redhat.com>
46925
46926         [BZ #16831]
46927         * csu/libc-start.c (LIBC_START_MAIN) [!SHARED]: Call
46928         _dl_debug_initialize.
46929
46930         * configure.ac: Remove SELinux header check.
46931         * configure: Regenerate.
46932         * nscd/selinux.c (perms): Array of const char* to permission names.
46933         (nscd_request_avc_has_perm): Call security_deny_unknown to find
46934         default policy. Call string_to_security_class and string_to_av_perm to
46935         translate strings. Enforce default policy and call avs_has_perm with
46936         results of translated strings.
46937
46938 2014-04-13  David S. Miller  <davem@davemloft.net>
46939
46940         * sysdeps/sparc/fpu/libm-test-ulps: Update.
46941
46942 2014-04-12  Allan McRae  <allan@archlinux.org>
46943
46944         [BZ #16838]
46945         * manual/string.texi (Collation Functions): Fix qsort argument
46946         order in example.
46947         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
46948
46949 2014-04-11  Chris Metcalf  <cmetcalf@tilera.com>
46950
46951         * math/test-fenv-preserve.c [FE_ALL_EXCEPT == 0] (do_test):
46952         Make the test a no-op if there are no exceptions defined.
46953
46954 2014-04-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
46955
46956         * elf/Makefile (tests): make tst-dlopen-aout conditional on
46957         enable-hardcoded-path-in-tests
46958
46959 2014-04-11  Will Newton  <will.newton@linaro.org>
46960
46961         * benchtests/Makefile (extra-objs): Add json-lib.o.
46962         (bench-func): Tidy up JSON output.
46963         * benchtests/bench-skeleton.c: Include json-lib.h.
46964         (main): Use JSON library functions to do output of
46965         benchmark results.
46966         * benchtests/bench-timing-type.c (main): Output the
46967         timing type simply, leaving formatting to the user.
46968         * benchtests/json-lib.c: New file.
46969         * benchtests/json-lib.h: Likewise.
46970
46971 2014-04-11  Torvald Riegel  <triegel@redhat.com>
46972
46973         [BZ #15215]
46974         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_once.c: Moved to ...
46975         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: ... here.  Add missing
46976         memory barriers.  Add comments.
46977         * sysdeps/unix/sysv/linux/aarch64/nptl/pthread_once.c: Remove file.
46978         * sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c: Remove file.
46979         * sysdeps/unix/sysv/linux/ia64/nptl/pthread_once.c: Remove file.
46980         * sysdeps/unix/sysv/linux/m68k/nptl/pthread_once.c: Remove file.
46981         * sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c: Remove file.
46982         * sysdeps/unix/sysv/linux/tile/nptl/pthread_once.c: Remove file.
46983
46984 2014-04-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
46985
46986         * sysdeps/s390/s390-32/configure.ac: Unify file with ...
46987         * sysdeps/s390/s390-64/configure.ac: ... this ...
46988         * sysdeps/s390/configure.ac: ... to here.
46989         * sysdeps/s390/s390-32/configure: Delete file.
46990         * sysdeps/s390/s390-64/configure: Delete file.
46991         * sysdeps/s390/configure: Regenerate.
46992
46993 2014-04-11  Joseph Anthony Pasquale Holsten  <joseph@josephholsten.com>
46994
46995         * resolv/res_query.c (__libc_res_nsearch): Fix typo in comment.
46996
46997 2014-04-11  Will Newton  <will.newton@linaro.org>
46998
46999         * malloc/malloc.c [!MALLOC_DEBUG]: #define MALLOC_DEBUG
47000         to zero if it is not defined elsewhere.  (mtrim): Test
47001         the value of MALLOC_DEBUG with #if rather than #ifdef.
47002
47003 2014-04-10 Torvald Riegel  <triegel@redhat.com>
47004
47005         * benchtests/pthread_once-inputs: New file.
47006         * benchtests/pthread_once-source.c: New file.
47007         * benchtests/README: Update documentation.
47008
47009 2014-04-09  Igor Zamyatin  <igor.zamyatin@intel.com>
47010             H.J. Lu  <hongjiu.lu@intel.com>
47011
47012         [BZ #16275]
47013         * config.h.in (HAVE_MPX_SUPPORT): New #undef.
47014         * sysdeps/x86_64/configure.ac: Set HAVE_MPX_SUPPORT.
47015         * sysdeps/x86_64/configure: Regenerated.
47016         * sysdeps/x86_64/dl-trampoline.S (REGISTER_SAVE_AREA): New
47017         macro.
47018         (REGISTER_SAVE_RAX): Likewise.
47019         (REGISTER_SAVE_RCX): Likewise.
47020         (REGISTER_SAVE_RDX): Likewise.
47021         (REGISTER_SAVE_RSI): Likewise.
47022         (REGISTER_SAVE_RDI): Likewise.
47023         (REGISTER_SAVE_R8): Likewise.
47024         (REGISTER_SAVE_R9): Likewise.
47025         (REGISTER_SAVE_BND0): Likewise.
47026         (REGISTER_SAVE_BND1): Likewise.
47027         (REGISTER_SAVE_BND2): Likewise.
47028         (_dl_runtime_resolve): Use them.  Save and restore Intel MPX
47029         bound registers when calling _dl_fixup.
47030
47031 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47032
47033         * bits/string.h (_STRING_ARCH_unaligned): Define it to 0.
47034         * crypt/sha256.c (_STRING_ARCH_unaligned): Check its value instead
47035         of its definition.
47036         * iconv/gconv_simple.c (_STRING_ARCH_unaligned): Likewise.
47037         * iconv/loop.c (_STRING_ARCH_unaligned): Likewise.
47038         * iconv/skeleton.c (_STRING_ARCH_unaligned): Likewise.
47039         * nscd/nscd_gethst_r.c (_STRING_ARCH_unaligned): Likewise.
47040         * nscd/nscd_getserv_r.c (_STRING_ARCH_unaligned): Likewise.
47041         * nscd/nscd_helper.c (_STRING_ARCH_unaligned): Likewise.
47042         * resolv/res_send.c (_STRING_ARCH_unaligned): Likewise.
47043
47044 2014-04-09  Peter Brett  <peter@peter-b.co.uk>
47045
47046         [BZ #15514]
47047         * sysdeps/posix/pathconf.c (__pathconf): Use statvfs64() for
47048         pathconf(_PC_NAME_MAX).
47049
47050 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47051
47052         * nptl/sysdeps/pthread/pthread.h (__PTHREAD_MUTEX_HAVE_ELISION):
47053         Remove macro usage.
47054         (__PTHREAD_SPINS): Move definition to ...
47055         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
47056         (__PTHREAD_SPINS): ... here.
47057         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
47058         (__PTHREAD_SPIN): Likewise.
47059         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
47060         (__PTHREAD_SPIN): Likewise.
47061         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
47062         (__PTHREAD_SPIN): Likewise.
47063         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h
47064         (__PTHREAD_SPIN): Likewise.
47065         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
47066         (__PTHREAD_SPIN): Likewise.
47067         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
47068         (__PTHREAD_SPIN): Likewise.
47069         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h
47070         (__PTHREAD_SPIN): Likewise.
47071         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
47072         (__PTHREAD_SPIN): Likewise.
47073         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
47074         (__PTHREAD_SPIN): Likewise.
47075         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
47076         (__PTHREAD_SPIN): Likewise.
47077         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
47078         (__PTHREAD_SPIN): Likewise.
47079         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h
47080         (__PTHREAD_SPIN): Likewise.
47081
47082         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
47083         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: new file.
47084         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: New file.
47085         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove multiarch
47086         imply folder.
47087         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
47088         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
47089         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
47090         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Adjust
47091         correct imply path.
47092         * sysdeps/powerpc/powerpc64/power7/strncat.S (STRLEN): Define correct
47093         strlen symbol for non multi-arch builds.
47094         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (__isnan): Add
47095         missing hidden_def and weak_alias.
47096
47097 2014-04-08  Carlos O'Donell  <carlos@redhat.com>
47098
47099         * manual/ipc.texi (sem_close): AC-unsafe because of aculock.
47100
47101 2014-04-07  Will Newton  <will.newton@linaro.org>
47102
47103         * string/basename.c [HAVE_CONFIG_H]: Remove #ifdef and
47104         and contents.  [!_LIBC] Remove #ifndef and contents.
47105         (basename): Use ANSI prototype.  [_LIBC] Remove #idef.
47106         * string/memccpy.c (__memccpy): Use ANSI prototype.
47107         * string/memfrob.c (memfrob): Likewise.
47108         * string/strcoll.c (STRCOLL): Likewise.
47109         * string/strlen.c (strlen): Likewise.
47110         * string/strtok.c (STRTOK): Likewise.
47111         * string/strcat.c: Remove unused #include of memcopy.h.
47112         (strcat): Use ANSI prototype.
47113         * string/strchr.c: Remove unused #include of memcopy.h.
47114         (strchr): Use ANSI prototype.
47115         * string/strcmp.c: Remove unused #include of memcopy.h.
47116         (strcmp): Use ANSI prototype.
47117         * string/strcpy.c: Remove unused #include of memcopy.h.
47118         (strcpy): Use ANSI prototype.
47119
47120 2014-04-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47121
47122         * Makeconfig (CPPFLAGS): Add config-extra-cppflags to list.
47123         * config.make.in (config-extra-cppflags): Set it from
47124         libc_extra_cppflags.
47125         * configure.ac (libc_extra_cflags): Make it accumulate over
47126         configure fragments.
47127         (libc_extra_cppflags): New flag.
47128         * configure. Regenerate.
47129         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
47130         (libc_cv_ppc64_def_call_elf): Define it to yes if compiler does
47131         not set _CALL_ELF and add -D_CALL_ELF=1 to libc_extra_cppflags.
47132         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
47133
47134         [BZ #16815]
47135         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Fix
47136         result for FE_DOWNWARD rounding mode.
47137         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
47138         Likewise.
47139         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
47140
47141 2014-04-04  Chris Metcalf  <cmetcalf@tilera.com>
47142
47143         * sysdeps/tile/dl-runtime.c (_dl_unmap): Fix cut-and-paste bug
47144         in function argument name.
47145
47146 2014-04-03  David Svoboda  <svoboda@cert.org>
47147
47148         [BZ #5666]
47149         * manual/stdio.texi (Line-Oriented Input): Document buffer allocation
47150         explicitly.
47151
47152 2014-04-03  Roland McGrath  <roland@hack.frob.com>
47153
47154         * elf/dl-unmap-segments.h: New file.
47155         * sysdeps/generic/ldsodefs.h
47156         (DL_UNMAP): Use _dl_unmap_segments in place of __munmap.
47157         * elf/dl-close.c: Include <dl-unmap-segments.h>.
47158         * elf/dl-fptr.c: Likewise.
47159         (_dl_unmap): Use _dl_unmap_segments in place of __munmap.
47160         * sysdeps/aarch64/tlsdesc.c: Likewise.
47161         * sysdeps/arm/tlsdesc.c: Likewise.
47162         * sysdeps/i386/tlsdesc.c: Likewise.
47163         * sysdeps/tile/dl-runtime.c: Likewise.
47164         * sysdeps/x86_64/tlsdesc.c: Likewise.
47165         * elf/dl-load.h: New file.
47166         * elf/dl-load.c: Include it.
47167         (MAP_FILE, MAP_COPY, MAP_BASE_ADDR):
47168         Macros moved to dl-load.h.
47169         (ELF_PREFERRED_ADDRESS_DATA, ELF_PREFERRED_ADDRESS): Likewise.
47170         (_dl_map_object_from_fd): Type 'struct loadcmd' moved to dl-load.h.
47171         Use _dl_unmap_segments in place of __munmap.
47172         Break out segment-mapping loop into ...
47173         * elf/dl-map-segments.h (_dl_map_segments): ... here, in new file.
47174
47175 2014-04-03  Will Newton  <will.newton@linaro.org>
47176
47177         * elf/dl-lookup.c (do_lookup_x): Remove comment
47178         referring to nested function and move variable
47179         declarations down to before first use.
47180
47181 2014-04-02  Joseph Myers  <joseph@codesourcery.com>
47182
47183         [BZ #16799]
47184         [BZ #16800]
47185         * math/s_catan.c (__catan): Avoid passing -0 denominator to atan2
47186         with 0 numerator.
47187         * math/s_catanf.c (__catanf): Likewise.
47188         * math/s_catanh.c (__catanh): Likewise.
47189         * math/s_catanhf.c (__catanhf): Likewise.
47190         * math/s_catanhl.c (__catanhl): Likewise.
47191         * math/s_catanl.c (__catanl): Likewise.
47192         * sysdeps/ieee754/flt-32/e_logf.c (__ieee754_logf): Always divide
47193         by positive zero when computing -Inf result.
47194         * math/libm-test.inc (catan_test): Use ALL_RM_TEST.
47195         (catanh_test): Likewise.
47196         * sysdeps/i386/fpu/libm-test-ulps: Update.
47197         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47198
47199         [BZ #16789]
47200         * math/s_clog.c (__clog): Use math_force_eval to ensure underflow
47201         instead of using underflowing value in computing result.
47202         * math/s_clog10.c (__clog10): Likewise.
47203         * math/s_clog10f.c (__clog10f): Likewise.
47204         * math/s_clog10l.c (__clog10l): Likewise.
47205         * math/s_clogf.c (__clogf): Likewise.
47206         * math/s_clogl.c (__clogl): Likewise.
47207         * math/libm-test.inc (clog_test): Use ALL_RM_TEST.
47208         (clog10_test): Likewise.
47209         * sysdeps/i386/fpu/libm-test-ulps: Update.
47210         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47211
47212 2014-04-02  Alan Modra  <amodra@gmail.com>
47213
47214         [BZ #16739]
47215         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Correct
47216         output when value is near a power of two.  Use int64_t for lx and
47217         remove casts.  Use decimal rather than hex exponent constants.
47218         Don't use long double multiplication when double will suffice.
47219         * math/libm-test.inc (nextafter_test_data): Add tests.
47220         * NEWS: Add 16739 and 16786 to bug list.
47221
47222         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Correct stream hint.
47223
47224         * sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference.
47225
47226 2014-04-01  Will Newton  <will.newton@linaro.org>
47227
47228         * benchtests/Makefile (CFLAGS-bench-ffs.c): Add
47229         -fno-builtin.  (CFLAGS-bench-ffsll.c): Likewise.
47230
47231 2014-04-01  Florian Weimer  <fweimer@redhat.com>
47232
47233         [BZ #13347]
47234         * nptl/nptl-init.c (sighandler_setxid): Check system call result.
47235         * nptl/tst-setuid2.c: New file.
47236         * nptl/Makefile (xtests): Add tst-setuid2.
47237
47238 2014-04-01  Alan Modra  <amodra@gmail.com>
47239
47240         [BZ #16786]
47241         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
47242
47243 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
47244
47245         [BZ #6803]
47246         [BZ #6804]
47247         * math/w_scalb.c (__scalb): For non-SVID mode, check result and
47248         set errno as appropriate.
47249         * math/w_scalbf.c (__scalbf): Likewise.
47250         * math/w_scalbl.c (__scalbl): Likewise.
47251         * math/gen-libm-test.pl (parse_args): Handle ERRNO_PLUS_OFLOW,
47252         ERRNO_MINUS_OFLOW, ERRNO_PLUS_UFLOW and ERRNO_MINUS_UFLOW.
47253         * math/libm-test.inc (scalb_test_data): Add errno expectations.
47254         Add more NaN tests.
47255
47256         [BZ #16349]
47257         * math/w_atan2.c: Include <errno.h>.
47258         (__atan2): Set errno for result underflowing to zero.
47259         * math/w_atan2f.c: Include <errno.h>.
47260         (__atan2f): Set errno for result underflowing to zero.
47261         * math/w_atan2l.c: Include <errno.h>.
47262         (__atan2l): Set errno for result underflowing to zero.
47263         * math/auto-libm-test-in: Don't allow missing errno for some atan2
47264         tests.
47265         * math/auto-libm-test-out: Regenerated.
47266
47267 2014-03-31  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47268
47269         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
47270         Encode instruction correctly in little endian.
47271         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
47272         Likewise.
47273         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
47274         Likewise.
47275         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
47276         Likewise.
47277         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
47278         Likewise.
47279
47280 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
47281
47282         [BZ #9894]
47283         * sysdeps/unix/sysv/linux/kernel-features.h
47284         [__sparc__ && !__arch64__ && !__sparc_v9__]
47285         (__ASSUME_SET_ROBUST_LIST): Do not define.
47286         [__sparc__ && !__arch64__ && !__sparc_v9__]
47287         (__ASSUME_FUTEX_LOCK_PI): Likewise.
47288         [__sparc__ && !__arch64__ && !__sparc_v9__] (__ASSUME_REQUEUE_PI):
47289         Likewise.
47290         * sysdeps/unix/sysv/linux/arm/kernel-features.h
47291         (__ASSUME_FUTEX_LOCK_PI): Undefine.
47292         (__ASSUME_REQUEUE_PI): Likewise.
47293         (__ASSUME_SET_ROBUST_LIST): Likewise.
47294         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
47295         [__LINUX_KERNEL_VERSION < 0x030a00] (__ASSUME_FUTEX_LOCK_PI):
47296         Undefine.
47297         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
47298         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_FUTEX_LOCK_PI):
47299         Likewise.
47300         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_REQUEUE_PI):
47301         Likewise.
47302         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_SET_ROBUST_LIST):
47303         Likewise.
47304         * sysdeps/unix/sysv/linux/mips/kernel-features.h
47305         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_FUTEX_LOCK_PI):
47306         Undefine.
47307         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_REQUEUE_PI): Likewise.
47308         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_SET_ROBUST_LIST):
47309         Likewise.
47310
47311         [BZ #16648]
47312         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
47313         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_FUTIMESAT): Define.
47314         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: New file.
47315
47316 2014-03-31  Will Newton  <will.newton@linaro.org>
47317
47318         * benchtests/Makefile (bench): Add ffs and ffsll to list
47319         of tests.
47320         * benchtests/ffs-inputs: New file.
47321         * benchtests/ffsll-inputs: Likewise.
47322
47323 2014-03-29  Joseph Myers  <joseph@codesourcery.com>
47324
47325         [BZ #16770]
47326         * math/e_scalb.c (__ieee754_scalb): Check second argument is not
47327         too large before casting to int.
47328         * math/e_scalbf.c (__ieee754_scalbf): Likewise.
47329         * math/e_scalbl.c (__ieee754_scalbl): Likewise.
47330         * math/libm-test.inc (scalb_test_data): Add more tests.
47331
47332 2014-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
47333
47334         * benchtests/Makefile (DETAILED_OPT): New make option.
47335         (bench-func): Run benchmark program with -d if DETAILED_OPT is
47336         set.
47337         * benchtests/bench-skeleton.c: Include stdbool.h.
47338         (main): Store and print timings per input.
47339         * benchtests/scripts/bench.py (STRUCT_TEMPLATE): Add timing
47340         member to each argument value.
47341         (EPILOGUE): Define new macros RESULT and RESULT_ACCUM.
47342         (_print_arg_data): Initialize per-input timing to 0.
47343
47344         * benchtests/Makefile (timing-type): New binary.
47345         (bench-clean): Also remove bench-timing-type.
47346         (bench): New target for timing-type.
47347         (bench-func): Print output in JSON format.
47348         * benchtests/bench-skeleton.c (main): Print output in JSON
47349         format.
47350         * benchtests/bench-timing-type.c: New file.
47351         * benchtests/bench-timing.h (TIMING_TYPE): New macro.
47352         (TIMING_PRINT_STATS): Remove.
47353         * benchtests/scripts/bench.py (_print_arg_data): Store variant
47354         name separately.
47355
47356         * benchtests/bench-modf.c: Remove.
47357         * benchtests/modf-inputs: New inputs file.
47358
47359 2014-03-28  Joseph Myers  <joseph@codesourcery.com>
47360
47361         [BZ #16362]
47362         * math/s_clog10.c (M_PI_LOG10E): New macro.
47363         (__clog10): Use M_PI_LOG10E instead of M_PI when real and
47364         imaginary parts are 0.
47365         * math/s_clog10f.c (M_PI_LOG10Ef): New macro.
47366         (__clog10f): Use M_PI_LOG10Ef instead of M_PI when real and
47367         imaginary parts are 0.
47368         * math/s_clog10l.c (M_PI_LOG10El): New macro.
47369         (__clog10l): Use M_PI_LOG10El instead of M_PIl when real and
47370         imaginary parts are 0.
47371         * math/libm-test.inc (clog10_test_data): Update expected results
47372         for when real and imaginary parts are 0.
47373
47374 2014-03-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
47375
47376         * elf/dl-load.c: Finish conversion of __builtin_expect into
47377         __glibc_{un}likely.
47378
47379 2014-03-27  Joseph Myers  <joseph@codesourcery.com>
47380
47381         [BZ #16348]
47382         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]: Use
47383         1+x for argument with exponent below -67.
47384         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]:
47385         Likewise.
47386         * math/auto-libm-test-in: Add more tests of exp.
47387         * math/auto-libm-test-out: Regenerated.
47388
47389 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
47390
47391         [BZ #16759]
47392         * inet/getnetgrent_r.c (get_nonempty_val): New function.
47393         (nscd_getnetgrent): Use it.
47394
47395         [BZ #16760]
47396         * nscd/netgroupcache.c (addgetnetgrentX): Use memmove instead
47397         of stpcpy.
47398
47399 2014-03-27  Andi Kleen  <ak@linux.intel.com>
47400
47401         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock)
47402         (lll_robust_lock, lll_cond_lock, lll_timedlock)
47403         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
47404         (lll_robust_unlock): Remove out of line section. Use cfi
47405         intrinsics.
47406         (LLL_STUB_UNWIND_INFO*): Remove.
47407         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock)
47408         (lll_robust_lock, lll_cond_lock, lll_timedlock)
47409         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
47410         (lll_robust_unlock): Remove out of line section. Use cfi
47411         intrinsics.
47412         (LLL_STUB_UNWIND_INFO*): Remove.
47413
47414 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
47415
47416         [BZ #16758]
47417         * nscd/netgroupcache.c (addinnetgrX): Succeed if triplet has
47418         blank values.
47419
47420 2014-03-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
47421
47422         * elf/dl-load.c: Convert __builtin_expect into __glibc_{un}likely.
47423
47424 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
47425
47426         [BZ #16198]
47427         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Use fldenv after
47428         fnstenv.
47429         * math/test-fenv-preserve.c: New file.
47430         * math/Makefile (tests): Add test-fenv-preserve.
47431
47432 2014-03-26  Will Newton <will.newton@linaro.org>
47433
47434         * benchtests/bench-strtod.c (TIMEOUT): Define to 10.
47435
47436 2014-03-25  Roland McGrath  <roland@hack.frob.com>
47437
47438         * scripts/versionlist.awk: Partition the version sets and emit all
47439         GLIBC_* (sorted) before all others (sorted).
47440
47441 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
47442
47443         * elf/Versions (libc) [EXPORT_UNWIND_FIND_FDE]: Add empty
47444         GLIBC_2.2.5 version.
47445
47446 2014-03-25 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47447
47448         * scripts/localplt.awk: Check for PLT generated by internal IFUNC
47449         calls.
47450
47451         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Revert
47452         previous change.
47453
47454         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
47455
47456 2014-03-25  Andreas Schwab  <schwab@suse.de>
47457
47458         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Add out_fail2
47459         label to be used after in6ailist is initialized.
47460
47461 2014-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47462
47463         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
47464         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
47465
47466 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
47467
47468         [BZ #16357]
47469         [BZ #16599]
47470         * math/gen-auto-libm-tests.c (fp_format_desc): Add field
47471         min_plus_half.
47472         (fp_formats): Update initializers.
47473         (init_fp_formats): Initialize new field.
47474         (output_for_one_input_case): Allow underflow for results up to
47475         min_plus_half.
47476         * math/libm-test.inc (log1p_test): Use ALL_RM_TEST.
47477         * math/auto-libm-test-in: Don't mark some underflows from asin and
47478         atanh as spurious.
47479         * math/auto-libm-test-out: Regenerated.
47480         * sysdeps/i386/fpu/libm-test-ulps: Update.
47481         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47482
47483 2014-03-25  Andreas Schwab  <schwab@suse.de>
47484
47485         * libio/Makefile (tst-ftell-partial-wide-ENV)
47486         (tst-ftell-active-handler-ENV): Define.
47487
47488 2014-03-25  Stefan Liebler <stli@linux.vnet.ibm.com>
47489
47490         * NEWS: Add 16712, 16713, 16714 to fixed bug list.
47491
47492 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
47493
47494         * elf/tst-dlopen-aout.c: Adjust comments. Use test-skeleton.c
47495
47496 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
47497
47498         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math.h>.
47499         * sysdeps/x86_64/fpu/multiarch/e_exp.c
47500         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
47501
47502 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
47503
47504         [BZ #16634]
47505         * elf/dl-load.c (open_verify): Add mode parameter.
47506         Error early when ET_EXEC and mode does not have __RTLD_OPENEXEC.
47507         (open_path): Change from boolean 'secure' to complete flag 'mode'
47508         (_dl_map_object): Adjust.
47509         * elf/Makefile (tests): Add tst-dlopen-aout.
47510         * elf/tst-dlopen-aout.c: New test.
47511
47512 2014-03-24  Stefan Liebler <stli@linux.vnet.ibm.com>
47513
47514         [BZ #16714]
47515         * sysdeps/unix/sysv/linux/s390/bits/stat.h
47516         (struct stat): Rename member pad0 to __glibc_reserved0.
47517
47518         [BZ #16712]
47519         * sysdeps/s390/s390-32/bits/wordsize.h
47520         (__WORDSIZE32_SIZE_ULONG): New define.
47521         * sysdeps/s390/s390-64/bits/wordsize.h
47522         (__WORDSIZE32_SIZE_ULONG): Likewise.
47523         * sysdeps/generic/stdint.h (SIZE_MAX):
47524         Define as UL if __WORDSIZE32_SIZE_ULONG.
47525
47526         [BZ #16713]
47527         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
47528         (__glibc_reserved0): New variable.
47529         (sa_flags): Change type to int.
47530
47531         * posix/Makefile (before-compile): Use += before-compile instead
47532         of a :=.
47533
47534         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
47535         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
47536
47537 2014-03-20  Andreas Schwab  <schwab@suse.de>
47538
47539         [BZ #16743]
47540         * sysdeps/posix/getaddrinfo.c (gaih_inet): Properly skip over
47541         non-matching result from nscd.
47542
47543 2014-03-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
47544
47545         * scripts/bench.py: Moved to ...
47546         * benchtests/scripts/bench.py: ... here.
47547         * benchtests/Makefile ($(objpfx)bench-%.c): Adjust.
47548
47549 2014-03-24  Andreas Schwab  <schwab@suse.de>
47550
47551         [BZ #16002]
47552         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use
47553         alloca_account and account alloca use for struct in6ailist.
47554
47555 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
47556
47557         [BZ #16284]
47558         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use original
47559         rounding mode to recompute results that overflow to infinity or
47560         underflow to zero.
47561         * math/auto-libm-test-in: Don't mark tests as expected to fail for
47562         bug 16284.
47563         * math/auto-libm-test-out: Regenerated.
47564         * math/libm-test.inc (ccos_test): Use ALL_RM_TEST.
47565         (ccosh_test): Likewise.
47566         (csin_test_data): Use plus_oflow.
47567         (csin_test): Use ALL_RM_TEST.
47568         (csinh_test_data): Use plus_oflow.
47569         (csinh_test): Use ALL_RM_TEST.
47570         * sysdeps/i386/fpu/libm-test-ulps: Update.
47571         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47572
47573 2014-03-21  Joseph Myers  <joseph@codesourcery.com>
47574
47575         * sysdeps/mips/bits/wordsize.h: Include <sgidefs.h>.
47576         * sysdeps/unix/sysv/linux/mips/getrlimit64.c: Likewise.
47577         * sysdeps/unix/sysv/linux/mips/setrlimit64.c: Likewise.
47578
47579         [BZ #16731]
47580         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Take absolute value
47581         when x - 1 is zero.
47582         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
47583         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
47584         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
47585         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Return +0 when
47586         argument is 1.
47587         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Likewise.
47588         * sysdeps/x86_64/fpu/e_logl.S: Take absolute value when x - 1 is
47589         zero.
47590         * math/libm-test.inc (log_test): Use ALL_RM_TEST.
47591         * sysdeps/i386/fpu/libm-test-ulps: Update.
47592         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47593
47594 2014-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
47595
47596         * scripts/bench.pl: Remove file.
47597         * scripts/bench.py: New benchmark script.
47598         * benchtests/Makefile ($(objpfx)bench-%.c): Use it.
47599         * benchtests/README: Mention python dependency.
47600         * scripts/pylintrc: New file.
47601         * scripts/pylint: New file.
47602
47603         * bits/mathdef.h: Use #ifdef instead of #if.
47604         * sysdeps/arm/bits/mathdef.h [defined __USE_ISOC99 && defined
47605         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
47606         * sysdeps/tile/bits/mathdef.h [defined __USE_ISOC99 && defined
47607         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
47608         * sysdeps/x86/bits/mathdef.h [defined __USE_ISOC99 && defined
47609         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
47610
47611 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47612             Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
47613
47614         * string/strpbrk.c (strpbrk): Using macro to redefine symbol name.
47615         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpbrk-power7
47616         and strpbrk-ppc64 objects.
47617         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
47618         (__libc_ifunc_impl_list): Add new strpbrk optimized symbols.
47619         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-power7.S: New file:
47620         multiarch strpbrk for POWER7.
47621         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: New file:
47622         multiarch strpbrk for PPC64.
47623         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: New file: strpbrk
47624         ifunc selector.
47625         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: New file: optimited
47626         strpbrk for POWER7.
47627
47628 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
47629
47630         * math/libm-test.inc (asinh_test): Use ALL_RM_TEST.
47631         (atan_test): Likewise.
47632         (atanh_test_data): Use NO_TEST_INLINE for two tests.
47633         (atanh_test): Use ALL_RM_TEST.
47634         (atan2_test_data): Likewise.
47635         (cabs_test): Likewise.
47636         (cacosh_test): Likewise.
47637         (carg_test): Likewise.
47638         (casin_test): Likewise.
47639         (casinh_test): Likewise.
47640         (cbrt_test): Likewise.
47641         (csqrt_test): Likewise.
47642         (erf_test): Likewise.
47643         (erfc_test): Likewise.
47644         (pow10_test): Likewise.
47645         (exp2_test): Likewise.
47646         (hypot_test): Likewise.
47647         (j0_test): Likewise.
47648         (j1_test): Likewise.
47649         (lgamma_test): Likewise.
47650         (gamma_test): Likewise.
47651         (sincos_test): Likewise.
47652         (tanh_test): Likewise.
47653         (y0_test): Likewise.
47654         (y1_test): Likewise.
47655         * sysdeps/i386/fpu/libm-test-ulps: Update.
47656         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47657
47658 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47659
47660         * string/strcspn.c (strcspn): Using macro to redefine symbol name.
47661         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcspn-power7
47662         and strcspn-ppc64 objects.
47663         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
47664         (__libc_ifunc_impl_list): Add new strcspn optimized symbols.
47665         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power7.S: New file:
47666         multiarch strcspn for POWER7.
47667         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: New file:
47668         multiarch strcspn for PPC64.
47669         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: New file: strcspn
47670         ifunc selector.
47671         * sysdeps/powerpc/powerpc64/power7/strcspn.S: New file: optimited
47672         strcspn for POWER7.
47673
47674 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
47675
47676         * math/gen-libm-test.pl (generate_testfile): Expect only function
47677         name as argument to AUTO_TESTS_* and pass results for all rounding
47678         modes to parse_args.
47679         (parse_auto_input): Separate inputs of automatic tests from
47680         outputs before storing in %auto_tests.
47681         * math/libm-test.inc (acos_test_data): Update call to
47682         AUTO_TESTS_f_f.
47683         (acos_test): Use ALL_RM_TEST.
47684         (acos_tonearest_test_data): Remove.
47685         (acos_test_tonearest): Likewise.
47686         (acos_towardzero_test_data): Likewise.
47687         (acos_test_towardzero): Likewise.
47688         (acos_downward_test_data): Likewise.
47689         (acos_test_downward): Likewise.
47690         (acos_upward_test_data): Likewise.
47691         (acos_test_upward): Likewise.
47692         (acosh_test_data): Update call to AUTO_TESTS_f_f.
47693         (asin_test_data): Likewise.
47694         (asin_test): Use ALL_RM_TEST.
47695         (asin_tonearest_test_data): Remove.
47696         (asin_test_tonearest): Likewise.
47697         (asin_towardzero_test_data): Likewise.
47698         (asin_test_towardzero): Likewise.
47699         (asin_downward_test_data): Likewise.
47700         (asin_test_downward): Likewise.
47701         (asin_upward_test_data): Likewise.
47702         (asin_test_upward): Likewise.
47703         (asinh_test_data): Update call to AUTO_TESTS_f_f.
47704         (atan_test_data): Likewise.
47705         (atanh_test_data): Likewise.
47706         (atan2_test_data): Update call to AUTO_TESTS_ff_f.
47707         (cabs_test_data): Update call to AUTO_TESTS_c_f.
47708         (carg_test_data): Likewise.
47709         (cbrt_test_data): Update call to AUTO_TESTS_f_f.
47710         (ccos_test_data): Update call to AUTO_TESTS_c_c.
47711         (ccosh_test_data): Likewise.
47712         (cexp_test_data): Likewise.
47713         (clog_test_data): Likewise.
47714         (clog10_test_data): Likewise.
47715         (cos_test_data): Update call to AUTO_TESTS_f_f.
47716         (cos_test): Use ALL_RM_TEST.
47717         (cos_tonearest_test_data): Remove.
47718         (cos_test_tonearest): Likewise.
47719         (cos_towardzero_test_data): Likewise.
47720         (cos_test_towardzero): Likewise.
47721         (cos_downward_test_data): Likewise.
47722         (cos_test_downward): Likewise.
47723         (cos_upward_test_data): Likewise.
47724         (cos_test_upward): Likewise.
47725         (cosh_test_data): Update call to AUTO_TESTS_f_f.
47726         (cosh_test): Use ALL_RM_TEST.
47727         (cosh_tonearest_test_data): Remove.
47728         (cosh_test_tonearest): Likewise.
47729         (cosh_towardzero_test_data): Likewise.
47730         (cosh_test_towardzero): Likewise.
47731         (cosh_downward_test_data): Likewise.
47732         (cosh_test_downward): Likewise.
47733         (cosh_upward_test_data): Likewise.
47734         (cosh_test_upward): Likewise.
47735         (cpow_test_data): Update call to AUTO_TESTS_cc_c.
47736         (csqrt_test_data): Update call to AUTO_TESTS_c_c.
47737         (ctan_test_data): Likewise.
47738         (ctan_test): Use ALL_RM_TEST.
47739         (ctan_tonearest_test_data): Remove.
47740         (ctan_test_tonearest): Likewise.
47741         (ctan_towardzero_test_data): Likewise.
47742         (ctan_test_towardzero): Likewise.
47743         (ctan_downward_test_data): Likewise.
47744         (ctan_test_downward): Likewise.
47745         (ctan_upward_test_data): Likewise.
47746         (ctan_test_upward): Likewise.
47747         (ctanh_test_data): Update call to AUTO_TESTS_c_c.
47748         (ctanh_test): Use ALL_RM_TEST.
47749         (ctanh_tonearest_test_data): Remove.
47750         (ctanh_test_tonearest): Likewise.
47751         (ctanh_towardzero_test_data): Likewise.
47752         (ctanh_test_towardzero): Likewise.
47753         (ctanh_downward_test_data): Likewise.
47754         (ctanh_test_downward): Likewise.
47755         (ctanh_upward_test_data): Likewise.
47756         (ctanh_test_upward): Likewise.
47757         (erf_test_data): Update call to AUTO_TESTS_f_f.
47758         (erfc_test_data): Likewise.
47759         (exp_test_data): Likewise.
47760         (exp_test): Use ALL_RM_TEST.
47761         (exp_tonearest_test_data): Remove.
47762         (exp_test_tonearest): Likewise.
47763         (exp_towardzero_test_data): Likewise.
47764         (exp_test_towardzero): Likewise.
47765         (exp_downward_test_data): Likewise.
47766         (exp_test_downward): Likewise.
47767         (exp_upward_test_data): Likewise.
47768         (exp_test_upward): Likewise.
47769         (exp10_test_data): Update call to AUTO_TESTS_f_f.
47770         (exp10_test): Use ALL_RM_TEST.
47771         (exp10_tonearest_test_data): Remove.
47772         (exp10_test_tonearest): Likewise.
47773         (exp10_towardzero_test_data): Likewise.
47774         (exp10_test_towardzero): Likewise.
47775         (exp10_downward_test_data): Likewise.
47776         (exp10_test_downward): Likewise.
47777         (exp10_upward_test_data): Likewise.
47778         (exp10_test_upward): Likewise.
47779         (exp2_test_data): Update call to AUTO_TESTS_f_f.
47780         (expm1_test_data): Likewise.
47781         (expm1_test): Use ALL_RM_TEST.
47782         (expm1_tonearest_test_data): Remove.
47783         (expm1_test_tonearest): Likewise.
47784         (expm1_towardzero_test_data): Likewise.
47785         (expm1_test_towardzero): Likewise.
47786         (expm1_downward_test_data): Likewise.
47787         (expm1_test_downward): Likewise.
47788         (expm1_upward_test_data): Likewise.
47789         (expm1_test_upward): Likewise.
47790         (fma_test_data): Update call to AUTO_TESTS_fff_f.
47791         (fma_test): Use ALL_RM_TEST.
47792         (fma_towardzero_test_data): Remove.
47793         (fma_test_towardzero): Likewise.
47794         (fma_downward_test_data): Likewise.
47795         (fma_test_downward): Likewise.
47796         (fma_upward_test_data): Likewise.
47797         (fma_test_upward): Likewise.
47798         (hypot_test_data): Update call to AUTO_TESTS_ff_f.
47799         (j0_test_data): Update call to AUTO_TESTS_f_f.
47800         (j1_test_data): Likewise.
47801         (jn_test_data): Update call to AUTO_TESTS_if_f.
47802         (lgamma_test_data): Update call to AUTO_TESTS_f_f1.
47803         (log_test_data): Update call to AUTO_TESTS_f_f.
47804         (log10_test_data): Likewise.
47805         (log1p_test_data): Likewise.
47806         (log2_test_data): Likewise.
47807         (pow_test_data): Update call to AUTO_TESTS_ff_f.
47808         (pow_tonearest_test_data): Likewise.
47809         (sin_test_data): Update call to AUTO_TESTS_f_f.
47810         (sin_test): Use ALL_RM_TEST.
47811         (sin_tonearest_test_data): Remove.
47812         (sin_test_tonearest): Likewise.
47813         (sin_towardzero_test_data): Likewise.
47814         (sin_test_towardzero): Likewise.
47815         (sin_downward_test_data): Likewise.
47816         (sin_test_downward): Likewise.
47817         (sin_upward_test_data): Likewise.
47818         (sin_test_upward): Likewise.
47819         (sincos_test_data): Update call to AUTO_TESTS_fFF_11.
47820         (sinh_test_data): Update call to AUTO_TESTS_f_f.
47821         (sinh_test): Use ALL_RM_TEST.
47822         (sinh_tonearest_test_data): Remove.
47823         (sinh_test_tonearest): Likewise.
47824         (sinh_towardzero_test_data): Likewise.
47825         (sinh_test_towardzero): Likewise.
47826         (sinh_downward_test_data): Likewise.
47827         (sinh_test_downward): Likewise.
47828         (sinh_upward_test_data): Likewise.
47829         (sinh_test_upward): Likewise.
47830         (sqrt_test_data): Update call to AUTO_TESTS_f_f.
47831         (sqrt_test): Use ALL_RM_TEST.
47832         (sqrt_tonearest_test_data): Remove.
47833         (sqrt_test_tonearest): Likewise.
47834         (sqrt_towardzero_test_data): Likewise.
47835         (sqrt_test_towardzero): Likewise.
47836         (sqrt_downward_test_data): Likewise.
47837         (sqrt_test_downward): Likewise.
47838         (sqrt_upward_test_data): Likewise.
47839         (sqrt_test_upward): Likewise.
47840         (tan_test_data): Update call to AUTO_TESTS_f_f.
47841         (tan_test): Use ALL_RM_TEST.
47842         (tan_tonearest_test_data): Remove.
47843         (tan_test_tonearest): Likewise.
47844         (tan_towardzero_test_data): Likewise.
47845         (tan_test_towardzero): Likewise.
47846         (tan_downward_test_data): Likewise.
47847         (tan_test_downward): Likewise.
47848         (tan_upward_test_data): Likewise.
47849         (tan_test_upward): Likewise.
47850         (tanh_test_data): Update call to AUTO_TESTS_f_f.
47851         (tgamma_test_data): Likewise.
47852         (y0_test_data): Likewise.
47853         (y1_test_data): Likewise.
47854         (yn_test_data): Update call to AUTO_TESTS_if_f.
47855         (main): Do not call removed functions.
47856
47857 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
47858
47859         * math/libm-test.inc (fdim_test): Use ALL_RM_TEST.
47860         (ldexp_test_data): Remove.
47861         (ldexp_test): Move to after scalbn_test.  Use ALL_RM_TEST with
47862         scalbn_test_data.
47863         (scalb_test): Use ALL_RM_TEST.
47864
47865 2014-03-19  Andreas Schwab  <schwab@suse.de>
47866
47867         * nscd/nscd.service: Also invalidate netgroup cache on reload.
47868
47869 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
47870
47871         [BZ #16649]
47872         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
47873         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PREADV): Undefine.
47874         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PWRITEV): Likewise.
47875         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
47876         (__ASSUME_PREADV): Undefine.
47877         (__ASSUME_PWRITEV): Likewise.
47878
47879 2014-03-18  Roland McGrath  <roland@hack.frob.com>
47880
47881         * bits/mman-linux.h: Add comment about non-Linux use.
47882         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add comment about
47883         bits/mman-linux.h resting place.
47884
47885         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Moved to ...
47886         * bits/mman-linux.h: ... here.
47887
47888 2014-03-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47889
47890         * conform/conformtest.pl: Add standard definition when calling C
47891         preprocessor on data files.
47892         (checknamespace): Remove unused variable.
47893
47894 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
47895
47896         * math/gen-libm-test.pl (parse_args): Handle plus_oflow,
47897         minus_oflow, plus_uflow and minus_uflow in expected results.
47898         * math/libm-test.inc (scalbn_test_data): Add more tests of
47899         negative arguments.  Use plus_oflow, minus_oflow, plus_uflow and
47900         minus_uflow.
47901         (scalbn_test): Use ALL_RM_TEST.
47902         (scalbln_test_data): Add more tests of negative arguments.  Use
47903         plus_oflow, minus_oflow, plus_uflow and minus_uflow.
47904         (scalbln_test): Use ALL_RM_TEST.
47905
47906 2014-03-18  Roland McGrath  <roland@hack.frob.com>
47907
47908         * scripts/abilist.awk: Ignore symbols marked with .hidden.
47909
47910 2014-03-18  Will Newton  <will.newton@linaro.org>
47911
47912         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Remove
47913         inaccurate comment.
47914
47915 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
47916
47917         * Makerules [!subdir] (check-abi): Exit with error status if a
47918         test failed.
47919
47920 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
47921
47922         * math/libm-test.inc (nearbyint_test_data): Include all tests used
47923         for rint.  Include results for all rounding modes.
47924         (nearbyint_test): Use ALL_RM_TEST.
47925         (rint_test_data): Include all tests used for nearbyint.
47926
47927 2014-03-17  Will Newton  <will.newton@linaro.org>
47928
47929         * nptl/sysdeps/pthread/pthread.h: Revert previous
47930         change.
47931
47932         * sysdeps/generic/ldsodefs.h: Revert previous
47933         change.
47934
47935         * libio/genops.c: Revert previous change.
47936         * libio/libioP.h: Likewise.
47937         * stdio-common/vfprintf.c: Likewise.
47938
47939         * sysdeps/generic/math_private.h: Revert previous
47940         change.
47941
47942         * sysdeps/generic/math_private.h: Check whether
47943         HAVE_RM_CTX is defined with #ifdef rather
47944         than #if.
47945
47946         * argp/argp-fmtstream.h: Check whether
47947         __STRICT_ANSI__ is defined with #ifdef rather
47948         than #if.
47949         * argp/argp.h: Likewise.
47950
47951         * libio/genops.c: Check whether
47952         _IO_JUMPS_OFFSET is defined with #ifdef rather
47953         than #if.
47954         * libio/libioP.h: Likewise.
47955         * stdio-common/vfprintf.c: Likewise.
47956
47957         * sysdeps/generic/ldsodefs.h: Check whether
47958         HP_SMALL_TIMING_AVAIL is defined with #ifdef rather
47959         than #if.
47960
47961         * nptl/sysdeps/pthread/pthread.h: Check
47962         __PTHREAD_MUTEX_HAVE_ELISION is defined before testing
47963         its value.
47964
47965 2014-03-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
47966
47967         * libio/iofdopen.c (_IO_new_fdopen): Seek to end only if
47968         setting O_APPEND.
47969         * libio/tst-ftell-active-handler.c (do_append_test): Add a
47970         test case.
47971
47972         [BZ #16680]
47973         * libio/fileops.c (_IO_file_open): Seek to end of file but
47974         don't cache the offset.
47975         (get_file_offset): Remove function.
47976         (do_ftell): Use cached offset when available.
47977         * libio/iofdopen.c (_IO_new_fdopen): Seek to end of file but
47978         don't cache the offset.
47979         * libio/tst-ftell-active-handler.c (do_rewind_test): New test
47980         case.
47981         (do_one_test): Call it.
47982         (do_ftell_test): Fix up expected old offset for a+ mode.
47983         * libio/wfileops.c (do_ftell_wide): Used cached offset when
47984         available.
47985
47986         * libio/tst-ftell-active-handler.c (do_ftell_test): Don't mix
47987         up test status with function return status.
47988         (do_write_test): Likewise.
47989         (do_append_test): Likewise.
47990
47991         * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
47992         && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
47993         Remove.
47994
47995 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
47996
47997         * math/gen-libm-test.pl (parse_args): Handle results specified for
47998         each rounding mode separately.
47999         * math/libm-test.inc (lrint_test_data): Merge in per-rounding-mode
48000         tests and results from lrint_tonearest_test_data,
48001         lrint_towardzero_test_data, lrint_downward_test_data and
48002         lrint_upward_test_data.
48003         (lrint_test): Use ALL_RM_TEST.
48004         (lrint_tonearest_test_data): Remove.
48005         (lrint_test_tonearest): Likewise.
48006         (lrint_towardzero_test_data): Likewise.
48007         (lrint_test_towardzero): Likewise.
48008         (lrint_downward_test_data): Likewise.
48009         (lrint_test_downward): Likewise.
48010         (lrint_upward_test_data): Likewise.
48011         (lrint_test_upward): Likewise.
48012         (llrint_test_data): Merge in per-rounding-mode tests and results
48013         from llrint_tonearest_test_data, llrint_towardzero_test_data,
48014         llrint_downward_test_data and llrint_upward_test_data.
48015         (llrint_test): Use ALL_RM_TEST.
48016         (llrint_tonearest_test_data): Remove.
48017         (llrint_test_tonearest): Likewise.
48018         (llrint_towardzero_test_data): Likewise.
48019         (llrint_test_towardzero): Likewise.
48020         (llrint_downward_test_data): Likewise.
48021         (llrint_test_downward): Likewise.
48022         (llrint_upward_test_data): Likewise.
48023         (llrint_test_upward): Likewise.
48024         (rint_test_data): Merge in per-rounding-mode tests and results
48025         from rint_tonearest_test_data, rint_towardzero_test_data,
48026         rint_downward_test_data and rint_upward_test_data.  Add
48027         per-rounding-mode results for tests not in those arrays.
48028         (rint_test): Use ALL_RM_TEST.
48029         (rint_tonearest_test_data): Remove.
48030         (rint_test_tonearest): Likewise.
48031         (rint_towardzero_test_data): Likewise.
48032         (rint_test_towardzero): Likewise.
48033         (rint_downward_test_data): Likewise.
48034         (rint_test_downward): Likewise.
48035         (rint_upward_test_data): Likewise.
48036         (rint_test_upward): Likewise.
48037         (main): Don't call removed functions.
48038
48039 2014-03-14  Roland McGrath  <roland@hack.frob.com>
48040
48041         * csu/Makefile ($(objpfx)version-info.h): Remove linux-specific
48042         "Compiled on ..." crapola.  It is anti-useful.
48043
48044 2014-03-14  Joseph Myers  <joseph@codesourcery.com>
48045
48046         * scripts/evaluate-test.sh: Handle fourth argument to determine
48047         whether test run should stop on failure.
48048         * Makeconfig (stop-on-test-failure): New variable.
48049         (evaluate-test): Pass fourth argument to evaluate-test.sh based on
48050         $(stop-on-test-failure).
48051         * Makefile (tests): Give a summary of results from testing and
48052         exit with failure status if they include an ERROR or FAIL.
48053         (xtests): Likewise.
48054         * manual/install.texi (Configuring and compiling): Mention
48055         stop-on-test-failure=y.
48056         * INSTALL: Regenerated.
48057
48058 2014-03-14  Roland McGrath  <roland@hack.frob.com>
48059
48060         * scripts/versionlist.awk: New file.
48061         * Makerules [$(build-shared) = yes]
48062         (postclean-generated): Add Versions.def, not Versions.def.v and
48063         Versions.def.v.i.
48064         ($(common-objpfx)Versions.def.v.i): Target removed.
48065         ($(common-objpfx)Versions.def): New target.
48066         ($(common-objpfx)Versions.all): Depend on that rather that
48067         $(common-objpfx)Versions.def.v.
48068         * Versions.def: File removed.
48069
48070         * Makeconfig (+gccwarn): Add -Wundef.
48071         * include/errno.h [IS_IN_rtld] [!RTLD_PRIVATE_ERRNO]: #error to catch
48072         a dl-sysdep.h breaking its contract.
48073         [!IS_IN_rtld] (RTLD_PRIVATE_ERRNO): Define it to 0.
48074         * include/stackinfo.h: New file.
48075         * nptl/sysdeps/i386/tls.h (TLS_DTV_AT_TP): New macro.
48076         * nptl/sysdeps/powerpc/tls.h (TLS_TCB_AT_TP): New macro.
48077         * nptl/sysdeps/s390/tls.h (TLS_DTV_AT_TP): New macro.
48078         * nptl/sysdeps/sh/tls.h (TLS_TCB_AT_TP): New macro.
48079         * nptl/sysdeps/sparc/tls.h (TLS_DTV_AT_TP): New macro.
48080         * nptl/sysdeps/x86_64/tls.h (TLS_DTV_AT_TP): New macro.
48081         * sysdeps/aarch64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
48082         * sysdeps/alpha/nptl/tls.h (TLS_TCB_AT_TP): New macro.
48083         * sysdeps/arm/nptl/tls.h (TLS_TCB_AT_TP): New macro.
48084         * sysdeps/ia64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
48085         * sysdeps/m68k/nptl/tls.h (TLS_TCB_AT_TP): New macro.
48086         * sysdeps/mach/hurd/i386/tls.h (TLS_DTV_AT_TP): New macro.
48087         * sysdeps/microblaze/nptl/tls.h (TLS_TCB_AT_TP): New macro.
48088         * sysdeps/mips/nptl/tls.h (TLS_TCB_AT_TP): New macro.
48089         * sysdeps/tile/nptl/tls.h (TLS_TCB_AT_TP): New macro.
48090
48091 2014-03-14  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48092
48093         [BZ #16707]
48094         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Remove wrong
48095         implementation.
48096         * math/libm-test.inc (round_test_data): Add more tests.
48097
48098         [BZ #16706]
48099         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Remove wrong
48100         implementation.
48101         * math/libm-test.inc (nearbyint_test_data): Add more tests.
48102
48103         [BZ #16701]
48104         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Remove wrong
48105         implementation.
48106         * math/libm-test.inc (ceil_test_data): Add more tests.
48107
48108         * math/libm-test.inc (trunc_test_data): Add more tests related to
48109         BZ#16414.
48110
48111 2014-03-14  Roland McGrath  <roland@hack.frob.com>
48112
48113         * nptl/pthread_create.c (__pthread_create_2_1): Test TLS_TCB_AT_TP
48114         with #if rather than #ifdef.
48115         * nptl/sysdeps/pthread/createthread.c (create_thread): Likewise.
48116
48117 2014-03-14  H.J. Lu  <hongjiu.lu@intel.com>
48118
48119         * sysdeps/x86_64/configure.ac: Check AVX-512 assembler support
48120         first.  Disable AVX-512 GCC support if assembler doesn't support
48121         it.
48122         * sysdeps/x86_64/configure: Regenerated.
48123
48124 2014-03-13  Carlos O'Donell  <carlos@redhat.com>
48125
48126         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack)
48127         [!_STACK_GROWS_DOWN]: Don't add stacksize to stackaddr.
48128         (__old_pthread_attr_setstack): Likewise.
48129         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack)
48130         [!_STACK_GROWS_DOWN]: Likewise.
48131
48132 2014-03-13  Mike Frysinger  <vapier@gentoo.org>
48133
48134         * config.make.in (have-bash2): Delete.
48135         * configure.ac (libc_cv_have_bash2): Delete.
48136         * configure: Regenerate.
48137         * elf/Makefile (common-ldd-rewrite): Rename to ...
48138         (ldd-rewrite): ... this.  Move bash-ldd-rewrite content to end.
48139         (sh-ldd-rewrite): Delete.
48140         (bash-ldd-rewrite): Delete.
48141         (have-bash2): Delete checks.
48142         [ldd-rewrite-script]: Change $(ldd-shell)-ldd-rewrite to
48143         ldd-rewrite.
48144
48145         * config.make.in (have-ksh): Delete.
48146         (KSH): Delete.
48147         * configure.ac (libc_cv_have_ksh): Delete.
48148         * configure: Regenerate.
48149
48150         * elf/Makefile: Delete $(have-ksh) check.
48151         ($(objpfx)sotruss): Change KSH to BASH.
48152         * elf/sotruss.ksh: Rename to ...
48153         * elf/sotruss.sh: ... this.  Change @KSH@ to @BASH@.  Change
48154         function style to match POSIX.  Drop ksh vim mode setting.
48155
48156         * manual/time.texi (Specifying the Time Zone with TZ): Change
48157         Tuesday to Thursday.
48158
48159         * debug/tst-longjmp_chk2.c: Update header comment.
48160         (stackoverflow_handler): Add comment.  Call assert on pass value.
48161
48162 2014-03-13  Igor Zamyatin  <igor.zamyatin@intel.com>
48163
48164         [BZ #16194]
48165         * config.h.in (HAVE_AVX512_SUPPORT): New #undef.
48166         (HAVE_AVX512_ASM_SUPPORT): Likewise.
48167         * sysdeps/x86_64/bits/link.h (La_x86_64_zmm): New.
48168         (La_x86_64_vector): Add zmm.
48169         * sysdeps/x86_64/Makefile (tests): Add tst-audit10.
48170         (modules-names): Add tst-auditmod10a and tst-auditmod10b.
48171         ($(objpfx)tst-audit10): New target.
48172         ($(objpfx)tst-audit10.out): Likewise.
48173         (tst-audit10-ENV): New.
48174         (AVX512-CFLAGS): Likewise.
48175         (CFLAGS-tst-audit10.c): Likewise.
48176         (CFLAGS-tst-auditmod10a.c): Likewise.
48177         (CFLAGS-tst-auditmod10b.c): Likewise.
48178         * sysdeps/x86_64/configure.ac: Set config-cflags-avx512,
48179         HAVE_AVX512_SUPPORT and HAVE_AVX512_ASM_SUPPORT.
48180         * sysdeps/x86_64/configure: Regenerated.
48181         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Add
48182         AVX-512 zmm register support.
48183         (_dl_x86_64_save_sse): Likewise.
48184         (_dl_x86_64_restore_sse): Likewise.
48185         * sysdeps/x86_64/dl-trampoline.h: Updated to support different
48186         size vector registers.
48187         * sysdeps/x86_64/link-defines.sym (YMM_SIZE): New.
48188         (ZMM_SIZE): Likewise.
48189         * sysdeps/x86_64/tst-audit10.c: New file.
48190         * sysdeps/x86_64/tst-auditmod10a.c: Likewise.
48191         * sysdeps/x86_64/tst-auditmod10b.c: Likewise.
48192
48193 2014-03-13  Roland McGrath  <roland@hack.frob.com>
48194
48195         * configure.ac (HAVE_EHDR_START): New check.
48196         * configure: Regenerated.
48197         * config.h.in (HAVE_EHDR_START): New #undef.
48198         * elf/rtld.c (dl_main) [HAVE_EHDR_START]: Use __ehdr_start rather than
48199         assuming the lowest-addressed segment maps the start of the file.
48200
48201 2014-03-13  Joseph Myers  <joseph@codesourcery.com>
48202
48203         * INSTALL: Regenerated.
48204
48205 2014-03-13  Will Newton  <will.newton@linaro.org>
48206
48207         * manual/setjmp.texi (System V contexts): Improve
48208         clarity and grammar of documentation.
48209
48210 2014-03-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
48211
48212         [BZ #16381]
48213         * elf/Makefile (tests): Add tst-pie2.
48214         (tests-pie): Add tst-pie2.
48215         * elf/tst-pie2.c: New file.
48216         * elf/dl-load.c (_dl_map_object_from_fd): Assert correct l_type
48217         for ET_EXEC.
48218         * elf/rtld.c (map_doit): Load executable as lt_executable.
48219         (dl_main): Likewise.
48220
48221 2014-03-12  Joseph Myers  <joseph@codesourcery.com>
48222
48223         [BZ #16642]
48224         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
48225         (__ASSUME_PSELECT): Undefine.
48226
48227 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48228
48229         [BZ #16689]
48230         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S
48231         (__bzero_ppc): Call memset@local instead of __memset_ppc@local for
48232         static build.
48233         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Build IFUNC
48234         selector for static builds.
48235
48236 2014-03-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
48237
48238         [BZ #16695]
48239         * nscd/netgroupcache.c (addgetnetgrentX): Factor in space for
48240         key in the buffer.
48241
48242 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48243
48244         * sysdeps/powerpc/powerpc64/multiarch/strspn.c (strspn): Build
48245         IFUNC selector for static builds.
48246
48247 2014-03-11  Joseph Myers  <joseph@codesourcery.com>
48248
48249         * sysdeps/mips/math_private.h [__mips_hard_float]
48250         (libc_feresetround_ctx): Define to libc_feupdateenv_mips_ctx not
48251         libc_feresetround_mips_ctx.
48252         [__mips_hard_float] (libc_feresetroundf_ctx): Likewise.
48253         [__mips_hard_float] (libc_feresetroundl_ctx): Likewise.
48254         [__mips_hard_float] (libc_feresetround_mips_ctx): Remove.
48255
48256         [BZ #16677]
48257         * math/s_nextafter.c (__nextafter): Do not return value from
48258         overflowing computation.
48259         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
48260         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
48261         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
48262         Likewise.
48263         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
48264         Likewise.
48265         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
48266         * math/libm-test.inc (nextafter_test): Use ALL_RM_TEST.
48267
48268 2014-03-11  Roland McGrath  <roland@hack.frob.com>
48269
48270         * sysdeps/arm/setjmp.S: Use sfi_breg on stores of mangled registers.
48271         * sysdeps/arm/__longjmp.S: Use sfi_breg on loads of mangled registers.
48272         Move sfi_sp use from the load-multiple (that no longer sets sp) to
48273         the new mov targetting sp.
48274
48275 2014-03-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48276
48277         [BZ #16683]
48278         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S (__bzero_ppc):
48279         Define it for static builds as well.
48280         (NO_BZERO_IMPL): Likewise.
48281
48282 2014-03-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
48283
48284         * sysdeps/powerpc/powerpc64/power7/strspn.S: New file: Optimization.
48285         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: New file:
48286         multiarch strspn for PPC64.
48287         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: New file
48288         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: New file
48289         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
48290         (__libc_ifunc_impl_list): Likewise.
48291         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strspn
48292         multiarch optimizations
48293         * string/strspn.c (strspn): Using macro to redefine symbol name.
48294
48295 2014-03-10  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
48296             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48297
48298         * sysdeps/powerpc/powerpc64/power7/strncat.S: New file: Optimization.
48299         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: New file:
48300         multiarch strncat for PPC64.
48301         * sysdeps/powerpc/powerpc64/multiarch/strncat-ppc64.c: New file
48302         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: New file
48303         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
48304         (__libc_ifunc_impl_list): Likewise.
48305         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncat
48306         multiarch optimizations
48307
48308 2014-03-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
48309
48310         [BZ #16639]
48311         * nscd/nscd.service: Make service type forking.
48312
48313 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48314
48315         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Fix to return correct
48316         sign in non default rounding modes.
48317         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
48318
48319 2014-03-08  Joseph Myers  <joseph@codesourcery.com>
48320
48321         * math/libm-test.inc (ALL_RM_TEST): New macro.
48322         (ceil_test): Use ALL_RM_TEST.
48323         (cimag_test): Likewise.
48324         (conj_test): Likewise.
48325         (copysign_test): Likewise.
48326         (cproj_test): Likewise.
48327         (creal_test): Likewise.
48328         (fabs_test): Likewise.
48329         (floor_test): Likewise.
48330         (fmax_test): Likewise.
48331         (fmin_test): Likewise.
48332         (fmod_test): Likewise.
48333         (fpclassify_test): Likewise.
48334         (frexp_test): Likewise.
48335         (ilogb_test): Likewise.
48336         (isfinite_test): Likewise.
48337         (finite_test): Likewise.
48338         (isgreater_test): Likewise.
48339         (isgreaterequal_test): Likewise.
48340         (isinf_test): Likewise.
48341         (isless_test): Likewise.
48342         (islessequal_test): Likewise.
48343         (islessgreater_test): Likewise.
48344         (isnan_test): Likewise.
48345         (isnormal_test): Likewise.
48346         (issignaling_test): Likewise.
48347         (isunordered_test): Likewise.
48348         (logb_test): Likewise.
48349         (logb_downward_test_data): Remove.
48350         (logb_test_downward): Likewise.
48351         (lround_test): Use ALL_RM_TEST.
48352         (llround_test): Likewise.
48353         (modf_test): Likewise.
48354         (nexttoward_test): Likewise.
48355         (remainder_test): Likewise.
48356         (drem_test): Likewise.
48357         (remainder_tonearest_test_data): Likewise.
48358         (remainder_test_tonearest): Likewise.
48359         (drem_test_tonearest): Likewise.
48360         (remainder_towardzero_test_data): Likewise.
48361         (remainder_test_towardzero): Likewise.
48362         (drem_test_towardzero): Likewise.
48363         (remainder_downward_test_data): Likewise.
48364         (remainder_test_downward): Likewise.
48365         (drem_test_downward): Likewise.
48366         (remainder_upward_test_data): Likewise.
48367         (remainder_test_upward): Likewise.
48368         (drem_test_upward): Likewise.
48369         (remquo_test): Use ALL_RM_TEST.  Remove comment about x.
48370         (round_test): Use ALL_RM_TEST.
48371         (signbit_test): Likewise.
48372         (trunc_test): Likewise.
48373         (significand_test): Likewise.
48374         (main): Don't call removed functions.
48375
48376 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
48377
48378         [BZ #16674]
48379         * bits/siginfo.h (ILL_ILLOPC): Condition on [__USE_XOPEN_EXTENDED
48380         || __USE_XOPEN2K8].
48381         (ILL_ILLOPN): Likewise.
48382         (ILL_ILLADR): Likewise.
48383         (ILL_ILLTRP): Likewise.
48384         (ILL_PRVOPC): Likewise.
48385         (ILL_PRVREG): Likewise.
48386         (ILL_COPROC): Likewise.
48387         (ILL_BADSTK): Likewise.
48388         (FPE_INTDIV): Likewise.
48389         (FPE_INTOVF): Likewise.
48390         (FPE_FLTDIV): Likewise.
48391         (FPE_FLTOVF): Likewise.
48392         (FPE_FLTUND): Likewise.
48393         (FPE_FLTRES): Likewise.
48394         (FPE_FLTINV): Likewise.
48395         (FPE_FLTSUB): Likewise.
48396         (SEGV_MAPERR): Likewise.
48397         (SEGV_ACCERR): Likewise.
48398         (BUS_ADRALN): Likewise.
48399         (BUS_ADRERR): Likewise.
48400         (BUS_OBJERR): Likewise.
48401         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
48402         (TRAP_TRACE): Likewise.
48403         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
48404         __USE_XOPEN2K8].
48405         (CLD_KILLED): Likewise.
48406         (CLD_DUMPED): Likewise.
48407         (CLD_TRAPPED): Likewise.
48408         (CLD_STOPPED): Likewise.
48409         (CLD_CONTINUED): Likewise.
48410         (POLL_IN): Likewise.
48411         (POLL_OUT): Likewise.
48412         (POLL_MSG): Likewise.
48413         (POLL_ERR): Likewise.
48414         (POLL_PRI): Likewise.
48415         (POLL_HUP): Likewise.
48416         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (ILL_ILLOPC):
48417         Likewise.
48418         (ILL_ILLOPN): Likewise.
48419         (ILL_ILLADR): Likewise.
48420         (ILL_ILLTRP): Likewise.
48421         (ILL_PRVOPC): Likewise.
48422         (ILL_PRVREG): Likewise.
48423         (ILL_COPROC): Likewise.
48424         (ILL_BADSTK): Likewise.
48425         (FPE_INTDIV): Likewise.
48426         (FPE_INTOVF): Likewise.
48427         (FPE_FLTDIV): Likewise.
48428         (FPE_FLTOVF): Likewise.
48429         (FPE_FLTUND): Likewise.
48430         (FPE_FLTRES): Likewise.
48431         (FPE_FLTINV): Likewise.
48432         (FPE_FLTSUB): Likewise.
48433         (SEGV_MAPERR): Likewise.
48434         (SEGV_ACCERR): Likewise.
48435         (BUS_ADRALN): Likewise.
48436         (BUS_ADRERR): Likewise.
48437         (BUS_OBJERR): Likewise.
48438         (BUS_MCEERR_AR): Likewise.
48439         (BUS_MCEERR_AO): Likewise.
48440         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
48441         (TRAP_TRACE): Likewise.
48442         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
48443         __USE_XOPEN2K8].
48444         (CLD_KILLED): Likewise.
48445         (CLD_DUMPED): Likewise.
48446         (CLD_TRAPPED): Likewise.
48447         (CLD_STOPPED): Likewise.
48448         (CLD_CONTINUED): Likewise.
48449         (POLL_IN): Likewise.
48450         (POLL_OUT): Likewise.
48451         (POLL_MSG): Likewise.
48452         (POLL_ERR): Likewise.
48453         (POLL_PRI): Likewise.
48454         (POLL_HUP): Likewise.
48455         * sysdeps/unix/sysv/linux/bits/siginfo.h (ILL_ILLOPC): Likewise.
48456         (ILL_ILLOPN): Likewise.
48457         (ILL_ILLADR): Likewise.
48458         (ILL_ILLTRP): Likewise.
48459         (ILL_PRVOPC): Likewise.
48460         (ILL_PRVREG): Likewise.
48461         (ILL_COPROC): Likewise.
48462         (ILL_BADSTK): Likewise.
48463         (FPE_INTDIV): Likewise.
48464         (FPE_INTOVF): Likewise.
48465         (FPE_FLTDIV): Likewise.
48466         (FPE_FLTOVF): Likewise.
48467         (FPE_FLTUND): Likewise.
48468         (FPE_FLTRES): Likewise.
48469         (FPE_FLTINV): Likewise.
48470         (FPE_FLTSUB): Likewise.
48471         (SEGV_MAPERR): Likewise.
48472         (SEGV_ACCERR): Likewise.
48473         (BUS_ADRALN): Likewise.
48474         (BUS_ADRERR): Likewise.
48475         (BUS_OBJERR): Likewise.
48476         (BUS_MCEERR_AR): Likewise.
48477         (BUS_MCEERR_AO): Likewise.
48478         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
48479         (TRAP_TRACE): Likewise.
48480         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
48481         __USE_XOPEN2K8].
48482         (CLD_KILLED): Likewise.
48483         (CLD_DUMPED): Likewise.
48484         (CLD_TRAPPED): Likewise.
48485         (CLD_STOPPED): Likewise.
48486         (CLD_CONTINUED): Likewise.
48487         (POLL_IN): Likewise.
48488         (POLL_OUT): Likewise.
48489         (POLL_MSG): Likewise.
48490         (POLL_ERR): Likewise.
48491         (POLL_PRI): Likewise.
48492         (POLL_HUP): Likewise.
48493         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_ILLOPC):
48494         Likewise.
48495         (ILL_ILLOPN): Likewise.
48496         (ILL_ILLADR): Likewise.
48497         (ILL_ILLTRP): Likewise.
48498         (ILL_PRVOPC): Likewise.
48499         (ILL_PRVREG): Likewise.
48500         (ILL_COPROC): Likewise.
48501         (ILL_BADSTK): Likewise.
48502         (ILL_BADIADDR): Likewise.
48503         (ILL_BREAK): Likewise.
48504         (FPE_INTDIV): Likewise.
48505         (FPE_INTOVF): Likewise.
48506         (FPE_FLTDIV): Likewise.
48507         (FPE_FLTOVF): Likewise.
48508         (FPE_FLTUND): Likewise.
48509         (FPE_FLTRES): Likewise.
48510         (FPE_FLTINV): Likewise.
48511         (FPE_FLTSUB): Likewise.
48512         (FPE_DECOVF): Likewise.
48513         (FPE_DECDIV): Likewise.
48514         (FPE_DECERR): Likewise.
48515         (FPE_INVASC): Likewise.
48516         (FPE_INVDEC): Likewise.
48517         (SEGV_MAPERR): Likewise.
48518         (SEGV_ACCERR): Likewise.
48519         (SEGV_PSTKOVF): Likewise.
48520         (BUS_ADRALN): Likewise.
48521         (BUS_ADRERR): Likewise.
48522         (BUS_OBJERR): Likewise.
48523         (BUS_MCEERR_AR): Likewise.
48524         (BUS_MCEERR_AO): Likewise.
48525         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
48526         (TRAP_TRACE): Likewise.
48527         (TRAP_BRANCH): Likewise.
48528         (TRAP_HWBKPT): Likewise.
48529         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
48530         __USE_XOPEN2K8].
48531         (CLD_KILLED): Likewise.
48532         (CLD_DUMPED): Likewise.
48533         (CLD_TRAPPED): Likewise.
48534         (CLD_STOPPED): Likewise.
48535         (CLD_CONTINUED): Likewise.
48536         (POLL_IN): Likewise.
48537         (POLL_OUT): Likewise.
48538         (POLL_MSG): Likewise.
48539         (POLL_ERR): Likewise.
48540         (POLL_PRI): Likewise.
48541         (POLL_HUP): Likewise.
48542         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (ILL_ILLOPC): Likewise.
48543         (ILL_ILLOPN): Likewise.
48544         (ILL_ILLADR): Likewise.
48545         (ILL_ILLTRP): Likewise.
48546         (ILL_PRVOPC): Likewise.
48547         (ILL_PRVREG): Likewise.
48548         (ILL_COPROC): Likewise.
48549         (ILL_BADSTK): Likewise.
48550         (FPE_INTDIV): Likewise.
48551         (FPE_INTOVF): Likewise.
48552         (FPE_FLTDIV): Likewise.
48553         (FPE_FLTOVF): Likewise.
48554         (FPE_FLTUND): Likewise.
48555         (FPE_FLTRES): Likewise.
48556         (FPE_FLTINV): Likewise.
48557         (FPE_FLTSUB): Likewise.
48558         (SEGV_MAPERR): Likewise.
48559         (SEGV_ACCERR): Likewise.
48560         (BUS_ADRALN): Likewise.
48561         (BUS_ADRERR): Likewise.
48562         (BUS_OBJERR): Likewise.
48563         (BUS_MCEERR_AR): Likewise.
48564         (BUS_MCEERR_AO): Likewise.
48565         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
48566         (TRAP_TRACE): Likewise.
48567         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
48568         __USE_XOPEN2K8].
48569         (CLD_KILLED): Likewise.
48570         (CLD_DUMPED): Likewise.
48571         (CLD_TRAPPED): Likewise.
48572         (CLD_STOPPED): Likewise.
48573         (CLD_CONTINUED): Likewise.
48574         (POLL_IN): Likewise.
48575         (POLL_OUT): Likewise.
48576         (POLL_MSG): Likewise.
48577         (POLL_ERR): Likewise.
48578         (POLL_PRI): Likewise.
48579         (POLL_HUP): Likewise.
48580         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (ILL_ILLOPC): Likewise.
48581         (ILL_ILLOPN): Likewise.
48582         (ILL_ILLADR): Likewise.
48583         (ILL_ILLTRP): Likewise.
48584         (ILL_PRVOPC): Likewise.
48585         (ILL_PRVREG): Likewise.
48586         (ILL_COPROC): Likewise.
48587         (ILL_BADSTK): Likewise.
48588         (FPE_INTDIV): Likewise.
48589         (FPE_INTOVF): Likewise.
48590         (FPE_FLTDIV): Likewise.
48591         (FPE_FLTOVF): Likewise.
48592         (FPE_FLTUND): Likewise.
48593         (FPE_FLTRES): Likewise.
48594         (FPE_FLTINV): Likewise.
48595         (FPE_FLTSUB): Likewise.
48596         (SEGV_MAPERR): Likewise.
48597         (SEGV_ACCERR): Likewise.
48598         (BUS_ADRALN): Likewise.
48599         (BUS_ADRERR): Likewise.
48600         (BUS_OBJERR): Likewise.
48601         (BUS_MCEERR_AR): Likewise.
48602         (BUS_MCEERR_AO): Likewise.
48603         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
48604         (TRAP_TRACE): Likewise.
48605         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
48606         __USE_XOPEN2K8].
48607         (CLD_KILLED): Likewise.
48608         (CLD_DUMPED): Likewise.
48609         (CLD_TRAPPED): Likewise.
48610         (CLD_STOPPED): Likewise.
48611         (CLD_CONTINUED): Likewise.
48612         (POLL_IN): Likewise.
48613         (POLL_OUT): Likewise.
48614         (POLL_MSG): Likewise.
48615         (POLL_ERR): Likewise.
48616         (POLL_PRI): Likewise.
48617         (POLL_HUP): Likewise.
48618         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (ILL_ILLOPC): Likewise.
48619         (ILL_ILLOPN): Likewise.
48620         (ILL_ILLADR): Likewise.
48621         (ILL_ILLTRP): Likewise.
48622         (ILL_PRVOPC): Likewise.
48623         (ILL_PRVREG): Likewise.
48624         (ILL_COPROC): Likewise.
48625         (ILL_BADSTK): Likewise.
48626         (FPE_INTDIV): Likewise.
48627         (FPE_INTOVF): Likewise.
48628         (FPE_FLTDIV): Likewise.
48629         (FPE_FLTOVF): Likewise.
48630         (FPE_FLTUND): Likewise.
48631         (FPE_FLTRES): Likewise.
48632         (FPE_FLTINV): Likewise.
48633         (FPE_FLTSUB): Likewise.
48634         (SEGV_MAPERR): Likewise.
48635         (SEGV_ACCERR): Likewise.
48636         (BUS_ADRALN): Likewise.
48637         (BUS_ADRERR): Likewise.
48638         (BUS_OBJERR): Likewise.
48639         (BUS_MCEERR_AR): Likewise.
48640         (BUS_MCEERR_AO): Likewise.
48641         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
48642         (TRAP_TRACE): Likewise.
48643         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
48644         __USE_XOPEN2K8].
48645         (CLD_KILLED): Likewise.
48646         (CLD_DUMPED): Likewise.
48647         (CLD_TRAPPED): Likewise.
48648         (CLD_STOPPED): Likewise.
48649         (CLD_CONTINUED): Likewise.
48650         (POLL_IN): Likewise.
48651         (POLL_OUT): Likewise.
48652         (POLL_MSG): Likewise.
48653         (POLL_ERR): Likewise.
48654         (POLL_PRI): Likewise.
48655         (POLL_HUP): Likewise.
48656         * sysdeps/unix/sysv/linux/tile/bits/siginfo.h (ILL_ILLOPC): Likewise.
48657         (ILL_ILLOPN): Likewise.
48658         (ILL_ILLADR): Likewise.
48659         (ILL_ILLTRP): Likewise.
48660         (ILL_PRVOPC): Likewise.
48661         (ILL_PRVREG): Likewise.
48662         (ILL_COPROC): Likewise.
48663         (ILL_BADSTK): Likewise.
48664         (ILL_DBLFLT): Likewise.
48665         (ILL_HARDWALL): Likewise.
48666         (FPE_INTDIV): Likewise.
48667         (FPE_INTOVF): Likewise.
48668         (FPE_FLTDIV): Likewise.
48669         (FPE_FLTOVF): Likewise.
48670         (FPE_FLTUND): Likewise.
48671         (FPE_FLTRES): Likewise.
48672         (FPE_FLTINV): Likewise.
48673         (FPE_FLTSUB): Likewise.
48674         (SEGV_MAPERR): Likewise.
48675         (SEGV_ACCERR): Likewise.
48676         (BUS_ADRALN): Likewise.
48677         (BUS_ADRERR): Likewise.
48678         (BUS_OBJERR): Likewise.
48679         (BUS_MCEERR_AR): Likewise.
48680         (BUS_MCEERR_AO): Likewise.
48681         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
48682         (TRAP_TRACE): Likewise.
48683         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
48684         __USE_XOPEN2K8].
48685         (CLD_KILLED): Likewise.
48686         (CLD_DUMPED): Likewise.
48687         (CLD_TRAPPED): Likewise.
48688         (CLD_STOPPED): Likewise.
48689         (CLD_CONTINUED): Likewise.
48690         (POLL_IN): Likewise.
48691         (POLL_OUT): Likewise.
48692         (POLL_MSG): Likewise.
48693         (POLL_ERR): Likewise.
48694         (POLL_PRI): Likewise.
48695         (POLL_HUP): Likewise.
48696         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (ILL_ILLOPC): Likewise.
48697         (ILL_ILLOPN): Likewise.
48698         (ILL_ILLADR): Likewise.
48699         (ILL_ILLTRP): Likewise.
48700         (ILL_PRVOPC): Likewise.
48701         (ILL_PRVREG): Likewise.
48702         (ILL_COPROC): Likewise.
48703         (ILL_BADSTK): Likewise.
48704         (FPE_INTDIV): Likewise.
48705         (FPE_INTOVF): Likewise.
48706         (FPE_FLTDIV): Likewise.
48707         (FPE_FLTOVF): Likewise.
48708         (FPE_FLTUND): Likewise.
48709         (FPE_FLTRES): Likewise.
48710         (FPE_FLTINV): Likewise.
48711         (FPE_FLTSUB): Likewise.
48712         (SEGV_MAPERR): Likewise.
48713         (SEGV_ACCERR): Likewise.
48714         (BUS_ADRALN): Likewise.
48715         (BUS_ADRERR): Likewise.
48716         (BUS_OBJERR): Likewise.
48717         (BUS_MCEERR_AR): Likewise.
48718         (BUS_MCEERR_AO): Likewise.
48719         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
48720         (TRAP_TRACE): Likewise.
48721         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
48722         __USE_XOPEN2K8].
48723         (CLD_KILLED): Likewise.
48724         (CLD_DUMPED): Likewise.
48725         (CLD_TRAPPED): Likewise.
48726         (CLD_STOPPED): Likewise.
48727         (CLD_CONTINUED): Likewise.
48728         (POLL_IN): Likewise.
48729         (POLL_OUT): Likewise.
48730         (POLL_MSG): Likewise.
48731         (POLL_ERR): Likewise.
48732         (POLL_PRI): Likewise.
48733         (POLL_HUP): Likewise.
48734         * conform/Makefile (test-xfail-POSIX/signal.h/conform): Remove.
48735         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
48736
48737         [BZ #16670]
48738         * posix/sched.h [!__USE_XOPEN2K] (__need_time_t): Don't define
48739         before #include of <time.h>.
48740         [!__USE_XOPEN2K] (__need_timespec): Likewise.
48741         * conform/Makefile (test-xfail-POSIX/sched.h/conform): Remove.
48742         (test-xfail-UNIX98/sched.h/conform): Likewise.
48743
48744 2014-03-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
48745
48746         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Detect and
48747         error absence of trapping exception support.
48748         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
48749
48750 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
48751
48752         * catgets/Makefile (tests-special): Add $(objpfx)sample.SJIS.cat.
48753         ($(objpfx)sample.SJIS.cat): Use $(evaluate-test).
48754         * timezone/Makefile (testdata): Move definition above include of
48755         Rules.
48756         (test-zones): New variable.
48757         (tests-special): Add zone files.
48758         (build-testdata): Use $(evaluate-test).
48759
48760         * elf/Makefile (tests-special): Rename tests to end with .out.
48761         ($(objpfx)noload-mem): Likewise.
48762         ($(objpfx)tst-leaks1-mem): Likewise.
48763         ($(objpfx)tst-leaks1-static-mem.out): Likewise.
48764         * iconv/Makefile (xtests-special): Change test-iconvconfig to
48765         $(objpfx)test-iconvconfig.out.
48766         (test-iconvconfig): Change to $(objpfx)test-iconvconfig.out.  Use
48767         set -e inside subshell and redirect output to file.
48768         * iconvdata/Makefile (generated): Rename tests to end with .out.
48769         Correct type.
48770         (tests-special): Rename tests to end with .out.
48771         ($(objpfx)mtrace-tst-loading): Likewise.
48772         * intl/Makefile (generated): Likewise.
48773         (tests-special): Likewise.
48774         ($(objpfx)mtrace-tst-gettext): Likewise.
48775         * misc/Makefile (generated): Likewise.
48776         (tests-special): Likewise.
48777         ($(objpfx)tst-error1-mem): Likewise.
48778         * nptl/Makefile (tests-special): Likewise.
48779         ($(objpfx)tst-stack3-mem): Likewise.
48780         (generated): Likewise.
48781         * posix/Makefile (generated): Likewise.
48782         (tests-special): Likewise.
48783         (xtests-special): Likewise.
48784         ($(objpfx)tst-fnmatch-mem): Likewise.
48785         ($(objpfx)bug-regex2-mem): Likewise.
48786         ($(objpfx)bug-regex14-mem): Likewise.
48787         ($(objpfx)bug-regex21-mem): Likewise.
48788         ($(objpfx)bug-regex31-mem): Likewise.
48789         ($(objpfx)tst-vfork3-mem): Likewise.
48790         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
48791         ($(objpfx)tst-pcre-mem): Likewise.
48792         ($(objpfx)tst-boost-mem): Likewise.
48793         ($(objpfx)bug-ga2-mem): Likewise.
48794         ($(objpfx)bug-glob2-mem): Likewise.
48795         * resolv/Makefile (generate): Likewise.
48796         (tests-special): Likewise.
48797         (xtests-special): Likewise.
48798         (generated): Likewise.
48799         ($(objpfx)mtrace-tst-leaks): Likewise.
48800         ($(objpfx)mtrace-tst-leaks2): Likewise.
48801
48802         * scripts/merge-test-results.sh: New file.
48803         * Makefile (tests-special-notdir): New variable.
48804         (tests): Run merge-test-results.sh.
48805         (xtests): Likewise.
48806         * Rules (tests-special-notdir): New variable.
48807         (xtests-special-notdir): Likewise.
48808         (tests): Run merge-test-results.sh
48809         (xtests): Likewise.
48810
48811         * Makeconfig (test-xfail-name): New variable.
48812         (evaluate-test): Use $(test-xfail-name) instead of $(@F:.out=) to
48813         compute variable name for expected failures.
48814         * conform/Makefile (conformtest-headers-data): New variable.
48815         (conformtest-standards): Likewise.
48816         (conformtest-headers-ISO): Likewise.
48817         (conformtest-headers-ISO99): Likewise.
48818         (conformtest-headers-ISO11): Likewise.
48819         (conformtest-headers-POSIX): Likewise.
48820         (conformtest-headers-XPG3): Likewise.
48821         (conformtest-headers-XPG4): Likewise.
48822         (conformtest-headers-UNIX98): Likewise.
48823         (conformtest-headers-XOPEN2K): Likewise.
48824         (conformtest-headers-POSIX2008): Likewise.
48825         (conformtest-headers-XOPEN2K8): Likewise.
48826         (conformtest-header-list-base): Likewise.
48827         (conformtest-header-list-tests): Likewise.
48828         (conformtest-header-base): Likewise.
48829         (conformtest-header-tests): Likewise.
48830         (tests-special): Add $(conformtest-header-list-tests).  If
48831         [$(fast-check) && !$(cross-compiling)], add
48832         $(conformtest-header-tests) instead of
48833         $(objpfx)run-conformtest.out.
48834         (generated): Add $(conformtest-header-list-base).  If
48835         [$(fast-check) && !$(cross-compiling)], add
48836         $(conformtest-header-base).  Remove previous setting.
48837         ($(conformtest-header-list-tests)): New target.
48838         (test-xfail-run-conformtest): Remove variable.
48839         ($(objpfx)run-conformtest.out): Remove target.
48840         (test-xfail-ISO11/complex.h/conform): New variable.
48841         (test-xfail-ISO11/stdalign.h/conform): Likewise.
48842         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
48843         (test-xfail-XPG3/varargs.h/conform): Likewise.
48844         (test-xfail-XPG4/varargs.h/conform): Likewise.
48845         (test-xfail-UNIX98/varargs.h/conform): Likewise.
48846         (test-xfail-XPG4/ndbm.h/conform): Likewise.
48847         (test-xfail-UNIX98/ndbm.h/conform): Likewise.
48848         (test-xfail-XOPEN2K/ndbm.h/conform): Likewise.
48849         (test-xfail-XOPEN2K8/ndbm.h/conform): Likewise.
48850         (test-xfail-XPG3/fcntl.h/conform): Likewise.
48851         (test-xfail-XPG3/ftw.h/conform): Likewise.
48852         (test-xfail-XPG3/grp.h/conform): Likewise.
48853         (test-xfail-XPG3/langinfo.h/conform): Likewise.
48854         (test-xfail-XPG3/limits.h/conform): Likewise.
48855         (test-xfail-XPG3/pwd.h/conform): Likewise.
48856         (test-xfail-XPG3/search.h/conform): Likewise.
48857         (test-xfail-XPG3/signal.h/conform): Likewise.
48858         (test-xfail-XPG3/stdio.h/conform): Likewise.
48859         (test-xfail-XPG3/stdlib.h/conform): Likewise.
48860         (test-xfail-XPG3/string.h/conform): Likewise.
48861         (test-xfail-XPG3/sys/ipc.h/conform): Likewise.
48862         (test-xfail-XPG3/sys/msg.h/conform): Likewise.
48863         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
48864         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
48865         (test-xfail-XPG3/sys/stat.h/conform): Likewise.
48866         (test-xfail-XPG3/sys/types.h/conform): Likewise.
48867         (test-xfail-XPG3/sys/wait.h/conform): Likewise.
48868         (test-xfail-XPG3/termios.h/conform): Likewise.
48869         (test-xfail-XPG3/time.h/conform): Likewise.
48870         (test-xfail-XPG3/unistd.h/conform): Likewise.
48871         (test-xfail-XPG4/arpa/inet.h/conform): Likewise.
48872         (test-xfail-XPG4/fcntl.h/conform): Likewise.
48873         (test-xfail-XPG4/langinfo.h/conform): Likewise.
48874         (test-xfail-XPG4/netdb.h/conform): Likewise.
48875         (test-xfail-XPG4/netinet/in.h/conform): Likewise.
48876         (test-xfail-XPG4/signal.h/conform): Likewise.
48877         (test-xfail-XPG4/stdio.h/conform): Likewise.
48878         (test-xfail-XPG4/stdlib.h/conform): Likewise.
48879         (test-xfail-XPG4/stropts.h/conform): Likewise.
48880         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
48881         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
48882         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
48883         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
48884         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
48885         (test-xfail-XPG4/sys/stat.h/conform): Likewise.
48886         (test-xfail-XPG4/sys/time.h/conform): Likewise.
48887         (test-xfail-XPG4/sys/types.h/conform): Likewise.
48888         (test-xfail-XPG4/sys/wait.h/conform): Likewise.
48889         (test-xfail-XPG4/termios.h/conform): Likewise.
48890         (test-xfail-XPG4/ucontext.h/conform): Likewise.
48891         (test-xfail-XPG4/unistd.h/conform): Likewise.
48892         (test-xfail-XPG4/utmpx.h/conform): Likewise.
48893         (test-xfail-POSIX/sched.h/conform): Likewise.
48894         (test-xfail-POSIX/signal.h/conform): Likewise.
48895         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
48896         (test-xfail-POSIX/tar.h/conform): Likewise.
48897         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
48898         (test-xfail-UNIX98/fcntl.h/conform): Likewise.
48899         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
48900         (test-xfail-UNIX98/netdb.h/conform): Likewise.
48901         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
48902         (test-xfail-UNIX98/sched.h/conform): Likewise.
48903         (test-xfail-UNIX98/signal.h/conform): Likewise.
48904         (test-xfail-UNIX98/stdio.h/conform): Likewise.
48905         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
48906         (test-xfail-UNIX98/stropts.h/conform): Likewise.
48907         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
48908         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
48909         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
48910         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
48911         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
48912         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
48913         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
48914         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
48915         (test-xfail-UNIX98/unistd.h/conform): Likewise.
48916         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
48917         (test-xfail-XOPEN2K/aio.h/conform): Likewise.
48918         (test-xfail-XOPEN2K/arpa/inet.h/conform): Likewise.
48919         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
48920         (test-xfail-XOPEN2K/langinfo.h/conform): Likewise.
48921         (test-xfail-XOPEN2K/math.h/conform): Likewise.
48922         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
48923         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
48924         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
48925         (test-xfail-XOPEN2K/semaphore.h/conform): Likewise.
48926         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
48927         (test-xfail-XOPEN2K/stdarg.h/conform): Likewise.
48928         (test-xfail-XOPEN2K/stdio.h/conform): Likewise.
48929         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
48930         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
48931         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
48932         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
48933         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
48934         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
48935         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
48936         (test-xfail-XOPEN2K/termios.h/conform): Likewise.
48937         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
48938         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
48939         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
48940         (test-xfail-POSIX2008/arpa/inet.h/conform): Likewise.
48941         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
48942         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
48943         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
48944         (test-xfail-POSIX2008/signal.h/conform): Likewise.
48945         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
48946         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
48947         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
48948         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
48949         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
48950         (test-xfail-XOPEN2K8/limits.h/conform): Likewise.
48951         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
48952         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
48953         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
48954         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
48955         (test-xfail-XOPEN2K8/stdio.h/conform): Likewise.
48956         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
48957         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
48958         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
48959         (test-xfail-XOPEN2K8/sys/select.h/conform): Likewise.
48960         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
48961         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
48962         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
48963         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
48964         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
48965         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
48966         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
48967         (test-xfail-XOPEN2K8/utmpx.h/conform): Likewise.
48968         (conformtest-cc-flags): Likewise.
48969         ($(conformtest-header-tests): New target.
48970         * conform/check-header-lists.sh: New file.
48971         * conform/run-conformtest.sh: Remove.
48972
48973         * conform/conformtest.pl: Allow ' and \ in values given for
48974         constants.
48975         * conform/data/semaphore.h-data [POSIX] (fcntl.h): Allow header
48976         inclusion.
48977         [POSIX] (sys/types.h): Likewise.
48978         [POSIX2008 || XOPEN2K8] (sys/types.h): Don't allow header
48979         inclusion.
48980         [POSIX || UNIX98 || XOPEN2K] (time.h): Don't allow header
48981         inclusion.
48982         * conform/data/signal.h-data (SIGIO): Remove expectation.
48983         [XPG3] (SIGBUS): Do not expect.
48984         [POSIX || XPG3] (SIGPOLL): Likewise.
48985         [POSIX || XPG3] (SIGPROF): Likewise.
48986         [POSIX || XPG3] (SIGSYS): Likewise.
48987         [XPG3] (SIGTRAP): Likewise.
48988         [POSIX || XPG3] (SIGURG): Likewise.
48989         [POSIX || XPG3] (SIGVTALRM): Likewise.
48990         [POSIX || XPG3] (SIGXCPU): Likewise.
48991         [POSIX || XPG3] (SIGXFSZ): Likewise.
48992         [POSIX] (SA_SIGINFO): Expect.
48993         [XPG3] (siginfo_t): Do not expect type or contents.
48994         [POSIX] (si_pid): Do not expect element.
48995         [POSIX] (si_uid): Likewise.
48996         [POSIX] (si_addr): Likewise.
48997         [POSIX] (si_status): Likewise.
48998         [POSIX] (si_band): Likewise.
48999         [XPG4] (si_value): Likewise.
49000         [POSIX || XPG3] (ILL_ILLOPC): Do not expect.
49001         [POSIX || XPG3] (ILL_ILLOPN): Likewise.
49002         [POSIX || XPG3] (ILL_ILLADR): Likewise.
49003         [POSIX || XPG3] (ILL_ILLTRP): Likewise.
49004         [POSIX || XPG3] (ILL_PRVOPC): Likewise.
49005         [POSIX || XPG3] (ILL_PRVREG): Likewise.
49006         [POSIX || XPG3] (ILL_COPROC): Likewise.
49007         [POSIX || XPG3] (ILL_BADSTK): Likewise.
49008         [POSIX || XPG3] (FPE_INTDIV): Likewise.
49009         [POSIX || XPG3] (FPE_INTOVF): Likewise.
49010         [POSIX || XPG3] (FPE_FLTDIV): Likewise.
49011         [POSIX || XPG3] (FPE_FLTOVF): Likewise.
49012         [POSIX || XPG3] (FPE_FLTUND): Likewise.
49013         [POSIX || XPG3] (FPE_FLTRES): Likewise.
49014         [POSIX || XPG3] (FPE_FLTINV): Likewise.
49015         [POSIX || XPG3] (FPE_FLTSUB): Likewise.
49016         [POSIX || XPG3] (SEGV_MAPERR): Likewise.
49017         [POSIX || XPG3] (SEGV_ACCERR): Likewise.
49018         [POSIX || XPG3] (BUS_ADRALN): Likewise.
49019         [POSIX || XPG3] (BUS_ADRERR): Likewise.
49020         [POSIX || XPG3] (BUS_OBJERR): Likewise.
49021         [POSIX || XPG3] (CLD_EXITED): Likewise.
49022         [POSIX || XPG3] (CLD_KILLED): Likewise.
49023         [POSIX || XPG3] (CLD_DUMPED): Likewise.
49024         [POSIX || XPG3] (CLD_TRAPPED): Likewise.
49025         [POSIX || XPG3] (CLD_STOPPED): Likewise.
49026         [POSIX || XPG3] (CLD_CONTINUED): Likewise.
49027         [POSIX || XPG3] (POLL_IN): Likewise.
49028         [POSIX || XPG3] (POLL_OUT): Likewise.
49029         [POSIX || XPG3] (POLL_MSG): Likewise.
49030         [POSIX || XPG3] (POLL_ERR): Likewise.
49031         [POSIX || XPG3] (POLL_PRI): Likewise.
49032         [POSIX || XPG3] (POLL_HUP): Likewise.
49033         [POSIX || XPG3 || POSIX2008] (TRAP_BRKPT): Likewise.
49034         [POSIX || XPG3 || POSIX2008] (TRAP_TRACE): Likewise.
49035         (SIG*): Do not allow.
49036         [XPG3] (si_*): Likewise.
49037         [XPG3] (SI_*): Likewise.
49038         [XPG3 || XPG4] (sigev_*): Likewise.
49039         [XPG3 || XPG4] (SIGEV_*): Likewise.
49040         [XPG3 || XPG4] (sival_*): Likewise.
49041         [POSIX || XPG3 || XPG4] (uc_*): Likewise.
49042         [POSIX || XPG3] (BUS_*): Likewise.
49043         [POSIX || XPG3] (CLD_*): Likewise.
49044         [POSIX || XPG3] (FPE_*): Likewise.
49045         [POSIX || XPG3] (ILL_*): Likewise.
49046         [POSIX || XPG3] (POLL_*): Likewise.
49047         [POSIX || XPG3] (SEGV_*): Likewise.
49048         [POSIX || XPG3 || POSIX2008] (SS_*): Likewise.
49049         [POSIX || XPG3 || POSIX2008] (SV_*): Likewise.
49050         [POSIX || XPG3 || POSIX2008] (TRAP_*): Likewise.
49051         [POSIX || XPG3 || POSIX2008] (ss_*): Likewise.
49052         [POSIX || XPG3 || POSIX2008] (sv_*): Likewise.
49053         * conform/data/tar.h-data (TMAGLEN): Use macro-int-constant.
49054         Specify type and value.
49055         (TVERSLEN): Likewise.
49056         (REGTYPE): Likewise.
49057         (AREGTYPE): Likewise.
49058         (LNKTYPE): Likewise.
49059         (SYMTYPE): Likewise.
49060         (CHRTYPE): Likewise.
49061         (BLKTYPE): Likewise.
49062         (DIRTYPE): Likewise.
49063         (FIFOTYPE): Likewise.
49064         (CONTTYPE): Likewise.
49065         (TSUID): Likewise.
49066         (TSGID): Likewise.
49067         (TSVTX): Likewise.
49068         (TUREAD): Likewise.
49069         (TUWRITE): Likewise.
49070         (TUEXEC): Likewise.
49071         (TGREAD): Likewise.
49072         (TGWRITE): Likewise.
49073         (TGEXEC): Likewise.
49074         (TOREAD): Likewise.
49075         (TOWRITE): Likewise.
49076         (TOEXEC): Likewise.
49077         [POSIX] (TSVTX): Expect constant.
49078
49079 2014-03-06  Joseph Myers  <joseph@codesourcery.com>
49080
49081         * Makefile (tests): Change dependencies to ....
49082         (tests-special): ... additions to this variable.
49083         (tests): Depend on $(tests-special).
49084         * Makerules (check-abi-list): New variable.
49085         (check-abi): Depend on $(check-abi-list).
49086         [$(subdir) = elf] (tests-special): Add
49087         $(objpfx)check-abi-libc.out.
49088         [$(build-shared) = yes && subdir] (tests-special): Add
49089         $(check-abi-list).
49090         [$(build-shared) = yes && subdir] (tests): Do not depend on
49091         check-abi.
49092         * Rules (tests): Depend on $(tests-special).
49093         (xtests): Depend on $(xtests-special).
49094         * catgets/Makefile (tests): Change dependencies to ....
49095         (tests-special): ... additions to this variable.
49096         * conform/Makefile (tests): Change dependencies to ....
49097         (tests-special): ... additions to this variable.
49098         * elf/Makefile (tests): Change dependencies to ....
49099         (tests-special): ... additions to this variable.
49100         * grp/Makefile (tests): Change dependencies to ....
49101         (tests-special): ... additions to this variable.
49102         * iconv/Makefile (xtests): Change dependencies to ....
49103         (xtests-special): ... additions to this variable.
49104         * iconvdata/Makefile (tests): Change dependencies to ....
49105         (tests-special): ... additions to this variable.
49106         * intl/Makefile (tests): Change dependencies to ....
49107         (tests-special): ... additions to this variable.  Also add
49108         $(objpfx)tst-gettext.out.
49109         * io/Makefile (tests): Change dependencies to ....
49110         (tests-special): ... additions to this variable.
49111         * libio/Makefile (tests): Change dependencies to ....
49112         (tests-special): ... additions to this variable.
49113         * malloc/Makefile (tests): Change dependencies to ....
49114         (tests-special): ... additions to this variable.
49115         * misc/Makefile (tests): Change dependencies to ....
49116         (tests-special): ... additions to this variable.
49117         * nptl/Makefile (tests): Change dependencies to ....
49118         (tests-special): ... additions to this variable.
49119         * nptl_db/Makefile (tests): Change dependencies to ....
49120         (tests-special): ... additions to this variable.
49121         * posix/Makefile (tests): Change dependencies to ....
49122         (tests-special): ... additions to this variable.
49123         (xtests): Change dependencies to ....
49124         (xtests-special): ... additions to this variable.
49125         * resolv/Makefile (tests): Change dependencies to ....
49126         (tests-special): ... additions to this variable.
49127         (xtests): Change dependencies to ....
49128         (xtests-special): ... additions to this variable.
49129         * stdio-common/Makefile (tests): Change dependencies to ....
49130         (tests-special): ... additions to this variable.
49131         (do-tst-unbputc): Remove target.
49132         (do-tst-printf): Likewise.
49133         * stdlib/Makefile (tests): Change dependencies to ....
49134         (tests-special): ... additions to this variable.
49135         * string/Makefile (tests): Change dependencies to ....
49136         (tests-special): ... additions to this variable.
49137         * sysdeps/x86/Makefile (tests): Change dependencies to ....
49138         (tests-special): ... additions to this variable.
49139
49140         * conform/data/netinet/tcp.h-data [POSIX2008 || XOPEN2K8]: Enable
49141         whole file.
49142         * conform/data/sys/timeb.h-data [POSIX2008 || XOPEN2K8]: Disable
49143         whole file.
49144         * conform/data/sys/uio.h-data [POSIX2008]: Likewise.
49145         * conform/data/ucontext.h-data [POSIX2008 || XOPEN2K8]: Likewise.
49146
49147         * conform/data/aio.h-data [XPG3 || XPG4]: Disable whole file.
49148         * conform/data/arpa/inet.h-data [XPG3]: Likewise.
49149         * conform/data/dlfcn.h-data [XPG3 || XPG4]: Likewise.
49150         * conform/data/fmtmsg.h-data [XPG3]: Likewise.
49151         * conform/data/libgen.h-data [XPG3]: Likewise.
49152         * conform/data/mqueue.h-data [XPG3 || XPG4]: Likewise.
49153         * conform/data/ndbm.h-data [XPG3]: Likewise.
49154         * conform/data/net/if.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
49155         * conform/data/netdb.h-data [XPG3]: Likewise.
49156         * conform/data/netinet/in.h-data [XPG3]: Likewise.
49157         * conform/data/poll.h-data [XPG3]: Likewise.
49158         * conform/data/spawn.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
49159         * conform/data/strings.h-data [XPG3]: Likewise.
49160         * conform/data/stropts.h-data [XPG3]: Likewise.
49161         * conform/data/sys/mman.h-data [XPG3]: Likewise.
49162         * conform/data/sys/resource.h-data [XPG3]: Likewise.
49163         * conform/data/sys/select.h-data [XPG3 || XPG4 || UNIX98]:
49164         Likewise.
49165         * conform/data/sys/statvfs.h-data [XPG3]: Likewise.
49166         * conform/data/sys/time.h-data [XPG3]: Likewise.
49167         * conform/data/sys/timeb.h-data [XPG3]: Likewise.
49168         * conform/data/sys/uio.h-data [XPG3]: Likewise.
49169         * conform/data/sys/un.h-data [XPG3]: Likewise.
49170         * conform/data/syslog.h-data [XPG3]: Likewise.
49171         * conform/data/ucontext.h-data [XPG3]: Likewise.
49172         * conform/data/utmpx.h-data [XPG3]: Likewise.
49173         * conform/data/varargs.h-data [UNIX98]: Enable file.
49174
49175         * manual/Makefile (INSTALL_INFO): Remove variable setting.
49176
49177         * math/libm-test.inc (struct test_f_f_data): Move expected results
49178         into structure for each rounding mode.
49179         (struct test_ff_f_data): Likewise.
49180         (struct test_ff_f_data_nexttoward): Likewise.
49181         (struct test_fi_f_data): Likewise.
49182         (struct test_fl_f_data): Likewise.
49183         (struct test_if_f_data): Likewise.
49184         (struct test_fff_f_data): Likewise.
49185         (struct test_c_f_data): Likewise.
49186         (struct test_f_f1_data): Likewise.
49187         (struct test_fF_f1_data): Likewise.
49188         (struct test_ffI_f1_data): Likewise.
49189         (struct test_c_c_data): Likewise.
49190         (struct test_cc_c_data): Likewise.
49191         (struct test_f_i_data): Likewise.
49192         (struct test_ff_i_data): Likewise.
49193         (struct test_f_l_data): Likewise.
49194         (struct test_f_L_data): Likewise.
49195         (struct test_fFF_11_data): Likewise.
49196         (RM_): New macro.
49197         (RM_FE_DOWNWARD): Likewise.
49198         (RM_FE_TONEAREST): Likewise.
49199         (RM_FE_TOWARDZERO): Likewise.
49200         (RM_FE_UPWARD): Likewise.
49201         (RUN_TEST_LOOP_f_f): Update references to expected results.
49202         (RUN_TEST_LOOP_2_f): Likewise.
49203         (RUN_TEST_LOOP_fff_f): Likewise.
49204         (RUN_TEST_LOOP_c_f): Likewise.
49205         (RUN_TEST_LOOP_f_f1): Likewise.
49206         (RUN_TEST_LOOP_fF_f1): Likewise.
49207         (RUN_TEST_LOOP_fI_f1): Likewise.
49208         (RUN_TEST_LOOP_ffI_f1): Likewise.
49209         (RUN_TEST_LOOP_c_c): Likewise.
49210         (RUN_TEST_LOOP_cc_c): Likewise.
49211         (RUN_TEST_LOOP_f_i): Likewise.
49212         (RUN_TEST_LOOP_f_i_tg): Likewise.
49213         (RUN_TEST_LOOP_ff_i_tg): Likewise.
49214         (RUN_TEST_LOOP_f_b): Likewise.
49215         (RUN_TEST_LOOP_f_b_tg): Likewise.
49216         (RUN_TEST_LOOP_f_l): Likewise.
49217         (RUN_TEST_LOOP_f_L): Likewise.
49218         (RUN_TEST_LOOP_fFF_11): Likewise.
49219         * math/gen-libm-test.pl (parse_args): Output four copies of
49220         expected results for each test.
49221
49222         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
49223         (__ASSUME_UTIMES): Remove.
49224         * sysdeps/unix/sysv/linux/tile/kernel-features.h
49225         (__ASSUME_UTIMES): Likewise.
49226
49227         * math/gen-auto-libm-tests.c: Update comment on output format.
49228         (output_for_one_input_case): Generate before-rounding and
49229         after-rounding information as conditions on output flags not
49230         floating-point format.
49231         * math/auto-libm-test-out: Regenerated.
49232         * math/gen-libm-test.pl (cond_value): New function.
49233         (or_cond_value): Use cond_value.
49234         (generate_testfile): Handle conditional exceptions.
49235
49236 2014-03-05  Joseph Myers  <joseph@codesourcery.com>
49237
49238         * math/libm-test.inc (max_valid_error): New variable.
49239         (init_max_error): Take new argument specifying whether function
49240         results are exactly determined.  Set max_valid_error and bound
49241         other variables for errors based on this argument.
49242         (set_max_error): Do not record results above max_valid_error.
49243         (check_float_internal): Only accept errors of up to 0.5ulps if
49244         also at most max_valid_error.
49245         (START): Take new argument EXACT and pass it to init_max_error.
49246         (acos_test): Update call to START.
49247         (acos_test_tonearest): Likewise.
49248         (acos_test_towardzero): Likewise.
49249         (acos_test_downward): Likewise.
49250         (acos_test_upward): Likewise.
49251         (acosh_test): Likewise.
49252         (asin_test): Likewise.
49253         (asin_test_tonearest): Likewise.
49254         (asin_test_towardzero): Likewise.
49255         (asin_test_downward): Likewise.
49256         (asin_test_upward): Likewise.
49257         (asinh_test): Likewise.
49258         (atan_test): Likewise.
49259         (atanh_test): Likewise.
49260         (atan2_test): Likewise.
49261         (cabs_test): Likewise.
49262         (cacos_test): Likewise.
49263         (cacosh_test): Likewise.
49264         (carg_test): Likewise.
49265         (casin_test): Likewise.
49266         (casinh_test): Likewise.
49267         (catan_test): Likewise.
49268         (catanh_test): Likewise.
49269         (cbrt_test): Likewise.
49270         (ccos_test): Likewise.
49271         (ccosh_test): Likewise.
49272         (ceil_test): Likewise.
49273         (cexp_test): Likewise.
49274         (cimag_test): Likewise.
49275         (clog_test): Likewise.
49276         (clog10_test): Likewise.
49277         (conj_test): Likewise.
49278         (copysign_test): Likewise.
49279         (cos_test): Likewise.
49280         (cos_test_tonearest): Likewise.
49281         (cos_test_towardzero): Likewise.
49282         (cos_test_downward): Likewise.
49283         (cos_test_upward): Likewise.
49284         (cosh_test): Likewise.
49285         (cosh_test_tonearest): Likewise.
49286         (cosh_test_towardzero): Likewise.
49287         (cosh_test_downward): Likewise.
49288         (cosh_test_upward): Likewise.
49289         (cpow_test): Likewise.
49290         (cproj_test): Likewise.
49291         (creal_test): Likewise.
49292         (csin_test): Likewise.
49293         (csinh_test): Likewise.
49294         (csqrt_test): Likewise.
49295         (ctan_test): Likewise.
49296         (ctan_test_tonearest): Likewise.
49297         (ctan_test_towardzero): Likewise.
49298         (ctan_test_downward): Likewise.
49299         (ctan_test_upward): Likewise.
49300         (ctanh_test): Likewise.
49301         (ctanh_test_tonearest): Likewise.
49302         (ctanh_test_towardzero): Likewise.
49303         (ctanh_test_downward): Likewise.
49304         (ctanh_test_upward): Likewise.
49305         (erf_test): Likewise.
49306         (erfc_test): Likewise.
49307         (exp_test): Likewise.
49308         (exp_test_tonearest): Likewise.
49309         (exp_test_towardzero): Likewise.
49310         (exp_test_downward): Likewise.
49311         (exp_test_upward): Likewise.
49312         (exp10_test): Likewise.
49313         (exp10_test_tonearest): Likewise.
49314         (exp10_test_towardzero): Likewise.
49315         (exp10_test_downward): Likewise.
49316         (exp10_test_upward): Likewise.
49317         (pow10_test): Likewise.
49318         (exp2_test): Likewise.
49319         (expm1_test): Likewise.
49320         (expm1_test_tonearest): Likewise.
49321         (expm1_test_towardzero): Likewise.
49322         (expm1_test_downward): Likewise.
49323         (expm1_test_upward): Likewise.
49324         (fabs_test): Likewise.
49325         (fdim_test): Likewise.
49326         (floor_test): Likewise.
49327         (fma_test): Likewise.
49328         (fma_test_towardzero): Likewise.
49329         (fma_test_downward): Likewise.
49330         (fma_test_upward): Likewise.
49331         (fmax_test): Likewise.
49332         (fmin_test): Likewise.
49333         (fmod_test): Likewise.
49334         (fpclassify_test): Likewise.
49335         (frexp_test): Likewise.
49336         (hypot_test): Likewise.
49337         (ilogb_test): Likewise.
49338         (isfinite_test): Likewise.
49339         (finite_test): Likewise.
49340         (isgreater_test): Likewise.
49341         (isgreaterequal_test): Likewise.
49342         (isinf_test): Likewise.
49343         (isless_test): Likewise.
49344         (islessequal_test): Likewise.
49345         (islessgreater_test): Likewise.
49346         (isnan_test): Likewise.
49347         (isnormal_test): Likewise.
49348         (issignaling_test): Likewise.
49349         (isunordered_test): Likewise.
49350         (j0_test): Likewise.
49351         (j1_test): Likewise.
49352         (jn_test): Likewise.
49353         (ldexp_test): Likewise.
49354         (lgamma_test): Likewise.
49355         (gamma_test): Likewise.
49356         (lrint_test): Likewise.
49357         (lrint_test_tonearest): Likewise.
49358         (lrint_test_towardzero): Likewise.
49359         (lrint_test_downward): Likewise.
49360         (lrint_test_upward): Likewise.
49361         (llrint_test): Likewise.
49362         (llrint_test_tonearest): Likewise.
49363         (llrint_test_towardzero): Likewise.
49364         (llrint_test_downward): Likewise.
49365         (llrint_test_upward): Likewise.
49366         (log_test): Likewise.
49367         (log10_test): Likewise.
49368         (log1p_test): Likewise.
49369         (log2_test): Likewise.
49370         (logb_test): Likewise.
49371         (logb_test_downward): Likewise.
49372         (lround_test): Likewise.
49373         (llround_test): Likewise.
49374         (modf_test): Likewise.
49375         (nearbyint_test): Likewise.
49376         (nextafter_test): Likewise.
49377         (nexttoward_test): Likewise.
49378         (pow_test): Likewise.
49379         (pow_test_tonearest): Likewise.
49380         (pow_test_towardzero): Likewise.
49381         (pow_test_downward): Likewise.
49382         (pow_test_upward): Likewise.
49383         (remainder_test): Likewise.
49384         (drem_test): Likewise.
49385         (remainder_test_tonearest): Likewise.
49386         (drem_test_tonearest): Likewise.
49387         (remainder_test_towardzero): Likewise.
49388         (drem_test_towardzero): Likewise.
49389         (remainder_test_downward): Likewise.
49390         (drem_test_downward): Likewise.
49391         (remainder_test_upward): Likewise.
49392         (drem_test_upward): Likewise.
49393         (remquo_test): Likewise.
49394         (rint_test): Likewise.
49395         (rint_test_tonearest): Likewise.
49396         (rint_test_towardzero): Likewise.
49397         (rint_test_downward): Likewise.
49398         (rint_test_upward): Likewise.
49399         (round_test): Likewise.
49400         (scalb_test): Likewise.
49401         (scalbn_test): Likewise.
49402         (scalbln_test): Likewise.
49403         (signbit_test): Likewise.
49404         (sin_test): Likewise.
49405         (sin_test_tonearest): Likewise.
49406         (sin_test_towardzero): Likewise.
49407         (sin_test_downward): Likewise.
49408         (sin_test_upward): Likewise.
49409         (sincos_test): Likewise.
49410         (sinh_test): Likewise.
49411         (sinh_test_tonearest): Likewise.
49412         (sinh_test_towardzero): Likewise.
49413         (sinh_test_downward): Likewise.
49414         (sinh_test_upward): Likewise.
49415         (sqrt_test): Likewise.
49416         (sqrt_test_tonearest): Likewise.
49417         (sqrt_test_towardzero): Likewise.
49418         (sqrt_test_downward): Likewise.
49419         (sqrt_test_upward): Likewise.
49420         (tan_test): Likewise.
49421         (tan_test_tonearest): Likewise.
49422         (tan_test_towardzero): Likewise.
49423         (tan_test_downward): Likewise.
49424         (tan_test_upward): Likewise.
49425         (tanh_test): Likewise.
49426         (tgamma_test): Likewise.
49427         (trunc_test): Likewise.
49428         (y0_test): Likewise.
49429         (y1_test): Likewise.
49430         (yn_test): Likewise.
49431         (significand_test): Likewise.
49432
49433         * math/libm-test.inc (struct ulp_data): Don't refer to ulps for
49434         individual tests in comment.
49435         (libm-test-ulps.h): Don't refer to test_ulps in #include comment.
49436         (prev_max_error): New variable.
49437         (prev_real_max_error): Likewise.
49438         (prev_imag_max_error): Likewise.
49439         (compare_ulp_data): Don't refer to test names in comment.
49440         (find_test_ulps): Remove function.
49441         (find_function_ulps): Likewise.
49442         (find_complex_function_ulps): Likewise.
49443         (init_max_error): Take function name as argument.  Look up ulps
49444         for that function.
49445         (print_ulps): Remove function.
49446         (print_max_error): Use prev_max_error instead of calling
49447         find_function_ulps.
49448         (print_complex_max_error): Use prev_real_max_error and
49449         prev_imag_max_error instead of calling find_complex_function_ulps.
49450         (check_float_internal): Take max_ulp parameter instead of calling
49451         find_test_ulps.  Don't call print_ulps.
49452         (check_float): Update call to check_float_internal.
49453         (check_complex): Update calls to check_float_internal.
49454         (START): Pass argument to init_max_error.
49455         * math/gen-libm-test.pl (%results): Don't include "kind"
49456         information.
49457         (parse_ulps): Don't handle ulps of individual tests.
49458         (print_ulps_file): Likewise.
49459         (output_ulps): Likewise.
49460         * math/README.libm-test: Update.
49461         * manual/libm-err-tab.pl (parse_ulps): Don't handle ulps of
49462         individual tests.
49463         * sysdeps/aarch64/libm-test-ulps: Remove individual test ulps.
49464         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
49465         * sysdeps/arm/libm-test-ulps: Likewise.
49466         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
49467         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
49468         * sysdeps/m68k/coldfire/fpu/libm-test-ulps: Likewise.
49469         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
49470         * sysdeps/microblaze/libm-test-ulps: Likewise.
49471         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
49472         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
49473         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
49474         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
49475         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
49476         * sysdeps/sh/libm-test-ulps: Likewise.
49477         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
49478         * sysdeps/tile/libm-test-ulps: Likewise.
49479         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49480
49481 2014-03-04  Joseph Myers  <joseph@codesourcery.com>
49482
49483         * math/libm-test.inc (print_complex_max_error): Check separately
49484         whether real and imaginary errors are within allowed range and
49485         pass 0 to print_complex_function_ulps instead of value within
49486         allowed range.
49487
49488 2014-03-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
49489
49490         * libio/tst-ftell-active-handler.c (get_handles_fdopen): Fix
49491         formatting.
49492         (get_handles_fopen): Likewise.
49493         (do_write_test): Likewise.
49494
49495         * libio/wfileops.c (do_ftell_wide): Fix up formatting.
49496
49497         * libio/fileops.c (do_ftell): Use cached offset when
49498         available.
49499         * libio/iofwide.c (do_ftell_wide): Likewise.
49500         * libio/iofdopen.c (_IO_new_fdopen): Don't use
49501         _IO_file_attach.
49502         * libio/wfileops.c (_IO_fwide): Don't cache offset.
49503
49504         [BZ #16532]
49505         * libio/libioP.h (get_file_offset): New function.
49506         * libio/fileops.c (get_file_offset): Likewise.
49507         (do_ftell): Likewise.
49508         (_IO_new_file_seekoff): Split out ftell logic.
49509         * libio/wfileops.c (do_ftell_wide): Likewise.
49510         (_IO_wfile_seekoff): Split out ftell logic.
49511         * libio/tst-ftell-active-handler.c: New test case.
49512         * libio/Makefile (tests): Add it.
49513
49514 2014-03-03  Roland McGrath  <roland@hack.frob.com>
49515
49516         * nptl/ChangeLog: Renamed to nptl/ChangeLog.old, no longer used.
49517         * nptl_db/ChangeLog: Renamed to nptl_db/ChangeLog.old, no longer used.
49518
49519 2014-03-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
49520
49521         [BZ #16639]
49522         * nscd/connections.c (nscd_init): Call do_exit.
49523         (start_threads): Call do_exit and notify_parent.
49524         (begin_drop_privileges): Call do_exit.
49525         (finish_drop_privileges): Likewise.
49526         * nscd/selinux.c (preserve_capabilities): Likewise.
49527         (install_real_capabilities): Likewise.
49528         (nscd_selinux_enabled): Likewise.
49529         (avc_create_thread): Likewise.
49530         (avc_alloc_lock): Likewise.
49531         (nscd_avc_init): Likewise.
49532         * nscd/nscd.c (parent_fd): New static variable.
49533         (main): Create a pipe between parent and child processes.
49534         Skip closing parent_fd.
49535         (monitor_child): New function.
49536         (do_exit): Likewise.
49537         (notify_parent): Likewise.
49538         * nscd/nscd.h (notify_parent): Likewise.
49539         (do_exit): Likewise.
49540
49541 2014-03-03  Carlos O'Donell  <carlos@redhat.com>
49542
49543         * malloc/malloc.c (__libc_calloc): Revert last change.
49544
49545 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49546
49547         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
49548
49549 2014-03-03  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
49550
49551         * sysdeps/powerpc/powerpc64/power7/strrchr.S: New file.
49552         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strrchr multiarch
49553         implementation.
49554         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
49555         (__libc_ifunc_impl_list): Likewise.
49556         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: New file.
49557         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: New file.
49558         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: New file.
49559         * string/strrchr.c: Define STRRCHR.
49560
49561 2014-02-28  Ondřej Bílka  <neleai@seznam.cz>
49562
49563         * benchtest/bench-strtok.c (simple_strtok): Delete.
49564         (strtok_string): Use as benchmark.
49565         * string/strtok (STRTOK): New macro.
49566
49567 2014-02-28  Carlos O'Donell  <carlos@redhat.com>
49568
49569         * manual/threads.texi: Add header and standard comments to all
49570         functions.
49571
49572         * elf/dl-lookup.c (check_match): New function.
49573         (ELF_MACHINE_SYM_NO_MATCH): Adjust comment.
49574         (do_lookup_x): Remove nested function check_match. Use non-nested
49575         function check_match.
49576
49577 2014-02-28  Roland McGrath  <roland@hack.frob.com>
49578
49579         * csu/Makefile (generated, before-compile): Use += rather than =.
49580         * catgets/Makefile (generated, generated-dirs): Likewise.
49581         * debug/Makefile (generated): Likewise.
49582         * dlfcn/Makefile (generated): Likewise.
49583         * elf/Makefile (before-compile, generated, generated-dirs): Likewise.
49584         * iconvdata/Makefile (before-compile, generated): Likewise.
49585         * intl/Makefile (before-compile, generated, generated-dirs): Likewise.
49586         * libio/Makefile (generated): Likewise.
49587         * malloc/Makefile (generated): Likewise.
49588         * manual/Makefile (generated, generated-dirs): Likewise.
49589         * misc/Makefile (generated): Likewise.
49590         * posix/Makefile (generated): Likewise.
49591         * resolv/Makefile (generated): Likewise.
49592         * sunrpc/Makefile (generated, generated-dirs): Likewise.
49593         * timezone/Makefile (generated, generated-dirs): Likewise.
49594
49595         * stdio-common/Versions (libc: GLIBC_PRIVATE): Add missing }.
49596
49597 2014-02-27  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49598
49599         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
49600         power8 implementation.
49601         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: New
49602         file: POWER8 llround ifunc implementation.
49603         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
49604         (__lllround): Add POWER8 implementation.
49605         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: New file:
49606         POWER8 llround implementation.
49607
49608         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint
49609         power8 implementation.
49610         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: New
49611         file: POWER8 llrint ifunc implementation.
49612         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c (__lllrint):
49613         Add POWER8 implementation.
49614         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: New file:
49615         POWER8 llrint implementation.
49616
49617         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite
49618         power8 implementation.
49619         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: New
49620         file: POWER8 finite ifunc implementation.
49621         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c (__finite):
49622         Add POWER8 implementation.
49623         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c (__finitef):
49624         Likewise.
49625         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: New file:
49626         POWER8 finite implementation.
49627         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: New file.
49628
49629         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf
49630         power8 implementation.
49631         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: New
49632         file: POWER8 isinf ifunc implementation.
49633         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c (__isinf): Add
49634         POWER8 implementation.
49635         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c (__isinff):
49636         Likewise.
49637         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: New file: POWER8
49638         isinf implementation.
49639         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: New file.
49640
49641         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
49642         (INIT_ARCH): Add hwcap2 initialization.
49643         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
49644         power8 implementation.
49645         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: New
49646         file: POWER8 isnan ifunc implementation.
49647         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c (__isnan): Add
49648         POWER8 implementation.
49649         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c (__isnanf):
49650         Likewise.
49651         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: New file: POWER8
49652         isnan implementation.
49653         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: New file.
49654
49655 2014-02-27  Joey Ye  <joey.ye@arm.com>
49656
49657         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
49658         (_FP_NANFRAC_Q): Set to zero.
49659
49660 2014-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
49661
49662         [BZ #16623]
49663         * math/auto-libm-test-in: New test inputs.
49664         * math/auto-libm-test-out: Regenerate.
49665         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Preserve sign of A
49666         and DA.
49667         (__cos): Likewise.
49668         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
49669
49670 2014-02-27  Joseph Myers  <joseph@codesourcery.com>
49671
49672         * scripts/evaluate-test.sh: Take new argument indicating whether
49673         failure is expected.
49674         * Makeconfig (evaluate-test): Pass argument to evaluate-test.sh
49675         indicating whether failure is expected.
49676         * conform/Makefile (test-xfail-run-conformtest): New variable.
49677         ($(objpfx)run-conformtest.out): Don't expect to fail at makefile
49678         level.
49679         * posix/Makefile (test-xfail-annexc): New variable.
49680         ($(objpfx)annexc.out): Don't expect to fail at makefile level.
49681
49682 2014-02-26  Joseph Myers  <joseph@codesourcery.com>
49683
49684         * argp/Makefile: Include Makeconfig immediately after defining
49685         subdir.
49686         * assert/Makefile: Likewise.
49687         * benchtests/Makefile: Likewise.
49688         * catgets/Makefile: Likewise.
49689         * conform/Makefile: Likewise.
49690         * crypt/Makefile: Likewise.
49691         * csu/Makefile: Likewise.
49692         (all): Remove target.
49693         * ctype/Makefile: Include Makeconfig immediately after defining
49694         subdir.
49695         * debug/Makefile: Likewise.
49696         * dirent/Makefile: Likewise.
49697         * dlfcn/Makefile: Likewise.
49698         * gmon/Makefile: Likewise.
49699         * gnulib/Makefile: Likewise.
49700         * grp/Makefile: Likewise.
49701         * gshadow/Makefile: Likewise.
49702         * hesiod/Makefile: Likewise.
49703         * hurd/Makefile: Likewise.
49704         (all): Remove target.
49705         * iconvdata/Makefile: Include Makeconfig immediately after
49706         defining subdir.
49707         * inet/Makefile: Likewise.
49708         * intl/Makefile: Likewise.
49709         * io/Makefile: Likewise.
49710         * libio/Makefile: Likewise.
49711         (all): Remove target.
49712         * locale/Makefile: Include Makeconfig immediately after defining
49713         subdir.
49714         * login/Makefile: Likewise.
49715         * mach/Makefile: Likewise.
49716         (all): Remove target.
49717         * malloc/Makefile: Include Makeconfig immediately after defining
49718         subdir.
49719         (all): Remove target.
49720         * manual/Makefile: Include Makeconfig immediately after defining
49721         subdir.
49722         * math/Makefile: Likewise.
49723         * misc/Makefile: Likewise.
49724         * nis/Makefile: Likewise.
49725         * nss/Makefile: Likewise.
49726         * po/Makefile: Likewise.
49727         (all): Remove target.
49728         * posix/Makefile: Include Makeconfig immediately after defining
49729         subdir.
49730         * pwd/Makefile: Likewise.
49731         * resolv/Makefile: Likewise.
49732         * resource/Makefile: Likewise.
49733         * rt/Makefile: Likewise.
49734         * setjmp/Makefile: Likewise.
49735         * shadow/Makefile: Likewise.
49736         * signal/Makefile: Likewise.
49737         * socket/Makefile: Likewise.
49738         * soft-fp/Makefile: Likewise.
49739         * stdio-common/Makefile: Likewise.
49740         * stdlib/Makefile: Likewise.
49741         * streams/Makefile: Likewise.
49742         * string/Makefile: Likewise.
49743         * sunrpc/Makefile: Likewise.
49744         (all): Remove target.
49745         * sysvipc/Makefile: Include Makeconfig immediately after defining
49746         subdir.
49747         * termios/Makefile: Likewise.
49748         * time/Makefile: Likewise.
49749         * timezone/Makefile: Likewise.
49750         (all): Remove target.
49751         * wcsmbs/Makefile: Include Makeconfig immediately after defining
49752         subdir.
49753         * wctype/Makefile: Likewise.
49754
49755 2014-02-26  Steve Ellcey  <sellcey@mips.com>
49756
49757         * sysdeps/mips/math_private.h (_FPU_MASK_ALL) New.
49758         (libc_feholdexcept_mips): Use _FPU_MASK_ALL.
49759         (libc_feholdexcept_setround_mips): Ditto.
49760         (libc_feholdsetround): New.
49761         (libc_feholdsetroundf): New.
49762         (libc_feholdsetroundl): New.
49763         (libc_feupdateenv_test_mips): New.
49764         (libc_feupdateenv_test): New.
49765         (libc_feupdateenv_testf): New.
49766         (libc_feupdateenv_testl): New.
49767         (libc_feresetround): New.
49768         (libc_feresetroundf): New.
49769         (libc_feresetroundl): New.
49770         (libc_fetestexcept_mips): New.
49771         (libc_fetestexcept): New.
49772         (libc_fetestexceptf): New.
49773         (libc_fetestexceptl): New.
49774         (HAVE_RM_CTX): New.
49775         (libc_feholdexcept_setround_mips_ctx): New.
49776         (libc_feholdexcept_setround_ctx): New.
49777         (libc_feholdexcept_setroundf_ctx): New.
49778         (libc_feholdexcept_setroundl_ctx): New.
49779         (libc_fesetenv_mips_ctx): New.
49780         (libc_fesetenv_ctx): New.
49781         (libc_fesetenv_ctxf): New.
49782         (libc_fesetenv_ctxl): New.
49783         (libc_feupdateenv_mips_ctx): New.
49784         (libc_feupdateenv_ctx): New.
49785         (libc_feupdateenvf_ctx): New.
49786         (libc_feupdateenvl_ctx): New.
49787         (libc_feholdsetround_mips_ctx): New.
49788         (libc_feholdsetround_ctx): New.
49789         (libc_feholdsetroundf_ctx): New.
49790         (libc_feholdsetroundl_ctx): New.
49791         (libc_feresetround_mips_ctx): New.
49792         (libc_feresetround_ctx): New.
49793         (libc_feresetroundf_ctx): New.
49794         (libc_feresetroundl_ctx): New.
49795
49796 2014-02-26  Carlos O'Donell  <carlos@redhat.com>
49797
49798         * manual/ipc.texi (Semaphores): Use @Theglibc{}.
49799
49800         * manual/ipc.texi: New file.
49801         * manual/Makefile (chapters): Add ipc.
49802         * manual/job.texi: Add "Inter-Process Communication" to next.
49803         * manual/process.texi: Add "Inter-Process Communication" to prev.
49804
49805 2014-02-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49806
49807         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
49808
49809 2014-02-26  Ondřej Bílka  <neleai@seznam.cz>
49810
49811         * malloc/malloc.c (__libc_calloc): Simplify implementation.
49812
49813         * manual/arith.texi: Fix spaces after sentences.
49814         * manual/charset.texi: Likewise.
49815         * manual/errno.texi: Likewise.
49816         * manual/install.texi: Likewise.
49817         * manual/llio.texi: Likewise.
49818         * manual/locale.texi: Likewise.
49819         * manual/maint.texi: Likewise.
49820         * manual/math.texi: Likewise.
49821         * manual/memory.texi: Likewise.
49822         * manual/message.texi: Likewise.
49823         * manual/probes.texi: Likewise.
49824         * manual/resource.texi: Likewise.
49825         * manual/signal.texi: Likewise.
49826         * manual/socket.texi: Likewise.
49827         * manual/stdio.texi: Likewise.
49828         * manual/string.texi: Likewise.
49829         * manual/time.texi: Likewise.
49830         * manual/users.texi: Likewise.
49831
49832 2014-02-25  Carlos O'Donell  <carlos@redhat.com>
49833
49834         [BZ #16632]
49835         * include/features.h: Don't warn about _BSD_SOURCE or _SVID_SOURCE if
49836         _DEFAULT_SOURCE is defined.
49837
49838 2014-02-25  Ulrich Drepper  <drepper@gmail.com>
49839             Carlos O'Donell  <carlos@redhat.com>
49840
49841         [BZ #16613]
49842         * elf/dl-tls.c (_dl_count_modids): New function.
49843         * sysdeps/generic/ldsodefs.h: Declare _dl_count_modids.
49844         * elf/rtld.c (dl_main): Call _dl_count_modids to track TLS usage in
49845         audit library and increment generation counter.
49846         (_dl_allocate_tls_init): Add assertion to check TLS generation count.
49847         * elf/tst-audit9.c: New file.
49848         * elf/tst-auditmod9a.c: New file.
49849         * elf/tst-auditmod9b.c: New file.
49850         * elf/Makefile: Add rules to build and run tst-audit9.
49851
49852 2014-02-25  Florian Weimer  <fweimer@redhat.com>
49853
49854         [BZ #15347]
49855         * misc/sys/select.h (__FD_MASK): Avoid signed integer overflow.
49856
49857 2014-02-25  Will Newton  <will.newton@linaro.org>
49858
49859         * sysdeps/arm/__longjmp.S: Include stap-probe.h.
49860         (__longjmp): Restore sp and lr before restoring callee
49861         saved registers.  Add longjmp and longjmp_target
49862         SystemTap probe point.
49863         * sysdeps/arm/bits/setjmp.h (__jmp_buf): Update comment.
49864         * sysdeps/arm/include/bits/setjmp.h (__JMP_BUF_SP):
49865         Define to zero to match jmpbuf layout.
49866         * sysdeps/arm/setjmp.S: Include stap-probe.h.
49867         (__sigsetjmp): Save sp and lr before saving callee
49868         saved registers.  Add setjmp SystemTap probe point.
49869
49870 2014-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
49871
49872         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
49873
49874 2014-02-24  Andreas Schwab  <schwab@suse.de>
49875
49876         [BZ #15804]
49877         * elf/pldd.c (wait_for_ptrace_stop): New function.
49878         (main): Call it after attaching.
49879
49880 2014-02-22  Roland McGrath  <roland@hack.frob.com>
49881
49882         * Makerules ($(common-objpfx)Versions.v.i): No longer depend
49883         on $(common-objpfx)abi-versions.h; using <shlib-compat.h> inside
49884         Versions files is now verboten.
49885         * hurd/Versions (libc: GLIBC_2.0):
49886         Remove various [SHLIB_COMPAT (libc, GLIBC_2_0, ...)] sections.
49887         (libc: HURD_CTHREADS_0.3): Remove conditionalization, was under
49888         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)].
49889         * mach/Versions: Likewise.
49890
49891         * csu/Versions: Remove unused %include.
49892         * resolv/Versions: Likewise.
49893
49894 2014-02-21  Joseph Myers  <joseph@codesourcery.com>
49895
49896         * Makefile ($(objpfx)c++-types-check.out): Use $(evaluate-test).
49897         ($(objpfx)check-local-headers.out): Likewise.
49898         ($(objpfx)begin-end-check.out): Likewise.
49899         * Makerules (check-abi-%.out): Likewise.
49900         * catgets/Makefile ($(objpfx)test1.cat): Likewise.
49901         ($(objpfx)test2.cat): Likewise.
49902         ($(objpfx)de/libc.cat): Likewise.
49903         ($(objpfx)test-gencat.out): Likewise.
49904         * conform/Makefile ($(objpfx)run-conformtest.out): Likewise.
49905         * elf/Makefile ($(objpfx)order-cmp.out): Likewise.
49906         ($(objpfx)noload-mem): Likewise.
49907         ($(objpfx)tst-pathopt.out): Likewise.
49908         ($(objpfx)tst-rtld-load-self.out): Likewise.
49909         ($(objpfx)tst-array1-cmp.out): Likewise.
49910         ($(objpfx)tst-array1-static-cmp.out): Likewise.
49911         ($(objpfx)tst-array2-cmp.out): Likewise.
49912         ($(objpfx)tst-array3-cmp.out): Likewise.
49913         ($(objpfx)tst-array4-cmp.out): Likewise.
49914         ($(objpfx)tst-array5-cmp.out): Likewise.
49915         ($(objpfx)tst-array5-static-cmp.out): Likewise.
49916         ($(objpfx)check-textrel.out): Likewise.
49917         ($(objpfx)check-execstack.out): Likewise.
49918         ($(objpfx)check-localplt.out): Likewise.
49919         ($(objpfx)order2-cmp.out): Likewise.
49920         ($(objpfx)tst-leaks1-mem): Likewise.
49921         ($(objpfx)tst-leaks1-static-mem): Likewise.
49922         ($(objpfx)tst-initorder-cmp.out): Likewise.
49923         ($(objpfx)tst-initorder2-cmp.out): Likewise.
49924         ($(objpfx)tst-unused-dep.out): Likewise.
49925         ($(objpfx)tst-unused-dep-cmp.out): Likewise.
49926         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
49927         * iconv/Makefile (test-iconvconfig): Likewise.
49928         * iconvdata/Makefile ($(objpfx)mtrace-tst-loading): Likewise.
49929         ($(objpfx)iconv-test.out): Likewise.
49930         ($(objpfx)tst-tables.out): Likewise.
49931         * intl/Makefile ($(objpfx)mtrace-tst-gettext): Likewise.
49932         ($(objpfx)tst-gettext.out): Likewise.
49933         ($(objpfx)tst-translit.out): Likewise.
49934         ($(objpfx)tst-gettext2.out): Likewise.
49935         ($(objpfx)tst-gettext4.out): Likewise.
49936         ($(objpfx)tst-gettext6.out): Likewise.
49937         * io/Makefile ($(objpfx)ftwtest.out): Likewise.
49938         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
49939         ($(objpfx)tst-fopenloc-cmp.out): Likewise.
49940         ($(objpfx)tst-fopenloc-mem.out): Likewise.
49941         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
49942         * misc/Makefile ($(objpfx)tst-error1-mem): Likewise.
49943         * posix/Makefile ($(objpfx)globtest.out): Likewise.
49944         ($(objpfx)wordexp-tst.out): Likewise.
49945         ($(objpfx)annexc.out): Likewise.
49946         ($(objpfx)tst-fnmatch-mem): Likewise.
49947         ($(objpfx)bug-regex2-mem): Likewise.
49948         ($(objpfx)bug-regex14-mem): Likewise.
49949         ($(objpfx)bug-regex21-mem): Likewise.
49950         ($(objpfx)bug-regex31-mem): Likewise.
49951         ($(objpfx)tst-vfork3-mem): Likewise.
49952         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
49953         ($(objpfx)tst-pcre-mem): Likewise.
49954         ($(objpfx)tst-boost-mem): Likewise.
49955         ($(objpfx)tst-getconf.out): Likewise.
49956         ($(objpfx)bug-ga2-mem): Likewise.
49957         ($(objpfx)bug-glob2-mem): Likewise.
49958         * resolv/Makefile ($(objpfx)mtrace-tst-leaks): Likewise.
49959         ($(objpfx)mtrace-tst-leaks2): Likewise.
49960         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Likewise.
49961         ($(objpfx)tst-printf.out): Likewise.
49962         ($(objpfx)tst-setvbuf1.out): Likewise.
49963         ($(objpfx)tst-setvbuf1-cmp.out): Likewise.
49964         * stdlib/Makefile ($(objpfx)isomac.out): Likewise.
49965         ($(objpfx)tst-fmtmsg.out): Likewise.
49966         * string/Makefile ($(objpfx)tst-svc-cmp.out): Likewise.
49967         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Likewise.
49968
49969         * bits/fcntl.h [__USE_MISC]: Remove redundant conditionals.
49970         * bits/sigaction.h [__USE_MISC]: Likewise.
49971         * bits/waitstatus.h: Update #endif comments.
49972         * ctype/ctype.h: Likewise.
49973         * dirent/dirent.h: Likewise.
49974         [__USE_MISC]: Remove redundant conditionals.
49975         * grp/grp.h: Update #endif comments.
49976         [__USE_GNU]: Remove redundant conditionals.
49977         [__USE_MISC]: Likewise.
49978         * inet/netinet/in.h [__USE_GNU]: Likewise.
49979         * io/sys/stat.h [__USE_MISC]: Likewise.
49980         * libio/bits/stdio-ldbl.h [__USE_MISC]: Likewise.
49981         * libio/bits/stdio.h: Update #endif comments.
49982         [__USE_MISC]: Remove redundant conditionals.
49983         * libio/bits/stdio2.h [__USE_MISC]: Likewise.
49984         * libio/stdio.h: Update #endif comments.
49985         [__USE_MISC]: Remove redundant conditionals.
49986         * math/bits/math-finite.h [__USE_MISC]: Likewise.
49987         * math/bits/mathcalls.h [__USE_MISC]: Likewise.
49988         * math/math.h: Update #else and #endif comments.
49989         [__USE_MISC]: Remove redundant conditionals.
49990         * misc/sys/uio.h: Update #endif comments.
49991         * posix/bits/unistd.h [__USE_MISC]: Remove redundant conditionals.
49992         * posix/glob.h [__USE_MISC]: Likewise.
49993         * posix/sys/types.h: Update #endif comments.
49994         [__USE_MISC]: Remove redundant conditionals.
49995         * posix/sys/wait.h: Update #endif comments.
49996         [__USE_MISC]: Remove redundant conditionals.
49997         * posix/unistd.h: Update #endif comments.
49998         [__USE_MISC]: Remove redundant conditionals.
49999         * pwd/pwd.h [__USE_GNU]: Likewise.
50000         [__USE_MISC]: Likewise.
50001         * resolv/netdb.h [__USE_GNU]: Likewise.
50002         * signal/signal.h: Update #endif comments.
50003         [__USE_MISC]: Remove redundant conditionals.
50004         * stdlib/stdlib.h: Update #else and #endif comments.
50005         [__USE_MISC]: Remove redundant conditionals.
50006         [__USE_GNU]: Likewise.
50007         * string/bits/string2.h [__USE_MISC]: Likewise.
50008         * string/string.h: Update #endif comments.
50009         [__USE_MISC]: Remove redundant conditionals.
50010         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h [__USE_MISC]:
50011         Likewise.
50012         * sysdeps/mach/hurd/bits/fcntl.h [__USE_MISC]: Likewise.
50013         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC]: Likewise.
50014         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h [__USE_MISC]:
50015         Likewise.
50016         * sysdeps/unix/sysv/linux/alpha/bits/stat.h [__USE_MISC]:
50017         Likewise.
50018         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Update #endif
50019         comments.
50020         [__USE_MISC]: Remove redundant conditionals.
50021         * sysdeps/unix/sysv/linux/bits/in.h [__USE_GNU]: Likewise.
50022         * sysdeps/unix/sysv/linux/bits/sigaction.h [__USE_MISC]: Likewise.
50023         * sysdeps/unix/sysv/linux/bits/socket.h [__USE_GNU]: Likewise.
50024         * sysdeps/unix/sysv/linux/bits/stat.h [__USE_MISC]: Likewise.
50025         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h [__USE_MISC]:
50026         Likewise.
50027         * sysdeps/unix/sysv/linux/m68k/bits/stat.h [__USE_MISC]: Likewise.
50028         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h [__USE_MISC]:
50029         Likewise.
50030         * sysdeps/unix/sysv/linux/mips/bits/stat.h [__USE_MISC]: Likewise.
50031         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__USE_MISC]:
50032         Likewise.
50033         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h [__USE_MISC]:
50034         Likewise.
50035         * sysdeps/unix/sysv/linux/s390/bits/stat.h [__USE_MISC]: Likewise.
50036         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h [__USE_MISC]:
50037         Likewise.
50038         * sysdeps/unix/sysv/linux/sparc/bits/stat.h [__USE_MISC]:
50039         Likewise.
50040         * sysdeps/unix/sysv/linux/x86/bits/stat.h [__USE_MISC]: Likewise.
50041         * sysdeps/x86/bits/string.h: Update #endif comments.
50042         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC]: Remove redundant
50043         conditionals.
50044         * time/sys/time.h: Update #endif comments.
50045         * time/time.h: Likewise.
50046         [__USE_MISC]: Remove redundant conditionals.
50047
50048 2014-02-21  Yury Gribov  <y.gribov@samsung.com>
50049
50050         [BZ #16600]
50051         * sysdeps/arm/libm-test-ulps: Update for VFPv4.
50052
50053 2014-02-21  Andreas Schwab  <schwab@linux-m68k.org>
50054
50055         * Versions.def (librt): Add GLIBC_2.17.
50056
50057 2014-02-21  Adam Conrad  <adconrad@0c3.net>
50058
50059         * sysdeps/powerpc/bits/hwcap.h: Allow _SYSDEPS_SYSDEP_H guard as a
50060         synonym for _SYS_AUXV_H to allow direct inclusion.
50061         * sysdeps/sparc/bits/hwcap.h: Likewise.
50062         * sysdeps/powerpc/sysdep.h: Define _SYSDEPS_SYSDEP_H instead of
50063         _SYS_AUXV_H so we can include sysdep.h and sys/auxv.h together.
50064         * sysdeps/sparc/sysdep.h: Likewise.
50065
50066 2014-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
50067
50068         * benchtests/bench-strrchr.c (do_test): Fix minor formatting.
50069
50070 2014-02-21  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
50071
50072         * benchtests/bench-strrchr.c: Print length instead of position.
50073
50074 2014-02-20  Joseph Myers  <joseph@codesourcery.com>
50075
50076         [BZ #16611]
50077         * sysdeps/unix/sysv/linux/kernel-features.h
50078         [__LINUX_KERNEL_VERSION >= 0x030000 && __ASSUME_SOCKETCALL]
50079         (__ASSUME_SENDMMSG_SOCKETCALL): Define.
50080         [__LINUX_KERNEL_VERSION >= 0x030000 && (__i386__ || __x86_64__ ||
50081         __powerpc__ || __sh__ || __sparc__)] (__ASSUME_SENDMMSG_SYSCALL):
50082         Likewise.
50083         [__i386__ || __powerpc__ || __sh__ || __sparc__]
50084         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
50085         [__ASSUME_SENDMMSG_SOCKETCALL || __ASSUME_SENDMMSG_SYSCALL]
50086         (__ASSUME_SENDMMSG): Define instead of using previous
50087         [__LINUX_KERNEL_VERSION >= 0x020627] condition.
50088         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
50089         (__ASSUME_SENDMMSG_SYSCALL): Define.
50090         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
50091         [__LINUX_KERNEL_VERSION >= 0x030200] (__ASSUME_SENDMMSG_SYSCALL):
50092         Likewise.
50093         * sysdeps/unix/sysv/linux/arm/kernel-features.h
50094         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
50095         Likewise.
50096         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
50097         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
50098         Likewise.
50099         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SOCKETCALL
50100         && !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
50101         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
50102         [__ASSUME_SENDMMSG]: Change conditionals to
50103         [__ASSUME_SENDMMSG_SOCKETCALL].
50104         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
50105         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_SENDMMSG_SYSCALL):
50106         Define.
50107         * sysdeps/unix/sysv/linux/mips/kernel-features.h
50108         [__LINUX_KERNEL_VERSION >= 0x030100] (__ASSUME_SENDMMSG_SYSCALL):
50109         Likewise.
50110         * sysdeps/unix/sysv/linux/sendmmsg.c [__ASSUME_SOCKETCALL &&
50111         !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
50112         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
50113         [!__ASSUME_SENDMMSG]: Change conditional to
50114         [!__ASSUME_SENDMMSG_SOCKETCALL].
50115         * sysdeps/unix/sysv/linux/tile/kernel-features.h
50116         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
50117         Define.
50118
50119         [BZ #16610]
50120         * sysdeps/unix/sysv/linux/kernel-features.h
50121         [__LINUX_KERNEL_VERSION >= 0x020621 && __ASSUME_SOCKETCALL]
50122         (__ASSUME_RECVMMSG_SOCKETCALL): Define.
50123         [(__LINUX_KERNEL_VERSION >= 0x020621 && (__i386__ || __x86_64__ ||
50124         __sparc__)) || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__
50125         || __sh__))] (__ASSUME_RECVMMSG_SYSCALL): Likewise.
50126         [__i386__ || __sparc__]
50127         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
50128         [__ASSUME_RECVMMSG_SOCKETCALL || __ASSUME_RECVMMSG_SYSCALL]
50129         (__ASSUME_RECVMMSG): Define instead of using previous
50130         [__LINUX_KERNEL_VERSION >= 0x020621] condition.
50131         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
50132         (__ASSUME_RECVMMSG_SYSCALL): Define.
50133         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
50134         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
50135         Likewise.
50136         * sysdeps/unix/sysv/linux/arm/kernel-features.h
50137         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
50138         Likewise.
50139         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
50140         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
50141         Likewise.
50142         * sysdeps/unix/sysv/linux/internal_recvmmsg.S [__ASSUME_SOCKETCALL
50143         && !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
50144         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
50145         [__ASSUME_RECVMMSG]: Change condition to
50146         [__ASSUME_RECVMMSG_SOCKETCALL].
50147         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
50148         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
50149         Define.
50150         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
50151         * sysdeps/unix/sysv/linux/mips/kernel-features.h
50152         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
50153         Likewise.
50154         * sysdeps/unix/sysv/linux/recvmmsg.c [__ASSUME_SOCKETCALL &&
50155         !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
50156         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
50157         [!__ASSUME_RECVMMSG]: Change condition to
50158         [!__ASSUME_RECVMMSG_SOCKETCALL].
50159         * sysdeps/unix/sysv/linux/tile/kernel-features.h
50160         (__ASSUME_RECVMMSG_SYSCALL): Define.
50161
50162         [BZ #16609]
50163         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__ ||
50164         __powerpc__ || __s390__ || __sh__ || __sparc__]
50165         (__ASSUME_SOCKETCALL): Define.
50166         [__LINUX_KERNEL_VERSION && __ASSUME_SOCKETCALL]
50167         (__ASSUME_ACCEPT4_SOCKETCALL): Likewise.
50168         [(__LINUX_KERNEL_VERSION >= 0x02061c && (__x86_64__ || __sparc__))
50169         || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__ ||
50170         __sh__))] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
50171         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
50172         [__ASSUME_ACCEPT4_SOCKETCALL || __ASSUME_ACCEPT4_SYSCALL]
50173         (__ASSUME_ACCEPT4): Define instead of using previous
50174         [__LINUX_KERNEL_VERSION >= 0x02061c && (__i386__ || __x86_64__ ||
50175         __powerpc__ || __sparc__ || __s390__)] condition.
50176         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
50177         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
50178         * sysdeps/unix/sysv/linux/accept4.c [__ASSUME_SOCKETCALL &&
50179         !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
50180         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
50181         [!__ASSUME_ACCEPT4]: Change condition to
50182         [!__ASSUME_ACCEPT4_SOCKETCALL].
50183         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
50184         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.  Correct
50185         condition to [__LINUX_KERNEL_VERSION >= 0x030200].
50186         * sysdeps/unix/sysv/linux/arm/kernel-features.h
50187         [__LINUX_KERNEL_VERSION >= 0x020624] (__ASSUME_ACCEPT4): Change to
50188         __ASSUME_ACCEPT4_SYSCALL.
50189         * sysdeps/unix/sysv/linux/i386/accept4.S [__ASSUME_ACCEPT4]:
50190         Change conditions to [__ASSUME_ACCEPT4_SOCKETCALL].
50191         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
50192         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_ACCEPT4): Change to
50193         __ASSUME_ACCEPT4_SYSCALL.
50194         * sysdeps/unix/sysv/linux/internal_accept4.S [__ASSUME_SOCKETCALL
50195         && !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
50196         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
50197         [__ASSUME_ACCEPT4]: Change condition to
50198         [__ASSUME_ACCEPT4_SOCKETCALL].
50199         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
50200         (__ASSUME_SOCKETCALL): Define.
50201         [__LINUX_KERNEL_VERSION >= 0x02061c] (__ASSUME_ACCEPT4): Remove.
50202         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
50203         (__ASSUME_SOCKETCALL): Define.
50204         (__ASSUME_ACCEPT4): Remove.
50205         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_ACCEPT4_SYSCALL):
50206         Define.
50207         * sysdeps/unix/sysv/linux/mips/kernel-features.h
50208         [__LINUX_KERNEL_VERSION >= 0x02061f] (__ASSUME_ACCEPT4_SYSCALL):
50209         Likewise.
50210         * sysdeps/unix/sysv/linux/tile/kernel-features.h
50211         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
50212
50213         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h (HWCAP_ARM_VFPD32): New
50214         macro.
50215         (HWCAP_ARM_LPAE): Likewise.
50216         (HWCAP_ARM_EVTSTRM): Likewise.
50217         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (_dl_arm_cap_flags):
50218         Add vpfd32, lpae and evtstrm.
50219         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
50220         Increase to 22.
50221
50222 2014-02-19  Joseph Myers  <joseph@codesourcery.com>
50223
50224         * math/auto-libm-test-in: Add tests of clog10.
50225         * math/auto-libm-test-out: Regenerated.
50226         * math/libm-test.inc (clog10_test_data): Use AUTO_TESTS_c_c.
50227         * sysdeps/i386/fpu/libm-test-ulps: Update.
50228         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
50229
50230 2014-02-18  Andreas Schwab  <schwab@suse.de>
50231
50232         [BZ #16574]
50233         * resolv/res_send.c (send_vc): Add parameter ansp2_malloced.
50234         Store non-zero if the second buffer was newly allocated.
50235         (send_dg): Likewise.
50236         (__libc_res_nsend): Add parameter ansp2_malloced and pass it down
50237         to send_vc and send_dg.
50238         (res_nsend): Pass NULL for ansp2_malloced.
50239         * resolv/res_query.c (__libc_res_nquery): Add parameter
50240         answerp2_malloced and pass it down to __libc_res_nsend.
50241         (res_nquery): Pass additional NULL to __libc_res_nquery.
50242         (__libc_res_nsearch): Add parameter answerp2_malloced and pass it
50243         down to __libc_res_nquery and __libc_res_nquerydomain.  Deallocate
50244         second answer buffer if answerp2_malloced was set.
50245         (res_nsearch): Pass additional NULL to __libc_res_nsearch.
50246         (__libc_res_nquerydomain): Add parameter
50247         answerp2_malloced and pass it down to __libc_res_nquery.
50248         (res_nquerydomain): Pass additional NULL to
50249         __libc_res_nquerydomain.
50250         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Pass
50251         additional NULL to __libc_res_nsend and __libc_res_nquery.
50252         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Pass
50253         additional NULL to __libc_res_nsearch.
50254         (_nss_dns_gethostbyname4_r): Revert last change.  Use new
50255         parameter of __libc_res_nsearch to check for separately allocated
50256         second buffer.
50257         (_nss_dns_gethostbyaddr2_r): Pass additional NULL to
50258         __libc_res_nquery.
50259         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Pass
50260         additional NULL to __libc_res_nquery.
50261         * resolv/gethnamaddr.c (gethostbyname2): Pass additional NULL to
50262         __libc_res_nsearch.
50263         (gethostbyaddr): Pass additional NULL to __libc_res_nquery.
50264         * include/resolv.h: Update prototypes of __libc_res_nquery,
50265         __libc_res_nsearch, __libc_res_nsend.
50266
50267 2014-02-18  Joseph Myers  <joseph@codesourcery.com>
50268
50269         * math/auto-libm-test-in: Add tests of fma.
50270         * math/auto-libm-test-out: Regenerated.
50271         * math/libm-test.inc (fma_test_data): Use AUTO_TESTS_fff_f.
50272         (fma_towardzero_test_data): Likewise.
50273         (fma_downward_test_data): Likewise.
50274         (fma_upward_test_data): Likewise.
50275         * math/gen-auto-libm-tests.c (rounding_mode_desc): Add field
50276         mpc_mode.
50277         (rounding_modes): Add values for new field.
50278         (func_calc_method): Add value mpfr_fff_f.
50279         (func_calc_desc): Add mpfr_fff_f union field.
50280         (test_function): Add field exact_args.
50281         (FUNC): Add macro argument EXACT_ARGS.
50282         (FUNC_mpfr_f_f): Update call to FUNC.
50283         (FUNC_mpfr_f_f): Likewise.
50284         (FUNC_mpfr_ff_f): Likewise.
50285         (FUNC_mpfr_if_f): Likewise.
50286         (FUNC_mpc_c_f): Likewise.
50287         (FUNC_mpc_c_c): Likewise.
50288         (test_functions): Add fma.  Update calls to FUNC.
50289         (handle_input_arg): Add argument exact_args.
50290         (add_test): Update call to handle_input_arg.
50291         (calc_generic_results): Add argument mode.  Handle mpfr_fff_f.
50292         (output_for_one_input_case): Update call to calc_generic_results.
50293         Recalculate exact zero results in each rounding mode.
50294
50295         * math/gen-auto-libm-tests.c (adjust_real): Ensure integers are
50296         non-negative before setting low bit.
50297         * math/auto-libm-test-in: Mark one asin test possibly having
50298         spurious underflow.
50299         * math/auto-libm-test-out: Regenerated.
50300         * sysdeps/i386/fpu/libm-test-ulps: Update.
50301         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
50302
50303 2014-02-17  David Holsgrove <david.holsgrove@xilinx.com>
50304
50305         * sysdeps/microblaze: Move directory from ports/sysdeps/microblaze.
50306         * sysdeps/unix/sysv/linux/microblaze: Move directory from
50307         ports/sysdeps/unix/sysv/linux/microblaze.
50308         * README: Add missing listing for microblaze*-*-linux-gnu.
50309
50310 2014-02-16  Ondřej Bílka  <neleai@seznam.cz>
50311
50312         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Remove
50313         duplicate code
50314
50315 2014-02-16  Mike Frysinger  <vapier@gentoo.org>
50316
50317         * sysdeps/ia64: Move directory from ports/sysdeps/ia64.
50318         * sysdeps/unix/sysv/linux/ia64: Move directory from
50319         ports/sysdeps/unix/sysv/linux/ia64.
50320         * README: Update listing for ia64-*-linux-gnu.
50321
50322 2014-02-14  Tomas Dohnalek  <tdohnale@redhat.com>
50323             Joseph Myers  <joseph@codesourcery.com>
50324
50325         * Makeconfig (test-name): New variable.
50326         (evaluate-test): Likewise.
50327         * Makerules (do-test-clean): Remove .test-result files.
50328         (common-mostlyclean): Likewise.
50329         * Rules ($(objpfx)%.out): Use $(evaluate-test) in both rules.
50330         * scripts/evaluate-test.sh: New file.
50331
50332 2014-02-14  Joseph Myers  <joseph@codesourcery.com>
50333
50334         * libio/Makefile ($(objpfx)tst-fopenloc.check): Split into
50335         separate $(objpfx)tst-fopenloc-cmp.out and
50336         $(objpfx)tst-fopenloc-mem.out targets.
50337         (tests): Update dependencies.
50338         * posix/Makefile (tests variable): Add tst-rxspencer-no-utf8.
50339         (generated): Change tst-rxspencer-mem and tst-rxspencer.mtrace to
50340         tst-rxspencer-no-utf8-mem and tst-rxspencer-no-utf8.mtrace.
50341         (tst-rxspencer-no-utf8-ARGS): New variable.
50342         (tst-rxspencer-no-utf8-ENV): Likewise.
50343         (tests target): Depend on $(objpfx)tst-rxspencer-no-utf8-mem
50344         instead of $(objpfx)tst-rxspencer-mem.
50345         ($(objpfx)tst-rxspencer-mem): Change target to
50346         $(objpfx)tst-rxspencer-no-utf8-mem.  Depend on
50347         $(objpfx)tst-rxspencer-no-utf8.out instead of running test program.
50348         * posix/tst-rxspencer-no-utf8.c: New file.
50349
50350         * elf/Makefile ($(objpfx)order.out): Remove rule.
50351         [$(run-built-tests) = yes] (tests): Depend on
50352         $(objpfx)order-cmp.out.
50353         ($(objpfx)order-cmp.out): New rule.
50354         [$(run-built-tests) = yes] (tests): Depend on
50355         $(objpfx)tst-array1-cmp.out, $(objpfx)tst-array1-static-cmp.out,
50356         $(objpfx)tst-array2-cmp.out, $(objpfx)tst-array3-cmp.out,
50357         $(objpfx)tst-array4-cmp.out, $(objpfx)tst-array5-cmp.out and
50358         $(objpfx)tst-array5-static-cmp.out.
50359         ($(objpfx)tst-array1.out): Remove rule.
50360         ($(objpfx)tst-array1-cmp.out): New rule.
50361         ($(objpfx)tst-array1-static.out): Remove rule.
50362         ($(objpfx)tst-array1-static-cmp.out): New rule.
50363         ($(objpfx)tst-array2.out): Remove rule.
50364         ($(objpfx)tst-array2-cmp.out): New rule.
50365         ($(objpfx)tst-array3.out): Remove rule.
50366         ($(objpfx)tst-array3-cmp.out): New rule.
50367         ($(objpfx)tst-array4.out): Remove rule.
50368         ($(objpfx)tst-array4-cmp.out): New rule.
50369         ($(objpfx)tst-array5.out): Remove rule.
50370         ($(objpfx)tst-array5-cmp.out): New rule.
50371         ($(objpfx)tst-array5-static.out): Remove rule.
50372         ($(objpfx)tst-array5-static-cmp.out): New rule.
50373         [$(run-built-tests) = yes] (tests): Depend on
50374         $(objpfx)order2-cmp.out.
50375         ($(objpfx)order2.out): Remove rule.
50376         ($(objpfx)order2-cmp.out): New rule.
50377         ($(objpfx)tst-initorder.out): Remove rule.
50378         [$(run-built-tests) = yes] (tests): Depend on
50379         $(objpfx)tst-initorder-cmp.out.
50380         ($(objpfx)tst-initorder-cmp.out): New rule.
50381         ($(objpfx)tst-initorder2.out): Remove rule.
50382         [$(run-built-tests) = yes] (tests): Depend on
50383         $(objpfx)tst-initorder2-cmp.out.
50384         ($(objpfx)tst-initorder2-cmp.out): New rule.
50385         [$(run-built-tests) = yes] (tests): Depend on
50386         $(objpfx)tst-unused-dep-cmp.out.
50387         ($(objpfx)tst-unused-dep-cmp.out): Do not run cmp.
50388         ($(objpfx)tst-unused-dep-cmp.out): New rule.
50389         * stdio-common/Makefile [$(run-built-tests) = yes] (tests): Depend
50390         on $(objpfx)tst-setvbuf1-cmp.out.
50391         ($(objpfx)tst-setvbuf1.out): Do not run cmp.
50392         ($(objpfx)tst-setvbuf1-cmp.out): New rule.
50393         * string/Makefile [$(run-built-tests) = yes] (tests): Depend
50394         $(objpfx)tst-svc-cmp.out instead of $(objpfx)tst-svc.out.
50395         ($(objpfx)tst-svc.out): Remove rule.
50396         ($(objpfx)tst-svc-cmp.out): New rule.
50397
50398 2014-02-13  Joseph Myers  <joseph@codesourcery.com>
50399
50400         * bits/mman.h [__USE_MISC]: Remove redundant conditionals.
50401         * ctype/ctype.h [__USE_MISC]: Likewise.
50402         * dirent/dirent.h [__USE_MISC]: Likewise.
50403         * grp/grp.h [__USE_MISC]: Likewise.
50404         * io/fcntl.h [__USE_MISC]: Likewise.
50405         * io/sys/stat.h [__USE_MISC]: Likewise.
50406         * libio/stdio.h [__USE_MISC]: Likewise.
50407         * posix/unistd.h [__USE_MISC]: Likewise.
50408         * pwd/pwd.h [__USE_MISC]: Likewise.
50409         * stdlib.h [__USE_MISC]: Likewise.
50410         * string/bits/string2.h [__USE_MISC]: Likewise.
50411         * string/string.h [__USE_MISC]: Likewise.
50412         * time/time.h [__USE_MISC]: Likewise.
50413
50414 2014-02-13  Andreas Schwab  <schwab@suse.de>
50415
50416         [BZ #16574]
50417         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Free the
50418         second answer buffer if it was separately allocated.
50419
50420 2014-02-12  Joseph Myers  <joseph@codesourcery.com>
50421
50422         * sysdeps/mips/math-tests.h: Include <features.h>.
50423         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
50424         (ROUNDING_TESTS_long_double): Do not define.
50425         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
50426         (EXCEPTION_TESTS_long_double): Likewise.
50427         * sysdeps/mips/mips64/libm-test-ulps: Update.
50428
50429         * include/features.h (__USE_BSD): Remove macro definitions.
50430         (__USE_SVID): Likewise.
50431         (_BSD_SOURCE): Likewise.
50432         (_SVID_SOURCE): Likewise.
50433         [!defined _BSD_SOURCE && !defined _SVID_SOURCE]: Remove condition
50434         from definition of _DEFAULT_SOURCE.
50435         [_BSD_SOURCE || _SVID_SOURCE]: Change condition to
50436         [_DEFAULT_SOURCE].
50437         * bits/fcntl.h [__USE_BSD]: Change condition to [__USE_MISC].
50438         * bits/mman.h [__USE_BSD]: Likewise.
50439         * bits/termios.h [__USE_BSD]: Likewise.
50440         * bits/waitstatus.h [__USE_BSD]: Likewise.
50441         * ctype/ctype.h [__USE_SVID]: Likewise.
50442         * dirent/dirent.h [__USE_BSD]: Likewise.
50443         * grp/grp.h [__USE_SVID]: Likewise.
50444         [__USE_BSD]: Likewise.
50445         * inet/netinet/igmp.h [__USE_BSD]: Likewise.
50446         * io/fcntl.h [__USE_BSD]: Likewise.
50447         * io/ftw.h [__USE_BSD]: Likewise.
50448         * io/sys/stat.h [__USE_BSD]: Likewise.
50449         * libio/bits/stdio-ldbl.h [__USE_BSD]: Likewise.
50450         * libio/bits/stdio2.h [__USE_BSD]: Likewise.
50451         * libio/stdio.h [__USE_SVID]: Likewise.
50452         [__USE_BSD]: Likewise.
50453         * math/math.h [__USE_SVID]: Likewise.
50454         [__USE_BSD]: Likewise.
50455         * misc/bits/syslog-ldbl.h [__USE_BSD]: Likewise.
50456         * misc/bits/syslog.h [__USE_BSD]: Likewise.
50457         * misc/search.h [__USE_SVID]: Likewise.
50458         * misc/sys/mman.h [__USE_BSD]: Likewise.
50459         * misc/sys/syslog.h [__USE_BSD]: Likewise.
50460         * misc/sys/uio.h [__USE_BSD]: Likewise.
50461         * posix/bits/unistd.h [__USE_BSD]: Likewise.
50462         * posix/glob.h [__USE_BSD]: Likewise.
50463         * posix/regex.h [__USE_BSD]: Likewise.
50464         * posix/sys/types.h [__USE_BSD]: Likewise.
50465         [__USE_SVID]: Likewise.
50466         * posix/sys/utsname.h [__USE_SVID]: Likewise.
50467         * posix/sys/wait.h [__USE_BSD]: Likewise.
50468         [__USE_SVID]: Likewise.
50469         * posix/unistd.h [__USE_BSD]: Likewise.
50470         [__USE_SVID]: Likewise.
50471         * pwd/pwd.h [__USE_SVID]: Likewise.
50472         * resolv/netdb.h [__USE_BSD]: Likewise.
50473         * setjmp/setjmp.h [__USE_BSD]: Likewise.
50474         * signal/signal.h [__USE_BSD]: Likewise.
50475         [__USE_SVID]: Likewise.
50476         * socket/sys/socket.h [__USE_BSD]: Likewise.
50477         * stdlib/fmtmsg.h [__USE_SVID]: Likewise.
50478         * stdlib/stdlib.h [__USE_BSD]: Likewise.
50479         [__USE_SVID]: Likewise.
50480         * string/bits/string2.h [__USE_BSD]: Likewise.
50481         [__USE_SVID]: Likewise.
50482         * string/bits/string3.h [__USE_BSD]: Likewise.
50483         * string/endian.h [__USE_BSD]: Likewise.
50484         * string/string.h [__USE_SVID]: Likewise.
50485         [__USE_BSD]: Likewise.
50486         * string/strings.h [__USE_BSD]: Likewise.
50487         * sysdeps/generic/netinet/ip.h [__USE_BSD]: Likewise.
50488         * sysdeps/gnu/netinet/ip_icmp.h [__USE_BSD]: Likewise.
50489         * sysdeps/mach/hurd/bits/fcntl.h [__USE_BSD]: Likewise.
50490         * sysdeps/mach/hurd/bits/stat.h [__USE_BSD]: Likewise.
50491         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_BSD]: Likewise.
50492         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_BSD]:
50493         Likewise.
50494         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_BSD]:
50495         Likewise.
50496         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_BSD]: Likewise.
50497         * sysdeps/unix/sysv/linux/bits/sys_errlist.h [__USE_BSD]:
50498         Likewise.
50499         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_BSD]: Likewise.
50500         * sysdeps/unix/sysv/linux/mips/bits/termios.h [__USE_BSD]:
50501         Likewise.
50502         * sysdeps/unix/sysv/linux/netinet/if_ether.h [__USE_BSD]:
50503         Likewise.
50504         * sysdeps/unix/sysv/linux/netinet/if_fddi.h [__USE_BSD]: Likewise.
50505         * sysdeps/unix/sysv/linux/netinet/if_tr.h [__USE_BSD]: Likewise.
50506         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_BSD]:
50507         Likewise.
50508         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_BSD]:
50509         Likewise.
50510         * sysdeps/x86/bits/string.h [__USE_BSD]: Likewise.
50511         * sysvipc/sys/ipc.h [__USE_SVID]: Likewise.
50512         * termios/termios.h [__USE_BSD]: Likewise.
50513         * time/sys/time.h [__USE_BSD]: Likewise.
50514         * time/time.h [__USE_BSD]: Likewise.
50515         [__USE_SVID]: Likewise.
50516
50517         * Makefile (subdir_targets): Remove subdir_lint.out.
50518
50519         * stdio-common/Makefile (do-tst-unbputc): Remove target.
50520         (do-tst-printf): Likewise.
50521         (tests): Depend directly on $(objpfx)tst-unbputc.out and
50522         $(objpfx)tst-printf.out.
50523
50524         * io/ftwtest-sh (testout): Change to $tmp/ftwtest-tmp.out.
50525
50526         * Makerules (check-abi-%): Change target to
50527         $(objpfx)check-abi-%.out.
50528         (check-abi target): Update dependencies.
50529         (check-abi-pattern variable): Redirect output of diff to $@.
50530         (check-abi variable): Likewise.
50531         * elf/Makefile (check-abi): Update dependencies.
50532
50533         * soft-fp/op-common.h (_FP_DECL): Mark exponent as possibly
50534         unused.
50535         (_FP_PACK_SEMIRAW): Determine tininess based on rounding shifted
50536         value if _FP_TININESS_AFTER_ROUNDING and unrounded value is in
50537         subnormal range.
50538         (_FP_PACK_CANONICAL): Determine tininess based on rounding to
50539         normal precision if _FP_TININESS_AFTER_ROUNDING and unrounded
50540         value has largest subnormal exponent.
50541         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS]
50542         (_FP_TININESS_AFTER_ROUNDING): Undefine and redefine to 0.
50543         * sysdeps/aarch64/soft-fp/sfp-machine.h
50544         (_FP_TININESS_AFTER_ROUNDING): New macro.
50545         * sysdeps/alpha/soft-fp/sfp-machine.h
50546         (_FP_TININESS_AFTER_ROUNDING): Likewise.
50547         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
50548         Likewise.
50549         * sysdeps/mips/mips64/soft-fp/sfp-machine.h
50550         (_FP_TININESS_AFTER_ROUNDING): Likewise.
50551         * sysdeps/mips/soft-fp/sfp-machine.h
50552         (_FP_TININESS_AFTER_ROUNDING): Likewise.
50553         * sysdeps/powerpc/soft-fp/sfp-machine.h
50554         (_FP_TININESS_AFTER_ROUNDING): Likewise.
50555         * sysdeps/sh/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
50556         Likewise.
50557         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
50558         (_FP_TININESS_AFTER_ROUNDING): Likewise.
50559         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
50560         (_FP_TININESS_AFTER_ROUNDING): Likewise.
50561         * sysdeps/tile/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
50562         Likewise.
50563
50564 2014-02-12  Dylan Alex Simon  <dylan@dylex.net>
50565
50566         [BZ #16545]
50567         * sysdeps/x86_64/fpu/libm-test-ulps: Update on AMD family 21h
50568         model 1.
50569
50570 2014-02-12  Richard Henderson  <rth@redhat.com>
50571
50572         * sysdeps/alpha: Move directory from ports/sysdeps/alpha.
50573         * sysdeps/unix/alpha: Move directory from ports/sysdeps/unix/alpha.
50574         * sysdeps/unix/sysv/linux/alpha: Move directory from
50575         ports/sysdeps/unix/sysv/linux/alpha.
50576         * README: Update listing for alpha-*-linux-gnu.
50577
50578 2014-02-11  Joseph Myers  <joseph@codesourcery.com>
50579
50580         * include/features.h: Update comment documenting feature test
50581         macros.
50582         [_BSD_SOURCE || _SVID_SOURCE]: Give #warning.  Define
50583         _DEFAULT_SOURCE.
50584         * manual/creature.texi (_BSD_SOURCE): Remove documentation.
50585         (_SVID_SOURCE): Likewise.
50586         (_DEFAULT_SOURCE): Update description of default features.
50587         (Feature Test Macros): Don't mention _SVID_SOURCE in conjunction
50588         with _GNU_SOURCE.
50589         * manual/filesys.texi (__ftw_func_t): Do not refer to _BSD_SOURCE.
50590         (S_ISVTX): Likewise.
50591         * manual/math.texi (Mathematical Constants): Likewise.
50592         * manual/signal.texi (Interrupted Primitives): Likewise.
50593         * manual/startup.texi (putenv): Do not refer to _SVID_SOURCE.
50594         * math/test-matherr.c (_SVID_SOURCE): Do not define.
50595         * sysvipc/sys/ipc.h [__USE_SVID && !__USE_XOPEN && __GNUC__ >= 2]:
50596         Don't refer to _SVID_SOURCE in warning text.
50597
50598         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
50599
50600         * elf/dl-lookup.c (ELF_MACHINE_SYM_NO_MATCH): Define if not
50601         already defined.
50602         (do_lookup_x): Use ELF_MACHINE_SYM_NO_MATCH.
50603         * sysdeps/mips/dl-lookup.c: Remove.
50604         * sysdeps/mips/dl-machine.h (ELF_MACHINE_SYM_NO_MATCH): New macro.
50605
50606 2014-02-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
50607
50608         [BZ #16447]
50609         * math/auto-libm-test-in: Add testcase for expl.
50610         * math/auto-libm-test-out: Regenerate.
50611         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Fix
50612         calculation of unsafe.
50613         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for added testcase.
50614
50615 2014-02-11  Marcus Shawcroft  <marcus.shawcroft@arm.com>
50616
50617         * sysdeps/aarch64: Move directory from ports/sysdeps/aarch64.
50618         * sysdeps/unix/sysv/linux/aarch64: Move directory from
50619         ports/sysdeps/unix/sysv/linux/aarch64.
50620         * README: Update listing for aarch64*-*-linux-gnu.
50621
50622 2014-02-11  Will Newton  <will.newton@linaro.org>
50623
50624         * manual/probes.texi (Mathematical Function Probes): Use
50625         "triggered" instead of "hit".
50626
50627         * manual/probes.texi (Internal Probes): Add documentation
50628         of setjmp, longjmp and longjmp_target probes.
50629
50630         * include/stap-probe.h: Add comment about probe argument
50631         format.
50632
50633         * malloc/mtrace.c (attribute_hidden): Remove unused macro
50634         definition.  (tr_where, tr_freehook, tr_mallochook,
50635         tr_reallochook, tr_memalignhook): Use ANSI protoype.
50636
50637 2014-02-11  David S. Miller  <davem@davemloft.net>
50638
50639         * stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when
50640         processing int_tests.
50641
50642 2014-02-10  Joseph Myers  <joseph@codesourcery.com>
50643
50644         * sysdeps/mips: Move directory from ports/sysdeps/mips.
50645         * sysdeps/unix/mips: Move directory from ports/sysdeps/unix/mips.
50646         * sysdeps/unix/sysv/linux/mips: Move directory from
50647         ports/sysdeps/unix/sysv/linux/mips.
50648         * README: Update listing for mips-*-linux-gnu and
50649         mips64-*-linux-gnu.
50650
50651 2014-02-10  Andreas Schwab  <schwab@linux-m68k.org>
50652
50653         * sysdeps/m68k: Move directory from ports/sysdeps/m68k.
50654         * sysdeps/unix/sysv/linux/m68k: Move directory from
50655         ports/sysdeps/unix/sysv/linux/m68k.
50656         * README: Update listing for m68k-*-linux-gnu.
50657
50658 2014-02-10  Chris Metcalf  <cmetcalf@tilera.com>
50659
50660         * sysdeps/tile: Move directory from ports/sysdeps/tile.
50661         * sysdeps/unix/sysv/linux/generic: Move directory from
50662         ports/sysdeps/unix/sysv/linux/generic.
50663         * sysdeps/unix/sysv/linux/tile: Move directory from
50664         ports/sysdeps/unix/sysv/linux/tile.
50665         * README: Update listing for tile*-*-linux-gnu.
50666
50667 2014-02-10  Ondřej Bílka  <neleai@seznam.cz>
50668
50669         * assert/assert.c (__assert_fail_base): Use glibc_likely instead
50670         __builtin_expect.
50671         * benchtests/bench-memmem.c (simple_memmem): Likewise.
50672         * catgets/open_catalog.c (__open_catalog): Likewise.
50673         * csu/libc-start.c (LIBC_START_MAIN): Likewise.
50674         * debug/confstr_chk.c: Likewise.
50675         * debug/fread_chk.c (__fread_chk): Likewise.
50676         * debug/fread_u_chk.c (__fread_unlocked_chk): Likewise.
50677         * debug/getgroups_chk.c: Likewise.
50678         * debug/mbsnrtowcs_chk.c: Likewise.
50679         * debug/mbsrtowcs_chk.c: Likewise.
50680         * debug/mbstowcs_chk.c: Likewise.
50681         * debug/memcpy_chk.c: Likewise.
50682         * debug/memmove_chk.c: Likewise.
50683         * debug/mempcpy_chk.c: Likewise.
50684         * debug/memset_chk.c: Likewise.
50685         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
50686         * debug/strcat_chk.c (__strcat_chk): Likewise.
50687         * debug/strcpy_chk.c (__strcpy_chk): Likewise.
50688         * debug/strncat_chk.c (__strncat_chk): Likewise.
50689         * debug/vsnprintf_chk.c (___vsnprintf_chk): Likewise.
50690         * debug/vswprintf_chk.c (__vswprintf_chk): Likewise.
50691         * debug/wcpcpy_chk.c (__wcpcpy_chk): Likewise.
50692         * debug/wcpncpy_chk.c: Likewise.
50693         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
50694         * debug/wcscpy_chk.c (__wcscpy_chk): Likewise.
50695         * debug/wcsncat_chk.c (__wcsncat_chk): Likewise.
50696         * debug/wcsncpy_chk.c: Likewise.
50697         * debug/wcsnrtombs_chk.c: Likewise.
50698         * debug/wcsrtombs_chk.c: Likewise.
50699         * debug/wcstombs_chk.c: Likewise.
50700         * debug/wmemcpy_chk.c: Likewise.
50701         * debug/wmemmove_chk.c: Likewise.
50702         * debug/wmempcpy_chk.c: Likewise.
50703         * debug/wmemset_chk.c: Likewise.
50704         * dirent/scandirat.c (SCANDIRAT): Likewise.
50705         * dlfcn/dladdr1.c (dladdr1): Likewise.
50706         * dlfcn/dladdr.c (dladdr): Likewise.
50707         * dlfcn/dlclose.c (dlclose_doit): Likewise.
50708         * dlfcn/dlerror.c (__dlerror): Likewise.
50709         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
50710         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
50711         * dlfcn/dlopen.c (dlopen_doit): Likewise.
50712         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
50713         * dlfcn/dlsym.c (dlsym_doit): Likewise.
50714         * dlfcn/dlvsym.c (dlvsym_doit): Likewise.
50715         * elf/dl-cache.c (_dl_load_cache_lookup): Likewise.
50716         * elf/dl-close.c (remove_slotinfo, _dl_close_worker, _dl_close):
50717         Likewise.
50718         * elf/dl-conflict.c: Likewise.
50719         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
50720         * elf/dl-dst.h: Likewise.
50721         * elf/dl-fini.c (_dl_sort_fini, _dl_fini): Likewise.
50722         * elf/dl-fptr.c (_dl_make_fptr): Likewise.
50723         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
50724         * elf/dl-init.c (call_init, _dl_init): Likewise.
50725         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym): Likewise.
50726         * elf/dl-load.c (_dl_dst_substitute, fillin_rpath, _dl_init_paths)
50727         (_dl_map_object_from_fd, open_verify, open_path, _dl_map_object):
50728         Likewise.
50729         * elf/dl-lookup.c (do_lookup_x, add_dependency, _dl_lookup_symbol_x):
50730         Likewise.
50731         * elf/dl-minimal.c (__libc_memalign): Likewise.
50732         * elf/dl-open.c (add_to_global, dl_open_worker, _dl_open): Likewise.
50733         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
50734         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
50735         * elf/dl-sym.c (do_sym): Likewise.
50736         * elf/dl-tls.c (tls_get_addr_tail, update_get_addr)
50737         (__tls_get_addr, _dl_tls_get_addr_soft): Likewise.
50738         * elf/dl-version.c (match_symbol, _dl_check_map_versions): Likewise.
50739         * elf/dl-writev.h (_dl_writev): Likewise.
50740         * elf/ldconfig.c (search_dir): Likewise.
50741         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, do_preload)
50742         (dl_main): Likewise.
50743         * elf/setup-vdso.h (setup_vdso): Likewise.
50744         * grp/compat-initgroups.c (compat_call): Likewise.
50745         * grp/fgetgrent.c (fgetgrent): Likewise.
50746         * grp/initgroups.c (getgrouplist, initgroups): Likewise.
50747         * grp/putgrent.c (putgrent): Likewise.
50748         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
50749         Likewise.
50750         * hurd/hurdinit.c: Likewise.
50751         * iconvdata/8bit-gap.c (struct): Likewise.
50752         * iconvdata/ansi_x3.110.c : Likewise.
50753         * iconvdata/big5.c : Likewise.
50754         * iconvdata/big5hkscs.c : Likewise.
50755         * iconvdata/cp1255.c: Likewise.
50756         * iconvdata/cp1258.c : Likewise.
50757         * iconvdata/cp932.c : Likewise.
50758         * iconvdata/euc-cn.c: Likewise.
50759         * iconvdata/euc-jisx0213.c : Likewise.
50760         * iconvdata/euc-jp.c: Likewise.
50761         * iconvdata/euc-jp-ms.c : Likewise.
50762         * iconvdata/euc-kr.c (euckr_from_ucs4): Likewise.
50763         * iconvdata/gb18030.c : Likewise.
50764         * iconvdata/gbbig5.c (const): Likewise.
50765         * iconvdata/gbgbk.c: Likewise.
50766         * iconvdata/gbk.c : Likewise.
50767         * iconvdata/ibm1364.c : Likewise.
50768         * iconvdata/ibm930.c : Likewise.
50769         * iconvdata/ibm932.c: Likewise.
50770         * iconvdata/ibm933.c : Likewise.
50771         * iconvdata/ibm935.c : Likewise.
50772         * iconvdata/ibm937.c : Likewise.
50773         * iconvdata/ibm939.c : Likewise.
50774         * iconvdata/ibm943.c: Likewise.
50775         * iconvdata/iso_11548-1.c: Likewise.
50776         * iconvdata/iso-2022-cn.c : Likewise.
50777         * iconvdata/iso-2022-cn-ext.c : Likewise.
50778         * iconvdata/iso-2022-jp-3.c: Likewise.
50779         * iconvdata/iso-2022-jp.c (gconv_end): Likewise.
50780         * iconvdata/iso-2022-kr.c : Likewise.
50781         * iconvdata/iso646.c (gconv_end): Likewise.
50782         * iconvdata/iso_6937-2.c : Likewise.
50783         * iconvdata/iso_6937.c : Likewise.
50784         * iconvdata/iso8859-1.c: Likewise.
50785         * iconvdata/johab.c (johab_sym_hanja_to_ucs): Likewise.
50786         * iconvdata/shift_jisx0213.c : Likewise.
50787         * iconvdata/sjis.c : Likewise.
50788         * iconvdata/t.61.c : Likewise.
50789         * iconvdata/tcvn5712-1.c : Likewise.
50790         * iconvdata/tscii.c: Likewise.
50791         * iconvdata/uhc.c : Likewise.
50792         * iconvdata/unicode.c (gconv_end): Likewise.
50793         * iconvdata/utf-16.c (gconv_end): Likewise.
50794         * iconvdata/utf-32.c (gconv_end): Likewise.
50795         * iconvdata/utf-7.c (base64): Likewise.
50796         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
50797         * iconv/gconv_close.c (__gconv_close): Likewise.
50798         * iconv/gconv_open.c (__gconv_open): Likewise.
50799         * iconv/gconv_simple.c (internal_ucs4_loop_single)
50800         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
50801         (ucs4_internal_loop_single, internal_ucs4le_loop_single)
50802         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
50803         (ucs4le_internal_loop_single): Likewise.
50804         * iconv/iconv.c (iconv): Likewise.
50805         * iconv/iconv_close.c: Likewise.
50806         * iconv/loop.c (SINGLE): Likewise.
50807         * iconv/skeleton.c (FUNCTION_NAME): Likewise.
50808         * include/atomic.h: Likewise.
50809         * inet/inet6_option.c (option_alloc): Likewise.
50810         * intl/bindtextdom.c (set_binding_values): Likewise.
50811         * intl/dcigettext.c (DCIGETTEXT, _nl_find_msg): Likewise.
50812         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
50813         * intl/localealias.c (read_alias_file): Likewise.
50814         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
50815         * libio/fileops.c (_IO_file_open, _IO_file_underflow_mmap)
50816         (_IO_new_file_overflow, _IO_file_xsgetn_mmap): Likewise.
50817         * libio/fmemopen.c (fmemopen): Likewise.
50818         * libio/iofgets.c (_IO_fgets): Likewise.
50819         * libio/iofgets_u.c (fgets_unlocked): Likewise.
50820         * libio/iofgetws.c (fgetws): Likewise.
50821         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
50822         * libio/iogetdelim.c (_IO_getdelim): Likewise.
50823         * libio/wfileops.c (_IO_wfile_underflow, _IO_wfile_underflow_mmap)
50824         (adjust_wide_data, _IO_wfile_seekoff): Likewise.
50825         * locale/findlocale.c (_nl_find_locale): Likewise.
50826         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
50827         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale):
50828         Likewise.
50829         * locale/setlocale.c (setlocale): Likewise.
50830         * login/programs/pt_chown.c (main): Likewise.
50831         * malloc/arena.c (ptmalloc_init, shrink_heap, arena_get2): Likewise.
50832         * malloc/malloc.c (_int_malloc, _int_free): Likewise.
50833         * malloc/memusage.c (update_data, malloc, realloc, calloc, free)
50834         (mmap, mmap64, mremap, munmap): Likewise.
50835         * math/e_exp2l.c: Likewise.
50836         * math/e_scalb.c (invalid_fn, __ieee754_scalb): Likewise.
50837         * math/e_scalbf.c (invalid_fn, __ieee754_scalbf): Likewise.
50838         * math/e_scalbl.c (invalid_fn, __ieee754_scalbl): Likewise.
50839         * math/s_catan.c (__catan): Likewise.
50840         * math/s_catanf.c (__catanf): Likewise.
50841         * math/s_catanh.c (__catanh): Likewise.
50842         * math/s_catanhf.c (__catanhf): Likewise.
50843         * math/s_catanhl.c (__catanhl): Likewise.
50844         * math/s_catanl.c (__catanl): Likewise.
50845         * math/s_ccosh.c (__ccosh): Likewise.
50846         * math/s_ccoshf.c (__ccoshf): Likewise.
50847         * math/s_ccoshl.c (__ccoshl): Likewise.
50848         * math/s_cexp.c (__cexp): Likewise.
50849         * math/s_cexpf.c (__cexpf): Likewise.
50850         * math/s_cexpl.c (__cexpl): Likewise.
50851         * math/s_clog10.c (__clog10): Likewise.
50852         * math/s_clog10f.c (__clog10f): Likewise.
50853         * math/s_clog10l.c (__clog10l): Likewise.
50854         * math/s_clog.c (__clog): Likewise.
50855         * math/s_clogf.c (__clogf): Likewise.
50856         * math/s_clogl.c (__clogl): Likewise.
50857         * math/s_csin.c (__csin): Likewise.
50858         * math/s_csinf.c (__csinf): Likewise.
50859         * math/s_csinh.c (__csinh): Likewise.
50860         * math/s_csinhf.c (__csinhf): Likewise.
50861         * math/s_csinhl.c (__csinhl): Likewise.
50862         * math/s_csinl.c (__csinl): Likewise.
50863         * math/s_csqrt.c (__csqrt): Likewise.
50864         * math/s_csqrtf.c (__csqrtf): Likewise.
50865         * math/s_csqrtl.c (__csqrtl): Likewise.
50866         * math/s_ctan.c (__ctan): Likewise.
50867         * math/s_ctanf.c (__ctanf): Likewise.
50868         * math/s_ctanh.c (__ctanh): Likewise.
50869         * math/s_ctanhf.c (__ctanhf): Likewise.
50870         * math/s_ctanhl.c (__ctanhl): Likewise.
50871         * math/s_ctanl.c (__ctanl): Likewise.
50872         * math/w_pow.c: Likewise.
50873         * math/w_powf.c: Likewise.
50874         * math/w_powl.c: Likewise.
50875         * math/w_scalb.c (sysv_scalb): Likewise.
50876         * math/w_scalbf.c (sysv_scalbf): Likewise.
50877         * math/w_scalbl.c (sysv_scalbl): Likewise.
50878         * misc/error.c (error_tail): Likewise.
50879         * misc/pselect.c (__pselect): Likewise.
50880         * nis/nis_callback.c (__nis_create_callback): Likewise.
50881         * nis/nis_call.c (__nisfind_server): Likewise.
50882         * nis/nis_creategroup.c (nis_creategroup): Likewise.
50883         * nis/nis_domain_of_r.c (nis_domain_of_r): Likewise.
50884         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
50885         * nis/nis_getservlist.c (nis_getservlist): Likewise.
50886         * nis/nis_lookup.c (nis_lookup): Likewise.
50887         * nis/nis_subr.c (nis_leaf_of_r, nis_getnames): Likewise.
50888         * nis/nis_table.c (__create_ib_request, nis_list, nis_add_entry)
50889         (nis_modify_entry, nis_first_entry, nis_next_entry): Likewise.
50890         * nis/nis_xdr.c (xdr_endpoint): Likewise.
50891         * nis/nss_compat/compat-grp.c (getgrent_next_file)
50892         (internal_getgrnam_r, internal_getgrgid_r): Likewise.
50893         * nis/nss_compat/compat-initgroups.c (add_group)
50894         (internal_getgrent_r): Likewise.
50895         * nis/nss_compat/compat-pwd.c (getpwent_next_file)
50896         (internal_getpwnam_r, internal_getpwuid_r): Likewise.
50897         * nis/nss_compat/compat-spwd.c (getspent_next_file)
50898         (internal_getspnam_r): Likewise.
50899         * nis/nss_nis/nis-alias.c (internal_nis_getaliasent_r)
50900         (_nss_nis_getaliasbyname_r): Likewise.
50901         * nis/nss_nis/nis-ethers.c (_nss_nis_gethostton_r)
50902         (_nss_nis_getntohost_r): Likewise.
50903         * nis/nss_nis/nis-grp.c (internal_nis_setgrent)
50904         (internal_nis_getgrent_r, _nss_nis_getgrnam_r)
50905         (_nss_nis_getgrgid_r): Likewise.
50906         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent)
50907         (internal_nis_gethostent_r, internal_gethostbyname2_r)
50908         (_nss_nis_gethostbyname_r, _nss_nis_gethostbyaddr_r)
50909         (_nss_nis_gethostbyname4_r): Likewise.
50910         * nis/nss_nis/nis-initgroups.c (internal_getgrent_r)
50911         (initgroups_netid): Likewise.
50912         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
50913         * nis/nss_nis/nis-network.c (internal_nis_getnetent_r)
50914         (_nss_nis_getnetbyname_r, _nss_nis_getnetbyaddr_r): Likewise.
50915         * nis/nss_nis/nis-proto.c (_nss_nis_getprotobyname_r)
50916         (_nss_nis_getprotobynumber_r): Likewise.
50917         * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey)
50918         (_nss_nis_getsecretkey): Likewise.
50919         * nis/nss_nis/nis-pwd.c (_nis_saveit, internal_nis_setpwent)
50920         (internal_nis_getpwent_r, _nss_nis_getpwnam_r)
50921         (_nss_nis_getpwuid_r): Likewise.
50922         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r)
50923         (_nss_nis_getrpcbyname_r, _nss_nis_getrpcbynumber_r): Likewise.
50924         * nis/nss_nis/nis-service.c (dosearch, internal_nis_getservent_r)
50925         (_nss_nis_getservbyname_r, _nss_nis_getservbyport_r): Likewise.
50926         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent)
50927         (internal_nis_getspent_r, _nss_nis_getspnam_r): Likewise.
50928         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
50929         Likewise.
50930         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r)
50931         (_nss_nisplus_getntohost_r): Likewise.
50932         * nis/nss_nisplus/nisplus-grp.c (internal_nisplus_getgrent_r)
50933         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
50934         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r)
50935         (_nss_nisplus_gethostbyaddr_r, _nss_nisplus_gethostbyname4_r):
50936         Likewise.
50937         * nis/nss_nisplus/nisplus-initgroups.c
50938         (_nss_nisplus_initgroups_dyn): Likewise.
50939         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r)
50940         (_nss_nisplus_getnetbyaddr_r): Likewise.
50941         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_getprotobyname_r)
50942         (_nss_nisplus_getprotobynumber_r): Likewise.
50943         * nis/nss_nisplus/nisplus-pwd.c (internal_nisplus_getpwent_r)
50944         (_nss_nisplus_getpwnam_r, _nss_nisplus_getpwuid_r): Likewise.
50945         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r):
50946         Likewise.
50947         * nis/nss_nisplus/nisplus-service.c
50948         (internal_nisplus_getservent_r, _nss_nisplus_getservbyname_r)
50949         (_nss_nisplus_getservbyport_r): Likewise.
50950         * nis/nss_nisplus/nisplus-spwd.c (internal_nisplus_getspent_r)
50951         (_nss_nisplus_getspnam_r): Likewise.
50952         * nis/ypclnt.c (__yp_bind, yp_match, yp_all, yp_maplist):
50953         Likewise.
50954         * nscd/aicache.c (addhstaiX): Likewise.
50955         * nscd/cache.c (cache_search, prune_cache): Likewise.
50956         * nscd/connections.c (register_traced_file, send_ro_fd)
50957         (handle_request, nscd_run_prune, nscd_run_worker, fd_ready)
50958         (main_loop_epoll): Likewise.
50959         * nscd/grpcache.c (addgrbyX): Likewise.
50960         * nscd/hstcache.c (addhstbyX): Likewise.
50961         * nscd/initgrcache.c (addinitgroupsX): Likewise.
50962         * nscd/mem.c (gc, mempool_alloc): Likewise.
50963         * nscd/netgroupcache.c (do_notfound, addgetnetgrentX)
50964         (addinnetgrX): Likewise.
50965         * nscd/nscd-client.h (__nscd_acquire_maplock)
50966         (__nscd_drop_map_ref): Likewise.
50967         * nscd/nscd_getai.c (__nscd_getai): Likewise.
50968         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
50969         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp, nscd_gethst_r):
50970         Likewise.
50971         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
50972         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
50973         * nscd/nscd_helper.c (__readvall, open_socket, __nscd_get_mapping)
50974         (__nscd_get_map_ref): Likewise.
50975         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
50976         * nscd/nscd_netgroup.c (__nscd_setnetgrent, __nscd_innetgr):
50977         Likewise.
50978         * nscd/pwdcache.c (addpwbyX): Likewise.
50979         * nscd/selinux.c (preserve_capabilities): Likewise.
50980         * nscd/servicescache.c (addservbyX): Likewise.
50981         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
50982         * posix/fnmatch.c (fnmatch): Likewise.
50983         * posix/getopt.c (_getopt_internal_r): Likewise.
50984         * posix/glob.c (glob, glob_in_dir): Likewise.
50985         * posix/wordexp.c (exec_comm_child): Likewise.
50986         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r)
50987         (getanswer_r, gaih_getanswer_slice): Likewise.
50988         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.
50989         * resolv/res_init.c: Likewise.
50990         * resolv/res_mkquery.c (res_nmkquery): Likewise.
50991         * resolv/res_query.c (__libc_res_nquery): Likewise.
50992         * resolv/res_send.c (__libc_res_nsend, send_vc, reopen, send_dg):
50993         Likewise.
50994         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Likewise.
50995         * stdio-common/perror.c (perror): Likewise.
50996         * stdio-common/printf_fp.c (___printf_fp): Likewise.
50997         * stdio-common/tmpnam.c (tmpnam): Likewise.
50998         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
50999         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
51000         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
51001         Likewise.
51002         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
51003         * stdlib/putenv.c (putenv): Likewise.
51004         * stdlib/setenv.c (__add_to_environ): Likewise.
51005         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
51006         * stdlib/strtol_l.c (INTERNAL): Likewise.
51007         * string/memmem.c (memmem): Likewise.
51008         * string/strerror.c (strerror): Likewise.
51009         * string/strnlen.c (__strnlen): Likewise.
51010         * string/test-memmem.c (simple_memmem): Likewise.
51011         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Likewise.
51012         * sunrpc/pm_getport.c (__get_socket): Likewise.
51013         * sysdeps/gnu/unwind-resume.c (init, _Unwind_Resume): Likewise.
51014         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
51015         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup)
51016         (elf_machine_rel, elf_machine_lazy_rel, elf_machine_lazy_rela):
51017         Likewise.
51018         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
51019         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
51020         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
51021         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise.
51022         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
51023         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1, __ieee754_y1):
51024         Likewise.
51025         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn, __ieee754_yn):
51026         Likewise.
51027         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
51028         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
51029         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
51030         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
51031         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
51032         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Likewise.
51033         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
51034         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Likewise.
51035         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
51036         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
51037         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
51038         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
51039         Likewise.
51040         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10):
51041         Likewise.
51042         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2):
51043         Likewise.
51044         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp): Likewise.
51045         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
51046         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo): Likewise.
51047         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (__round): Likewise.
51048         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
51049         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Likewise.
51050         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
51051         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Likewise.
51052         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_nearbyint): Likewise.
51053         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Likewise.
51054         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c (__llroundl): Likewise.
51055         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
51056         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
51057         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
51058         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
51059         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
51060         Likewise.
51061         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l, __ieee754_y0l):
51062         Likewise.
51063         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l, __ieee754_y1l):
51064         Likewise.
51065         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl, __ieee754_ynl):
51066         Likewise.
51067         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
51068         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
51069         * sysdeps/posix/clock_getres.c (hp_timing_getres, realtime_getres):
51070         Likewise.
51071         * sysdeps/posix/fdopendir.c (__fdopendir): Likewise.
51072         * sysdeps/posix/getaddrinfo.c (gaih_inet, getaddrinfo): Likewise.
51073         * sysdeps/posix/opendir.c (__opendirat): Likewise.
51074         * sysdeps/posix/sleep.c: Likewise.
51075         * sysdeps/posix/tempname.c: Likewise.
51076         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irela): Likewise.
51077         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
51078         Likewise.
51079         * sysdeps/powerpc/powerpc32/dl-machine.h
51080         (elf_machine_runtime_setup, elf_machine_rela): Likewise.
51081         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
51082         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
51083         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Likewise.
51084         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait, aio_suspend):
51085         Likewise.
51086         * sysdeps/s390/dl-irel.h (elf_irela): Likewise.
51087         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup)
51088         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
51089         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup)
51090         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
51091         * sysdeps/s390/s390-64/utf16-utf32-z9.c (gconv_end): Likewise.
51092         * sysdeps/s390/s390-64/utf8-utf16-z9.c (gconv_end): Likewise.
51093         * sysdeps/s390/s390-64/utf8-utf32-z9.c (gconv_end): Likewise.
51094         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
51095         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Likewise.
51096         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela)
51097         (elf_machine_lazy_rel): Likewise.
51098         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
51099         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela)
51100         (elf_machine_lazy_rel): Likewise.
51101         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Likewise.
51102         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Likewise.
51103         * sysdeps/unix/clock_settime.c (hp_timing_settime): Likewise.
51104         * sysdeps/unix/grantpt.c (grantpt): Likewise.
51105         * sysdeps/unix/sysv/linux/accept4.c (accept4): Likewise.
51106         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Likewise.
51107         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
51108         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
51109         Likewise.
51110         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
51111         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
51112         * sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
51113         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Likewise.
51114         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
51115         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
51116         * sysdeps/unix/sysv/linux/i386/fallocate64.c (fallocate64): Likewise.
51117         * sysdeps/unix/sysv/linux/i386/fallocate.c (fallocate): Likewise.
51118         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
51119         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
51120         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
51121         Likewise.
51122         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c
51123         (__posix_fallocate64_l64): Likewise.
51124         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c
51125         (posix_fallocate): Likewise.
51126         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
51127         Likewise.
51128         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
51129         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request)
51130         (getifaddrs_internal): Likewise.
51131         * sysdeps/unix/sysv/linux/linkat.c (linkat): Likewise.
51132         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Likewise.
51133         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
51134         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
51135         * sysdeps/unix/sysv/linux/posix_fallocate64.c
51136         (__posix_fallocate64_l64): Likewise.
51137         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
51138         Likewise.
51139         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
51140         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
51141         (__get_clockfreq): Likewise.
51142         * sysdeps/unix/sysv/linux/readlinkat.c (readlinkat): Likewise.
51143         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
51144         * sysdeps/unix/sysv/linux/renameat.c (renameat): Likewise.
51145         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
51146         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
51147         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
51148         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
51149         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs, shm_open):
51150         Likewise.
51151         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Likewise.
51152         * sysdeps/unix/sysv/linux/symlinkat.c (symlinkat): Likewise.
51153         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
51154         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
51155         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
51156         * sysdeps/unix/sysv/linux/unlinkat.c (unlinkat): Likewise.
51157         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
51158         Likewise.
51159         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
51160         (posix_fallocate): Likewise.
51161         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
51162         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
51163         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
51164         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup)
51165         (elf_machine_rela, elf_machine_rela_relative)
51166         (elf_machine_lazy_rel): Likewise.
51167         * time/asctime.c (asctime_internal): Likewise.
51168         * time/tzfile.c (__tzfile_read, __tzfile_compute): Likewise.
51169         * time/tzset.c (__tzset_parse_tz): Likewise.
51170         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
51171         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
51172         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Likewise.
51173         * wcsmbs/wcsmbsload.h: Likewise.
51174
51175         [BZ #15894]
51176         * stdlib/setenv.c (__add_to_environ): Remove duplicate code.
51177
51178         * malloc/arena.c (grow_heap, get_free_list, reused_arena)
51179         (arena_get2): Remove THREAD_STATS conditionals.
51180         * malloc/malloc.c (__malloc_assert, __libc_realloc, _int_free)
51181         (__malloc_stats, int): Likewise.
51182
51183 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
51184
51185         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Compare
51186         f.f_type to RAMFS_MAGIC too.  Compare mp->mnt_type to shm too.
51187
51188         * manual/setjmp.texi: Fix typos/grammar errors.
51189
51190         * debug/tst-backtrace4.c (handle_signal): Add NUM_FUNCTIONS to output.
51191         Only return early when n is <= 0.  Delete unused return statement.
51192
51193         * debug/Makefile (CFLAGS-tst-longjmp_chk3.c): Define.
51194         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
51195         * debug/tst-longjmp_chk3.c: New file.
51196
51197         * benchtests/bench-strcpy_chk.c: Move test-skeleton.c to top.
51198         (test_main): Replace code with set_fortify_handler call.
51199         * debug/test-strcpy_chk.c: Likewise.
51200         * debug/tst-chk1.c: Likewise.
51201         * debug/tst-longjmp_chk.c: Likewise.
51202         * test-skeleton.c: Include fcntl.h & paths.h
51203         (set_fortify_handler): Define.
51204
51205         * debug/tst-longjmp_chk.c: Add header comment and include
51206         ../test-skeleton.c.
51207         (do_test): Mark static.
51208         (TEST_FUNCTION): Define.
51209
51210         * sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
51211         (IP_PMTUDISC_INTERFACE): Likewise.
51212         (IP_MULTICAST_IF): Likewise.
51213         (IP_MULTICAST_TTL): Likewise.
51214         (IP_MULTICAST_LOOP): Likewise.
51215         (IP_ADD_MEMBERSHIP): Likewise.
51216         (IP_DROP_MEMBERSHIP): Likewise.
51217         (IP_UNBLOCK_SOURCE): Likewise.
51218         (IP_BLOCK_SOURCE): Likewise.
51219         (IP_ADD_SOURCE_MEMBERSHIP): Likewise.
51220         (IP_DROP_SOURCE_MEMBERSHIP): Likewise.
51221         (IP_MSFILTER): Likewise.
51222         (MCAST_JOIN_GROUP): Likewise.
51223         (MCAST_BLOCK_SOURCE): Likewise.
51224         (MCAST_UNBLOCK_SOURCE): Likewise.
51225         (MCAST_LEAVE_GROUP): Likewise.
51226         (MCAST_JOIN_SOURCE_GROUP): Likewise.
51227         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
51228         (MCAST_MSFILTER): Likewise.
51229         (IP_MULTICAST_ALL): Likewise.
51230         (IP_UNICAST_IF): Likewise.
51231
51232         * timezone/Makefile: Delete $(have-ksh) check.
51233         ($(objpfx)tzselect): Change $(KSH) to $(BASH).
51234         * timezone/tzselect.ksh: Add +x mode bits.
51235
51236         * sysdeps/unix/sysv/linux/linux_fsinfo.h (AFS_SUPER_MAGIC): Define.
51237         (ANON_INODE_FS_MAGIC): Likewise.
51238         (BDEVFS_MAGIC): Likewise.
51239         (BINFMTFS_MAGIC): Likewise.
51240         (BTRFS_TEST_MAGIC): Likewise.
51241         (CRAMFS_MAGIC_WEND): Likewise.
51242         (DEBUGFS_MAGIC): Likewise.
51243         (ECRYPTFS_SUPER_MAGIC): Likewise.
51244         (EXT3_SUPER_MAGIC): Likewise.
51245         (EXT4_SUPER_MAGIC): Likewise.
51246         (FUTEXFS_SUPER_MAGIC): Likewise.
51247         (HOSTFS_SUPER_MAGIC): Likewise.
51248         (HUGETLBFS_MAGIC): Likewise.
51249         (MINIX3_SUPER_MAGIC): Likewise.
51250         (MTD_INODE_FS_MAGIC): Likewise.
51251         (NILFS_SUPER_MAGIC): Likewise.
51252         (OPENPROM_SUPER_MAGIC): Likewise.
51253         (PIPEFS_MAGIC): Likewise.
51254         (PSTOREFS_MAGIC): Likewise.
51255         (QNX6_SUPER_MAGIC): Likewise.
51256         (RAMFS_MAGIC): Likewise.
51257         (REISERFS_SUPER_MAGIC_STRING): Likewise.
51258         (REISER2FS_SUPER_MAGIC_STRING): Likewise.
51259         (REISER2FS_JR_SUPER_MAGIC_STRING): Likewise.
51260         (SECURITYFS_MAGIC): Likewise.
51261         (SELINUX_MAGIC): Likewise.
51262         (SMACK_MAGIC): Likewise.
51263         (SOCKFS_MAGIC): Likewise.
51264         (SQUASHFS_MAGIC): Likewise.
51265         (STACK_END_MAGIC): Likewise.
51266         (TMPFS_MAGIC): Likewise.
51267         (USBDEVICE_SUPER_MAGIC): Likewise.
51268         (V9FS_MAGIC): Likewise.
51269         (XENFS_SUPER_MAGIC): Likewise.
51270         (CRAMFS_MAGIC): Fix typo in comment.
51271         (EXT2_SUPER_MAGIC): Update comment.
51272         (USBDEVFS_SUPER_MAGIC): Fix sorting order by moving further down.
51273
51274 2014-02-08  Joseph Myers  <joseph@codesourcery.com>
51275
51276         * sysdeps/arm: Move directory from ports/sysdeps/arm.
51277         * sysdeps/unix/arm: Move directory from ports/sysdeps/unix/arm.
51278         * sysdeps/unix/sysv/linux/arm: Move directory from
51279         ports/sysdeps/unix/sysv/linux/arm.
51280         * README: Update listing for arm-*-linux-gnueabi.
51281
51282         * README: Remove mention of am33.
51283
51284 2014-02-07  Roland McGrath  <roland@hack.frob.com>
51285
51286         * bits/sigset.h (__sigemptyset): Use a statement expression rather
51287         than the comma operator, to avoid "rhs of comma has no effect"
51288         compiler warnings.
51289         (__sigfillset, __sigandset, __sigorset): Likewise.
51290         * include/signal.h (__sigemptyset): Likewise.
51291         * sysdeps/generic/malloc-machine.h (mutex_lock): Likewise.
51292
51293 2014-02-07  Allan McRae  <allan@archlinux.org>
51294
51295         * version.h (RELEASE): Set to "development".
51296         (VERSION): Set to "2.19.90"
51297         * NEWS: Add 2.20 section.
51298
51299 2014-02-06  Carlos O'Donell  <carlos@redhat.com>
51300
51301         [BZ #16529]
51302         * inet/netinet/in.h: Remove comma after IPPROTO_MH.
51303
51304 2014-02-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
51305
51306         * manual/contrib.texi: Update entry for Carlos O'Donell,
51307         Joseph Myers, Roland McGrath, Alexandre Oliva and Ryan Arnold.
51308
51309 2014-02-05  Carlos O'Donell  <carlos@rehdat.com>
51310
51311         * sysdeps/unix/sysv/linux/kernel-features.h: Fix comment.
51312
51313         * sysdeps/unix/sysv/linux/kernel-features.h
51314         [__LINUX_KERNEL_VERSION >= 0x020621]
51315         (__ASSUME_PROC_PID_TASK_COMM): Define.
51316
51317 2014-02-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
51318
51319         [BZ #16398]
51320         * libio/wfileops.c (_IO_wfile_seekoff): Break out form
51321         conversion when destination buffer does not have enough space.
51322         * libio/tst-ftell-partial-wide.c: New test case.
51323         * libio/Makefile (tests): Add tst-ftell-partial-wide.
51324
51325         * manual/contrib.texi: Update entry for Ondrej Bilka, Will
51326         Newton and Alexandre Oliva.  Add entries for Steve Ellcey, Chris
51327         Leonard and Allan McRae.
51328
51329 2014-02-04  David S. Miller  <davem@davemloft.net>
51330
51331         * sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from
51332         32-bit.
51333
51334 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51335
51336         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
51337         New file
51338         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
51339         New file
51340         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
51341         New file.
51342         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
51343         New file.
51344         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
51345         New file.
51346         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
51347         New file.
51348         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
51349         New file.
51350         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
51351         New file.
51352         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
51353         New file.
51354         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
51355         New file.
51356         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
51357         New file.
51358         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
51359         New file.
51360         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
51361         New file.
51362
51363 2014-02-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51364
51365         * nptl/shlib-versions: Change powerpc*le start to 2.17.
51366         * shlib-versions: Likewise.
51367
51368 2014-02-04  Roland McGrath  <roland@hack.frob.com>
51369             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51370
51371         * sysdeps/powerpc/Makefile [$(config-machine) ends with 'le']
51372         (abilist-pattern): New variable, set to %-le.abilist.
51373
51374         * Makerules (abilist-pattern): New variable.
51375         (vpath): Use $(abilist-pattern) in place of %.abilist.
51376         (check-abi-% pattern rule): Likewise.
51377         (check-abi, update-abi): Likewise.
51378
51379 2014-02-04  Eric Wong  <normalperson@yhbt.net>
51380
51381         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
51382
51383 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
51384
51385         * manual/startup.texi: Add next, previous, and top entries for
51386         the `Program Arguments' and `Environment Variables' nodes.
51387
51388 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
51389
51390         * manual/macros.texi: Add comments before MTASC-safety macros.
51391
51392         * manual/users.texi: Document MTASC-safety properties.
51393
51394         * manual/threads.texi (pthread_key_create, pthread_key_delete)
51395         (pthread_getspecific, pthread_setspecific): Format with
51396         @deftypefun, and add @safety note.
51397         * manual/signal.texi: Move comments that analyze the above
51398         functions to their home place.
51399
51400 2014-02-03  Allan McRae  <allan@archlinux.org>
51401
51402         * po/sl.po: Update Slovenian translation from translation project.
51403
51404 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
51405
51406         * manual/time.texi (timegm): Add missing blank after @c.
51407         Reported by Joseph Myers <joseph@codesourcery.com>.
51408
51409 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
51410
51411         * manual/check-safety.sh: New.
51412         * manual/Makefile ($(objpfx)stamp-summary): Run it.
51413
51414         * manual/terminal.texi: Document MTASC-safety properties.
51415
51416         * manual/filesys.texi: Document MTASC-safety properties.
51417
51418         * manual/errno.texi: Document MTASC-safety properties.
51419
51420         * manual/intro.texi: Document safety identifiers and
51421         conditionals.
51422
51423         * manual/string.texi (wcstok): Fix prototype.
51424         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
51425
51426         * manual/time.texi: Document MTASC-safety properties.
51427
51428         * manual/string.texi: Document MTASC-safety properties.
51429
51430         * manual/threads.texi: Document MTASC-safety properties.
51431
51432         * manual/stdio.texi: Document MTASC-safety properties.
51433
51434         * manual/syslog.texi: Document MTASC-safety properties.
51435
51436         * manual/sysinfo.texi: Document MTASC-safety properties.
51437
51438         * manual/startup.texi: Document MTASC-safety properties.
51439
51440         * manual/socket.texi: Document MTASC-safety properties.
51441
51442         * manual/signal.texi: Document MTASC-safety properties.
51443
51444 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
51445
51446         * manual/setjmp.texi: Document MTASC-safety properties.
51447
51448         * manual/search.texi: Document MTASC-safety properties.
51449
51450         * manual/resource.texi: Document MTASC-safety properties.
51451
51452         * manual/process.texi: Document MTASC-safety properties.
51453
51454         * manual/platform.texi: Document MTASC-safety properties.
51455
51456         * manual/pipe.texi: Document MTASC-safety properties.
51457
51458         * manual/pattern.texi: Document MTASC-safety properties.
51459
51460         * manual/message.texi: Document MTASC-safety properties.
51461
51462         [BZ #12751]
51463         * manual/memory.texi: Document MTASC-safety properties.
51464
51465         * manual/math.texi: Document MTASC-safety properties.
51466
51467         * manual/locale.texi: Document MTASC-safety properties.
51468
51469         * manual/llio.texi: Document MTASC-safety properties.
51470
51471         * manual/libdl.texi: New.
51472
51473         * manual/lang.texi: Document MTASC-safety properties.
51474
51475         * manual/job.texi: Document MTASC-safety properties.
51476
51477         * manual/getopt.texi: Document MTASC-safety properties.
51478
51479         * manual/ctype.texi: Document MTASC-safety properties.
51480
51481 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
51482
51483         [BZ #16046]
51484         * csu/libc-tls.c (static_map): Remove variable.
51485         (__libc_setup_tls): Use main executable's link map for TLS data.
51486         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
51487         casing for LM_ID_BASE and GL(dl_nns).
51488         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
51489         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
51490         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
51491         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
51492         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
51493         member.
51494         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
51495         l_phnum members.
51496
51497 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
51498
51499         * manual/debug.texi: Document MTASC-safety properties.
51500
51501 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
51502
51503         [BZ #16510]
51504         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
51505         of __x86_64__ when disabling x87 inline functions.
51506
51507 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
51508
51509         * manual/charset.texi: Document MTASC-safety properties.
51510
51511         * manual/crypt.texi: Document MTASC-safety properties.
51512
51513         * manual/conf.texi: Document MTASC-safety properties.
51514
51515         * manual/arith.texi: Document MTASC-safety properties.
51516
51517         * manual/argp.texi: Document MTASC-safety properties.
51518
51519         * manual/macros.texi: Introduce macros to document multi
51520         thread, asynchronous signal and asynchronous cancellation
51521         safety properties.
51522         * manual/intro.texi: Introduce the properties themselves.
51523
51524 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
51525
51526         * sysdeps/sh/sh4/Makefile: New file.
51527
51528 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
51529
51530         * math/gen-libm-test.pl ($srcdir): New variable.
51531         ($auto_input): Use it.
51532
51533 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
51534
51535         [BZ #16506]
51536         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
51537         access beyond array bounds when parsing netgroups file.
51538
51539         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
51540         the old buffer before realloc.
51541
51542 2014-01-27  Allan McRae  <allan@archlinux.org>
51543
51544         * po/fr.po: Update French translation from translation project.
51545
51546 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
51547
51548         * sysdeps/sh/libm-test-ulps: Regenerate.
51549
51550 2014-01-24  David S. Miller  <davem@davemloft.net>
51551
51552         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
51553
51554 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
51555
51556         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
51557         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
51558
51559 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
51560
51561         [BZ #16474]
51562         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
51563         string pointers after reallocation.
51564
51565 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
51566
51567         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
51568         __SH4A__ instead of __SH_FPU_ANY__.
51569
51570 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
51571
51572         * sysdeps/sh/fpu_control.h: New file.
51573         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
51574         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
51575         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
51576         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
51577         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
51578         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
51579         * sysdeps/sh/sys/ucontext.h: Remove.
51580         * sysdeps/sh/sys: Remove directory.
51581
51582 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
51583
51584         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
51585         s390/sys/ucontext.h.
51586         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
51587         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
51588
51589 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
51590
51591         [BZ #15605]
51592         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
51593
51594 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51595
51596         [BZ #16431]
51597         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
51598         Adjust the vDSO correctly for internal calls.
51599         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
51600
51601 2014-01-20  Allan McRae  <allan@archlinux.org>
51602
51603         * po/ca.po: Update Catalan translation from translation project.
51604
51605 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
51606
51607         * sysdeps/s390/sotruss-lib.c: New file.
51608
51609 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51610
51611         [BZ #16430]
51612         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
51613         (__GI___gettimeofday): Alias for a different internal symbol to avoid
51614         local calls issues by not having a PLT stub required for IFUNC calls.
51615         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
51616
51617 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
51618
51619         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
51620         * math/test-fpucw-static.c: Likewise.
51621
51622 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
51623
51624         [BZ #16453]
51625         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
51626
51627 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51628
51629         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
51630         implementation for powerpc.
51631
51632 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
51633
51634         [BZ #14782]
51635         * sysdeps/posix/system.c (__libc_system): Do not enable
51636         asynchronous cancellation.
51637
51638 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
51639
51640         [BZ #16427]
51641         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
51642         handling only for numbers special also in the IEEE case.
51643
51644 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
51645
51646         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
51647
51648 2014-01-11  Allan McRae  <allan@archlinux.org>
51649
51650         * po/bg.po: Update Bulgarian translation from translation project.
51651
51652         * po/de.po: Update German translation from translation project.
51653
51654 2014-01-10  Roland McGrath  <roland@hack.frob.com>
51655
51656         * sysdeps/generic/gcc-compat.h: New file.
51657
51658 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
51659
51660         * benchtests/asin-inputs: Correct slow inputs.
51661         * benchtests/acos-inputs: Likewise.
51662
51663 2014-01-10  Allan McRae  <allan@archlinux.org>
51664
51665         * po:sv.po: Update Swedish translation from translation project.
51666
51667         * po/vi.po: Update Vietnamese translation from translation project.
51668
51669         * po/eo.po: Update Esperanto translation from translation project.
51670
51671         * po/cs.po: Update Czech translation from translation project.
51672
51673         * po/nl.po: Update Dutch translation from translation project.
51674
51675         * po/pl.po: Update Polish translation from translation project.
51676
51677         * po/ru.po: Update Russian translation from translation project.
51678
51679         * po/uk.po: Update Ukrainian translation from translation project.
51680
51681 2014-01-08  Brooks Moses  <bmoses@google.com>
51682
51683         * elf/dl-load.c: Fix comment typo.
51684
51685 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
51686
51687         * po/header.pot: Rename to...
51688         * po/pot.header: ... this.
51689         * po/Makefile: Use pot.header.
51690
51691 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
51692             Maxim Kuvyrkov  <maxim@kugelworks.com>
51693
51694         [BZ #16394]
51695         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
51696         SRC and DEST against LEN.
51697
51698 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51699
51700         [BZ #16414]
51701         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
51702         implementation.
51703         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
51704
51705 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51706
51707         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
51708
51709 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
51710
51711         [BZ #16408]
51712         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
51713         for large positive arguments.
51714
51715 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
51716
51717         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
51718
51719         * math/auto-libm-test-in: Mark various tests with
51720         xfail-rounding:ldbl-128ibm.
51721         * math/auto-libm-test-out: Regenerated.
51722
51723         [BZ #16407]
51724         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
51725         Increase overflow threshold.
51726
51727 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
51728
51729         [BZ #14286]
51730         * stdio-common/vfprintf.c: Check for integer overflow.
51731
51732 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
51733
51734         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
51735         the first argument and return value of __tls_get_addr_internal.
51736
51737 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
51738
51739         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
51740         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
51741
51742 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
51743
51744         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
51745         * sysdeps/s390/rtld-global-offsets.sym: New file.
51746         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
51747         GLIBC_2.19 symbol.
51748         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
51749         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
51750         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
51751         ... this.
51752         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
51753         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
51754         ... this.
51755         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
51756         Regenerate.
51757         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
51758         Regenerate.
51759         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
51760         halfs of GPRs for high_gprs contexts.
51761         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
51762         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
51763         field.
51764         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
51765         uc_flags field.
51766         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
51767         64 bit versions:
51768         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
51769         for high GPRs (uc_high_gprs) and for future extensions
51770         (__reserved).
51771         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
51772         for future extensions (__reserved).
51773         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
51774         64 bit versions:
51775         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
51776         SC_HIGHGPRS offset definition.
51777         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
51778         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
51779
51780         * Versions.def: Add GLIBC_2.19 for libpthread.
51781         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
51782         siglongjmp for libpthread with GLIBC_2.19 symver.
51783         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
51784         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
51785         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
51786         * sysdeps/s390/__longjmp.c: New file.
51787         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
51788         * sysdeps/s390/longjmp.c: New file.
51789         * sysdeps/s390/setjmp.S: New file.
51790         * sysdeps/s390/sigjmp.S: New file.
51791         * sysdeps/s390/v1-longjmp.c: New file.
51792         * sysdeps/s390/v1-setjmp.h: New file.
51793         * sysdeps/s390/v1-sigjmp.c: New file.
51794         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
51795         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
51796         GLIBC_2.19 version.
51797         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
51798         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
51799         versioned symbols for ____longjmp_chk.
51800         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
51801         Likewise.
51802         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
51803         Regenerate.
51804         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
51805         Regenerate.
51806         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
51807         Regenerate.
51808         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
51809         Regenerate.
51810         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
51811         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
51812         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
51813         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
51814         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
51815         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
51816         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
51817         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
51818         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
51819         * sysdeps/s390/rtld-__longjmp.c: New file.
51820         * sysdeps/s390/rtld-setjmp.S: New file.
51821
51822 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
51823
51824         [BZ #16400]
51825         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
51826         Return -__logl (x) for small positive arguments without evaluating
51827         a polynomial.
51828
51829 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
51830
51831         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
51832         Rename to ...
51833         (__ptrace_peeksiginfo_args): ... this.
51834         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
51835         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
51836         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
51837
51838 2014-01-06  Allan McRae  <allan@archlinux.org>
51839
51840         * inet/netinet/in.h: Fix typo in comment.
51841
51842 2014-01-05  Andreas Jaeger  <aj@suse.de>
51843
51844         * sysdeps/i386/fpu/libm-test-ulps: Update.
51845
51846 2014-01-05  Allan McRae  <allan@archlinux.org>
51847
51848         * po/libc.pot: Regenerated.
51849
51850         * malloc/memusagestat.c: Fix gettext call formatting.
51851
51852 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
51853
51854         * nscd/nscd.c: Improve usage() output.
51855
51856 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
51857
51858         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
51859         * sysdeps/unix/sysv/linux/configure: Regenerated.
51860         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
51861         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
51862
51863 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
51864
51865         [BZ #16390]
51866         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
51867         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
51868
51869 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51870
51871         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
51872         extra tokens at end of #undef directive.
51873         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
51874         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
51875         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
51876
51877 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
51878
51879         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
51880
51881         * math/auto-libm-test-in: Mark various tests with
51882         xfail-rounding:ldbl-128ibm.
51883         * math/auto-libm-test-out: Regenerated.
51884
51885 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
51886
51887         [BZ #16386]
51888         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
51889         numbers with subnormal high part when calculating exponent.
51890
51891         [BZ #16385]
51892         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
51893         fabs.
51894
51895         [BZ #16384]
51896         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
51897         M_LN2l.
51898         (__ieee754_acoshl): Use __log1pl not __log1p.
51899
51900 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
51901
51902         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all)
51903         (ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry)
51904         (__failing_morecore, ptmalloc_init, dump_heap, new_heap)
51905         (grow_heap, heap_trim, _int_new_arena, get_free_list)
51906         (reused_arena, arena_get2): Convert to GNU style.
51907         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init)
51908         (mem2mem_check, mem2chunk_check, top_check, realloc_check)
51909         (memalign_check, __malloc_set_state): Likewise.
51910         * malloc/mallocbug.c (main): Likewise.
51911         * malloc/malloc.c (__malloc_assert, malloc_init_state)
51912         (free_perturb, do_check_malloced_chunk, do_check_malloc_state)
51913         (sysmalloc, systrim, mremap_chunk, __libc_malloc, __libc_free)
51914         (__libc_realloc, _mid_memalign, _int_malloc, malloc_consolidate)
51915         (_int_realloc, _int_memalign, mtrim, musable, __libc_mallopt)
51916         (__posix_memalign, malloc_info): Likewise.
51917         * malloc/malloc.h: Likewise.
51918         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook)
51919         (mallochook, memalignhook, reallochook, mabort): Likewise.
51920         * malloc/mcheck.h: Likewise.
51921         * malloc/memusage.c (update_data, me, malloc, realloc, calloc)
51922         (free, mmap, mmap64, mremap, munmap, dest): Likewise.
51923         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
51924         * malloc/morecore.c (__default_morecore): Likewise.
51925         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
51926         * malloc/obstack.c (_obstack_begin, _obstack_newchunk)
51927         (_obstack_allocated_p, obstack_free, _obstack_memory_used)
51928         (print_and_abort): Likewise.
51929         * malloc/obstack.h: Likewise.
51930         * malloc/set-freeres.c (__libc_freeres): Likewise.
51931         * malloc/tst-mallocstate.c (main): Likewise.
51932         * malloc/tst-mtrace.c (main): Likewise.
51933         * malloc/tst-realloc.c (do_test): Likewise.
51934
51935 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
51936
51937         [BZ #16366]
51938         * nscd/netgroupcache.c (do_notfound): New function.
51939         (addgetnetgrentX): Use it.
51940
51941         [BZ # 16365]
51942         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
51943         NSS_STATUS_NOTFOUND.
51944
51945 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
51946
51947         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
51948         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
51949
51950 2014-01-01  Allan McRae  <allan@archlinux.org>
51951
51952         * scripts/update-copyrights: Update configure input file suffix.
51953
51954         * NEWS: Update copyright year.
51955         * catgets/gencat.c: Likewise.
51956         * csu/version.c: Likewise.
51957         * debug/catchsegv.sh: Likewise.
51958         * debug/pcprofiledump.c: Likewise.
51959         * debug/xtrace.sh: Likewise.
51960         * elf/ldconfig.c: Likewise.
51961         * elf/ldd.bash.in: Likewise.
51962         * elf/pldd.c: Likewise.
51963         * elf/sotruss.ksh: Likewise.
51964         * elf/sprof.c: Likewise.
51965         * iconv/iconv_prog.c: Likewise.
51966         * iconv/iconvconfig.c: Likewise.
51967         * locale/programs/locale.c: Likewise.
51968         * locale/programs/localedef.c: Likewise.
51969         * login/programs/pt_chown.c: Likewise.
51970         * malloc/memusage.sh: Likewise.
51971         * malloc/memusagestat.c: Likewise.
51972         * malloc/mtrace.pl: Likewise.
51973         * manual/libc.texinfo: Likewise.
51974         * nscd/nscd.c: Likewise.
51975         * nss/getent.c: Likewise.
51976         * nss/makedb.c: Likewise.
51977         * posix/getconf.c: Likewise.
51978         * scripts/test-installation.pl: Likewise.
51979
51980         * All files with FSF copyright notices: Update copyright dates
51981         using scripts/update-copyrights.
51982         * intl/plural.c: Regenerated.
51983         * locale/programs/charmap-kw.h: Likewise.
51984         * locale/programs/locfile-kw.h: Likewise.
51985
51986 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
51987
51988         * sysdeps/unix/sysv/linux/configure: Regenerated.
51989         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
51990         the linux/fanotify.h header.
51991         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
51992         HAVE_LINUX_FANOTIFY_H is defined.
51993
51994 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
51995
51996         * benchtests/cos-inputs: New inputs.
51997         * benchtests/sin-inputs: Likewise.
51998
51999         * benchtests/atan-inputs: New inputs. Fix name of multiple
52000         precision fallback inputs.
52001
52002         * benchtests/atanh-inputs: New inputs.
52003         * benchtests/tanh-inputs: Likewise.
52004
52005         * benchtests/acosh-inputs: New inputs.
52006         * benchtests/asinh-inputs: Likewise.
52007
52008         * benchtests/cosh-inputs: New inputs.
52009         * benchtests/sinh-inputs: Likewise.
52010
52011         * benchtests/acos-inputs: Add more inputs.
52012         * benchtests/asin-inputs: Likewise.
52013
52014 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
52015
52016         [BZ #16375]
52017         * manual/arith.texi: Fix spelling.
52018         * manual/charset.texi: Likewise.
52019         * manual/errno.texi: Likewise.
52020         * manual/filesys.texi: Likewise.
52021         * manual/lang.texi: Likewise.
52022         * manual/llio.texi: Likewise.
52023         * manual/locale.texi: Likewise.
52024         * manual/message.texi: Likewise.
52025         * manual/resource.texi: Likewise.
52026         * manual/search.texi: Likewise.
52027         * manual/setjmp.texi: Likewise.
52028         * manual/stdio.texi: Likewise.
52029         * manual/string.texi: Likewise.
52030         * manual/sysinfo.texi: Likewise.
52031         * manual/time.texi: Likewise.
52032
52033 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
52034
52035         * po/sl.po: New file.
52036
52037 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
52038
52039         * .gitignore: Add core/.gdbinit/.gdb_history.
52040
52041 2013-12-27  Allan McRae  <allan@archlinux.org>
52042
52043         [BZ #16369]
52044         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
52045         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
52046
52047 2013-12-24  Brooks Moses  <bmoses@google.com>
52048
52049         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
52050         all compilers that claim C++98 compliance, not just GCC.
52051         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
52052         Likewise.
52053
52054 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
52055
52056         * NEWS: Restore accidentally deleted bug-fix entries.
52057
52058 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
52059             Ondřej Bílka  <neleai@seznam.cz>
52060
52061         [BZ #15073]
52062         * malloc/malloc.c (_int_free): Perform sanity check only if we
52063         have_lock.
52064
52065 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
52066
52067         [BZ #12986]
52068         * manual/stdio.texi (String Input Conversions): Clarify that character
52069         classes are not supported.
52070
52071 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52072
52073         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
52074
52075 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
52076
52077         [BZ #16337]
52078         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
52079         Calculate results for small negative arguments directly rather
52080         than using reflection formula with special underflow handling.
52081
52082         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
52083         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
52084         sysdeps/unix/bsd/bsd4.4/syscalls.list.
52085         (fchflags): Likewise.
52086         (revoke): Likewise.
52087         (setlogin): Likewise.
52088         (sigaltstack): Likewise.
52089         (wait4): Likewise.
52090         (sigblock): Remove.
52091         (sigsetmask): Likewise.
52092         (wait3): Likewise.
52093         (waitpid): Likewise.
52094         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
52095         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
52096         file.
52097         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
52098         * sysdeps/unix/bsd/Makefile: ... here.
52099         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
52100         * sysdeps/unix/bsd/Versions: ... here.
52101         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
52102         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
52103         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
52104         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
52105         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
52106         * sysdeps/unix/bsd/sigblock.c: ... here.
52107         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
52108         * sysdeps/unix/bsd/sigsetmask.c: ... here.
52109         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
52110         * sysdeps/unix/bsd/sigvec.c: ... here.
52111         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
52112         * sysdeps/unix/bsd/tcdrain.c: ... here.
52113         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
52114         * sysdeps/unix/bsd/tcgetattr.c: ... here.
52115         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
52116         * sysdeps/unix/bsd/tcsetattr.c: ... here.
52117         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
52118         * sysdeps/unix/bsd/wait.c: ... here.
52119         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
52120         * sysdeps/unix/bsd/wait3.c: ... here.
52121         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
52122         * sysdeps/unix/bsd/waitpid.c: ... here.
52123
52124 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
52125
52126         [BZ #16356]
52127         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
52128         round-to-nearest for [!USE_AS_EXPM1L].
52129         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
52130         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
52131         more tests of exp and exp10.  Expect some exp10 tests to miss
52132         exceptions or fail in directed rounding modes.
52133         * math/auto-libm-test-out: Regenerated.
52134         * math/libm-test.inc (exp10_tonearest_test_data): New array.
52135         (exp10_test_tonearest): New function.
52136         (exp10_towardzero_test_data): New array.
52137         (exp10_test_towardzero): New function.
52138         (exp10_downward_test_data): New array.
52139         (exp10_test_downward): New function.
52140         (exp10_upward_test_data): New array.
52141         (exp10_test_upward): New function.
52142         (main): Call the new functions.
52143         * sysdeps/i386/fpu/libm-test-ulps: Update.
52144         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52145
52146 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
52147
52148         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
52149         asinh, atan, atan2, atanh, cbrt, cos and cosh.
52150         * math/auto-libm-test-out: Regenerated.
52151         * math/libm-test.inc (acosh_test_data): Add more tests.
52152         (atanh_test_data): Likewise.
52153         (ceil_test_data): Likewise.
52154         (copysign_test_data): Likewise.
52155         * sysdeps/i386/fpu/libm-test-ulps: Update.
52156         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52157
52158         * timezone/checktab.awk: Update from tzcode 2013i.
52159         * timezone/private.h: Likewise.
52160         * timezone/scheck.c: Likewise.
52161         * timezone/tzfile.h: Likewise.
52162         * timezone/tzselect.ksh: Likewise.
52163         * timezone/zdump.c: Likewise.
52164         * timezone/zic.c: Likewise.
52165
52166         * math/auto-libm-test-in: Add tests of cpow.
52167         * math/auto-libm-test-out: Regenerated.
52168         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
52169         * math/gen-auto-libm-tests.c (func_calc_method): Add value
52170         mpc_cc_c.
52171         (func_calc_desc): Add mpc_cc_c union field.
52172         (test_functions): Add cpow.
52173         (special_fill_2pi): New function.
52174         (special_real_inputs): Add 2pi.
52175         (calc_generic_results): Handle mpc_cc_c.
52176         * sysdeps/i386/fpu/libm-test-ulps: Update.
52177         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52178
52179         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
52180         csqrt, ctan and ctanh.
52181         * math/auto-libm-test-out: Regenerated.
52182         * math/libm-test.inc (TEST_COND_x86_64): New macro.
52183         (TEST_COND_x86): Likewise.
52184         (ccos_test_data): Use AUTO_TESTS_c_c.
52185         (ccosh_test_data): Likewise.
52186         (cexp_test_data): Likewise.
52187         (clog_test_data): Likewise.
52188         (csqrt_test_data): Likewise.
52189         (ctan_test_data): Likewise.
52190         (ctan_tonearest_test_data): Likewise.
52191         (ctan_towardzero_test_data): Likewise.
52192         (ctan_downward_test_data): Likewise.
52193         (ctan_upward_test_data): Likewise.
52194         (ctanh_test_data): Likewise.
52195         (ctanh_tonearest_test_data): Likewise.
52196         (ctanh_towardzero_test_data): Likewise.
52197         (ctanh_downward_test_data): Likewise.
52198         (ctanh_upward_test_data): Likewise.
52199         * math/gen-auto-libm-tests.c (func_calc_method): Add value
52200         mpc_c_c.
52201         (func_calc_desc): Add mpc_c_c union field.
52202         (FUNC_mpc_c_c): New macro.
52203         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
52204         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
52205         ctanh.
52206         (special_fill_min_subnorm_p120): New function.
52207         (special_real_inputs): Add min_subnorm_p120.
52208         (calc_generic_results): Handle mpc_c_c.
52209         * sysdeps/i386/fpu/libm-test-ulps: Update.
52210         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52211
52212 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
52213
52214         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin)
52215         (do_sin_slow): New functions.
52216         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2)
52217         (cslow2, csloww1, csloww2): Use the new functions.
52218
52219         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
52220         Use M to change sign of result instead of X.  Assume X is
52221         positive.
52222         (csloww1): Likewise.
52223         (__sin): Adjust.
52224         (__cos): Adjust.
52225
52226         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
52227         arguments A and DA.
52228         (__sin): Adjust.
52229         (__cos): Likewise.
52230
52231         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
52232         (__cos): Likewise.
52233         (sloww1): Don't adjust sign of DX.
52234         (csloww1): Likewise.
52235         (sloww2): Use X directly and don't adjust sign of DX.
52236         (csloww2): Likewise.
52237
52238 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
52239
52240         * math/auto-libm-test-in: Add tests of cabs and carg.
52241         * math/auto-libm-test-out: Regenerated.
52242         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
52243         (carg_test_data): Likewise.
52244         * math/gen-auto-libm-tests.c (func_calc_method): Add value
52245         mpc_c_f.
52246         (func_calc_desc): Add mpc_c_f union field.
52247         (test_functions): Add cabs and carg.
52248         (calc_generic_results): Handle mpc_c_f.
52249
52250         * sysdeps/powerpc/powerpc32/libgcc-compat.S
52251         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
52252         as a macro and a compat symbol.
52253         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
52254         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
52255         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
52256         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
52257         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
52258         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
52259         not use .hidden.
52260         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
52261         Likewise.
52262         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
52263         Likewise.
52264         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
52265         Likewise.
52266         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
52267         Likewise.
52268         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
52269         Likewise.
52270         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
52271         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
52272         from GLIBC_2.3.2.
52273
52274 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52275
52276         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
52277
52278 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
52279
52280         * manual/texinfo.tex: Update to version 2013-11-26.10 with
52281         trailing whitespace removed.
52282         * scripts/config.guess: Update to version 2013-11-29.
52283         * scripts/config.sub: Update to version 2013-10-01.
52284
52285         * math/auto-libm-test-in: Add tests of sincos.
52286         * math/auto-libm-test-out: Regenerated.
52287         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
52288         * math/gen-auto-libm-tests.c (func_calc_method): Add value
52289         mpfr_f_11.
52290         (func_calc_desc): Add mpfr_f_11 union field.
52291         (test_functions): Add sincos.
52292         (calc_generic_results): Handle mpfr_f_11.
52293         * sysdeps/i386/fpu/libm-test-ulps: Update.
52294         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52295
52296 2013-12-19  Andreas Schwab  <schwab@suse.de>
52297
52298         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
52299         CALL_MCOUNT.
52300         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
52301         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
52302         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
52303
52304 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
52305
52306         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
52307         * sysdeps/i386/fpu/libm-test-ulps: Update.
52308         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52309
52310         [BZ #16293]
52311         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
52312         round-to-nearest mode when using frndint.
52313         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
52314         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
52315         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
52316         Likewise.
52317         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
52318         sinh test to fail.
52319         * math/auto-libm-test-out: Regenerated.
52320         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
52321         (TEST_COND_x86): Likewise.
52322         (expm1_tonearest_test_data): New array.
52323         (expm1_test_tonearest): New function.
52324         (expm1_towardzero_test_data): New array.
52325         (expm1_test_towardzero): New function.
52326         (expm1_downward_test_data): New array.
52327         (expm1_test_downward): New function.
52328         (expm1_upward_test_data): New array.
52329         (expm1_test_upward): New function.
52330         (main): Run the new test functions.
52331         * sysdeps/i386/fpu/libm-test-ulps: Update.
52332         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52333
52334         * include/features.h: Update comment documenting feature test
52335         macros.  Mention _DEFAULT_SOURCE in comment.
52336         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
52337         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
52338         _BSD_SOURCE and _SVID_SOURCE.
52339         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
52340         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
52341         !_SVID_SOURCE]: Likewise.
52342         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
52343         (__USE_POSIX_IMPLICITLY): Define.
52344         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
52345         (_POSIX_SOURCE): Undefine and redefine.
52346         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
52347         (_POSIX_C_SOURCE): Likewise.
52348         * manual/creature.texi (_DEFAULT_SOURCE): Document.
52349         (Feature Test Macros): Update documentation of default features.
52350
52351 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
52352
52353         * benchtests/Makefile: Add bench-strtok.
52354         * benchtests/bench-strtok.c: New file: strtok benchtest.
52355
52356 2013-12-19  Allan McRae  <allan@archlinux.org>
52357
52358         * manual/install.texi: Suppress menu for plain text output.
52359         * INSTALL: Regenerated.
52360
52361 2013-12-18  Brooks Moses  <bmoses@google.com>
52362
52363         [BZ #15846]
52364         * misc/getauxval.c: Include errno.h.
52365         (__getauxval): Set errno to ENOENT if the requested type is not
52366         found.
52367         * misc/sys/auxv.h (getauxval): Document that it may set errno;
52368         don't declare with __attribute_const__.
52369         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
52370         * manual/startup.texi: Document that getauxval sets errno.
52371
52372 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
52373
52374         * math/auto-libm-test-in: Add tests of jn and yn.
52375         * math/auto-libm-test-out: Regenerated.
52376         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
52377         (yn_test_data): Likewise.
52378         * math/gen-auto-libm-tests.c (func_calc_method): Add value
52379         mpfr_if_f.
52380         (func_calc_desc): Add mpfr_if_f union field.
52381         (FUNC_mpfr_if_f): New macro.
52382         (test_functions): Add jn and yn.
52383         (calc_generic_results): Assert type of second input for
52384         mpfr_ff_f.  Handle mpfr_if_f.
52385         (output_for_one_input_case): Disable all checking for arguments
52386         fitting floating-point types in case of an integer argument.
52387         * sysdeps/i386/fpu/libm-test-ulps: Update.
52388         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52389
52390         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
52391         Don't expect fegetround reference in libm.so.
52392
52393 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
52394
52395         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
52396         $(config-cflags-nofma).
52397
52398 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
52399
52400         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
52401         * math/auto-libm-test-out: Regenerated.
52402
52403         [BZ #16338]
52404         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
52405         to determine exponent and adjust argument to have exponent of -1.
52406         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
52407         log2.
52408         * math/auto-libm-test-out: Regenerated.
52409         * sysdeps/i386/fpu/libm-test-ulps: Update.
52410         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52411
52412 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
52413
52414         * manual/probes.texi: Remove cases when per-thread arenas are
52415         disabled.
52416
52417 2013-12-18  Andreas Schwab  <schwab@suse.de>
52418
52419         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
52420         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
52421         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
52422         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
52423         * sysdeps/i386/i686/multiarch/Makefile: Update.
52424         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
52425
52426 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
52427
52428         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
52429         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
52430
52431 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
52432
52433         [BZ #15968]
52434         Support TZ transition times < 00:00:00.
52435         This is needed for version-3 tz-format files; it supports time
52436         stamps past 2037 for America/Godthab (the only entry in the tz
52437         database for which this change is relevant).
52438         * manual/time.texi (TZ Variable): Document transition times
52439         from -167:59:59 through -00:00:01.
52440         * time/tzset.c (tz_rule): Time of day is now signed.
52441         (__tzset_parse_tz): Parse negative time of day.
52442
52443         Document TZ transition times >= 25:00:00.
52444         * manual/time.texi (TZ Variable): Document transition times from
52445         25:00:00 through 167:59:59.  These are already supported, and this
52446         support will help with version-3 tz-format files.
52447
52448         * manual/time.texi (TZ Variable): Modernize North America example
52449         to reflect current (i.e., 2007-and-later) daylight saving rules.
52450
52451         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
52452
52453 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
52454
52455         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
52456         * sysdeps/unix/bsd/bits/stat.h: Likewise.
52457         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
52458         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
52459         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
52460         * sysdeps/unix/bsd/bsdstat.h: Likewise.
52461         * sysdeps/unix/bsd/clock.c: Likewise.
52462         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
52463         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
52464         * sysdeps/unix/bsd/init-posix.c: Likewise.
52465         * sysdeps/unix/bsd/poll.c: Likewise.
52466         * sysdeps/unix/bsd/ptsname.c: Likewise.
52467         * sysdeps/unix/bsd/seekdir.c: Likewise.
52468         * sysdeps/unix/bsd/setegid.c: Likewise.
52469         * sysdeps/unix/bsd/seteuid.c: Likewise.
52470         * sysdeps/unix/bsd/setgid.c: Likewise.
52471         * sysdeps/unix/bsd/setrgid.c: Likewise.
52472         * sysdeps/unix/bsd/setruid.c: Likewise.
52473         * sysdeps/unix/bsd/setsid.c: Likewise.
52474         * sysdeps/unix/bsd/setuid.c: Likewise.
52475         * sysdeps/unix/bsd/sigaction.c: Likewise.
52476         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
52477         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
52478         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
52479         * sysdeps/unix/bsd/telldir.c: Likewise.
52480         * sysdeps/unix/bsd/times.c: Likewise.
52481         * sysdeps/unix/bsd/usleep.c: Likewise.
52482
52483         * misc/Makefile (install-lib): Remove libbsd-compat.a.
52484         ($(objpfx)libbsd-compat.a): Remove rule.
52485
52486         * include/features.h (__FAVOR_BSD): Do not define.
52487         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
52488         features conflicting with POSIX.
52489         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
52490         (_BSD_SOURCE): Remove description of not being a subset of other
52491         feature test macros.
52492         * manual/job.texi (getpgrp): Do not document BSD version.
52493         (getpgid): Do not document by reference to BSD getpgrp.
52494         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
52495         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
52496         * signal/signal.h [__FAVOR_BSD]: Likewise.
52497         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
52498         instead of making contents conditional on [__FAVOR_BSD].
52499         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
52500
52501 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52502
52503         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
52504
52505 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
52506
52507         [BZ #16314]
52508         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
52509         values below 2**-450, not 2**-500.
52510         * math/auto-libm-test-in: Don't allow spurious underflow from
52511         hypot.
52512         * math/auto-libm-test-out: Regenerated.
52513
52514         [BZ #16316]
52515         [BZ #16330]
52516         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
52517         values of ha and hb and sort them after adjusting subnormal
52518         arguments.
52519         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
52520         Likewise.
52521         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
52522         values of ea and eb and sort them after adjusting subnormal
52523         arguments.
52524         * math/auto-libm-test-in: Do not expect some hypot tests of
52525         subnormals to fail.  Add more hypot tests.
52526         * math/auto-libm-test-out: Regenerated.
52527
52528 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
52529
52530         [BZ #13304]
52531         * sysdeps/sh/s_fma.c: New file.
52532         * sysdeps/sh/s_fmaf.c: New file.
52533         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
52534         version.
52535         * sysdeps/sh/Implies: Add sh/soft-fp.
52536
52537 2013-12-16  Roland McGrath  <roland@hack.frob.com>
52538
52539         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
52540         level of indirection to members `objname', `errstring', `malloced'.
52541         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
52542         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
52543         it as the __longjmp argument (just pass 1 instead).
52544         (_dl_catch_error): Initialize C with argument pointers and address of
52545         volatile local ERRCODE rather than copying values out of C at return.
52546
52547 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
52548
52549         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
52550         * math/auto-libm-test-out: Regenerated.
52551         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
52552         (hypot_test_data): Likewise.
52553         (pow_test_data): Likewise.
52554         (pow_tonearest_test_data): Likewise.
52555         * math/gen-auto-libm-tests.c (func_calc_method): Add value
52556         mpfr_ff_f.
52557         (func_calc_desc): Add mpfr_ff_f union field.
52558         (FUNC_mpfr_ff_f): New macro.
52559         (test_functions): Add atan2, hypot and pow.
52560         (special_fill_min): New function.
52561         (special_fill_minus_min): Likewise.
52562         (special_fill_min_subnorm): Likewise.
52563         (special_fill_minus_min_subnorm): Likewise.
52564         (special_real_inputs): Add min, -min, min_subnorm and
52565         -min_subnorm.
52566         (calc_generic_results): Handle mpfr_ff_f.
52567         * sysdeps/i386/fpu/libm-test-ulps: Update.
52568         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52569
52570 2013-12-16  Will Newton  <will.newton@linaro.org>
52571
52572         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
52573         (Aligned Memory Blocks): Add documentation for aligned_alloc
52574         and suggest it as an alternative to posix_memalign.
52575         (Hooks for Malloc): Document __memalign_hook is also called
52576         for aligned_alloc.  (Summary of Malloc): Add summary for
52577         aligned alloc.  Document __memalign_hook is also called
52578         for aligned_alloc.
52579
52580 2013-12-16  Will Newton  <will.newton@linaro.org>
52581
52582         * manual/memory.texi (Malloc Examples): Clarify default
52583         alignment documentation.  Suggest posix_memalign rather
52584         than memalign or valloc.
52585         (Aligned Memory Blocks): Remove suggestion to use memalign
52586         or valloc.  Remove obsolete comment about BSD.
52587         Document memalign errno values and mark the function obsolete.
52588         Document posix_memalign returned error codes.  Mark valloc
52589         as obsolete.  (Hooks for Malloc): __memalign_hook is also
52590         called for posix_memalign and valloc.
52591         (Summary of Malloc): Add posix_memalign to function summary.
52592         __memalign_hook is also called for posix_memalign and valloc.
52593
52594 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
52595
52596         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
52597         TAYLOR_SIN.
52598         (__sin): Adjust.
52599         (__cos): Likewise.
52600         (sloww): Use mynumber union.  Expand ternary operator into
52601         if-else statements.
52602         (cslow): use mynumber union.
52603
52604 2013-12-16  Allan McRae  <allan@archlinux.org>
52605
52606         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
52607         * configure: Regenerated.
52608
52609         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
52610
52611         [BZ #14120]
52612         * configure.ac: Added --enable-maintainer-mode. Check for
52613         autoconf when enabled.
52614         * configure: Regenerated.
52615
52616         * nscd/nscd.service: New file.
52617         * nscd/nscd.tmpfiles: New file.
52618
52619 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
52620
52621         [BZ #12100]
52622         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
52623         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
52624         * sysdeps/x86_64/multiarch/strstr.c: ... here.
52625         (strstr): Add __strstr_sse2_unaligned ifunc.
52626         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
52627         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
52628         (strcasestr): Remove __strcasestr_sse42 ifunc.
52629         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
52630         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
52631         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
52632
52633 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
52634
52635         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
52636         * sysdeps/sh/bits/fenv.h: ... here.
52637         * sysdeps/sh/sh4/fpu/bits: Remove directory.
52638
52639 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52640
52641         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
52642
52643         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
52644         hypotf multiarch implementations.
52645         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
52646         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
52647         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
52648         multiarch hypot for PPC64.
52649         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
52650         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
52651         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
52652         multiarch hypotf for PPC64.
52653
52654         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
52655         modff multiarch implementations.
52656         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
52657         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
52658         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
52659         multiarch modf for PPC64.
52660         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
52661         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
52662         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
52663         multiarch modff for PPC64.
52664
52665         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
52666         and logl multiarch implementations.
52667         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
52668         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
52669         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
52670         multiarch logb for PPC64.
52671         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
52672         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
52673         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
52674         multiarch logb for PPC64.
52675         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
52676         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
52677         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
52678         multiarch logb for PPC64.
52679
52680         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
52681         isinff multiarch implementation.
52682         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
52683         file.
52684         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
52685         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
52686         multiarch isinf for PPC64.
52687         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
52688         file.
52689         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
52690         multiarch isinff for PPC64.
52691
52692         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
52693         finitef multiarch implementation.
52694         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
52695         file.
52696         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
52697         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
52698         multiarch finite for PPC64.
52699         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
52700         file.
52701         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
52702         multiarch finitef for PPC64.
52703
52704         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
52705         lrint multiarch implementation.
52706         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
52707         file.
52708         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
52709         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
52710         multiarch llrint for PPC64.
52711         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
52712         multiarch lrint for PPC64.
52713
52714         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
52715         copysignf multiarch implementation.
52716         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
52717         file.
52718         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
52719         file.
52720         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
52721         multiarch copysign for PPC64.
52722         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
52723         multiarch copysignf for PPC64.
52724
52725         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
52726         multiarch implementation.
52727         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
52728         file.
52729         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
52730         file.
52731         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
52732         file.
52733         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
52734         file.
52735         multiarch llround for PPC64.
52736         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
52737         multiarch trunc for PPC64.
52738         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
52739         multiarch truncf for PPC64.
52740
52741         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
52742         multiarch implementation.
52743         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
52744         file.
52745         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
52746         file.
52747         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
52748         file.
52749         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
52750         file.
52751         multiarch llround for PPC64.
52752         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
52753         multiarch round for PPC64.
52754         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
52755         multiarch roundf for PPC64.
52756
52757         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
52758         multiarch implementation.
52759         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
52760         file.
52761         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
52762         file.
52763         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
52764         file.
52765         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
52766         file.
52767         multiarch llround for PPC64.
52768         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
52769         multiarch floor for PPC64.
52770         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
52771         multiarch floorf for PPC64.
52772
52773         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
52774         multiarch implementation.
52775         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
52776         file.
52777         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
52778         file.
52779         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
52780         file.
52781         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
52782         file.
52783         multiarch llround for PPC64.
52784         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
52785         multiarch ceil for PPC64.
52786         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
52787         multiarch ceilf for PPC64.
52788
52789         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
52790         multiarch implementation.
52791         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
52792         file.
52793         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
52794         file.
52795         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
52796         file.
52797         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
52798         multiarch llround for PPC64.
52799         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
52800         multiarch lround for PPC64.
52801
52802         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
52803         multiarch implementation.
52804         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
52805         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
52806         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
52807         file.
52808         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
52809         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
52810         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
52811         multiarch isnan for PPC64.
52812         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
52813         multiarch isnanf for PPC64.
52814
52815         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
52816         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
52817         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
52818         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
52819         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
52820         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
52821
52822         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
52823         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
52824         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
52825         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
52826
52827         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
52828         multiarch implementations.
52829         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
52830         (__libc_ifunc_impl_list): Likewise.
52831         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
52832         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
52833         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
52834         multiarch stpcpy for PPC64.
52835
52836         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
52837         multiarch implementations.
52838         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
52839         (__libc_ifunc_impl_list): Likewise.
52840         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
52841         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
52842         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
52843         multiarch strcpy for PPC64.
52844
52845         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
52846         redefine function name.
52847         (_wordcopy_fwd_dest_aligned): Likewise.
52848         (_wordcopy_bwd_aligned): Likewise.
52849         (_wordcopy_bwd_dest_aligned): Likewise.
52850         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
52851         multiarch implementations.
52852         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
52853         (__libc_ifunc_impl_list): Likewise.
52854         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
52855         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
52856         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
52857         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
52858         multiarch wcscpy for PPC64.
52859
52860         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
52861         multiarch implementations.
52862         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
52863         (__libc_ifunc_impl_list): Likewise.
52864         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
52865         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
52866         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
52867         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
52868         multiarch wcscpy for PPC64.
52869
52870         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
52871         multiarch implementations.
52872         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
52873         (__libc_ifunc_impl_list): Likewise.
52874         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
52875         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
52876         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
52877         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
52878         multiarch wcsrchr for PPC64.
52879
52880         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
52881         multiarch implementations.
52882         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
52883         (__libc_ifunc_impl_list): Likewise.
52884         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
52885         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
52886         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
52887         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
52888         multiarch wcschr for PPC64.
52889
52890         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
52891         multiarch implementations.
52892         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
52893         (__libc_ifunc_impl_list): Likewise.
52894         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
52895         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
52896         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
52897         multiarch strchrnul for PPC64.
52898
52899         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
52900         implementations.
52901         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
52902         (__libc_ifunc_impl_list): Likewise.
52903         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
52904         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
52905         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
52906         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
52907         strchr for PPC64.
52908
52909         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
52910         implementations.
52911         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
52912         (__libc_ifunc_impl_list): Likewise.
52913         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
52914         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
52915         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
52916         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
52917         strncmp for PPC64.
52918
52919         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
52920         multiarch implementations.
52921         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
52922         (__libc_ifunc_impl_list): Likewise.
52923         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
52924         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
52925         strncasecmp for PPC64.
52926         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
52927         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
52928         multiarch strncasecmp_l for PPC64.
52929
52930         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
52931         multiarch implementations.
52932         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
52933         (__libc_ifunc_impl_list): Likewise.
52934         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
52935         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
52936         multiarch strcasecmp for PPC64.
52937         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
52938         file.
52939         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
52940         multiarch strcasecmp_l for PPC64.
52941
52942         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
52943         implementations.
52944         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
52945         (__libc_ifunc_impl_list): Likewise.
52946         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
52947         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
52948         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
52949         strnlen for PPC64.
52950
52951         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
52952         implementations.
52953         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
52954         (__libc_ifunc_impl_list): Likewise.
52955         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
52956         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
52957         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
52958         strlen for PPC64.
52959
52960         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
52961         implementations.
52962         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
52963         (__libc_ifunc_impl_list): Likewise.
52964         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
52965         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
52966         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
52967         rawmemrchr for PPC64.
52968
52969         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
52970         implementation.
52971         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
52972         (__libc_ifunc_impl_list): Likewise.
52973         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
52974         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
52975         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
52976         memrchr for PPC64.
52977
52978         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
52979         implementation.
52980         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
52981         (__libc_ifunc_impl_list): Likewise.
52982         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
52983         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
52984         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
52985         memchr for PPC64.
52986
52987         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
52988         implementation.
52989         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
52990         (__libc_ifunc_impl_list): Likewise.
52991         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
52992         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
52993         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
52994         mempcpy for PPC64.
52995
52996         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
52997         avoid cretion of __bzero symbol.
52998         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
52999         Likewise.
53000         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
53001         Likewise.
53002         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
53003         Likewise.
53004         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
53005         multiarch implementations.
53006         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53007         (__libc_ifunc_impl_list): Likewise.
53008         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
53009         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
53010         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
53011         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
53012         bzero for PPC32.
53013         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
53014         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
53015         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
53016         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
53017         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
53018         memset for PPC64.
53019         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
53020
53021         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
53022         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
53023         implementations.
53024         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53025         (__libc_ifunc_impl_list): Likewise.
53026         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
53027         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
53028         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
53029         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
53030         memcmp for PPC64.
53031
53032         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
53033         multiarch for POWER/PPC64.
53034         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
53035         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
53036         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
53037         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
53038         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
53039         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
53040         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
53041         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
53042         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
53043         memcpy for PPC64.
53044
53045         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
53046         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
53047         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
53048         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
53049         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
53050         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
53051         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
53052         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
53053         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
53054         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
53055         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
53056         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
53057         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
53058         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
53059         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
53060         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
53061         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
53062         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
53063         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
53064         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
53065         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
53066         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
53067
53068 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
53069
53070         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
53071
53072 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
53073
53074         * benchtests/Makefile (bench): Add exp2 and log2.
53075         (LDLIBS-bench-exp2): Add -lm.
53076         (LDLIBS-bench-log2): Likewise.
53077         * benchtests/exp2-inputs: New inputs file.
53078         * benchtests/log2-inputs: New inputs file.
53079         * benchtests/log-inputs: Add new inputs.
53080         * benchtests/tan-inputs: Likewise.
53081
53082 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
53083
53084         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
53085         definition...
53086         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2, csloww1)
53087         (csloww2): ... from here.
53088
53089         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
53090         instead of structures.
53091         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
53092         (POLYNOMIAL): Likewise.
53093         (TAYLOR_SLOW): Likewise.
53094         (__sin): Likewise.
53095         (__cos): Likewise.
53096         (slow1): Likewise.
53097         (slow2): Likewise.
53098         (sloww): Likewise.
53099         (sloww1); Likewise.
53100         (sloww2): Likewise.
53101         (bsloww1): Likewise.
53102         (bsloww2): Likewise.
53103         (cslow2): Likewise.
53104         (csloww): Likewise.
53105         (csloww1): Likewise.
53106         (csloww2): Likewise.
53107
53108 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
53109
53110         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
53111         (__malloc_assert, __libc_realloc, __libc_calloc, _int_realloc):
53112         Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset.
53113         * malloc/hooks.c (realloc_check): Likewise.
53114
53115         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
53116         * malloc/arena.c: Remove PER_THREAD conditional.
53117         [!PER_THREAD]: Remove code.
53118         (ptmalloc_unlock_all2): Likewise.
53119         (ptmalloc_init): Likewise.
53120         (_int_new_arena): Likewise.
53121         (arena_get2): Likewise.
53122         * malloc/hooks.c (__malloc_get_state): Likewise.
53123         (__malloc_set_state): Likewise.
53124         * malloc/malloc.c: Likewise.
53125         (struct malloc_state): Likewise.
53126         (struct malloc_par): Likewise.
53127         (__libc_realloc): Likewise.
53128         (__libc_mallopt): Likewise.
53129
53130 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53131
53132         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
53133
53134 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
53135
53136         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
53137         macro to a function.  Check for zero perturb_byte.
53138         (_int_malloc, _int_free): Remove zero perturb_byte checks.
53139
53140         * malloc/malloc.c: (force_reg): Remove.
53141         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc)
53142         (_mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
53143         force_reg by atomic_forced_read.
53144         * malloc/arena.c (ptmalloc_init): Likewise.
53145         * malloc/hooks.c (top_check): Likewise.
53146
53147 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53148
53149         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53150
53151 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
53152
53153         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
53154
53155 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
53156
53157         * math/auto-libm-test-in: Add tests of lgamma.
53158         * math/auto-libm-test-out: Regenerated.
53159         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
53160         (M_LOG_2_SQRT_PIl): Likewise.
53161         (lgamma_test_data): Use AUTO_TESTS_f_f1.
53162         * math/gen-auto-libm-tests.c (func_calc_method): Add value
53163         mpfr_f_f1.
53164         (func_calc_desc): Add mpfr_f_f1 union field.
53165         (ARGS1): New macro.
53166         (ARGS2): Likewise.
53167         (ARGS3): Likewise.
53168         (ARGS4): Likewise.
53169         (RET1): Likewise.
53170         (RET2): Likewise.
53171         (CALC): Likewise.
53172         (FUNC): Likewise.
53173         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
53174         (test_functions): Add lgamma.
53175         (calc_generic_results): Handle mpfr_f_f1.
53176         * sysdeps/i386/fpu/libm-test-ulps: Update.
53177         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53178
53179 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53180
53181         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
53182         __mpn_add_n for PowerPC64/POWER7.
53183         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
53184         __mpn_sub_n for PowerPC64/POWER7.
53185
53186         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
53187         __mpn_addmul_1 for PowerPC64.
53188         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
53189         __mpn_submul_1 for PowerPC64.
53190         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
53191         for PowerPC64.
53192         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
53193         for PowerPC64.
53194
53195 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
53196
53197         [BZ #15089]
53198         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
53199
53200 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53201
53202         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
53203
53204         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
53205         add multiarch folders.
53206         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
53207         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
53208         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
53209         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
53210         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
53211         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
53212         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
53213         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
53214         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
53215         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
53216         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
53217         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
53218         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
53219         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
53220         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
53221         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
53222         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
53223
53224         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
53225         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
53226         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
53227         New file.
53228         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
53229         New file.
53230         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
53231         multiarch __ieee754_hypot for PowerPC32.
53232         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
53233         New file.
53234         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
53235         New file.
53236         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
53237         multiarch __ieee754_hypotf for PowerPC32.
53238
53239         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
53240         long_double_symbol only if __logbl is defined.
53241         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
53242         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
53243         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
53244         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
53245         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
53246         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
53247         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
53248         path for implementation.
53249         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
53250         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
53251         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
53252         logb, and logbl multiarch implementations for PowerPC32.
53253         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
53254         file.
53255         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
53256         file.
53257         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
53258         multiarch logb for PowerPC32.
53259         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
53260         file.
53261         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
53262         file.
53263         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
53264         multiarch logbf for PowerPC32.
53265         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
53266         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
53267         file.
53268         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
53269         multiarch logbl implementation for PowerPC32.
53270
53271         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
53272         and modff multiarch implementations.
53273         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
53274         New file.
53275         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
53276         New file.
53277         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
53278         multiarch modf for PowerPC32.
53279         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
53280         New file.
53281         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
53282         New file.
53283         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
53284         multiarch modff for PowerPC32.
53285
53286         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
53287         and lrintf multiarch implementations.
53288         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
53289         New file.
53290         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
53291         New file.
53292         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
53293         multiarch lrint for PowerPC32.
53294         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
53295         file: multiarch lrintf for PowerPC32.
53296
53297         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
53298         and lroundf multiarch implementations.
53299         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
53300         New file.
53301         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
53302         New file.
53303         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
53304         New file.
53305         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
53306         multiarch lround for PowerPC32.
53307         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
53308         file: multiarch lroundf for PowerPC32.
53309
53310         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
53311         copysign and copysignf multiarch implementations.
53312         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
53313         New file.
53314         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
53315         New file.
53316         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
53317         file: multiarch copysign for PowerPC32.
53318         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
53319         file: multiarch copysignf for PowerPC32.
53320
53321         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
53322         and truncf multiarch implementations.
53323         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
53324         New file.
53325         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
53326         file.
53327         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
53328         multiarch trunc for PowerPC32.
53329         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
53330         New file.
53331         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
53332         New file.
53333         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
53334         multiarch truncf for PowerPC32.
53335
53336         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
53337         and roundf multiarch implementations.
53338         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
53339         New file.
53340         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
53341         file.
53342         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
53343         multiarch round for PowerPC32.
53344         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
53345         New file.
53346         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
53347         New file.
53348         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
53349         multiarch roundf for PowerPC32.
53350
53351         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
53352         and floorf multiarch implementations.
53353         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
53354         New file.
53355         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
53356         file.
53357         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
53358         multiarch floor for PowerPC32.
53359         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
53360         New file.
53361         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
53362         New file.
53363         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
53364         multiarch floorf for PowerPC32.
53365
53366         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
53367         and ceilf multiarch implementations.
53368         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
53369         New file.
53370         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
53371         file.
53372         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
53373         multiarch ceil for PowerPC32.
53374         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
53375         New file.
53376         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
53377         file.
53378         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
53379         multiarch ceilf for PowerPC32.
53380
53381         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
53382         is defined.
53383         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
53384         FINITEF is defined.
53385         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
53386         and finitef multiarch implementations.
53387         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
53388         New file.
53389         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
53390         file.
53391         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
53392         multiarch finite for PowerPC32.
53393         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
53394         New file.
53395         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
53396         file: multiarch finitef for PowerPC32.
53397
53398         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
53399         and isinff multiarch implementations.
53400         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
53401         file.
53402         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
53403         file.
53404         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
53405         multiarch isinf for PowerPC32.
53406         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
53407         New file.
53408         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
53409         multiarch isinff for PowerPC32.
53410
53411         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
53412         alias when __isnan is defined.
53413         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
53414         and isnanf multiarch implementations.
53415         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
53416         file.
53417         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
53418         file.
53419         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
53420         file.
53421         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
53422         file.
53423         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
53424         multiarch isnan for PowerPC32.
53425         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
53426         New file.
53427         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
53428         New file.
53429         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
53430         multiarch isnanf for PowerPC32.
53431
53432         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
53433         and sqrtf multiarch implementations.
53434         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
53435         file.
53436         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
53437         file.
53438         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
53439         multiarch sqrt for PowerPC32.
53440         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
53441         file.
53442         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
53443         file.
53444         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
53445         multiarch sqrtf for PowerPC32.
53446
53447         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
53448         and llroundf multiarch implementations.
53449         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
53450         New file.
53451         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
53452         New file.
53453         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
53454         New file.
53455         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
53456         file: multiarch llround for PowerPC32.
53457         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
53458         file: multiarch llroundf for PowerPC32.
53459
53460         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
53461         multiarch PowerPC32 fpu implementations.
53462         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
53463         New file.
53464         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
53465         New file.
53466         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
53467         multiarch llrint for PowerPC32.
53468         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
53469         New file.
53470         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
53471         New file.
53472         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
53473         file.
53474
53475         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
53476
53477         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
53478         file.
53479         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
53480         file.
53481         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
53482         file.
53483         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
53484         multiarch wordcopy for PPC32.
53485         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
53486         wordcopy objects.
53487         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
53488         (__libc_ifunc_impl_list): Likewise.
53489         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
53490         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
53491         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
53492         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
53493         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
53494         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
53495
53496         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
53497         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
53498         file.
53499         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
53500         file.
53501         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
53502         file.
53503         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
53504         multiarch wcscpy for PPC32.
53505         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
53506         multiarch objects.
53507         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
53508         (__libc_ifunc_impl_list): Likewise.
53509         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
53510         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
53511         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
53512         sysdeps/powerpc/power6/wcscpy.c.
53513
53514         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
53515         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
53516         file.
53517         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
53518         file.
53519         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
53520         file.
53521         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
53522         multiarch wcsrchr for PPC32.
53523         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
53524         multiarch objects.
53525         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
53526         (__libc_ifunc_impl_list): Likewise.
53527         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
53528         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
53529         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
53530         sysdeps/powerpc/power6/wcsrchr.c.
53531
53532         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
53533         file.
53534         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
53535         file.
53536         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
53537         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
53538         multiarch wcschr for PPc32.
53539         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
53540         multiarch objects.
53541         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
53542         (__libc_ifunc_impl_list): Likewise.
53543         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
53544         * sysdeps/powerpc/power6/wcschr.c: ... to here.
53545         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
53546         sysdeps/powerpc/power6/wcschr.c.
53547
53548         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
53549         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
53550         file.
53551         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
53552         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
53553         file: multiarch strchr for PPC32.
53554         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
53555         multiarch objects.
53556         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
53557         (__libc_ifunc_impl_list): Likewise.
53558
53559         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
53560         name.
53561         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
53562         file.
53563         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
53564         file.
53565         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
53566         multiarch strchrnul for PPC32.
53567         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
53568         multiarch objects.
53569         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
53570         (__libc_ifunc_impl_list): Likewise.
53571
53572         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
53573         file.
53574         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
53575         multiarch strncasecmp for PPC32.
53576         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
53577         file.
53578         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
53579         multiarch strncasecmp_l for PPC32.
53580         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
53581         strncasecmp multiarch objects.
53582         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
53583         (__libc_ifunc_impl_list): Likewise.
53584
53585         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
53586         file.
53587         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
53588         multiarch strncasecmp for PPC32.
53589         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
53590         New file.
53591         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
53592         multiarch strcasecmp_l for PPC32.
53593         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
53594         multiarch objects.
53595         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
53596         (__libc_ifunc_impl_list): Likewise.
53597
53598         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
53599         file.
53600         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
53601         file.
53602         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
53603         multiarch strncmp for PPC32.
53604         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
53605         multiarch objects.
53606         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
53607         (__libc_ifunc_impl_list): Likewise.
53608
53609         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
53610         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
53611         file.
53612         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
53613         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
53614         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
53615         multiarch objects.
53616         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
53617         (__libc_ifunc_impl_list): Likewise.
53618
53619         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
53620         file.
53621         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
53622         file.
53623         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
53624         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
53625         multiarch objects.
53626         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
53627         (__libc_ifunc_impl_list): Likewise.
53628
53629         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
53630         file.
53631         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
53632         file.
53633         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
53634         multiarch rawmemchr for PPC32.
53635         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
53636         multiarch objects.
53637         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
53638         (__libc_ifunc_impl_list): Likewise.
53639
53640         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
53641         file.
53642         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
53643         file.
53644         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
53645         file: memrchr multiarch for PPC32.
53646         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
53647         multiarch objects.
53648         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
53649         (__libc_ifunc_impl_list): Likewise.
53650
53651         * string/memchr.c (__memchr): Using macro to redefine symbol name.
53652         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
53653         file.
53654         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
53655         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
53656         multiarch memchr for PPC32.
53657         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
53658         multiarch objects.
53659         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
53660         (__libc_ifunc_impl_list): Likewise.
53661
53662         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
53663         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
53664         file.
53665         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
53666         file.
53667         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
53668         file: multiarch mempcpy for PPC32.
53669         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
53670         multiarch objects.
53671         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
53672         (__libc_ifunc_impl_list): Likewise.
53673
53674         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
53675         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
53676         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
53677         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
53678         multiarch bzero for PPC32.
53679         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
53680         file.
53681         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
53682         file.
53683         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
53684         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
53685         file: multiarch memset for PPC32.
53686         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
53687         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
53688         memset multiarch objects.
53689         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
53690         (__libc_ifunc_impl_list): Likewise.
53691
53692         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
53693         file.
53694         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
53695         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
53696         memcmp for PPC32.
53697         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
53698         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
53699         multiarch objects.
53700         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
53701         (__libc_ifunc_impl_list): Likewise.
53702
53703         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
53704         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
53705         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
53706         file.
53707         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
53708         file.
53709         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
53710         file.
53711         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
53712         multiarch memcpy for PPC32.
53713         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
53714         multiarch objects.
53715         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
53716         (__libc_ifunc_impl_list): Likewise.
53717
53718         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
53719         support multiarch for POWER/PPC32.
53720         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
53721         Likewise.
53722         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
53723         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
53724         Implies file to make multiarch folder appers before the fpu and
53725         default folder for power4 configuration.
53726
53727 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
53728
53729         * scripts/bench.pl: Append volatile keyword to type.
53730
53731 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
53732
53733         * sysdeps/sh/sotruss-lib.c: New file.
53734         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
53735
53736 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53737
53738         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53739
53740 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
53741
53742         [BZ #6810]
53743         * math/w_tgamma.c: Include <errno.h>.
53744         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
53745         * math/w_tgammaf.c: Include <errno.h>.
53746         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
53747         * math/w_tgammal.c: Include <errno.h>.
53748         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
53749         * math/auto-libm-test-in: Do not allow missing errno on tgamma
53750         underflow.  Add more tgamma tests.
53751         * math/auto-libm-test-out: Regenerated.
53752         * sysdeps/i386/fpu/libm-test-ulps: Update.
53753         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53754
53755         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
53756         sin, sinh, tan, tanh, tgamma, y0 and y1.
53757         * math/auto-libm-test-out: Regenerated.
53758         * math/libm-test.inc (TEST_COND_x86_64): New macro.
53759         (TEST_COND_x86): Likewise.
53760         (M_E2l): Remove macro.
53761         (M_E3l): Likewise.
53762         (M_2_SQRT_PIl): Likewise.
53763         (M_SQRT_PIl): Likewise.
53764         (M_1_DIV_El): Likewise.
53765         (log_test_data): Use AUTO_TESTS_f_f.
53766         (log10_test_data): Likewise.
53767         (log1p_test_data): Likewise.
53768         (log2_test_data): Likewise.
53769         (sin_test_data): Likewise.
53770         (sin_tonearest_test_data): Likewise.
53771         (sin_towardzero_test_data): Likewise.
53772         (sin_downward_test_data): Likewise.
53773         (sin_upward_test_data): Likewise.
53774         (sinh_test_data): Likewise.
53775         (sinh_tonearest_test_data): Likewise.
53776         (sinh_towardzero_test_data): Likewise.
53777         (sinh_downward_test_data): Likewise.
53778         (sinh_upward_test_data): Likewise.
53779         (tan_test_data): Likewise.
53780         (tan_tonearest_test_data): Likewise.
53781         (tan_towardzero_test_data): Likewise.
53782         (tan_downward_test_data): Likewise.
53783         (tan_upward_test_data): Likewise.
53784         (tanh_test_data): Likewise.
53785         (tgamma_test_data): Likewise.
53786         (y0_test_data): Likewise.
53787         (y1_test_data): Likewise.
53788         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
53789         (special_real_inputs): Add pi/4.
53790         * sysdeps/i386/fpu/libm-test-ulps: Update.
53791         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53792
53793 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53794
53795         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
53796         "longjmp_target" static probes.
53797         (__longjmp): Rename to __longjmp_symbol.
53798         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
53799         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
53800         on which longjmp to generate.
53801         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
53802         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
53803         probe.
53804         (__sigsetjmp): Rename to __sigsetjmp_symbol.
53805         (__sigjmp_save): Rename to __sigjmp_save_symbol.
53806         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
53807         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
53808         and __sigjmp_save_symbol based on which sigsetjmp to generated.
53809         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
53810         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
53811         __longjmp_symbol based on which __longjmp to generate.
53812         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
53813         probe.
53814         (setjmp): Rename to setjmp_symbol.
53815         (__sigsetjmp): Rename to __sigsetjmp_symbol.
53816         (_setjmp): Rename to _setjmp_symbol.
53817         (__sigsetjmp): Rename to __sigsetjmp_symbol.
53818         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
53819         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
53820         which setjmp to generate.
53821         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
53822         "longjmp_target" static probes.
53823
53824 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
53825
53826         * benchtests/README: Add note about output arguments.
53827         * benchtests/bench-sincos.c: Remove file.
53828         * benchtests/sincos-inputs: New file.
53829         * scripts/bench.pl: Identify output arguments and define
53830         static variables for them.
53831
53832         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
53833
53834         [BZ #15941]
53835         * Makefile (INSTALL): Add install-plain.texi as the primary
53836         dependency.
53837         * manual/install-plain.texi: New file.
53838         * manual/install.texi: Include node directive only for
53839         non-plaintext output.
53840
53841 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
53842
53843         * stdlib/longlong.h: Update from GCC.
53844
53845         [BZ #6807]
53846         [BZ #15901]
53847         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
53848         * math/w_j0f.c (y0f): Likewise.
53849         * math/w_j0l.c (__y0l): Likewise.
53850         * math/w_j1.c (y1): Likewise.
53851         * math/w_j1f.c (y1f): Likewise.
53852         * math/w_j1l.c (__y1l): Likewise.
53853         * math/w_jn.c (yn): Likewise.
53854         * math/w_jnf.c (ynf): Likewise.
53855         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
53856         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
53857         value for Bessel function domain errors outside _SVID_ mode.
53858         Adjust sign of return value for yn (negative integer, 0).
53859         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
53860         by zero in return for negative x and set sign appropriately for
53861         negative n.
53862         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
53863         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
53864         * math/libm-test.inc (y0_test_data): Add more tests and adjust
53865         expectations in error cases.
53866         (y1_test_data): Likewise.
53867         (yn_test_data): Likewise.
53868         * sysdeps/i386/fpu/libm-test-ulps: Update.
53869         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53870
53871 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
53872
53873         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
53874         "64" to "64-v1".  Add "64-v2".
53875         (abi-64-options): Rename to ...
53876         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
53877         (abi-64-condition): Rename to ...
53878         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
53879         (abi-64-ld-soname): Rename to ...
53880         (abi-64-v1-ld-soname): ... this.
53881         (abi-64-v2-options): Define.
53882         (abi-64-v2-condition): Likewise.
53883         (abi-64-v2-ld-soname): Likewise.
53884         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
53885         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
53886         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
53887         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
53888         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
53889
53890 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
53891             Alan Modra  <amodra@gmail.com>
53892
53893         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
53894         New versions for use with the ELFv2 ABI.
53895         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
53896         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
53897         declaration.
53898         (struct La_ppc64v2_retval): Likewise.
53899         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
53900         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
53901         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
53902         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
53903         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
53904         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
53905         Do not save or restore CR.
53906         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
53907         (_dl_profile_resolve): Do no save or restore CR.  Support extended
53908         return values for ELFv2 ABI.  Fix location of FPR return registers.
53909         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
53910         updated values for _CALL_ELF == 2.
53911         (La_regs, La_retval, int_retval): Likewise.
53912
53913 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
53914
53915         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
53916         (FRAME_MIN_SIZE_PARM): Likewise.
53917         (FRAME_BACKCHAIN): Likewise.
53918         (FRAME_CR_SAVE): Likewise.
53919         (FRAME_LR_SAVE): Likewise.
53920         (FRAME_TOC_SAVE): Likewise.
53921         (FRAME_PARM_SAVE): Likewise.
53922         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
53923         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
53924         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
53925         (call_mcount_parm_offset): New macro.
53926         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
53927         (PROF): Use symbolic stack frame offsets.
53928         (TAIL_CALL_SYSCALL_ERROR): Likewise.
53929         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
53930         Redefine in terms of FRAME_MIN_SIZE.
53931         (_dl_runtime_resolve): Use symbolic stack frame offsets.
53932         (_dl_profile_resolve): Likewise.  Update comment.
53933         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
53934         symbols stack frame offsets.
53935         (__sigsetjmp): Likewise.
53936         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
53937         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
53938         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
53939         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
53940
53941         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
53942         (FRAME_BACKCHAIN): Remove.
53943         (FRAME_CR_SAVE): Likewise.
53944         (FRAME_LR_SAVE): Likewise.
53945         (FRAME_COMPILER_DW): Likewise.
53946         (FRAME_LINKER_DW): Likewise.
53947         (FRAME_TOC_SAVE): Likewise.
53948         (FRAME_PARM_SAVE): Likewise.
53949         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE)
53950         (FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE)
53951         (FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
53952         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
53953         (CHECK_SP): Use symbolic stack frame offsets.
53954         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
53955         zone" instead of caller's parameter save area for temp storage.
53956         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
53957         Likewise.  Also, use symbolic stack frame offsets.
53958         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
53959         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
53960         our own stack frame instead of the caller's.
53961         (__socket): Use symbolic stack frame offsets.
53962
53963 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
53964             Alan Modra  <amodra@gmail.com>
53965
53966         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
53967         Define.
53968         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK)
53969         (PPC64_LOCAL_ENTRY_OFFSET): Define.
53970         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
53971         New function.
53972         (elf_machine_fixup_plt): Call it.
53973         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
53974         reloc arguments.
53975         (elf_machine_rela): Update call to elf_machine_plt_conflict.
53976         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
53977         (_dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
53978         r2 before calling target.
53979
53980 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
53981             Alan Modra  <amodra@gmail.com>
53982
53983         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
53984         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
53985         versions of macros to support ELFv2 ABI.
53986         (LOCALENTRY): New macro.
53987         (ENTRY, EALIGN): Use it.
53988         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
53989         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
53990         fall through into ENTRY entry point.
53991         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
53992         Only define if _CALL_ELF != 2.
53993
53994         (elf_machine_matches_host): Verify ABI version matches.
53995         (RTLD_START): Use LOCALENTRY.
53996         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
53997         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
53998         (PLT_ENTRY_WORDS): New macro.
53999         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
54000         (elf_machine_runtime_setup): Support ELFv2 ABI.
54001         (elf_machine_fixup_plt): Likewise.
54002         (elf_machine_plt_conflict): Likewise.
54003         (resolve_ifunc): Likewise.
54004         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
54005         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
54006         Likewise.
54007         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
54008         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
54009         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
54010         (makecontext): Support ELFv2 ABI.
54011         * elf/elf.h (EF_PPC64_ABI): Define.
54012
54013 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
54014
54015         * sysdeps/powerpc/powerpc64/sysdep.h
54016         (PPC64_LOAD_FUNCPTR) [ASSEMBLER]: New assembler macro.
54017         (ENTRY_1) [ASSEMBLER]: Do not switch to .text section here ...
54018         (ENTRY) [ASSEMBLER]: ... but instead here ...
54019         (EALIGN) [ASSEMBLER]: ... and here.
54020         (PPC64_LOAD_FUNCPTR) [!ASSEMBLER]: New macro.
54021         (ENTRY_1) [!ASSEMBLER]: New macro; set up .opd entry.
54022         (ENTRY_2) [!ASSEMBLER]: Use it.
54023         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
54024         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
54025         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
54026         (_dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
54027         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
54028         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
54029         Use PPC64_LOAD_FUNCPTR.
54030
54031         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
54032
54033 2013-12-04  Alan Modra  <amodra@gmail.com>
54034
54035         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
54036         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
54037         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
54038         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
54039
54040         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
54041         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
54042         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
54043         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
54044         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
54045         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
54046
54047 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
54048
54049         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
54050         (__makecontext): Fix incorrect CFI when backtracing out of
54051         context created via makecontext.
54052         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
54053         (__setcontext): Fix incorrect CFI during switch to new context.
54054         (__novec_setcontext): Likewise.
54055
54056 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
54057
54058         [BZ #4772]
54059         * time/strptime_l.c (__strptime_internal): Allow modifiers
54060         in strptime.
54061         * time/tst-strptime.c (day_tests): Add testcase.
54062
54063 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
54064
54065         * scripts/bench.pl: Skip over blank lines.
54066
54067 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
54068
54069         [BZ #926]
54070         * manual/time.texi (Calendar Time): Clarify what timezone functions
54071         use.
54072
54073 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54074
54075         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
54076
54077 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
54078
54079         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
54080         implementation.
54081         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
54082         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
54083         * debug/memset_chk.c (__memset_chk): Likewise.
54084         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
54085         * debug/strncpy_chk.c: Likewise.
54086
54087 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
54088
54089         [BZ #15268]
54090         [BZ #15425]
54091         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
54092         (__ieee754_exp): For possibly underflowing results, check size of
54093         result and force underflow exception if required.
54094         * math/auto-libm-test-in: Add more tests of exp.
54095         * math/auto-libm-test-out: Regenerated.
54096         * sysdeps/i386/fpu/libm-test-ulps: Update.
54097         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54098
54099         [BZ #16283]
54100         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
54101         * math/w_exp2f.c (__exp2f): Likewise.
54102         * math/w_exp2l.c (__exp2l): Likewise.
54103         * math/auto-libm-test-in: Do not allow missing errno on exp2
54104         underflow.
54105         * math/auto-libm-test-out: Regenerated.
54106
54107 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
54108
54109         [BZ #16274]
54110         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
54111         handle filename validation.
54112         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
54113         (do_open): Delete.
54114
54115 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
54116
54117         [BZ #6786]
54118         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
54119         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
54120         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
54121         <float.h>.
54122         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
54123         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
54124         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
54125         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
54126         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
54127         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
54128         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
54129         * math/auto-libm-test-in: Don't allow missing errno from erfc.
54130         Add more erfc tests.
54131         * math/auto-libm-test-out: Regenerated.
54132         * sysdeps/i386/fpu/libm-test-ulps: Update.
54133         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54134
54135         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
54136         exp2, expm1, j0 and j1.
54137         * math/auto-libm-test-out: Regenerated.
54138         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
54139         (erfc_test_data): Likewise.
54140         (exp_test_data): Likewise.
54141         (exp_tonearest_test_data): Likewise.
54142         (exp_towardzero_test_data): Likewise.
54143         (exp_downward_test_data): Likewise.
54144         (exp_upward_test_data): Likewise.
54145         (exp10_test_data): Likewise.
54146         (exp2_test_data): Likewise.
54147         (expm1_test_data): Likewise.
54148         (j0_test_data): Likewise.
54149         (j1_test_data): Likewise.
54150         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
54151         (input_flag_type): Add flag_xfail_rounding.
54152         (input_flags): Add xfail-rounding.
54153         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
54154         (output_for_one_input_case): Handle flag_xfail_rounding.
54155         * sysdeps/i386/fpu/libm-test-ulps: Update.
54156         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54157
54158 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
54159
54160         [BZ #16289]
54161         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
54162         division by 0.
54163
54164 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
54165
54166         [BZ #16195]
54167         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
54168         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
54169         (STAP_PROBE0): New macro.
54170         (STAP_PROBE1): Likewise.
54171         (STAP_PROBE2): Likewise.
54172         (STAP_PROBE3): Likewise.
54173         (STAP_PROBE4): Likewise.
54174
54175 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
54176
54177         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
54178
54179 2013-12-02  Steve Ellcey  <sellcey@mips.com>
54180
54181         * benchtests/Makefile (bench): Add sqrt.
54182         (LDLIBS-bench-sqrt): New.
54183         * benchtests/sqrt-input: New.
54184
54185 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
54186
54187         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
54188         (GAIH_EAI): Likewise.
54189         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
54190         (gaih_inet): Likewise.
54191         (getaddrinfo): Don't use GAIH_EAI.
54192
54193         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
54194         (struct gaih): Remove definition.
54195
54196 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
54197
54198         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
54199         Use HERRNOP directly.
54200
54201 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54202
54203         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
54204
54205 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
54206
54207         * math/gen-auto-libm-tests.c (test_functions): Add more
54208         single-argument functions.
54209         (special_fill_pi_2): New function.
54210         (special_fill_minus_pi_2): Likewise.
54211         (special_fill_pi_6): Likewise.
54212         (special_fill_minus_pi_6): Likewise.
54213         (special_fill_pi_3): Likewise.
54214         (special_fill_2pi_3): Likewise.
54215         (special_fill_e): Likewise.
54216         (special_fill_1_e): Likewise.
54217         (special_fill_e_minus_1): Likewise.
54218         (special_real_inputs): Add more special inputs.
54219         (output_for_one_input_case): Do not require ERANGE on underflow to
54220         zero if round-to-nearest result does not underflow to zero, unless
54221         exact results required.
54222         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
54223         atan, atanh, cbrt, cos and cosh.
54224         * math/auto-libm-test-out: Regenerated.
54225         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
54226         (acos_tonearest_test_data): Likewise.
54227         (acos_towardzero_test_data): Likewise.
54228         (acos_downward_test_data): Likewise.
54229         (acos_upward_test_data): Likewise.
54230         (acosh_test_data): Likewise.
54231         (asin_test_data): Likewise.
54232         (asin_tonearest_test_data): Likewise.
54233         (asin_towardzero_test_data): Likewise.
54234         (asin_upward_test_data): Likewise.
54235         (asinh_test_data): Likewise.
54236         (atan_test_data): Likewise.
54237         (atanh_test_data): Likewise.
54238         (cbrt_test_data): Likewise.
54239         (cos_test_data): Likewise.
54240         (cos_tonearest_test_data): Likewise.
54241         (cos_towardzero_test_data): Likewise.
54242         (cos_downward_test_data): Likewise.
54243         (cos_upward_test_data): Likewise.
54244         (cosh_test_data): Likewise.
54245         (cosh_tonearest_test_data): Likewise.
54246         (cosh_towardzero_test_data): Likewise.
54247         (cosh_downward_test_data): Likewise.
54248         (cosh_upward_test_data): Likewise.
54249         * sysdeps/i386/fpu/libm-test-ulps: Update.
54250         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54251
54252 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
54253
54254         [BZ #6787]
54255         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
54256         * math/w_exp10f.c (__exp10f): Likewise.
54257         * math/w_exp10l.c (__exp10l): Likewise.
54258         * math/libm-test.inc (exp10_test_data): Add more tests and expect
54259         errno settings in existing tests.
54260
54261         [BZ #14032]
54262         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
54263         precision control set to double precision.
54264         * sysdeps/i386/fpu/w_sqrt.c: New file.
54265         * math/auto-libm-test-in: Add more tests.
54266         * math/auto-libm-test-out: Update.
54267
54268         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
54269         (sqrt_test_tonearest): New function.
54270         (sqrt_towardzero_test_data): New variable.
54271         (sqrt_test_towardzero): New function.
54272         (sqrt_downward_test_data): New variable.
54273         (sqrt_test_downward): New function.
54274         (sqrt_upward_test_data): New variable.
54275         (sqrt_test_upward): New function.
54276         (main): Call the new functions.
54277
54278         * math/gen-auto-libm-tests.c: New file.
54279         * math/auto-libm-test-in: Likewise.
54280         * math/auto-libm-test-out: New generated file.
54281         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
54282         variables.
54283         (%beautify): Add generated representations of zero.
54284         (top level): Set $auto_input and call parse_auto_input.
54285         (beautify): Remove trailing "f" from hex float constants.
54286         (parse_args): Handle XFAIL_TEST.
54287         (convert_condition): New function.
54288         (or_value): Likewise.
54289         (or_cond_value): Likewise.
54290         (generate_testfile): Handle AUTO_TESTS_* lines.
54291         (parse_auto_input): New function.
54292         * math/libm-test.inc (XFAIL_TEST): New macro.
54293         (ERRNO_UNCHANGED): Update value.
54294         (ERRNO_EDOM): Likewise.
54295         (ERRNO_ERANGE): Likewise.
54296         (IGNORE_RESULT): Likewise.
54297         (TEST_COND_flt_32): New macro.
54298         (TEST_COND_dbl_64): Likewise.
54299         (TEST_COND_ldbl_96_intel): Likewise.
54300         (TEST_COND_ldbl_96_m68k): Likewise.
54301         (TEST_COND_ldbl_128): Likewise.
54302         (TEST_COND_ldbl_128ibm): Likewise.
54303         (TEST_COND_long32): Likewise.
54304         (TEST_COND_long64): Likewise.
54305         (TEST_COND_before_rounding): Likewise.
54306         (TEST_COND_after_rounding): Likewise.
54307         (enable_test): Handle XFAIL_TEST flag.
54308         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
54309         with finite results.
54310         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
54311         auto-libm-test-out.
54312
54313 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
54314             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
54315
54316         [BZ #16214]
54317         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
54318         __tls_get_addr_internal instead of __tls_get_offset in order to
54319         avoid GOT pointer dependency.  Make rtld export
54320         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
54321         __tls_get_addr since we are a __tls_get_offset platform.
54322         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
54323         GOT pointer being set up before.
54324         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
54325
54326 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
54327
54328         * manual/math.texi (Errors in Math Functions): Document accuracy
54329         goals.
54330
54331         [BZ #15004]
54332         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
54333         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
54334         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
54335         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
54336         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
54337         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
54338         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
54339         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
54340         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
54341         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
54342         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
54343         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
54344         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
54345         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
54346         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
54347         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
54348
54349         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
54350         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
54351         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
54352         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
54353         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
54354         Likewise.
54355         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
54356         Likewise.
54357         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
54358         Likewise.
54359         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
54360         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
54361         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
54362         atomic-feupdateenv and flt-rounds.
54363         * sysdeps/powerpc/nofpu/Versions (libc): Add
54364         __atomic_feholdexcept, __atomic_feclearexcept,
54365         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
54366         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
54367         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
54368         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
54369         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
54370         here.
54371         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
54372         Update.
54373
54374         * manual/arith.texi (FP Exceptions): Document that exceptions may
54375         not be raised when matherr is used.
54376         (Math Error Reporting): Document overflow in directed rounding
54377         modes.  Document that errno may not be set when finite values are
54378         returned on overflow.  Document intent to set errno on underflow
54379         only for underflow to zero.
54380
54381         [BZ #16271]
54382         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
54383         round-to-nearest then adjust result for other rounding modes.
54384         * include/fenv.h (fegetround): Use libm_hidden_proto.
54385         * math/fegetround.c (fegetround): Use libm_hidden_def.
54386         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
54387         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
54388         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
54389         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
54390         Likewise.
54391         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
54392         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
54393         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
54394         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
54395
54396 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
54397
54398         [BZ #16077]
54399         * nss/Versions (libnss_files): Add
54400         _nss_files_gethostbyname3_r.
54401         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
54402         New function.
54403         (HOST_DB_LOOKUP): Remove macro.
54404         (_nss_files_gethostbyname_r): Implement function without the
54405         HOST_DB_LOOKUP macro.
54406         (_nss_files_gethostbyname2_r): Likewise.
54407
54408 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
54409
54410         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
54411
54412 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
54413
54414         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
54415         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
54416         warning.
54417
54418 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54419
54420         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
54421         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
54422         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
54423         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
54424         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
54425         __fe_nomask_env_priv and attribute_hidden.
54426         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
54427         (libc_feupdateenv_test_ppc): Likewise.
54428         (libc_feresetround_ppc): Likewise.
54429         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
54430         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
54431         compat_symbol macro.
54432         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
54433         (__fe_nomask_env): Likewise.
54434         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
54435
54436 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
54437
54438         * string/Makefile: Remove ifunc tests.
54439         * string/test-string.h: Define TEST_IFUNC.
54440         * string/test-bcopy-ifunc.c: Remove.
54441         * string/test-bzero-ifunc.c: Likewise.
54442         * string/test-memccpy-ifunc.c: Likewise.
54443         * string/test-memchr-ifunc.c: Likewise.
54444         * string/test-memcmp-ifunc.c: Likewise.
54445         * string/test-memcpy-ifunc.c: Likewise.
54446         * string/test-memmem-ifunc.c: Likewise.
54447         * string/test-memmove-ifunc.c: Likewise.
54448         * string/test-mempcpy-ifunc.c: Likewise.
54449         * string/test-memrchr-ifunc.c: Likewise.
54450         * string/test-memset-ifunc.c: Likewise.
54451         * string/test-rawmemchr-ifunc.c: Likewise.
54452         * string/test-stpcpy-ifunc.c: Likewise.
54453         * string/test-stpncpy-ifunc.c: Likewise.
54454         * string/test-strcasecmp-ifunc.c: Likewise.
54455         * string/test-strcasestr-ifunc.c: Likewise.
54456         * string/test-strcat-ifunc.c: Likewise.
54457         * string/test-strchr-ifunc.c: Likewise.
54458         * string/test-strchrnul-ifunc.c: Likewise.
54459         * string/test-strcmp-ifunc.c: Likewise.
54460         * string/test-strcpy-ifunc.c: Likewise.
54461         * string/test-strcspn-ifunc.c: Likewise.
54462         * string/test-strlen-ifunc.c: Likewise.
54463         * string/test-strncasecmp-ifunc.c: Likewise.
54464         * string/test-strncat-ifunc.c: Likewise.
54465         * string/test-strncmp-ifunc.c: Likewise.
54466         * string/test-strncpy-ifunc.c: Likewise.
54467         * string/test-strnlen-ifunc.c: Likewise.
54468         * string/test-strpbrk-ifunc.c: Likewise.
54469         * string/test-strrchr-ifunc.c: Likewise.
54470         * string/test-strspn-ifunc.c: Likewise.
54471         * string/test-strstr-ifunc.c: Likewise.
54472
54473 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
54474
54475         * benchtests/Makefile: Remove ifunc tests.
54476         * benchtests/bench-string.h: Define TEST_IFUNC.
54477         * benchtests/bench-bcopy-ifunc.c: Remove.
54478         * benchtests/bench-bzero-ifunc.c: Likewise.
54479         * benchtests/bench-memccpy-ifunc.c: Likewise.
54480         * benchtests/bench-memchr-ifunc.c: Likewise.
54481         * benchtests/bench-memcmp-ifunc.c: Likewise.
54482         * benchtests/bench-memcpy-ifunc.c: Likewise.
54483         * benchtests/bench-memmem-ifunc.c: Likewise.
54484         * benchtests/bench-memmove-ifunc.c: Likewise.
54485         * benchtests/bench-mempcpy-ifunc.c: Likewise.
54486         * benchtests/bench-memrchr-ifunc.c: Likewise.
54487         * benchtests/bench-memset-ifunc.c: Likewise.
54488         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
54489         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
54490         * benchtests/bench-stpcpy-ifunc.c: Likewise.
54491         * benchtests/bench-stpncpy-ifunc.c: Likewise.
54492         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
54493         * benchtests/bench-strcasestr-ifunc.c: Likewise.
54494         * benchtests/bench-strcat-ifunc.c: Likewise.
54495         * benchtests/bench-strchr-ifunc.c: Likewise.
54496         * benchtests/bench-strchrnul-ifunc.c: Likewise.
54497         * benchtests/bench-strcmp-ifunc.c: Likewise.
54498         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
54499         * benchtests/bench-strcpy-ifunc.c: Likewise.
54500         * benchtests/bench-strcspn-ifunc.c: Likewise.
54501         * benchtests/bench-strlen-ifunc.c: Likewise.
54502         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
54503         * benchtests/bench-strncat-ifunc.c: Likewise.
54504         * benchtests/bench-strncmp-ifunc.c: Likewise.
54505         * benchtests/bench-strncpy-ifunc.c: Likewise.
54506         * benchtests/bench-strnlen-ifunc.c: Likewise.
54507         * benchtests/bench-strpbrk-ifunc.c: Likewise.
54508         * benchtests/bench-strrchr-ifunc.c: Likewise.
54509         * benchtests/bench-strsep-ifunc.c: Likewise.
54510         * benchtests/bench-strspn-ifunc.c: Likewise.
54511         * benchtests/bench-strstr-ifunc.c: Likewise.
54512
54513 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
54514
54515         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
54516
54517 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
54518
54519         * resolv/netdb.h: Use __glibc_reserved instead __unused.
54520         * rt/aio.h: Likewise.
54521         * sysdeps/gnu/bits/utmp.h: Likewise.
54522         * sysdeps/gnu/bits/utmpx.h: Likewise.
54523         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
54524         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
54525         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
54526         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
54527         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
54528         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
54529         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
54530         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
54531         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
54532         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
54533         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
54534         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
54535         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
54536         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
54537         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
54538         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
54539         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
54540         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
54541         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
54542         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
54543         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
54544         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
54545         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
54546         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
54547         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
54548         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
54549         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
54550         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
54551         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
54552         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
54553         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
54554         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
54555         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
54556         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
54557         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
54558         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
54559         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
54560         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
54561         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
54562         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
54563         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
54564         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
54565
54566 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
54567
54568         [BZ #16245]
54569         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
54570         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
54571
54572 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
54573
54574         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
54575         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
54576         Likewise.
54577
54578 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54579
54580         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
54581         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
54582         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
54583         (__fesetround): Remove define.
54584         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
54585         rounding and exceptions handling.
54586         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
54587         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
54588         (__fe_nomask_env): Likewise.
54589         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
54590         __fegetround instead of fegetround.
54591         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
54592         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
54593
54594 2013-11-21  Roland McGrath  <roland@hack.frob.com>
54595
54596         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
54597         it's there.
54598
54599         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
54600
54601 2013-11-21  Meador Inge  <meadori@codesourcery.com>
54602
54603         [BZ #11157]
54604         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
54605         (encrypt_r): Likewise.
54606         * malloc/obstack.h (obstack_free): Likewise.
54607         * posix/unistd.h (encrypt): Likewise.
54608
54609 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
54610
54611         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
54612         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
54613         DL_CALL_DT_FINI() that call the functions directly.
54614         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
54615         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
54616         * elf/dl-fini.c: Likewise.
54617
54618 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
54619
54620         * malloc/hooks.c (memalign_check): Add alignment rounding.
54621         * malloc/malloc.c (_mid_memalign): New function.
54622         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
54623         Implement by calling _mid_memalign.
54624         * manual/probes.texi (Memory Allocation Probes): Remove
54625         memory_valloc_retry and memory_pvalloc_retry.
54626
54627 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
54628
54629         * locale/programs/locarchive.c (open_archive): Add const
54630         qualifier to ARCHIVEFNAME and copy default fname to
54631         DEFAULT_FNAME.
54632
54633         [BZ #15601]
54634         * libio/tst-widetext.input: Rename Oriya to Odia.
54635         * locale/iso-639.def: Likewise.
54636
54637         * manual/probes.texi (Mathematical Function Probes): Add
54638         documentation for sin, cos, asin and acos probes.
54639         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
54640         (__sin32): Add slowasin probe.
54641         (__cos32): Add slowacos probe.
54642         (__mpsin): Add slowsin probe.
54643         (__mpcos): Add slowcos probe.
54644
54645 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
54646
54647         [BZ #15483]
54648         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
54649         thread-local __sim_exceptions_thread and global
54650         __sim_exceptions_global.
54651         (__sim_disabled_exceptions): Change to thread-local
54652         __sim_disabled_exceptions_thread and global
54653         __sim_disabled_exceptions_global.
54654         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
54655         and global __sim_round_mode_global.
54656         (__simulate_exceptions): Use thread-local floating-point state and
54657         set global state from it as needed.
54658         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
54659         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
54660         __sim_round_mode_thread.
54661         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
54662         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
54663         and global __sim_exceptions_global.
54664         (__sim_disabled_exceptions): Change to thread-local
54665         __sim_disabled_exceptions_thread and global
54666         __sim_disabled_exceptions_global.
54667         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
54668         and global __sim_round_mode_global.
54669         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
54670         (SIM_SET_GLOBAL): Likewise.
54671         * sysdeps/powerpc/soft-fp/sfp-machine.h
54672         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
54673         __sim_round_mode_thread.
54674         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
54675         __sim_disabled_exceptions_thread.
54676         (__sim_exceptions): Change to __sim_exceptions_thread.
54677         (__sim_disabled_exceptions): Change to
54678         __sim_disabled_exceptions_thread.
54679         (__sim_round_mode): Change to __sim_round_mode_thread.
54680         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
54681         thread-local floating-point state and set global state from it as
54682         needed.
54683         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
54684         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
54685         (__sim_disabled_exceptions): Remove extern declaration.
54686         (feenableexcept): Use thread-local floating-point state and set
54687         global state from it as needed.
54688         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
54689         extern declaration.
54690         (__sim_disabled_exceptions): Likewise.
54691         (__sim_round_mode): Likewise.
54692         (__fegetenv): Use thread-local floating-point state.
54693         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
54694         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
54695         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
54696         floating-point state and set global state from it as needed.
54697         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
54698         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
54699         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
54700         Likewise.
54701         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
54702         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
54703         Likewise.
54704         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
54705         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
54706         Use __sim_round_mode_thread.
54707         * math/test-fenv-tls.c: New file.
54708         * math/Makefile (tests): Add test-fenv-tls.
54709         ($(objpfx)test-fenv-tls): Depend on
54710         $(common-objpfx)nptl/libpthread.so.
54711
54712 2013-11-19  Andreas Schwab  <schwab@suse.de>
54713
54714         * locale/programs/locale.c (show_info): Decode wordarray elements.
54715         * locale/categories.def (LC_MONETARY): Add element for
54716         _NL_MONETARY_CRNCYSTR.
54717         * locale/C-monetary.c (conversion_rate): New variable.
54718         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
54719         element.
54720
54721 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
54722
54723         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
54724         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
54725
54726 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
54727
54728         * elf/Makefile (tst-auxv): New test.
54729         * elf/tst-auxv.c: New
54730         * elf/rtld.c (dl_main): Adjust AT_EXECFN
54731
54732 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
54733
54734         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
54735         (hidden_proto): Caller changed.
54736         (hidden_tls_proto): New macro.
54737         (libc_hidden_tls_proto): Likewise.
54738         (rtld_hidden_tls_proto): Likewise.
54739         (libm_hidden_tls_proto): Likewise.
54740         (libresolv_hidden_tls_proto): Likewise.
54741         (librt_hidden_tls_proto): Likewise.
54742         (libdl_hidden_tls_proto): Likewise.
54743         (libnss_files_hidden_tls_proto): Likewise.
54744         (libnsl_hidden_tls_proto): Likewise.
54745         (libnss_nisplus_hidden_tls_proto): Likewise.
54746         (libutil_hidden_tls_proto): Likewise.
54747
54748 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
54749
54750         [BZ #10253]
54751         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
54752         (decompose_rpath): Defer expansion to fillin_rpath.
54753         (_dl_init_paths): Pass linkmap to fillin_rpath.
54754
54755 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
54756
54757         * benchtests/Makefile: Add strsep.
54758         * benchtests/bench-strsep.c: New file: strsep benchtest.
54759         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
54760
54761 2013-11-18  Andreas Schwab  <schwab@suse.de>
54762
54763         * locale/programs/locale.c (show_info) [case byte]: Check for
54764         '\377' instead of '\177'.
54765         * locale/C-monetary.c (not_available): Always use "\377".
54766         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
54767         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
54768         detect unavailable sign_posn locale elements.
54769         * locale/localeconv.c (__localeconv): For grouping and
54770         mon_grouping handle "\177" and "\377" like no grouping.
54771         (INT_ELEM): New macro.  Use it to set all numeric members.
54772         * locale/programs/ld-monetary.c (monetary_read)
54773         <tok_mon_grouping>: Normalize single -1 to the empty string.
54774         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
54775         Likewise.
54776
54777 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
54778
54779         [BZ #16055]
54780         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
54781         when we match (nil).
54782         * stdio-common/tst-sscanf.c (struct test): Add testcase.
54783
54784 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
54785
54786         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
54787         (NO_TEST_INLINE): Update value.
54788         (ERRNO_UNCHANGED): Likewise.
54789         (ERRNO_EDOM): Likewise.
54790         (ERRNO_ERANGE): Likewise.
54791         (IGNORE_RESULT): Likewise.
54792         (check_float_internal): Check signs of NaN results if
54793         TEST_NAN_SIGN used.
54794         (check_complex): Pass TEST_NAN_SIGN flag through to second
54795         check_float_internal call.
54796         (copysign_test_data): Add tests with quiet NaNs as second
54797         argument.  Use TEST_NAN_SIGN.
54798         (fabs_test_data): Add test of negative quiet NaN argument.  Use
54799         TEST_NAN_SIGN.
54800         (signbit_test_data): Add tests of quiet NaN argument.
54801         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
54802
54803         * math/gen-libm-test.pl (show_exceptions): Take extra argument
54804         $ignore_result.
54805         (parse_args): Handle function results specified as IGNORE.
54806         * math/libm-test.inc (IGNORE_RESULT): New macro.
54807         (check_float_internal): Do not check numerical result if flag
54808         IGNORE_RESULT set.
54809         (check_complex): Pass through IGNORE_RESULT to second
54810         check_float_internal call.
54811         (check_int): Do not check numerical result if flag IGNORE_RESULT
54812         set.
54813         (check_long): Likewise.
54814         (check_bool): Likewise.
54815         (check_longlong): Likewise.
54816         (lrint_test_data): Add tests of infinite and NaN arguments.
54817         (lrint_tonearest_test_data): Likewise.
54818         (lrint_towardzero_test_data): Likewise.
54819         (lrint_downward_test_data): Likewise.
54820         (lrint_upward_test_data): Likewise.
54821         (llrint_test_data): Likewise.
54822         (llrint_tonearest_test_data): Likewise.
54823         (llrint_towardzero_test_data): Likewise.
54824         (llrint_downward_test_data): Likewise.
54825         (llrint_upward_test_data): Likewise.
54826         (lround_test_data): Likewise.
54827         (llround_test_data): Likewise.
54828
54829         * math/libm-test.inc (NO_TEST_INLINE): New macro.
54830         (ERRNO_UNCHANGED): Update value.
54831         (ERRNO_EDOM): Likewise.
54832         (ERRNO_ERANGE): Likewise.
54833         (NO_TEST_INLINE_FLOAT): New macro.
54834         (NO_TEST_INLINE_DOUBLE): Likewise.
54835         (enable_test): New function.
54836         (RUN_TEST_f_f): Check enable_test before running test.
54837         (RUN_TEST_2_f): Likewise.
54838         (RUN_TEST_fff_f): Likewise.
54839         (RUN_TEST_c_f): Likewise.
54840         (RUN_TEST_f_f1): Likewise.
54841         (RUN_TEST_fF_f1): Likewise.
54842         (RUN_TEST_fI_f1): Likewise.
54843         (RUN_TEST_ffI_f1): Likewise.
54844         (RUN_TEST_c_c): Likewise.
54845         (RUN_TEST_cc_c): Likewise.
54846         (RUN_TEST_f_i): Likewise.
54847         (RUN_TEST_f_i_tg): Likewise.
54848         (RUN_TEST_ff_i_tg): Likewise.
54849         (RUN_TEST_f_b): Likewise.
54850         (RUN_TEST_f_b_tg): Likewise.
54851         (RUN_TEST_f_l): Likewise.
54852         (RUN_TEST_f_L): Likewise.
54853         (RUN_TEST_fFF_11): Likewise.
54854         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
54855         conditionals.
54856         (cosh_test_data): Likewise.
54857         (exp_test_data): Likewise.
54858         (expm1_test_data): Likewise.
54859         (hypot_test_data): Likewise.
54860         (pow_test_data): Likewise.
54861         (sinh_test_data): Likewise.
54862         (tanh_test_data): Likewise.
54863         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
54864         flags argument.
54865
54866         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
54867         tests with quiet NaN input and output.
54868         (acosh_test_data): Likewise.
54869         (asin_test_data): Likewise.
54870         (asinh_test_data): Likewise.
54871         (atan_test_data): Likewise.
54872         (atanh_test_data): Likewise.
54873         (atan2_test_data): Likewise.
54874         (cbrt_test_data): Likewise.
54875         (cos_test_data): Likewise.
54876         (cosh_test_data): Likewise.
54877         (erf_test_data): Likewise.
54878         (erfc_test_data): Likewise.
54879         (exp_test_data): Likewise.
54880         (exp10_test_data): Likewise.
54881         (exp2_test_data): Likewise.
54882         (expm1_test_data): Likewise.
54883         (hypot_test_data): Likewise.
54884         (j0_test_data): Likewise.
54885         (j1_test_data): Likewise.
54886         (jn_test_data): Likewise.
54887         (lgamma_test_data): Likewise.
54888         (log_test_data): Likewise.
54889         (log10_test_data): Likewise.
54890         (log1p_test_data): Likewise.
54891         (log2_test_data): Likewise.
54892         (pow_test_data): Likewise.
54893         (scalb_test_data): Likewise.
54894         (sin_test_data): Likewise.
54895         (sincos_test_data): Likewise.
54896         (sinh_test_data): Likewise.
54897         (tan_test_data): Likewise.
54898         (tanh_test_data): Likewise.
54899         (tgamma_test_data): Likewise.
54900         (y0_test_data): Likewise.
54901         (y1_test_data): Likewise.
54902         (yn_test_data): Likewise.
54903
54904         [BZ #16167]
54905         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
54906         argument being NaN and avoid computations with second argument in
54907         that case.
54908         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
54909         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
54910         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
54911
54912 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
54913
54914         * locale/iso-639.def: Add Chitwani Tharu (the).
54915
54916 2013-11-14  Andreas Schwab  <schwab@suse.de>
54917
54918         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
54919         word instead of empty string.
54920
54921 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54922
54923         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
54924         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
54925         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
54926         (__fe_nomask_env): Likewise.
54927
54928 2013-11-13  Steve Ellcey  <sellcey@mips.com>
54929
54930         * benchtests/bench-timing.h: Include time.h.
54931
54932 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
54933
54934         [BZ #15997]
54935         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
54936         to 3.4.0 for x32.
54937         * sysdeps/unix/sysv/linux/configure: Regenerated.
54938
54939 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
54940
54941         [BZ #16151]
54942         * stdlib/strtod_l.c (round_and_return): Do not consider
54943         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
54944         exponent one less than half the least subnormal exponent.
54945         * stdlib/test-strtod-round-data: Add more tests.
54946         * stdlib/tst-strtod-round.c (tests): Regenerated.
54947
54948 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54949
54950         [BZ #14143]
54951         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
54952         (__fe_mask_env): Likewise.
54953         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
54954         libm_hidden_proto and add function prototype.
54955         (__fe_mask_env): Add function prototype.
54956         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
54957         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
54958         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
54959         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
54960         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
54961         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
54962
54963 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54964
54965         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
54966         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
54967
54968 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54969
54970         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
54971         of htab_find_slot().
54972
54973 2013-11-11  David S. Miller  <davem@davemloft.net>
54974
54975         [BZ #16150]
54976         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
54977         symbol in the non-vis3 case in static builds.
54978         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
54979         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
54980         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
54981         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
54982
54983 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
54984
54985         [BZ #387]
54986         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
54987         it is empty.
54988
54989 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54990
54991         * benchtests/Makefile: Add bench-strtod.
54992         * benchtests/bench-strtod.c: New file: strtod benchtest
54993
54994 2013-11-11  Andreas Schwab  <schwab@suse.de>
54995
54996         [BZ #16153]
54997         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
54998         terminating NUL in key length.
54999
55000 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55001
55002         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
55003         Add artificial ODP entry for vDSO symbol for PPC64.
55004         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
55005         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
55006
55007 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
55008
55009         [BZ #15374]
55010         * nss/getent.c (services_keys): Recognize services starting with digit.
55011
55012 2013-11-06  David S. Miller  <davem@davemloft.net>
55013
55014         [BZ #15985]
55015         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
55016         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
55017
55018 2013-11-06  Will Newton  <will.newton@linaro.org>
55019
55020         * manual/memory.texi (Malloc Examples): Remove register
55021         keyword from examples.
55022
55023 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
55024
55025         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
55026
55027 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
55028
55029         [BZ #6981]
55030         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
55031         depending on [__GCC_IEC_559 > 0].
55032         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
55033         depending on [__GCC_IEC_559_COMPLEX > 0].
55034
55035 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
55036
55037         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
55038         to iso-639.def.
55039
55040 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
55041
55042         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
55043
55044 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
55045
55046         [BZ #16112]
55047         * malloc/malloc (malloc_info): Do not handle first bin as
55048         special case.
55049
55050 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
55051
55052         * locale/iso-639.def: Add Central Nahuatl (nhn).
55053
55054 2013-11-01  Bruno Haible  <bruno@clisp.org>
55055
55056         [BZ #7003]
55057         * manual/math.texi (BSD Random): Specify range upper bound as
55058         in POSIX.
55059
55060 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
55061
55062         * locale/iso-639.def: Add Meadow Mari (mhr).
55063
55064 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
55065
55066         [BZ #14752], [BZ #15763]
55067         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
55068         Validate name.
55069         * rt/tst_shm.c: Add test for escaping directory.
55070
55071 2013-10-31  Andreas Schwab  <schwab@suse.de>
55072
55073         [BZ #15917]
55074         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
55075         followed by 'x' as part of digit sequence.
55076         * stdio-common/tst-sscanf.c (double_tests2): New tests.
55077
55078 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
55079
55080         [BZ #16037]
55081         * configure.ac: allow GNU Make 4.0 and greater.
55082         * configure: Regenerated.
55083
55084 2013-10-30  Will Newton  <will.newton@linaro.org>
55085
55086         [BZ #16038]
55087         * malloc/hooks.c (memalign_check): Limit alignment to the
55088         maximum representable power of two.
55089         * malloc/malloc.c (__libc_memalign): Likewise.
55090         * malloc/tst-memalign.c (do_test): Add test for very
55091         large alignment values.
55092         * malloc/tst-posix_memalign.c (do_test): Likewise.
55093
55094 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
55095
55096         [BZ #11087]
55097         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
55098         (munmap_chunk): Likewise.
55099         (mremap_chunk): Likewise.
55100
55101 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
55102
55103         [BZ #15799]
55104         * stdlib/div.c (div): Remove obsolete code.
55105         * stdlib/ldiv.c (ldiv): Likewise.
55106         * stdlib/lldiv.c (lldiv): Likewise.
55107
55108 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
55109
55110         [BZ #16071]
55111         * nss/nss_files/files-XXX.c (get_contents_ret): New
55112         enumerator.
55113         (get_contents): New function.
55114         (internal_getent): Use it.  Expand size of LINEBUFLEN.
55115
55116 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
55117
55118         * configure.in: Moved to ...
55119         * configure.ac: ... here. Change reference to configure.in
55120         to configure.ac.
55121         * sysdeps/arm/preconfigure.ac: ... here.
55122         configure.in to configure.ac.
55123         * sysdeps/gnu/configure.in: Moved to ...
55124         * sysdeps/gnu/configure.ac: ... here.
55125         * sysdeps/i386/configure.in: Moved to ...
55126         * sysdeps/i386/configure.ac: ... here.
55127         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
55128         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
55129         * sysdeps/mach/configure.in: Moved to ...
55130         * sysdeps/mach/configure.ac: ... here.
55131         * sysdeps/mach/hurd/configure.in: Moved to ...
55132         * sysdeps/mach/hurd/configure.ac: ... here.
55133         * sysdeps/powerpc/configure.in: Moved to ...
55134         * sysdeps/powerpc/configure.ac: ... here.
55135         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
55136         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
55137         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
55138         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
55139         * sysdeps/s390/s390-32/configure.in: Moved to ...
55140         * sysdeps/s390/s390-32/configure.ac: ... here.
55141         * sysdeps/s390/s390-64/configure.in: Moved to ...
55142         * sysdeps/s390/s390-64/configure.ac: ... here.
55143         * sysdeps/sh/configure.in: Moved to ...
55144         * sysdeps/sh/configure.ac: ... here.
55145         * sysdeps/sparc/configure.in: Moved to ...
55146         * sysdeps/sparc/configure.ac: ... here.
55147         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
55148         * sysdeps/unix/sysv/linux/configure.ac: ... here.
55149         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
55150         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
55151         * sysdeps/x86_64/configure.in: Moved to ...
55152         * sysdeps/x86_64/configure.ac: ... here.
55153         * sysdeps/x86_64/preconfigure.in: Moved to ...
55154         * sysdeps/x86_64/preconfigure.ac: ... here.
55155         * aclocal.m4: Change reference to configure.in to configure.ac.
55156         * config.h.in: Likewise.
55157         * manual/install.texi: Likewise.
55158         * manual/maint.texi: Likewise.
55159         * Makefile: Likewise.
55160         * malloc/Makefile: Likewise.
55161         * nscd/Makefile: Likewise.
55162         * Makeconfig: Change reference to configure.in and
55163         preconfigure.in to configure.ac and preconfigure.ac
55164         respectively.
55165         * INSTALL: Regenerated.
55166         * configure: Likewise.
55167         * sysdeps/gnu/configure: Likewise.
55168         * sysdeps/i386/configure: Likewise.
55169         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
55170         * sysdeps/mach/configure: Likewise.
55171         * sysdeps/mach/hurd/configure: Likewise.
55172         * sysdeps/powerpc/configure: Likewise.
55173         * sysdeps/powerpc/powerpc32/configure: Likewise.
55174         * sysdeps/powerpc/powerpc64/configure: Likewise.
55175         * sysdeps/s390/s390-32/configure: Likewise.
55176         * sysdeps/s390/s390-64/configure: Likewise.
55177         * sysdeps/sh/configure: Likewise.
55178         * sysdeps/sparc/configure: Likewise.
55179         * sysdeps/unix/sysv/linux/configure: Likewise.
55180         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
55181         * sysdeps/x86_64/configure: Likewise.
55182         * sysdeps/x86_64/preconfigure: Likewise.
55183
55184 2013-10-29  Andreas Schwab  <schwab@suse.de>
55185
55186         * stdio-common/Makefile (tst-swscanf-ENV): Define.
55187
55188 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
55189
55190         * benchtests/pow-inputs: Add new inputs.
55191
55192         * benchtests/exp-inputs: Add new inputs.
55193
55194         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
55195         conditional check for return value.
55196         (__cos32): Likewise.
55197
55198 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55199
55200         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
55201         to provide a boost for large inputs with word alignment.
55202         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
55203         implementation based on optimized PPC64 strcpy.
55204         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
55205         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
55206         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
55207         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
55208
55209 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
55210
55211         [BZ #2801]
55212         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
55213
55214 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
55215
55216         [BZ #14876]
55217         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
55218         * time/tst-strptime.c (day_tests): Add testcase.
55219
55220 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
55221
55222         [BZ #14029]
55223         * manual/pattern.texi: Acknowledge that fnmatch can fail.
55224
55225 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
55226
55227         [BZ #16074]
55228         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
55229         MAP_FAILED on error.
55230
55231 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
55232
55233         [BZ #16072]
55234         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
55235         heap for large requests.
55236
55237 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
55238
55239         [BZ #9954]
55240         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
55241         result if the result has no associated interface.
55242         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
55243         interface for all 127.X.Y.Z addresses.
55244
55245 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
55246
55247         * locale/iso-639.def: Add Ligurian (lij)
55248
55249 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
55250
55251         [BZ #15825]
55252         * sunrpc/rpc_main.c: Document rpcgen -5.
55253
55254 2013-10-19  Michael Stahl  <mstahl@redhat.com>
55255
55256         * elf/rtld.c (do_preload): Print the reason why preloading failed.
55257
55258 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
55259
55260         [BZ #10278]
55261         * posix/glob.c: Match only directories when trailing slash is present.
55262         * posix/tst-gnuglob.c (my_opendir): Do not open files.
55263         (main): Add testcase.
55264
55265 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
55266
55267         [BZ #15670]
55268         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
55269
55270 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
55271
55272         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
55273         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
55274         AUTH_DES and cindex for FIPS 140-2.
55275         (DES Encryption): Add cindex FIPS 46-3.
55276
55277         * locale/locarchive.h (struct locarhandle): Add fname.
55278         * locale/programs/localedef.c (main): Pass ARGV[remaining]
55279         if an optional argument was specified to --list-archive,
55280         otherwise NULL.
55281         * locale/programs/locarchive.c (show_archive_content): Take new
55282         argument fname and pass it via ah.fname to open_archive.
55283         * locale/programs/localedef.h: Update decl.
55284         (open_archive): If AH->fname is non-null, open that file
55285         rather than the default file name, and don't ignore ENOENT.
55286         (create_archive): Set AH.fname to NULL.
55287         (delete_locales_from_archive): Likewise.
55288         (add_locales_to_archive): Likewise.
55289         * locale/programs/locfile.c (write_all_categories): Likewise.
55290
55291 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
55292             Aldy Hernandez  <aldyh@redhat.com>
55293
55294         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
55295         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
55296         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
55297         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
55298         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
55299         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
55300         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
55301         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
55302         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
55303         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
55304         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
55305         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
55306         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
55307         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
55308         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
55309         Likewise.
55310         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
55311         Likewise.
55312         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
55313         Likewise.
55314         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
55315         Likewise.
55316         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
55317         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
55318         Likewise.
55319         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
55320         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
55321         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
55322         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
55323         Likewise.
55324         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
55325         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
55326         * sysdeps/powerpc/preconfigure: Likewise.
55327         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
55328         Likewise.
55329         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
55330         Replace contents of file by #include of <fenv_libc.h>.
55331         * sysdeps/powerpc/soft-fp/sfp-machine.h
55332         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
55333         and <sys/prctl.h>.
55334         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
55335         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
55336         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
55337         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
55338         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
55339         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
55340         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
55341         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
55342         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
55343         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
55344         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
55345         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
55346         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
55347         Allow copysignl PLT reference to be missing.
55348
55349 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
55350             Joseph Myers  <joseph@codesourcery.com
55351
55352         [BZ #15948]
55353         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
55354         single character.
55355         (add_to_tablewc): Assert sequence of wide characters is nonempty.
55356
55357 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
55358
55359         * elf/tst-tls-dlinfo.c: Don't include tls.h.
55360         * elf/tst-tls1.c: Likewise.
55361         * elf/tst-tls10.h: Likewise.
55362         * elf/tst-tls14.c: Likewise.
55363         * elf/tst-tls2.c: Likewise.
55364         * elf/tst-tls3.c: Likewise.
55365         * elf/tst-tls4.c: Likewise.
55366         * elf/tst-tls5.c: Likewise.
55367         * elf/tst-tls6.c: Likewise.
55368         * elf/tst-tls7.c: Likewise.
55369         * elf/tst-tls8.c: Likewise.
55370         * elf/tst-tls9.c: Likewise.
55371         * elf/tst-tlsmod1.c: Likewise.
55372         * elf/tst-tlsmod13.c: Likewise.
55373         * elf/tst-tlsmod13a.c: Likewise.
55374         * elf/tst-tlsmod14a.c: Likewise.
55375         * elf/tst-tlsmod16a.c: Likewise.
55376         * elf/tst-tlsmod16b.c: Likewise.
55377         * elf/tst-tlsmod2.c: Likewise.
55378         * elf/tst-tlsmod3.c: Likewise.
55379         * elf/tst-tlsmod4.c: Likewise.
55380         * elf/tst-tlsmod5.c: Likewise.
55381         * elf/tst-tlsmod6.c: Likewise.
55382
55383 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
55384
55385         [BZ #12486]
55386         * malloc/malloc.c: remove checks for statistics.
55387
55388 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
55389
55390         [BZ #15277]
55391         * inet/inet_net.c (inet_network): Detect additional invalid strings.
55392         * inet/tst-network.c: Add testcase.
55393
55394 2013-10-17  Andreas Schwab  <schwab@suse.de>
55395
55396         [BZ #15218]
55397         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
55398         to determine canonical name.
55399
55400 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
55401
55402         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
55403         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
55404         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
55405         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
55406         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
55407         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
55408         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
55409         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
55410         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
55411         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
55412         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
55413         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
55414         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
55415         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
55416         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
55417         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
55418         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
55419         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
55420         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
55421         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
55422         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
55423         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
55424         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
55425         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
55426         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
55427         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
55428         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
55429         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
55430         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
55431         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
55432         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
55433         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
55434         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
55435         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
55436         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
55437         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
55438         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
55439         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
55440         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
55441         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
55442         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
55443         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
55444         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
55445         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
55446         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
55447         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
55448         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
55449         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
55450         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
55451         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
55452         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
55453         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
55454         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
55455         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
55456         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
55457         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
55458         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
55459         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
55460
55461 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
55462
55463         [BZ #16041]
55464         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
55465         make result into a quiet NaN.
55466
55467 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
55468
55469         * soft-fp/adddf3.c: Fix horizontal whitespace.
55470         * soft-fp/addsf3.c: Likewise.
55471         * soft-fp/addtf3.c: Likewise.
55472         * soft-fp/divdf3.c: Likewise.
55473         * soft-fp/divsf3.c: Likewise.
55474         * soft-fp/divtf3.c: Likewise.
55475         * soft-fp/double.h: Likewise.
55476         * soft-fp/eqdf2.c: Likewise.
55477         * soft-fp/eqsf2.c: Likewise.
55478         * soft-fp/eqtf2.c: Likewise.
55479         * soft-fp/extenddftf2.c: Likewise.
55480         * soft-fp/extended.h: Likewise.
55481         * soft-fp/extendsfdf2.c: Likewise.
55482         * soft-fp/extendsftf2.c: Likewise.
55483         * soft-fp/extendxftf2.c: Likewise.
55484         * soft-fp/fixdfdi.c: Likewise.
55485         * soft-fp/fixdfsi.c: Likewise.
55486         * soft-fp/fixdfti.c: Likewise.
55487         * soft-fp/fixsfdi.c: Likewise.
55488         * soft-fp/fixsfsi.c: Likewise.
55489         * soft-fp/fixsfti.c: Likewise.
55490         * soft-fp/fixtfdi.c: Likewise.
55491         * soft-fp/fixtfsi.c: Likewise.
55492         * soft-fp/fixtfti.c: Likewise.
55493         * soft-fp/fixunsdfdi.c: Likewise.
55494         * soft-fp/fixunsdfsi.c: Likewise.
55495         * soft-fp/fixunsdfti.c: Likewise.
55496         * soft-fp/fixunssfdi.c: Likewise.
55497         * soft-fp/fixunssfsi.c: Likewise.
55498         * soft-fp/fixunssfti.c: Likewise.
55499         * soft-fp/fixunstfdi.c: Likewise.
55500         * soft-fp/fixunstfsi.c: Likewise.
55501         * soft-fp/fixunstfti.c: Likewise.
55502         * soft-fp/floatdidf.c: Likewise.
55503         * soft-fp/floatdisf.c: Likewise.
55504         * soft-fp/floatditf.c: Likewise.
55505         * soft-fp/floatsidf.c: Likewise.
55506         * soft-fp/floatsisf.c: Likewise.
55507         * soft-fp/floatsitf.c: Likewise.
55508         * soft-fp/floattidf.c: Likewise.
55509         * soft-fp/floattisf.c: Likewise.
55510         * soft-fp/floattitf.c: Likewise.
55511         * soft-fp/floatundidf.c: Likewise.
55512         * soft-fp/floatundisf.c: Likewise.
55513         * soft-fp/floatunditf.c: Likewise.
55514         * soft-fp/floatunsidf.c: Likewise.
55515         * soft-fp/floatunsisf.c: Likewise.
55516         * soft-fp/floatunsitf.c: Likewise.
55517         * soft-fp/floatuntidf.c: Likewise.
55518         * soft-fp/floatuntisf.c: Likewise.
55519         * soft-fp/floatuntitf.c: Likewise.
55520         * soft-fp/fmadf4.c: Likewise.
55521         * soft-fp/fmasf4.c: Likewise.
55522         * soft-fp/fmatf4.c: Likewise.
55523         * soft-fp/gedf2.c: Likewise.
55524         * soft-fp/gesf2.c: Likewise.
55525         * soft-fp/getf2.c: Likewise.
55526         * soft-fp/ledf2.c: Likewise.
55527         * soft-fp/lesf2.c: Likewise.
55528         * soft-fp/letf2.c: Likewise.
55529         * soft-fp/muldf3.c: Likewise.
55530         * soft-fp/mulsf3.c: Likewise.
55531         * soft-fp/multf3.c: Likewise.
55532         * soft-fp/negdf2.c: Likewise.
55533         * soft-fp/negsf2.c: Likewise.
55534         * soft-fp/negtf2.c: Likewise.
55535         * soft-fp/op-1.h: Likewise.
55536         * soft-fp/op-2.h: Likewise.
55537         * soft-fp/op-4.h: Likewise.
55538         * soft-fp/op-8.h: Likewise.
55539         * soft-fp/op-common.h: Likewise.
55540         * soft-fp/quad.h: Likewise.
55541         * soft-fp/single.h: Likewise.
55542         * soft-fp/soft-fp.h: Likewise.
55543         * soft-fp/sqrtdf2.c: Likewise.
55544         * soft-fp/sqrtsf2.c: Likewise.
55545         * soft-fp/sqrttf2.c: Likewise.
55546         * soft-fp/subdf3.c: Likewise.
55547         * soft-fp/subsf3.c: Likewise.
55548         * soft-fp/subtf3.c: Likewise.
55549         * soft-fp/truncdfsf2.c: Likewise.
55550         * soft-fp/trunctfdf2.c: Likewise.
55551         * soft-fp/trunctfsf2.c: Likewise.
55552         * soft-fp/trunctfxf2.c: Likewise.
55553         * soft-fp/unorddf2.c: Likewise.
55554         * soft-fp/unordsf2.c: Likewise.
55555         * soft-fp/unordtf2.c: Likewise.
55556
55557 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
55558
55559         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
55560         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
55561
55562 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
55563
55564         * elf/dl-libc.c: Clear initfini list after freeing.
55565
55566 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
55567
55568         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
55569         * soft-fp/addsf3.c: Likewise.
55570         * soft-fp/addtf3.c: Likewise.
55571         * soft-fp/divdf3.c: Likewise.
55572         * soft-fp/divsf3.c: Likewise.
55573         * soft-fp/divtf3.c: Likewise.
55574         * soft-fp/double.h: Likewise.
55575         * soft-fp/eqdf2.c: Likewise.
55576         * soft-fp/eqsf2.c: Likewise.
55577         * soft-fp/eqtf2.c: Likewise.
55578         * soft-fp/extenddftf2.c: Likewise.
55579         * soft-fp/extended.h: Likewise.
55580         * soft-fp/extendsfdf2.c: Likewise.
55581         * soft-fp/extendsftf2.c: Likewise.
55582         * soft-fp/extendxftf2.c: Likewise.
55583         * soft-fp/fixdfdi.c: Likewise.
55584         * soft-fp/fixdfsi.c: Likewise.
55585         * soft-fp/fixdfti.c: Likewise.
55586         * soft-fp/fixsfdi.c: Likewise.
55587         * soft-fp/fixsfsi.c: Likewise.
55588         * soft-fp/fixsfti.c: Likewise.
55589         * soft-fp/fixtfdi.c: Likewise.
55590         * soft-fp/fixtfsi.c: Likewise.
55591         * soft-fp/fixtfti.c: Likewise.
55592         * soft-fp/fixunsdfdi.c: Likewise.
55593         * soft-fp/fixunsdfsi.c: Likewise.
55594         * soft-fp/fixunsdfti.c: Likewise.
55595         * soft-fp/fixunssfdi.c: Likewise.
55596         * soft-fp/fixunssfsi.c: Likewise.
55597         * soft-fp/fixunssfti.c: Likewise.
55598         * soft-fp/fixunstfdi.c: Likewise.
55599         * soft-fp/fixunstfsi.c: Likewise.
55600         * soft-fp/fixunstfti.c: Likewise.
55601         * soft-fp/floatdidf.c: Likewise.
55602         * soft-fp/floatdisf.c: Likewise.
55603         * soft-fp/floatditf.c: Likewise.
55604         * soft-fp/floatsidf.c: Likewise.
55605         * soft-fp/floatsisf.c: Likewise.
55606         * soft-fp/floatsitf.c: Likewise.
55607         * soft-fp/floattidf.c: Likewise.
55608         * soft-fp/floattisf.c: Likewise.
55609         * soft-fp/floattitf.c: Likewise.
55610         * soft-fp/floatundidf.c: Likewise.
55611         * soft-fp/floatundisf.c: Likewise.
55612         * soft-fp/floatunsidf.c: Likewise.
55613         * soft-fp/floatunsisf.c: Likewise.
55614         * soft-fp/floatuntidf.c: Likewise.
55615         * soft-fp/floatuntisf.c: Likewise.
55616         * soft-fp/floatuntitf.c: Likewise.
55617         * soft-fp/fmadf4.c: Likewise.
55618         * soft-fp/fmasf4.c: Likewise.
55619         * soft-fp/fmatf4.c: Likewise.
55620         * soft-fp/gedf2.c: Likewise.
55621         * soft-fp/gesf2.c: Likewise.
55622         * soft-fp/getf2.c: Likewise.
55623         * soft-fp/ledf2.c: Likewise.
55624         * soft-fp/lesf2.c: Likewise.
55625         * soft-fp/letf2.c: Likewise.
55626         * soft-fp/muldf3.c: Likewise.
55627         * soft-fp/mulsf3.c: Likewise.
55628         * soft-fp/multf3.c: Likewise.
55629         * soft-fp/negdf2.c: Likewise.
55630         * soft-fp/negsf2.c: Likewise.
55631         * soft-fp/negtf2.c: Likewise.
55632         * soft-fp/op-1.h: Likewise.
55633         * soft-fp/op-2.h: Likewise.
55634         * soft-fp/op-4.h: Likewise.
55635         * soft-fp/op-8.h: Likewise.
55636         * soft-fp/op-common.h: Likewise.
55637         * soft-fp/quad.h: Likewise.
55638         * soft-fp/single.h: Likewise.
55639         * soft-fp/soft-fp.h: Likewise.
55640         * soft-fp/sqrtdf2.c: Likewise.
55641         * soft-fp/sqrtsf2.c: Likewise.
55642         * soft-fp/sqrttf2.c: Likewise.
55643         * soft-fp/subdf3.c: Likewise.
55644         * soft-fp/subsf3.c: Likewise.
55645         * soft-fp/subtf3.c: Likewise.
55646         * soft-fp/truncdfsf2.c: Likewise.
55647         * soft-fp/trunctfdf2.c: Likewise.
55648         * soft-fp/trunctfsf2.c: Likewise.
55649         * soft-fp/trunctfxf2.c: Likewise.
55650         * soft-fp/unorddf2.c: Likewise.
55651         * soft-fp/unordsf2.c: Likewise.
55652         * soft-fp/unordtf2.c: Likewise.
55653
55654 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
55655
55656         [BZ #15672]
55657         * misc/error.c (error_tail): Fix possible buffer overflow.
55658
55659 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
55660
55661         [BZ #13028]
55662         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
55663         address.
55664
55665 2013-10-14  P. J. McDermott  <pj@pehjota.net>
55666
55667         [BZ #832]
55668         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
55669         testing pipefail option.
55670
55671 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
55672
55673         * soft-fp/double.h: Indent preprocessor directives inside #if.
55674         * soft-fp/extended.h: Likewise.
55675         * soft-fp/op-2.h: Likewise.
55676         * soft-fp/op-4.h: Likewise.
55677         * soft-fp/op-common.h: Likewise.
55678         * soft-fp/quad.h: Likewise.
55679         * soft-fp/single.h: Likewise.
55680         * soft-fp/soft-fp.h: Likewise.
55681
55682 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
55683
55684         * iconv/iconv_prog.c: Fix typos.
55685         * stdio-common/psiginfo-data.h: Likewise.
55686
55687 2013-10-12   Reuben Thomas <rrt@sc3d.org>
55688
55689         [BZ #15764]
55690         * locale/setlocale.c: Fix typo.
55691
55692 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
55693
55694         [BZ #16036]
55695         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
55696         signaling NaN arguments.
55697         * soft-fp/unordsf2.c (__unordsf2): Likewise.
55698         * soft-fp/unordtf2.c (__unordtf2): Likewise.
55699
55700         [BZ #14910]
55701         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
55702         unordered operands.
55703         * soft-fp/gesf2.c (__gesf2): Likewise.
55704         * soft-fp/getf2.c (__getf2): Likewise.
55705         * soft-fp/ledf2.c (__ledf2): Likewise.
55706         * soft-fp/lesf2.c (__lesf2): Likewise.
55707         * soft-fp/letf2.c (__letf2): Likewise.
55708
55709         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
55710         * soft-fp/eqsf2.c (__eqsf2): Likewise.
55711         * soft-fp/eqtf2.c (__eqtf2): Likewise.
55712         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
55713         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
55714         * soft-fp/fixdfti.c (__fixdfti): Likewise.
55715         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
55716         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
55717         * soft-fp/fixsfti.c (__fixsfti): Likewise.
55718         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
55719         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
55720         * soft-fp/fixtfti.c (__fixtfti): Likewise.
55721         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
55722         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
55723         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
55724         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
55725         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
55726         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
55727         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
55728         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
55729         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
55730         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
55731         * soft-fp/floatdisf.c (__floatdisf): Likewise.
55732         * soft-fp/floatsisf.c (__floatsisf): Likewise.
55733         * soft-fp/floattidf.c (__floattidf): Likewise.
55734         * soft-fp/floattisf.c (__floattisf): Likewise.
55735         * soft-fp/floattitf.c (__floattitf): Likewise.
55736         * soft-fp/floatundidf.c (__floatundidf): Likewise.
55737         * soft-fp/floatundisf.c (__floatundisf): Likewise.
55738         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
55739         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
55740         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
55741         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
55742         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
55743         * soft-fp/gesf2.c (__gesf2): Likewise.
55744         * soft-fp/getf2.c (__getf2): Likewise.
55745         * soft-fp/ledf2.c (__ledf2): Likewise.
55746         * soft-fp/lesf2.c (__lesf2): Likewise.
55747         * soft-fp/letf2.c (__letf2): Likewise.
55748
55749         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
55750         Undefine and redefine.
55751         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
55752         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
55753         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
55754         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
55755         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
55756         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
55757         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
55758         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
55759         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
55760         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
55761         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
55762         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
55763         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
55764         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
55765         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
55766
55767         [BZ #16032]
55768         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
55769         without decrementing exponent if mantissa >= that for the
55770         denominator, not >.
55771         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
55772         denominator, not >.  Decrement exponent in < case instead of
55773         incrementing in >= case.
55774         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
55775         without decrementing exponent if mantissa >= that for the
55776         denominator, not >.
55777
55778         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
55779         computing saturated result for unsigned overflow.
55780
55781 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
55782             Jeff Law  <law@redhat.com>
55783
55784         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
55785         (atan2Mp): Add systemtap probe marker.
55786         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
55787         (__ieee754_log): Add systemtap probe marker.
55788         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
55789         (atanMp): Add systemtap probe marker.
55790         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
55791         (tanMp): Add systemtap probe marker.
55792         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
55793         (__slowexp): Add systemtap probe marker.
55794         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
55795         (__slowpow): Add systemtap probe marker.
55796         * manual/probes.texi: Document probes.
55797
55798 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
55799
55800         [BZ #15362]
55801         * libio/fileops.c (_IO_new_file_write): Return count of bytes
55802         written.
55803         (_IO_new_file_xsputn): Don't return EOF if nothing has been
55804         written.
55805         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
55806         written to buffer but not flushed.
55807         * libio/iofwrite_u.c:  Likewise.
55808         * libio/iopadn.c:  Return bytes returned even if EOF was
55809         encountered.
55810         * libio/iowpadn.c:  Likewise.
55811         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
55812         if _IO_padn does not write the whole buffer.
55813         [!COMPILE_WPRINTF] (PAD): Likewise.
55814
55815 2013-10-10  David S. Miller  <davem@davemloft.net>
55816
55817         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
55818         directory block.
55819
55820 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
55821
55822         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
55823         instead of FSF address.
55824         * soft-fp/fixdfti.c: Likewise.
55825         * soft-fp/fixsfti.c: Likewise.
55826         * soft-fp/fixtfti.c: Likewise.
55827         * soft-fp/fixunsdfti.c: Likewise.
55828         * soft-fp/fixunssfti.c: Likewise.
55829         * soft-fp/fixunstfti.c: Likewise.
55830         * soft-fp/floattidf.c: Likewise.
55831         * soft-fp/floattisf.c: Likewise.
55832         * soft-fp/floattitf.c: Likewise.
55833         * soft-fp/floatuntidf.c: Likewise.
55834         * soft-fp/floatuntisf.c: Likewise.
55835         * soft-fp/floatuntitf.c: Likewise.
55836         * soft-fp/trunctfxf2.c: Likewise.
55837
55838         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
55839         * soft-fp/fixdfti.c: Likewise.
55840         * soft-fp/fixsfti.c: Likewise.
55841         * soft-fp/fixtfti.c: Likewise.
55842         * soft-fp/fixunsdfti.c: Likewise.
55843         * soft-fp/fixunssfti.c: Likewise.
55844         * soft-fp/fixunstfti.c: Likewise.
55845         * soft-fp/floattidf.c: Likewise.
55846         * soft-fp/floattisf.c: Likewise.
55847         * soft-fp/floattitf.c: Likewise.
55848         * soft-fp/floatuntidf.c: Likewise.
55849         * soft-fp/floatuntisf.c: Likewise.
55850         * soft-fp/floatuntitf.c: Likewise.
55851         * soft-fp/trunctfxf2.c: Likewise.
55852
55853 2013-10-10  David S. Miller  <davem@davemloft.net>
55854
55855         * sysdeps/sparc/fpu/libm-test-ulps: Update.
55856
55857 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
55858
55859         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
55860         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
55861         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
55862         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
55863         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
55864         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
55865         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
55866
55867         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
55868         for NaNs before doing comparisons on argument.
55869         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
55870         Likewise.
55871
55872 2013-10-10  Will Newton  <will.newton@linaro.org>
55873
55874         * malloc/hooks.c (memalign_check): Ensure the value of bytes
55875         passed to _int_memalign does not overflow.
55876
55877 2013-10-10  Torvald Riegel  <triegel@redhat.com>
55878
55879         * scripts/bench.pl: Add include-sources directive.
55880         * benchtests/README: Update documentation.
55881
55882 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
55883
55884         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
55885         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
55886         instead of FP_INIT_ROUNDMODE.
55887         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
55888         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
55889
55890         [BZ #16034]
55891         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
55892         copy class of input value.
55893         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
55894         not handle exceptions.
55895         * soft-fp/negsf2.c (__negsf2): Likewise.
55896         * soft-fp/negtf2.c (__negtf2): Likewise.
55897         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
55898
55899 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
55900
55901         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
55902         semicolon.  From Linux kernel.
55903
55904 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
55905
55906         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
55907
55908 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
55909
55910         [BZ #156]
55911         * manual/socket.texi: Added statement about buffer
55912         for gethostbyname2_r.
55913
55914 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
55915
55916         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
55917         Use .p2align directive instead, throughout.
55918         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
55919         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
55920         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
55921         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
55922         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
55923         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
55924         * sysdeps/x86_64/strchr.S: Likewise.
55925         * sysdeps/x86_64/strrchr.S: Likewise.
55926
55927 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
55928
55929         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
55930
55931         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
55932
55933         * sysdeps/generic/math_private.h (__mpsin1): Remove
55934         declaration.
55935         (__mpcos1): Likewise.
55936         (__mpsin): New argument __range_reduce.
55937         (__mpcos): Likewise.
55938         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
55939         (slow): Use __mpsin and __mpcos.
55940         (slow1): Likewise.
55941         (slow2): Likewise.
55942         (sloww): Likewise.
55943         (sloww1): Likewise.
55944         (sloww2): Likewise.
55945         (bsloww): Likewise.
55946         (bsloww1): Likewise.
55947         (bsloww2): Likewise.
55948         (cslow2): Likewise.
55949         (csloww): Likewise.
55950         (csloww1): Likewise.
55951         (csloww2): Likewise.
55952         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
55953         range_reduce.  Merge in __mpsin1.
55954         (__mpcos): Likewise.
55955         (__mpsin1): Remove.
55956         (__mpcos1): Likewise.
55957
55958 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
55959
55960         * locale/loadlocale.c (_nl_intern_locale_data): Use
55961         LOCFILE_ALIGNED_P.
55962         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
55963         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
55964         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
55965         obstack data is appropriately aligned.
55966         (obstack_int32_grow_fast): Likewise.
55967         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
55968         * locale/programs/locfile.c (add_locale_uint32): Likewise.
55969         (add_locale_uint32_array): Likewise.
55970
55971 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
55972
55973         * benchtests/Makefile: Remove ARGLIST and RET variables.
55974         ($(objpfx)bench-%.c): Pass only function name to the script.
55975         * benchtests/README: Update documentation.
55976         * benchtests/acos-inputs: Add new directives.
55977         * benchtests/acosh-inputs: Likewise.
55978         * benchtests/asin-inputs: Likewise.
55979         * benchtests/asinh-inputs: Likewise.
55980         * benchtests/atan-inputs: Likewise.
55981         * benchtests/atanh-inputs: Likewise.
55982         * benchtests/cos-inputs: Likewise.
55983         * benchtests/cosh-inputs: Likewise.
55984         * benchtests/exp-inputs: Likewise.
55985         * benchtests/log-inputs: Likewise.
55986         * benchtests/pow-inputs: Likewise.
55987         * benchtests/rint-inputs: Likewise.
55988         * benchtests/sin-inputs: Likewise.
55989         * benchtests/sinh-inputs: Likewise.
55990         * benchtests/tan-inputs: Likewise.
55991         * benchtests/tanh-inputs: Likewise.
55992         * scripts/bench.pl: Add support for new directives.
55993
55994 2013-10-07  Alan Modra  <amodra@gmail.com>
55995
55996         * README: Fix careless merge.
55997
55998 2013-10-05  Alan Modra  <amodra@gmail.com>
55999
56000         * NEWS: Mention powerpc64le support and bugs fixed.
56001         * README: Both big-endian and little-endian powerpc64 supported.
56002
56003 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
56004
56005         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook)
56006         (_hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
56007         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
56008         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
56009
56010 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
56011
56012         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
56013         match prototype.
56014
56015 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
56016
56017         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
56018         Move -mhard-float appending from
56019         ports/sysdeps/powerpc/powerpc32/Makefile.
56020         [$(with-fp) = yes] (ASFLAGS): Likewise.
56021         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
56022         * sysdeps/powerpc/nofpu: Move directory from
56023         ports/sysdeps/powerpc/nofpu.
56024         * sysdeps/powerpc/soft-fp: Move directory from
56025         ports/sysdeps/powerpc/soft-fp.
56026         * sysdeps/powerpc/powerpc32/405: Move directory from
56027         ports/sysdeps/powerpc/powerpc32/405.
56028         * sysdeps/powerpc/powerpc32/440: Move directory from
56029         ports/sysdeps/powerpc/powerpc32/440.
56030         * sysdeps/powerpc/powerpc32/464: Move directory from
56031         ports/sysdeps/powerpc/powerpc32/464.
56032         * sysdeps/powerpc/powerpc32/476: Move directory from
56033         ports/sysdeps/powerpc/powerpc32/476.
56034         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
56035         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
56036         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
56037         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
56038         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
56039         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
56040         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
56041         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
56042         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
56043         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
56044         * README: Update for powerpc-*-linux-gnu software floating point
56045         support in libc.
56046
56047         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
56048         case to powerpc/powerpc32*.
56049         * sysdeps/unix/sysv/linux/configure: Regenerated.
56050
56051         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
56052         (_FPU_MASK_OM): Define as 0x04.
56053         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
56054         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
56055         0x00c10080.
56056         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
56057         0x0000003c.
56058         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
56059
56060         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
56061         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
56062         getcontext_e500.
56063         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
56064         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
56065         setcontext_e500.
56066         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
56067         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
56068         and setcontext_e500.
56069
56070 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
56071
56072         * locale/iso-3166.def: Update iso-1366.def and related occurrences
56073
56074 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
56075
56076         * manual/threads.texi (Default Thread Attributes): Fix typo.
56077
56078 2013-10-04  Will Newton  <will.newton@linaro.org>
56079
56080         * malloc/Makefile: Add tst-memalign.
56081         * malloc/tst-memalign.c: New file.
56082
56083         * malloc/tst-posix_memalign.c: Add comments.
56084         (do_test): Add comments and call free on all potentially
56085         allocated pointers. Add space after cast.
56086
56087         * malloc/tst-pvalloc.c: Add comments.
56088         (do_test): Add comments and call free on all potentially
56089         allocated pointers. Remove duplicate check for NULL pointer.
56090         Add space after cast.
56091
56092         * malloc/tst-valloc.c: Add comments.
56093         (do_test): Add comments and call free on all potentially
56094         allocated pointers. Remove duplicate check for NULL pointer.
56095         Add space after cast.
56096
56097 2013-10-04  Alan Modra  <amodra@gmail.com>
56098
56099         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
56100         Use stdint types in rather than __attribute__((mode())).
56101         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
56102
56103 2013-10-04  Alan Modra  <amodra@gmail.com>
56104
56105         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
56106         Correct handling of unaligned relocs for little-endian.
56107         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
56108
56109 2013-10-04  Alan Modra  <amodra@gmail.com>
56110
56111         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
56112         * configure: Regenerate.
56113         * nptl/shlib-versions: Powerpc*le starts at 2.18.
56114         * shlib-versions: Likewise.
56115
56116 2013-10-04  Alan Modra  <amodra@gmail.com>
56117
56118         * string/tester.c (test_memrchr): Increment reported test cycle.
56119
56120 2013-10-04  Alan Modra  <amodra@gmail.com>
56121
56122         * string/test-memcpy.c (do_one_test): When reporting errors, print
56123         string address and don't overrun end of string.
56124
56125 2013-10-04  Alan Modra  <amodra@gmail.com>
56126
56127         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
56128         insrdi.  Make better use of reg selection to speed exit slightly.
56129         Schedule entry path a little better.  Remove useless "are we done"
56130         checks on entry to main loop.  Handle wrapping around zero address.
56131         Correct main loop count.  Handle single left-over word from main
56132         loop inline rather than by using loop_small.  Remove extra word
56133         case in loop_small caused by wrong loop count.  Add little-endian
56134         support.
56135         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
56136         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
56137         cache hint.
56138         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
56139         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
56140         support.  Avoid rlwimi.
56141         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
56142
56143 2013-10-04  Alan Modra  <amodra@gmail.com>
56144
56145         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
56146         insrdi.  Formatting.
56147         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
56148         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
56149         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
56150         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
56151         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
56152         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
56153
56154 2013-10-04  Alan Modra  <amodra@gmail.com>
56155
56156         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
56157         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
56158         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
56159         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
56160         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
56161         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
56162         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
56163         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
56164         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
56165         use of regs.  Use power7 mtocrf.  Tidy function tails.
56166
56167 2013-10-04  Alan Modra  <amodra@gmail.com>
56168
56169         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
56170         Formatting.  Consistently use rXXX register defines or rN defines.
56171         Use early exit labels that avoid restoring unused non-volatile regs.
56172         Make cr field use more consistent with rWORDn compares.  Rename
56173         regs used as shift registers for unaligned loop, using rN defines
56174         for short lifetime/multiple use regs.
56175         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
56176         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
56177         addi 1,1,64 to pop stack frame.  Simplify return value code.
56178         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
56179
56180 2013-10-04  Alan Modra  <amodra@gmail.com>
56181
56182         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
56183         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
56184         rather than rlwimi.
56185         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
56186         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
56187         little-endian support.  Correct typos.
56188         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
56189         rather than rlwimi.
56190         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
56191         in loop and entry code to keep "and." results.
56192         (strchr): Add little-endian support.  Comment.  Move cntlzd
56193         earlier in tail.
56194         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
56195
56196 2013-10-04  Alan Modra  <amodra@gmail.com>
56197
56198         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
56199         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
56200         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
56201         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
56202
56203 2013-10-04  Alan Modra  <amodra@gmail.com>
56204
56205         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
56206         (rTMP): Define as r11.
56207         (strcmp): Add little-endian support.  Optimise tail.
56208         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
56209         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
56210         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
56211         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
56212         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
56213         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
56214         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
56215
56216 2013-10-04  Alan Modra  <amodra@gmail.com>
56217
56218         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
56219         little-endian support.  Remove unnecessary "are we done" tests.
56220         Handle "s" wrapping around zero and extremely large "size".
56221         Correct main loop count.  Handle single left-over word from main
56222         loop inline rather than by using small_loop.  Correct comments.
56223         Delete "zero" tail, use "end_max" instead.
56224         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
56225
56226 2013-10-04  Alan Modra  <amodra@gmail.com>
56227
56228         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
56229         support.  Don't branch over align.
56230         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
56231         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
56232         support.  Rearrange tmp reg use to suit.  Comment.
56233         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
56234
56235 2013-10-04  Alan Modra  <amodra@gmail.com>
56236
56237         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
56238
56239 2013-10-04  Alan Modra  <amodra@gmail.com>
56240
56241         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
56242         conditional form of branch and link when obtaining pc.
56243         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
56244
56245 2013-10-04  Alan Modra  <amodra@gmail.com>
56246
56247         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
56248         HIWORD/LOWORD.
56249         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
56250         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
56251
56252 2013-10-04  Alan Modra  <amodra@gmail.com>
56253
56254         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
56255         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
56256         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
56257         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
56258         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
56259         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
56260         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
56261         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
56262         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
56263         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
56264
56265 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
56266             Alistair Popple <alistair@ozlabs.au.ibm.com>
56267             Alan Modra <amodra@gmail.com>
56268
56269         [BZ #15723]
56270         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
56271         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
56272         _dl_hwcap access for little-endian.
56273         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
56274         destroy vmx regs when saving unaligned.
56275         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
56276         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
56277         destroy vmx regs when saving unaligned.
56278
56279 2013-10-04  Alan Modra  <amodra@gmail.com>
56280
56281         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
56282         Don't use a union to pack hi/low value.
56283
56284 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
56285
56286         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
56287         for little-endian.
56288         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
56289         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
56290         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
56291         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
56292         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
56293
56294 2013-10-04  Alan Modra  <amodra@gmail.com>
56295
56296         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
56297         constants to usual value for .cst8 section, and remove redundant
56298         high address load.
56299         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
56300         constant for 0x1p52.  Load little-endian words of double from
56301         correct stack offsets.
56302
56303 2013-10-04  Alan Modra  <amodra@gmail.com>
56304
56305         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
56306         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
56307         words of double from correct stack offsets.
56308         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
56309         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
56310         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
56311         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
56312         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
56313         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
56314         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
56315         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
56316         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
56317         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
56318         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
56319         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
56320         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
56321         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
56322         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
56323         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
56324         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
56325
56326 2013-10-04  Alan Modra  <amodra@gmail.com>
56327
56328         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
56329         64-bit int/double union.
56330         (_FPU_SETCW): Likewise.
56331         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
56332         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
56333
56334 2013-10-04  Alan Modra  <amodra@gmail.com>
56335
56336         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
56337         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
56338
56339 2013-10-04  Alan Modra  <amodra@gmail.com>
56340
56341         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
56342         use vector int constants.
56343         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
56344
56345 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
56346
56347         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
56348         array with long long.
56349         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
56350         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
56351         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
56352         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
56353         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
56354         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
56355         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
56356         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
56357         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
56358         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
56359         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
56360         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
56361         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
56362
56363 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
56364
56365         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
56366         (__signbit): Likewise.  Correct for little-endian.
56367         (__signbitl): Call __signbit.
56368         (lrint): Correct for little-endian.
56369         (lrintf): Call lrint.
56370
56371 2013-10-04  Alan Modra  <amodra@gmail.com>
56372
56373         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
56374         union 32-bit int array member with 64-bit int array.
56375         (t515, tm256): Double rather than long double.
56376         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
56377
56378 2013-10-04  Alan Modra  <amodra@gmail.com>
56379
56380         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
56381         Delete.
56382         (IEEE854_LONG_DOUBLE_BIAS): Delete.
56383         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
56384         version of math_ldbl.h.
56385
56386 2013-10-04  Alan Modra  <amodra@gmail.com>
56387
56388         [BZ #15734], [BZ #15735]
56389         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
56390         all uses of ieee875 long double macros and unions.  Simplify test
56391         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
56392         ldbl_extract_mantissa value for ix,iy exponents.  Properly
56393         normalize after ldbl_extract_mantissa, and don't add hidden bit
56394         already handled.  Don't treat low word of ieee854 mantissa like
56395         low word of IBM long double and mask off bit when testing for
56396         zero.
56397         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
56398         all uses of ieee875 long double macros and unions.  Simplify tests
56399         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
56400         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
56401         two1022, instead use their values.  Recognise that tests for large
56402         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
56403         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
56404         Rewrite all uses of ieee875 long double macros and unions.  Simplify
56405         test for 0.0L and nan.  Correct negation.
56406         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
56407         ieee875 long double macros and unions.  Correct output for large
56408         magnitude x.  Correct absolute value calculation.
56409         (__erfcl): Likewise.
56410         * math/libm-test.inc: Add tests for errors discovered in IBM long
56411         double versions of fmodl, remainderl, erfl and erfcl.
56412
56413 2013-10-04  Alan Modra  <amodra@gmail.com>
56414
56415         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
56416         all uses of ieee854 long double macros and unions.  Simplify tests
56417         for long doubles that are fully specified by the high double.
56418         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
56419         Likewise.
56420         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
56421         Remove dead code too.
56422         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
56423         (__ieee754_ynl): Likewise.
56424         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
56425         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
56426         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
56427         Remove dead code too.
56428         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
56429         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
56430         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
56431         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
56432         Simplify.
56433         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
56434         Simplify.
56435         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
56436         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
56437         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
56438         Comment on variable precision.
56439         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
56440         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
56441         Likewise.
56442         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
56443         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
56444         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
56445         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
56446         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
56447
56448 2013-10-04  Alan Modra  <amodra@gmail.com>
56449
56450         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
56451         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
56452         all uses of ieee854 long double macros and unions.
56453         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
56454         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
56455         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
56456         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
56457         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
56458         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
56459         Likewise.
56460         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
56461         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
56462         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
56463         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
56464         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
56465         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
56466         Simplify sign and nan test too.
56467         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
56468         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
56469         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
56470         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
56471         Likewise.
56472         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
56473         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
56474         Likewise.
56475         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
56476         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
56477         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
56478         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
56479         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
56480         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
56481
56482 2013-10-04  Alan Modra  <amodra@gmail.com>
56483
56484         * stdio-common/printf_size.c (__printf_size): Don't use
56485         union ieee854_long_double in fpnum union.
56486         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
56487         signbit macro to retrieve sign from long double.
56488         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
56489         retrieve sign from long double.
56490         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
56491         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
56492         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
56493         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
56494         * math/test-misc.c (main): Don't use union ieee854_long_double.
56495
56496 2013-10-04  Alan Modra  <amodra@gmail.com>
56497
56498         [BZ #15680]
56499         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
56500         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
56501         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
56502         calculation.  Remove unnecessary test for denormal exponent.
56503         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
56504         Correct handling of denormals.  Avoid undefined shift behaviour.
56505         Correct normalisation of low mantissa when low double is denormal.
56506         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
56507         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
56508         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
56509         Correct normalisation of low mantissa.  Test for overflow of high
56510         mantissa and normalise.
56511         (ldbl_nearbyint): Use more readable constant for two52.
56512         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
56513         (__mpn_construct_long_double): Fix test for overflow of high
56514         mantissa and correct normalisation.  Avoid undefined shift.
56515
56516 2013-10-04  Alan Modra  <amodra@gmail.com>
56517
56518         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
56519         (union ibm_extended_long_double): Define as an array of ieee754_double.
56520         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
56521         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
56522         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
56523         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
56524         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
56525         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
56526         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
56527         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
56528         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
56529         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
56530         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
56531
56532 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
56533
56534         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
56535         page size instead of calling getpagesize.
56536
56537         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
56538         (LOCFILE_ALIGN_MASK): Likewise.
56539         (LOCFILE_ALIGN_UP): Likewise.
56540         (LOCFILE_ALIGNED_P): Likewise.
56541         * locale/programs/ld-collate.c (collate_output): Use the new
56542         macros instead of __alignof__ (int32_t).
56543         * locale/weight.h (findidx): Likewise.
56544
56545 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
56546
56547         [BZ #431]
56548         * manual/string.texi: Fix strncat and wcsncat.
56549
56550 2013-10-03  Brooks Moses  <bmoses@google.com>
56551
56552         [BZ #15915]
56553         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
56554         * Makerules: ...here, and adjust associated comments.
56555
56556 2013-10-02  Will Newton  <will.newton@linaro.org>
56557
56558         * malloc/Makefile: Add tst-pvalloc.
56559         * malloc/tst-pvalloc.c: New file.
56560
56561 2013-10-02  Will Newton  <will.newton@linaro.org>
56562
56563         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
56564         improve test coverage.
56565
56566 2013-10-02  Will Newton  <will.newton@linaro.org>
56567
56568         * malloc/Makefile: Add tst-posix_memalign.
56569         * malloc/tst-posix_memalign.c: New file.
56570
56571 2013-10-01  Eric Blake  <eblake@redhat.com>
56572
56573         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
56574         Use __THROWNL rather than __THROW on static functions.
56575
56576 2013-09-30  Petr Machata  <pmachata@redhat.com>
56577
56578         * elf/elf.h (R_AARCH64_ABS16): New macro.
56579         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
56580         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
56581         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
56582         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
56583         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
56584         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
56585         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
56586         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
56587         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
56588         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
56589         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
56590         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
56591         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
56592         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
56593         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
56594         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
56595         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
56596         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
56597         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
56598         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
56599         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
56600         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
56601         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
56602         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
56603         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
56604         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
56605         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
56606         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
56607         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
56608         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
56609         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
56610         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
56611         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
56612         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
56613         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
56614         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
56615         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
56616         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
56617         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
56618         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
56619         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
56620         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
56621         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
56622         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
56623         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
56624         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
56625         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
56626         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
56627         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
56628         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
56629         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
56630         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
56631         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
56632         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
56633         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
56634         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
56635         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
56636         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
56637         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
56638         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
56639         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
56640         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
56641         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
56642         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
56643         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
56644         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
56645         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
56646         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
56647         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
56648         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
56649         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
56650         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
56651         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
56652         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
56653         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
56654         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
56655         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
56656         (R_AARCH64_TLSDESC_LDR): Likewise.
56657         (R_AARCH64_TLSDESC_ADD): Likewise.
56658         (R_AARCH64_TLSDESC_CALL): Likewise.
56659
56660 2013-09-30  Andreas Schwab  <schwab@suse.de>
56661
56662         [BZ #15048]
56663         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
56664         the nss database lookup.
56665         * nscd/initgrcache.c (addinitgroupsX): Likewise.
56666         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
56667
56668 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
56669
56670         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
56671
56672 2013-09-28  P. J. McDermott  <pj@pehjota.net>
56673
56674         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
56675         ${Bash-specific parameter/pattern/string} parameter expansion.
56676         * sysdeps/unix/make-syscalls.sh: Likewise.
56677
56678 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
56679
56680         * sysdeps/sh/stackguard-macros.h: New file.
56681
56682 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
56683
56684         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
56685         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
56686         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
56687         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
56688         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
56689         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
56690
56691 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56692
56693         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
56694         Fix thread ID register.
56695
56696 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
56697
56698         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
56699         [POSIX || UNIX98]: Require rather than permitting all symbols from
56700         <time.h>.
56701         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
56702         element of struct sched_param.
56703         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
56704         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
56705         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
56706         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
56707         constant.
56708
56709 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
56710
56711         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
56712         argument calculation.
56713
56714 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
56715
56716         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
56717         Expect macro.
56718         [POSIX] (pthread_attr_t): Do not require type.
56719         [POSIX] (pthread_cond_t): Likewise.
56720         [POSIX] (pthread_condattr_t): Likewise.
56721         [POSIX] (pthread_key_t): Likewise.
56722         [POSIX] (pthread_mutex_t): Likewise.
56723         [POSIX] (pthread_mutexattr_t): Likewise.
56724         [POSIX] (pthread_once_t): Likewise.
56725         [POSIX] (pthread_t): Likewise.
56726         [POSIX-based standards] (pthread_atfork): Expect function.
56727
56728 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
56729             Richard Sandiford  <richard@codesourcery.com>
56730
56731         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
56732         (swap_endianness_p): New extern variable.
56733         (set_big_endian): New inline function.
56734         (maybe_swap_uint32): Likewise.
56735         (maybe_swap_uint32_array): Likewise.
56736         (maybe_swap_uint32_obstack): Likewise.
56737         * locale/programs/locfile.c: Include <stdbool.h>.
56738         (swap_endianness_p): New variable.
56739         (add_locale_uint32): Call maybe_swap_uint32.
56740         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
56741         (write_locale_data): Call maybe_swap_uint32_array.
56742         * locale/programs/ld-collate.c (obstack_int32_grow): Call
56743         maybe_swap_uint32.
56744         (obstack_int32_grow_fast): Likewise.
56745         (output_weightwc): Call maybe_swap_uint32_obstack.
56746         (collate_output): Likewise.
56747         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
56748         (OPT_LITTLE_ENDIAN): Likewise.
56749         (options): Add --little-endian and --big-endian options.
56750         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
56751         * locale/programs/locarchive.c: Include "locfile.h".
56752         (GET): New macro.
56753         (SET): Likewise.
56754         (INC): Likewise.
56755         (create_archive): Use the new macros to access fields of
56756         structures directly mapped from or written to locale archives.
56757         (oldlocrecentcmp): Likewise.
56758         (enlarge_archive): Likewise.
56759         (insert_name): Likewise.
56760         (add_alias): Likewise.
56761         (add_locale): Likewise.
56762         (delete_locales_from_archive): Likewise.
56763         (show_archive_content): Likewise.
56764         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
56765         locale data.
56766
56767 2013-09-24  Roland McGrath  <roland@hack.frob.com>
56768
56769         * manual/freemanuals.texi: Updated from (newly) canonical copy at
56770         http://www.gnu.org/doc/freemanuals.texi.
56771         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
56772
56773 2013-09-24  Will Newton  <will.newton@linaro.org>
56774
56775         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
56776         macro.
56777
56778 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
56779
56780         * locale/hashval.h (compute_hashval): Interpret bytes of key as
56781         unsigned char.
56782
56783 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
56784
56785         * manual/threads.texi (POSIX Threads): Fix a typo.
56786
56787 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
56788
56789         [BZ #14547]
56790         * string/tst-strcoll-overflow.c: New test case.
56791         * string/Makefile (xtests): Add tst-strcoll-overflow.
56792         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
56793         cache if string sizes may cause integer overflow.
56794
56795         [BZ #14547]
56796         * string/strcoll_l.c (coll_seq): New members rule, idx,
56797         save_idx and back_us.
56798         (get_next_seq_nocache): New function.
56799         (do_compare_nocache): New function.
56800         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
56801         when malloc fails.
56802
56803 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
56804
56805         [BZ #15754]
56806         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
56807         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
56808         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
56809
56810         [BZ #15754]
56811         * elf/Makefile (tests): Add tst-ptrguard1.
56812         (tests-static): Add tst-ptrguard1-static.
56813         (tst-ptrguard1-ARGS): Define.
56814         (tst-ptrguard1-static-ARGS): Define.
56815         * elf/tst-ptrguard1.c: New file.
56816         * elf/tst-ptrguard1-static.c: New file.
56817         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
56818         * sysdeps/i386/stackguard-macros.h: Likewise.
56819         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
56820         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
56821         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
56822         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
56823         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
56824         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
56825
56826 2013-09-23  Hector Marco  <hecmargi@upv.es>
56827             Ismael Ripoll  <iripoll@disca.upv.es>
56828             Carlos O'Donell  <carlos@redhat.com>
56829
56830         [BZ #15754]
56831         * sysdeps/generic/stackguard-macros.h: Define
56832         __pointer_chk_guard_local and POINTER_CHK_GUARD.
56833         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
56834         Define __pointer_chk_guard_local.
56835         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
56836         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
56837
56838 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
56839
56840         [BZ #15859]
56841         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
56842
56843 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
56844
56845         * include/string.h (__ffs): Declare as hidden.
56846         * string/ffs.c (__ffs): Define as hidden.
56847         * sysdeps/i386/ffs.c (__ffs): Likewise.
56848         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
56849         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
56850         * sysdeps/s390/ffs.c (__ffs): Likewise.
56851         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
56852
56853 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
56854
56855         * NEWS: Mention malloc probes.
56856
56857         * malloc/arena.c (new_heap): New memory_heap_new probe.
56858         (grow_heap): New memory_heap_more probe.
56859         (shrink_heap): New memory_heap_less probe.
56860         (heap_trim): New memory_heap_free probe.
56861         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
56862         (systrim): New memory_sbrk_less probe.
56863         * manual/probes.texi: Document them.
56864
56865         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
56866         * manual/probes.texi: Document it.
56867
56868         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
56869         (__libc_realloc): Add memory_realloc_retry probe.
56870         (__libc_memalign): Add memory_memalign_retry probe.
56871         (__libc_valloc): Add memory_valloc_retry probe.
56872         (__libc_pvalloc): Add memory_pvalloc_retry probe.
56873         (__libc_calloc): Add memory_calloc_retry probe.
56874         * manual/probes.texi: Document them.
56875
56876         * malloc/arena.c (get_free_list): Add probe
56877         memory_arena_reuse_free_list.
56878         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
56879         and memory_arena_reuse.
56880         (arena_get2) [!PER_THREAD]: Likewise.
56881         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
56882         memory_arena_reuse_realloc.
56883         * manual/probes.texi: Document them.
56884
56885         * malloc/malloc.c (__libc_free): Add
56886         memory_mallopt_free_dyn_thresholds probe.
56887         (__libc_mallopt): Add multiple memory_mallopt probes.
56888         * manual/probes.texi: Document them.
56889
56890         * malloc/malloc.c: Include stap-probe.h.
56891         (__libc_mallopt): Add memory_mallopt probe.
56892         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
56893         * manual/probes.texi: New.
56894         * manual/Makefile (chapters): Add probes.
56895         * manual/threads.texi: Set next node.
56896
56897 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
56898
56899         [BZ #15963, #13985]
56900         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
56901         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
56902         Add `Chinese' to `nan' entry name.
56903
56904 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
56905
56906         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
56907         (POLYNOMIAL): Likewise.
56908         (TAYLOR_SINCOS): Likewise.
56909         (TAYLOR_SLOW): Likewise.
56910         (__sin): Use TAYLOR_SINCOS.
56911         (__cos): Likewise.
56912         (slow): Use TAYLOR_SLOW.
56913         (sloww): Likewise.
56914         (bsloww): Likewise.
56915         (csloww): Likewise.
56916
56917 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
56918
56919         * stdlib/strtod_l.c: Fix buffer overrun.
56920
56921 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
56922
56923         * benchtests/Makefile (bench): Add sincos.
56924         * benchtests/bench-sincos.c: New file.
56925
56926         * math/libm-test.inc (cos_test_data): New test inputs.
56927         (sin_test_data): Likewise.
56928
56929         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
56930         macro.
56931         (__sin): Use it.
56932         (__cos): Likewise.
56933         (slow1): Likewise.
56934         (slow2): Likewise.
56935         (sloww1): Likewise.
56936         (sloww2): Likewise.
56937         (bsloww1): Likewise.
56938         (bsloww2): Likewise.
56939         (cslow2): Likewise.
56940         (csloww1): Likewise.
56941         (csloww2): Likewise.
56942
56943         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
56944         function.
56945         (__sin): Use it.
56946         (__cos): Likewise.
56947
56948         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
56949         gotos.
56950         (__cos): Likewise.
56951
56952 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
56953
56954         * config.h.in (HAVE_MIPS_NAN2008): New macro.
56955         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
56956         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
56957         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
56958         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
56959         * elf/cache.c (print_entry): Handle the new cache flags.
56960
56961 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
56962             Aldy Hernandez  <aldyh@redhat.com>
56963
56964         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
56965         Change condition to [_SOFT_FLOAT].
56966         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
56967         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
56968         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
56969         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
56970         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
56971         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
56972         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
56973         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
56974         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
56975         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
56976         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
56977         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
56978         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
56979         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
56980         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
56981         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
56982         declaration.
56983
56984 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
56985
56986         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
56987         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
56988         (__longjmp): Use LOAD_GP to load saved GPRs.
56989         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
56990         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
56991         (__sigsetjmp): Use SAVE_GP to save GPRs.
56992
56993         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
56994         Do not append -msoft-float.
56995         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
56996
56997 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
56998
56999         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
57000
57001 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
57002
57003         [BZ #15966]
57004         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
57005         (_FPU_GETCW): Use initial "__" on variable and field names but not
57006         on macro parameter name.
57007         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
57008         parentheses around reference to macro parameter.
57009
57010 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
57011
57012         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
57013         prototype.
57014         (ctype_startup): Use uint32_t in cast and sizeof for
57015         ctype->charnames.
57016
57017 2013-09-11  Jia Liu  <proljc@gmail.com>
57018
57019         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
57020         __daddr_t_defined.
57021         [__FreeBSD__]: Likewise.
57022
57023 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
57024
57025         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
57026         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
57027         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
57028         (strchr): Remove __strchr_sse42 ifunc selection.
57029         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
57030         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
57031
57032 2013-09-11  Will Newton  <will.newton@linaro.org>
57033
57034         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
57035         parameter to RES. Remove hardcoded 1000 value.
57036         * benchtests/bench-skeleton.c (main): Pass RES parameter
57037         to TIMING_INIT and multiply result by 1000.
57038
57039 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
57040
57041         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
57042
57043 2013-09-11  Andreas Schwab  <schwab@suse.de>
57044
57045         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
57046         if not defined.
57047         (O_TMPFILE) [__USE_GNU]: Define.
57048         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
57049         Define.
57050
57051 2013-09-11  Will Newton  <will.newton@linaro.org>
57052
57053         [BZ #15857]
57054         * malloc/malloc.c (__libc_memalign): Check the value of bytes
57055         does not overflow.
57056
57057 2013-09-11  Will Newton  <will.newton@linaro.org>
57058
57059         [BZ #15856]
57060         * malloc/malloc.c (__libc_valloc): Check the value of bytes
57061         does not overflow.
57062
57063 2013-09-11  Will Newton  <will.newton@linaro.org>
57064
57065         [BZ #15855]
57066         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
57067         does not overflow.
57068
57069 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
57070
57071         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
57072         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
57073         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
57074         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
57075         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
57076
57077 2013-09-10  Allan McRae  <allan@archlinux.org>
57078
57079         [BZ #15748]
57080         * manual/arith.texi (Parsing of Floats): Clarify
57081         cross-reference.
57082
57083         [BZ #15849]
57084         * manual/install.texi (Running make install): Mention
57085         --enable-pt-chown.
57086         * INSTALL: Regenerated.
57087
57088 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
57089
57090         * csu/init-first.c (_init): Remove the !SHARED condition around
57091         FPU control word initialization.
57092         * elf/dl-support.c (_dl_fpu_control): New variable.
57093         (_dl_aux_init) <AT_FPUCW>: Initialize it.
57094         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
57095         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
57096         * math/test-fpucw-static.c: New file.
57097         * math/test-fpucw-ieee.c: New file.
57098         * math/test-fpucw-ieee-static.c: New file.
57099         * math/Makefile (tests): Add `test-fpucw-ieee' and
57100         `$(tests-static)'.
57101         (tests-static): New variable.
57102         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
57103         dependency to...
57104         [($(build-shared),yes)]
57105         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
57106         ... this.
57107         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
57108         New dependency.
57109
57110 2013-09-09  Allan McRae  <allan@archlinux.org>
57111
57112         [BZ #15939]
57113         * manual/string.texi (Collation Functions): Fix typo in
57114         strcoll example.
57115         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
57116
57117         [BZ #15893]
57118         * stdlib/isomac.c (get_null_defines): Fix memory leak.
57119
57120         [BZ #15892]
57121         * libio/memstream.c (open_memstream): Fix memory leak.
57122         * libio/wmemstream.c (open_wmemstream): Likewise.
57123
57124         [BZ #15895]
57125         * nscd/netgroupcache.c: Fix nesting of ifdefs.
57126
57127 2013-09-09  Will Newton  <will.newton@linaro.org>
57128
57129         * malloc/Makefile: Add tst-realloc to tests.
57130         * malloc/tst-realloc.c: New file.
57131
57132 2013-09-09  Allan McRae  <allan@archlinux.org>
57133
57134         [BZ #15844]
57135         * COPYING: Update from GNU website to fix FSF address.
57136         * COPYING.LIB: Likewise.
57137
57138 2013-09-06  David S. Miller  <davem@davemloft.net>
57139
57140         * po/zh_TW.po: Update Chinese (traditional) translation from
57141         translation project.
57142
57143 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
57144             Joseph Myers  <joseph@codesourcery.com>
57145
57146         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
57147         "localeinfo.h".
57148         (obstack_chunk_alloc): New macro.
57149         (obstack_chunk_free): Likewise.
57150         (record_offset): New function.
57151         (init_locale_data): Likewise.
57152         (align_locale_data): Likewise.
57153         (add_locale_empty): Likewise.
57154         (add_locale_raw_data): Likewise.
57155         (add_locale_raw_obstack): Likewise.
57156         (add_locale_string): Likewise.
57157         (add_locale_wstring): Likewise.
57158         (add_locale_uint32): Likewise.
57159         (add_locale_uint32_array): Likewise.
57160         (add_locale_char): Likewise.
57161         (start_locale_structure): Likewise.
57162         (end_locale_structure): Likewise.
57163         (start_locale_prelude): Likewise.
57164         (end_locale_prelude): Likewise.
57165         (write_locale_data): Take locale_file structure rather than an
57166         iovec.
57167         * locale/programs/locfile.h: Include "obstack.h".
57168         (struct locale_file): Change to store locale file contents instead
57169         of header.
57170         (init_locale_data): New prototype.
57171         (align_locale_data): Likewise.
57172         (add_locale_empty): Likewise.
57173         (add_locale_raw_data): Likewise.
57174         (add_locale_raw_obstack): Likewise.
57175         (add_locale_string): Likewise.
57176         (add_locale_wstring): Likewise.
57177         (add_locale_uint32): Likewise.
57178         (add_locale_uint32_array): Likewise.
57179         (add_locale_char): Likewise.
57180         (start_locale_structure): Likewise.
57181         (end_locale_structure): Likewise.
57182         (start_locale_prelude): Likewise.
57183         (end_locale_prelude): Likewise.
57184         (write_locale_data): Update prototype.
57185         * locale/programs/3level.h (struct TABLE): Remove result field.
57186         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
57187         Use new locale_file interface.
57188         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
57189         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
57190         * locale/programs/ld-address.c (address_output): Use new
57191         locale_file interface.
57192         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
57193         NO_ADD_LOCALE.
57194         (collate_finish): Don't call collseq_table_finalize.
57195         (collate_output): Use new locale_file interface.
57196         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
57197         in file.
57198         (NO_FINALIZE): Change to NO_ADD_LOCALE.
57199         (TABLE): Move defines earlier in file.
57200         (ELEMENT): Likewise.
57201         (DEFAULT): Likewise.
57202         (wctrans_table_add): Move macro and inline function earlier in
57203         file.
57204         (struct wctype_table): Move type earlier in file.
57205         (add_locale_wctype_table): New static prototype.
57206         (struct locale_ctype_t): Use logical types instead of struct iovec
57207         pointers for members.
57208         (ctype_output): Use new locale_file interface.
57209         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
57210         new locale_file interface.
57211         (allocate_arrays): Update for use of new locale_file interface.
57212         * locale/programs/ld-identification.c (identification_output): Use
57213         new locale_file interface.
57214         * locale/programs/ld-measurement.c (measurement_output): Likewise.
57215         * locale/programs/ld-messages.c (messages_output): Likewise.
57216         * locale/programs/ld-monetary.c (monetary_output): Likewise.
57217         * locale/programs/ld-name.c (name_output): Likewise.
57218         * locale/programs/ld-numeric.c (numeric_output): Likewise.
57219         * locale/programs/ld-paper.c (paper_output): Likewise.
57220         * locale/programs/ld-telephone.c (telephone_output): Likewise.
57221         * locale/programs/ld-time.c (time_output): Likewise.
57222
57223 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
57224
57225         * benchtests/Makefile: Add memrchr benchmark.
57226         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
57227         benchmark as memrchr.
57228         * benchtests/bench-memrchr-ifunc.c: New file.
57229         * benchtests/bench-memrchr.c: New file.
57230
57231 2013-09-06   Will Newton  <will.newton@linaro.org>
57232
57233         * benchtests/Makefile (string-bench): Add memcpy.
57234
57235 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
57236             Cong Wang  <amwang@redhat.com>
57237
57238         [BZ #15850]
57239         * sysdeps/unix/sysv/linux/bits/in.h
57240         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
57241         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
57242         before __USE_KERNEL_IPV6_DEFS uses.
57243         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
57244         IPPROTO_BEETPH.
57245         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
57246         sockaddr_in6, or ipv6_mreq.
57247
57248 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
57249
57250         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
57251         memory access for final bytes in some large inputs.
57252         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
57253
57254 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
57255
57256         * string/test-memrchr.c: New file.
57257         * string/test-memrchr-ifunc.c: New file.
57258         * string/Makefile: Add new memrchr testcase.
57259
57260 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
57261
57262         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
57263         fanotify_init returns EPERM.
57264
57265 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
57266
57267         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
57268         errors.
57269         (top level): Treat second token from macro or constant entries for
57270         allowed headers as allowed.
57271         * include/complex.h: Condition internal declarations on
57272         [!_ISOMAC].
57273         * include/fenv.h: Condition include of <stdbool.h> and internal
57274         declarations on [!_ISOMAC].
57275
57276 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
57277
57278         [BZ #15923]
57279         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
57280
57281 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
57282
57283         * configure.in (--enable-versioning): Remove configure option.
57284         (libc_cv_asm_symver_directive): Remove configure test.
57285         (libc_cv_ld_version_script_option): Likewise.
57286         (VERSIONING): Remove variable and AC_SUBST.
57287         (DO_VERSIONING): Remove AC_DEFINE.
57288         * configure: Regenerated.
57289         * config.h.in (DO_VERSIONING): Remove macro.
57290         * Makerules [$(versioning) = yes]: Change conditionals to
57291         [$(build-shared) = yes].
57292         * config.make.in (versioning): Remove variable.
57293         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
57294         [$(build-shared) = yes].
57295         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
57296         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
57297         * elf/Makefile [$(versioning) = yes]: Change conditionals to
57298         [$(build-shared) = yes].
57299         * extra-lib.mk [$(versioning) = yes]: Likewise.
57300         * hurd/Makefile [$(versioning) = yes]: Likewise.
57301         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
57302         [SHARED].
57303         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
57304         [SHARED].
57305         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
57306         [SHARED && !NO_HIDDEN].
57307         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
57308         [SHARED].
57309         [SHARED && DO_VERSIONING]: Likewise..
57310         * libio/Makefile [$(versioning) = yes]: Change conditionals to
57311         [$(build-shared) = yes].
57312         * manual/install.texi (--disable-versioning): Remove
57313         documentation.
57314         * INSTALL: Regenerated.
57315         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
57316         to [SHARED].
57317         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
57318         [$(build-shared) = yes].
57319         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
57320         * sysdeps/i386/i686/multiarch/strstr-c.c
57321         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
57322         [SHARED && !NO_HIDDEN].
57323         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
57324         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
57325         * sysdeps/powerpc/powerpc32/dl-machine.c
57326         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
57327         * sysdeps/powerpc/powerpc32/sysdep.h
57328         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
57329         to [SHARED && PIC && !NO_HIDDEN].
57330         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
57331         conditional to [SHARED].
57332
57333 2013-09-04   Will Newton  <will.newton@linaro.org>
57334
57335         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
57336         * benchtests/bench-string.h: Include bench-timing.h instead
57337         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
57338         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
57339         call to HP_TIMING_DIFF_INIT.
57340         * benchtests/bench-memccpy.c: Use bench-timing.h macros
57341         instead of hp-timing.h macros.
57342         * benchtests/bench-memchr.c: Likewise.
57343         * benchtests/bench-memcmp.c: Likewise.
57344         * benchtests/bench-memcpy.c: Likewise.
57345         * benchtests/bench-memmem.c: Likewise.
57346         * benchtests/bench-memmove.c: Likewise.
57347         * benchtests/bench-memset.c: Likewise.
57348         * benchtests/bench-rawmemchr.c: Likewise.
57349         * benchtests/bench-strcasecmp.c: Likewise.
57350         * benchtests/bench-strcasestr.c: Likewise.
57351         * benchtests/bench-strcat.c: Likewise.
57352         * benchtests/bench-strchr.c: Likewise.
57353         * benchtests/bench-strcmp.c: Likewise.
57354         * benchtests/bench-strcpy.c: Likewise.
57355         * benchtests/bench-strcpy_chk.c: Likewise.
57356         * benchtests/bench-strlen.c: Likewise.
57357         * benchtests/bench-strncasecmp.c: Likewise.
57358         * benchtests/bench-strncat.c: Likewise.
57359         * benchtests/bench-strncmp.c: Likewise.
57360         * benchtests/bench-strncpy.c: Likewise.
57361         * benchtests/bench-strnlen.c: Likewise.
57362         * benchtests/bench-strpbrk.c: Likewise.
57363         * benchtests/bench-strrchr.c: Likewise.
57364         * benchtests/bench-strspn.c: Likewise.
57365         * benchtests/bench-strstr.c: Likewise.
57366
57367 2013-09-04  Will Newton  <will.newton@linaro.org>
57368
57369         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
57370
57371 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
57372
57373         [BZ #15427]
57374         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
57375         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
57376         * math/libm-test.inc (lgamma_test_data): Add more tests.
57377         * sysdeps/i386/fpu/libm-test-ulps: Update.
57378         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
57379
57380 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
57381
57382         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
57383         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
57384         Add ifunc.
57385         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
57386         Add strcmp-sse2-unaligned
57387         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
57388
57389 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
57390
57391         * Versions.def (libc): Add GLIBC_2.19.
57392
57393 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
57394
57395         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
57396         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
57397
57398 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
57399
57400         [BZ #14155]
57401         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
57402         intermediate calculations in recurrence.
57403         (__ieee754_ynf): Likewise.
57404         * math/libm-test.inc (jn_test_data): Do not allow spurious
57405         underflow exception.  Add more tests.
57406         (yn_test_data): Add more tests.
57407         * sysdeps/i386/fpu/libm-test-ulps: Update.
57408         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
57409
57410 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
57411
57412         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
57413
57414 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
57415
57416         * csu/init-first.c: Fix then/than typos.
57417         * locale/programs/ld-collate.c: Likewise.
57418         * locale/programs/linereader.h: Likewise.
57419         * manual/charset.texi: Likewise.
57420         * manual/filesys.texi: Likewise.
57421         * manual/stdio.texi: Likewise.
57422         * manual/string.texi: Likewise.
57423         * stdlib/fmtmsg.c: Likewise.
57424         * sysdeps/i386/stpncpy.S: Likewise.
57425         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
57426         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
57427         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
57428         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
57429
57430 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
57431
57432         * elf/dl-open.c: Fix typos.
57433         * iconvdata/gbbig5.c: Likewise.
57434         * iconvdata/iso-2022-jp.c: Likewise.
57435         * iconv/gconv_int.h: Likewise.
57436         * iconv/loop.c: Likewise.
57437         * nis/rpcsvc/nis.h: Likewise.
57438         * resolv/ns_name.c: Likewise.
57439         * stdio-common/vfscanf.c: Likewise.
57440         * streams/stropts.h: Likewise.
57441         * sunrpc/rpc_thread.c: Likewise.
57442         * sysdeps/i386/strpbrk.S: Likewise.
57443         * sysdeps/ieee754/k_standard.c: Likewise.
57444         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
57445         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
57446         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
57447         * sysdeps/mach/hurd/profil.c: Likewise.
57448         * sysdeps/s390/dl-procinfo.h: Likewise.
57449         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
57450         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
57451         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
57452         * sysdeps/x86_64/dl-trampoline.S: Likewise.
57453         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
57454
57455 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
57456
57457         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
57458         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
57459
57460 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
57461
57462         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
57463         aix specific files.
57464         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
57465         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
57466         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
57467         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
57468         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
57469         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
57470         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
57471         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
57472
57473 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
57474             Roland McGrath  <roland@hack.frob.com>
57475
57476         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
57477         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
57478
57479 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
57480
57481         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
57482         __executable_start symbol instead of _start.
57483
57484 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
57485
57486         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
57487         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
57488         Move macros to...
57489         * sysdeps/gnu/ldsodefs.h: ... this new file.
57490
57491         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
57492         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
57493         instead of ELFOSABI_LINUX.
57494
57495         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
57496         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
57497         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
57498         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
57499         Likewise.
57500         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
57501         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
57502         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
57503         Likewise.
57504         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
57505         (ibm_extended_long_double): Add ieee_nan member.
57506         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
57507         (do_test): New function.
57508
57509         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
57510         TEST_TRUNC.
57511         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
57512         functions, renamed from truncdfsf_test, trunctfsf_test,
57513         trunctfdf_test.
57514         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
57515         functions.
57516         (do_test): Run all these.
57517
57518 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
57519
57520         * argp/argp-help.c: Fix typos.
57521         * argp/argp-parse.c: Likewise.
57522         * debug/backtracesyms.c: Likewise.
57523         * elf/elf.h: Likewise.
57524         * malloc/malloc.c: Likewise.
57525         * nis/nis_print.c: Likewise.
57526         * resolv/res_comp.c: Likewise.
57527         * stdlib/stdlib.h: Likewise.
57528         * sunrpc/clnt_tcp.c: Likewise.
57529         * sunrpc/clnt_udp.c: Likewise.
57530         * sunrpc/clnt_unix.c: Likewise.
57531         * sysdeps/unix/bsd/ptsname.c: Likewise.
57532         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
57533         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
57534         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
57535         Likewise.
57536         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
57537         Likewise.
57538         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
57539         Likewise.
57540         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
57541
57542 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
57543
57544         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
57545         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
57546
57547 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
57548
57549         [BZ #15897]
57550         * dlfcn/Makefile (tests): Add bug-dl-leaf.
57551         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
57552         ($(objpfx)bug-dl-leaf): New rule.
57553         ($(objpfx)bug-dl-leaf.so): Likewise.
57554         ($(objpfx)bug-dl-leaf.out): Likewise.
57555         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
57556         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
57557         * dlfcn/bug-dl-leaf.c: New test.
57558         * dlfcn/bug-dl-leaf-lib.c: Likewise.
57559         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
57560         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
57561         (dlclose): Likewise.
57562         (dlmopen): Likewise.
57563
57564 2013-08-27  Roland McGrath  <roland@hack.frob.com>
57565
57566         * include/netdb.h [!_ISOMAC]:
57567         Don't include <tls.h>.
57568         (h_errno, __libc_h_errno): Move declaration and macros out of
57569         [_LIBC_REENTRANT].
57570
57571         * include/resolv.h [_RESOLV_H_]:
57572         Don't include <tls.h>.
57573         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
57574         * resolv/res_libc.c: Don't include <tls.h>.
57575         (_res): Use __attribute__ ((nocommon)) in place of
57576         __attribute__ ((section (".bss"))).
57577
57578         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
57579         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
57580
57581         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
57582
57583         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
57584         only under [SIOCGIFCONF && SIOCGIFNETMASK].
57585
57586         * resolv/res_mkquery.c: Include <sys/time.h>.
57587
57588         * inet/ifreq.c: Moved to ...
57589         * sysdeps/unix/ifreq.c: ... here.
57590         * inet/ifreq.c: New file, true stub version.
57591
57592         * socket/sa_len.c: New file.
57593         * socket/Makefile (aux): Add it.
57594         * sysdeps/unix/sysv/linux/Makefile
57595         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
57596         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
57597         and #include <socket/sa_len.c>.
57598         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
57599         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
57600
57601         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
57602         * bits/socket.h: ... here.
57603
57604         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
57605         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
57606         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
57607
57608 2013-08-27  Andreas Schwab  <schwab@suse.de>
57609
57610         [BZ #15736]
57611         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
57612         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
57613         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
57614         * string/test-strcasecmp.c (test_main): Run tests in several
57615         locales.
57616         * string/test-strncasecmp.c (test_main): Likewise.
57617
57618         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
57619         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
57620         to __strcasecmp_nonascii and __strncasecmp_nonascii.
57621         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
57622         (__strncasecmp_ssse3) [PIC]: Likewise.
57623
57624 2013-08-26  Roland McGrath  <roland@hack.frob.com>
57625
57626         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
57627
57628         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
57629         instead of explicitly declaring xdecrypt.
57630         * nis/nss_nis/nis-publickey.c: Likewise.
57631
57632 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
57633
57634         [BZ #15890]
57635         * nscd/aicache.c: Include res_hconf.h.
57636         (addhstaiX): Initialize res_hconf.
57637
57638 2013-08-26  Andreas Schwab  <schwab@suse.de>
57639
57640         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
57641         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
57642
57643 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
57644
57645         * nscd/aicache.c (addhstaiX): Fix indentation.
57646
57647 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
57648
57649         * configure.ac: Quote $build_pt_chown test.
57650         * configure: Regenerated.
57651
57652 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
57653
57654         [BZ #15532]
57655         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
57656         * math/s_cexpf.c (__cexpf): Likewise.
57657         * math/s_cexpl.c (__cexpl): Likewise.
57658         * math/libm-test.inc (cexp_test_data): Correct expected return
57659         value for NaN + i0.  Add another test.
57660
57661 2013-08-22  David S. Miller  <davem@davemloft.net>
57662
57663         * po/ca.po: Update Catalan translation from translation project.
57664         * po/uk.po: Add Ukrainian translations from translation project.
57665
57666 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
57667
57668         [BZ #15797]
57669         * math/s_fdim.c (__fdim): Check for infinite arguments if result
57670         is infinite, not alongside NaN test.
57671         * math/s_fdimf.c (__fdimf): Likewise.
57672         * math/s_fdiml.c (__fdiml): Likewise.
57673         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
57674         errno is unchanged.
57675
57676 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
57677
57678         * argp/argp-help.c: Fix typos.
57679         * crypt/speeds.c: Likewise.
57680         * csu/check_fds.c: Likewise.
57681         * elf/dl-load.c: Likewise.
57682         * elf/dl-open.c: Likewise.
57683         * elf/reldep3.c: Likewise.
57684         * elf/reldep.c: Likewise.
57685         * elf/sprof.c: Likewise.
57686         * iconv/iconv_charmap.c: Likewise.
57687         * iconv/skeleton.c: Likewise.
57688         * iconv/strtab.c: Likewise.
57689         * io/lockf64.c: Likewise.
57690         * libio/libioP.h: Likewise.
57691         * resolv/gai_notify.c: Likewise.
57692         * resolv/ns_name.c: Likewise.
57693         * resolv/ns_samedomain.c: Likewise.
57694         * resolv/res_send.c: Likewise.
57695         * stdlib/random.c: Likewise.
57696         * sunrpc/rpc/xdr.h: Likewise.
57697         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
57698         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
57699         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
57700         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
57701         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
57702         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
57703         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
57704         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
57705         * sysdeps/mach/hurd/check_fds.c: Likewise.
57706         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
57707         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
57708         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
57709         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
57710         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
57711         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
57712         * sysdeps/pthread/aio_notify.c: Likewise.
57713         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
57714         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
57715         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
57716         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
57717         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
57718
57719 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
57720
57721         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
57722         version if bit_Slow_SSE4_2 is set.
57723         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
57724         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
57725
57726 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
57727
57728         [BZ #15867]
57729         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
57730         trampoline stack frame information.
57731         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
57732         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
57733         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
57734         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
57735         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
57736         * sysdeps/unix/sysv/linux/powerpc/init-first.c
57737         (_libc_vdso_platform_setup): Initialize the signal trampolines.
57738         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
57739         sa_flags value.
57740         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
57741         interrupting a syscall and set with option SA_SIGINFO.
57742
57743 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
57744
57745         [BZ #15531]
57746         * math/s_cproj.c (__cproj): Only return an infinity if one part of
57747         argument is infinite.
57748         * math/s_cprojf.c (__cprojf): Likewise.
57749         * math/s_cprojl.c (__cprojl): Likewise.
57750         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
57751         * math/libm-test.inc (cproj_test_data): Add more tests.
57752
57753         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
57754
57755         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
57756         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
57757         size.  Use __ffs to determine corresponding shift.
57758
57759 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
57760             Roland McGrath  <roland@hack.frob.com>
57761
57762         * Makefile (INSTALL): Remove trailing blank lines from output of
57763         makeinfo.
57764
57765 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
57766
57767         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
57768         Align 32 bit compat elf_greg to 8 bytes.
57769
57770 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
57771
57772         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
57773
57774 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
57775
57776         * string/strcoll_l.c (coll_seq): New structure.
57777         (get_next_seq_cached): New function.
57778         (get_next_seq): New function.
57779         (do_compare): New function.
57780         (STRCOLL): Use GNU style definition.  Simplify implementation
57781         by using get_next_seq, get_next_seq_cached and do_compare.
57782
57783 2013-08-16  Florian Weimer  <fweimer@redhat.com>
57784
57785         [BZ #14699]
57786         CVE-2013-4237
57787         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
57788         member.
57789         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
57790         member.
57791         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
57792         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
57793         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
57794         conditional.
57795         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
57796         GETDENTS_64BIT_ALIGNED.
57797         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
57798         * manual/filesys.texi (Reading/Closing Directory): Document
57799         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
57800         strongly.
57801         * manual/conf.texi (Limits for Files): Add portability note to
57802         NAME_MAX, PATH_MAX.
57803         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
57804
57805 2013-08-13  Andreas Schwab  <schwab@suse.de>
57806
57807         [BZ #15749]
57808         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
57809         of fabs.
57810         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
57811         LDBL_MAX_EXP >= 16384]: Add tests for it.
57812
57813 2013-08-12  David S. Miller  <davem@davemloft.net>
57814
57815         * version.h (RELEASE): Set to "development".
57816         (VERSION): Set to "2.18.90".
57817         * NEWS: Add 2.19 section.
57818
57819 2013-08-03  David S. Miller  <davem@davemloft.net>
57820
57821         * po/ko.po: Update Korean translation from translation project.
57822
57823 2013-08-01  David S. Miller  <davem@davemloft.net>
57824
57825         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
57826         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
57827         Bilka.
57828
57829 2013-07-30  David S. Miller  <davem@davemloft.net>
57830
57831         * po/fr.po: Update French translation from translation project.
57832
57833 2013-07-28  David S. Miller  <davem@davemloft.net>
57834
57835         * po/cs.po: Update Czech translation from translation project.
57836
57837         * po/sv.po: Update Swedish translation from translation project.
57838
57839 2013-07-27  David S. Miller  <davem@davemloft.net>
57840
57841         * po/eo.po: Update Esperanto translation from translation project.
57842
57843         * po/vi.po: Update Vietnamese translation from translation project.
57844
57845         * po/de.po: Update German translation from translation project.
57846
57847 2013-07-26  David S. Miller  <davem@davemloft.net>
57848
57849         * po/bg.po: Update Bulgarian translation from translation project.
57850
57851         * po/nl.po: Update Dutch translation from translation project.
57852         * po/pl.po: Update Polish translation from translation project.
57853         * po/ru.po: Update Russian translation from translation project.
57854
57855 2013-07-24  David S. Miller  <davem@davemloft.net>
57856
57857         * po/libc.pot: Update.
57858
57859 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
57860
57861         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
57862         variable page size.
57863         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
57864         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
57865         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
57866
57867 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
57868
57869         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
57870
57871 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
57872             Andreas Schwab  <schwab@suse.de>
57873             Roland McGrath  <roland@hack.frob.com>
57874             Joseph Myers  <joseph@codesourcery.com>
57875             Carlos O'Donell  <carlos@redhat.com>
57876
57877         [BZ #15755]
57878         * config.h.in: Define HAVE_PT_CHOWN.
57879         * config.make.in (build-pt-chown): New variable.
57880         * configure.in (--enable-pt_chown): New configure option.
57881         * configure: Regenerate.
57882         * login/Makefile: Include Makeconfig.  Build pt_chown only if
57883         build-pt-chown is enabled.
57884         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
57885         pt_chown to fix pty ownership.
57886         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
57887         CLOSE_ALL_FDS.
57888         * manual/install.texi (Configuring and compiling): Mention
57889         --enable-pt_chown. Add @findex for grantpt.
57890         * INSTALL: Regenerate.
57891
57892 2013-07-20  David S. Miller  <davem@davemloft.net>
57893
57894         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
57895         difference between 32-bit and 64-bit.
57896
57897 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
57898
57899         [BZ #15711]
57900         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
57901         Avoid system header dependency with -ffreestanding.
57902         ($(objpfx)bits/syscall%d): Likewise.
57903
57904 2013-07-13  David S. Miller  <davem@davemloft.net>
57905
57906         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
57907         underflows from atanl/atan2l due to bug 15319.
57908         (casinh_test_data): Likewise.
57909
57910 2013-07-07  David S. Miller  <davem@davemloft.net>
57911
57912         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
57913
57914 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
57915
57916         * sysdeps/i386/fpu/libm-test-ulps: Update.
57917         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
57918
57919 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
57920
57921         * configure.in (--enable-lock-elision): Fix message text.
57922         * INSTALL: Regenerate.
57923         * configure: Regenerate.
57924
57925 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
57926
57927         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
57928
57929 2013-07-03  Andreas Jaeger  <aj@suse.de>
57930
57931         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
57932         define.
57933         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
57934         (ptrace_peeksiginfo_args): Add.
57935         (__ptrace_peeksiginfo_flags): Add.
57936         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
57937         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
57938         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
57939
57940 2013-07-03  Allan McRae  <allan@archlinux.org>
57941
57942         * sysdeps/i386/fpu/libm-test-ulps: Update.
57943
57944 2013-07-02  David S. Miller  <davem@davemloft.net>
57945
57946         * sysdeps/sparc/fpu/libm-test-ulps: Update.
57947
57948 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
57949
57950         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57951
57952 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
57953
57954         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
57955         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
57956
57957 2013-07-02  Andi Kleen <ak@linux.intel.com>
57958
57959         * config.h.in (ENABLE_LOCK_ELISION): Add.
57960         * configure.in (--enable-lock-elision): Add option.
57961         * manual/install.texi: Document --enable lock elision.
57962         * configure: Regenerate
57963         * INSTALL: Regenerate.
57964
57965 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
57966
57967         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
57968         SSE4.2 strcasecmp for libc.a.
57969         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
57970
57971 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
57972
57973         [BZ #13304]
57974         * soft-fp/op-common.h (_FP_FMA): New macro.
57975         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
57976         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
57977         (_FP_MUL_MEAT_1_imm): ... here.
57978         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
57979         (_FP_MUL_MEAT_1_wide): ... here.
57980         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
57981         (_FP_MUL_MEAT_1_hard): ... here.
57982         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
57983         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
57984         (_FP_MUL_MEAT_2_wide): ... here.
57985         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
57986         (_FP_MUL_MEAT_2_wide_3mul): ... here.
57987         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
57988         (_FP_MUL_MEAT_2_gmp): ... here.
57989         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
57990         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
57991         (_FP_MUL_MEAT_4_wide): ... here.
57992         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
57993         (_FP_MUL_MEAT_4_gmp): ... here.
57994         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
57995         (_FP_WFRACBITS_DW_S): Likewise.
57996         (_FP_WFRACXBITS_DW_S): Likewise.
57997         (_FP_HIGHBIT_DW_S): Likewise.
57998         (FP_FMA_S): Likewise.
57999         (_FP_FRAC_HIGH_DW_S): Likewise.
58000         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
58001         (_FP_WFRACBITS_DW_D): Likewise.
58002         (_FP_WFRACXBITS_DW_D): Likewise.
58003         (_FP_HIGHBIT_DW_D): Likewise.
58004         (FP_FMA_D): Likewise.
58005         (_FP_FRAC_HIGH_DW_D): Likewise.
58006         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
58007         (_FP_WFRACBITS_DW_E): Likewise.
58008         (_FP_WFRACXBITS_DW_E): Likewise.
58009         (_FP_HIGHBIT_DW_E): Likewise.
58010         (FP_FMA_E): Likewise.
58011         (_FP_FRAC_HIGH_DW_E): Likewise.
58012         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
58013         (_FP_WFRACBITS_DW_Q): Likewise.
58014         (_FP_WFRACXBITS_DW_Q): Likewise.
58015         (_FP_HIGHBIT_DW_Q): Likewise.
58016         (FP_FMA_Q): Likewise.
58017         (_FP_FRAC_HIGH_DW_Q): Likewise.
58018         * soft-fp/fmasf4.c: New file.
58019         * soft-fp/fmadf4.c: Likewise.
58020         * soft-fp/fmatf4.c: Likewise.
58021
58022 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
58023
58024         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
58025         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
58026         Silvermont.
58027         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
58028         macro.
58029         (index_Slow_SSE4_2): Likewise.
58030         (index_Prefer_PMINUB_for_stringop): Likewise.
58031         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
58032         bit_Slow_SSE4_2 is set.
58033         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
58034         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
58035
58036 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
58037
58038         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
58039         rtld_global._dl_hwcap2.
58040         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
58041         POWER8.
58042         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
58043         POWER8 feature descriptions defined in _dl_hwcap2.
58044         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
58045         string handling for POWER8 feature bits.
58046         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
58047         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
58048         _dl_powerpc_cap_flags.
58049         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
58050         * sysdeps/powerpc/rtld-global-offsets.sym
58051         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
58052         _dl_hwcap2 in the rtld_global_ro structure.
58053
58054 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
58055
58056         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
58057         hardware capabilities in support of AT_HWCAP2.
58058         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
58059         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
58060         GLRO(dl_hwcap2).
58061         (_dl_show_auxv): Add support for calling _dl_procinfo to display
58062         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
58063         explicitly the unknown a_type display mechanism is used.
58064         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
58065         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
58066         struct member.
58067         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
58068         to macro prototype for AT_HWCAP2 support.
58069         * sysdeps/i386/dl-procinfo.h: Likewise.
58070         * sysdeps/s390/dl-procinfo.h: Likewise.
58071         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
58072         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
58073         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
58074         return -1 for unknown a_type display fallback.
58075         * sysdeps/sparc/dl-procinfo.h: Likewise.
58076         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
58077         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
58078
58079 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
58080
58081         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
58082         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
58083
58084 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
58085
58086         [BZ #12492]
58087         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
58088         mprotect making __stack_prot writable.
58089
58090 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
58091             Joseph Myers  <joseph@codesourcery.com>
58092
58093         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
58094         as being properly aligned.
58095
58096 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
58097
58098         * dlfcn/modstatic5.c: New file.
58099         * dlfcn/tststatic5.c: New file.
58100         * dlfcn/Makefile (tests): Add tststatic5.
58101         (tests-static): Likewise.
58102         (modules-names): Add modstatic5.
58103         (tststatic5-ENV): New variable.
58104         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
58105
58106         [BZ #15022]
58107         * elf/dl-support.c (_dl_main_map): New variable.
58108         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
58109         (_dl_nns, _dl_load_adds): Set to 1.
58110         (_dl_initial_searchlist): Refer to _dl_main_map.
58111         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
58112         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
58113         call to _dl_get_origin.
58114         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
58115         around call_map.
58116         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
58117         * dlfcn/modstatic3.c: New file.
58118         * dlfcn/tststatic3.c: New file.
58119         * dlfcn/tststatic4.c: New file.
58120         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
58121         (tests-static): Likewise.
58122         (modules-names): Add modstatic3.
58123         (tststatic3-ENV, tststatic4-ENV): New variables.
58124         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
58125         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
58126
58127 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
58128
58129         * configure.in (CC): Require GCC version 4.4 or later.
58130         * configure: Regenerated.
58131         * manual/install.texi (Tools for Compilation): Update GCC version
58132         requirement.
58133         * INSTALL: Regenerated.
58134
58135 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
58136
58137         [BZ #15674]
58138         * string/test-memcmp.c (check2): New.
58139         (main): Call check2.
58140
58141         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
58142
58143 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
58144
58145         [BZ #15022]
58146         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
58147         over to...
58148         (dl_open_worker) [!SHARED]: ... here.
58149
58150 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
58151
58152         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
58153
58154 2013-06-25  Richard Henderson  <rth@redhat.com>
58155
58156         * locale/programs/locarchive.c: Include <libc-internal.h>
58157
58158 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
58159
58160         * manual/texinfo.tex: Update to version 2013-06-21.17, with
58161         trailing whitespace removed.
58162
58163 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
58164
58165         [BZ #10283]
58166         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
58167         * locale/programs/locarchive.c: Include libc-mmap.h.
58168         (prepare_address_space): Take two new outputs (the mmap base and len).
58169         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
58170         values.
58171         (create_archive): Declare new mmap base and len values for
58172         prepare_address_space, and store the result in ah.
58173         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
58174         (enlarge_archive): If ah->mmap_base is not NULL, use that and
58175         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
58176         Declare new mmap base and len values for
58177         prepare_address_space, and store the result in new_ah.
58178         (open_archive): Declare new mmap base and len values for
58179         prepare_address_space, and store the result in ah.
58180         (close_archive): If ah->mmap_base is not NULL, use that and
58181         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
58182         * sysdeps/generic/libc-mmap.h: New file.
58183
58184 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
58185
58186         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
58187         (ALIGN_UP): Likewise.
58188         (PTR_ALIGN_DOWN): Likewise.
58189         (PTR_ALIGN_UP): Likewise.
58190
58191 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
58192
58193         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
58194         entry mapped to PPC_PLATFORM_POWER8.
58195         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
58196         POWER8.
58197         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
58198         (_dl_string_platform): Add case for exporting platform position for
58199         POWER8.
58200         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
58201         search path to sysdeps/powerpc/powerpc32/power8 directory.
58202         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
58203         search path to sysdeps/powerpc/powerpc64/power8 directory.
58204         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
58205         power7 directories.
58206         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
58207         power7 directories.
58208
58209 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
58210
58211         * INSTALL: Regenerate.
58212
58213         * nscd/connections.c (nscd_init): Fix comment.
58214
58215 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
58216
58217         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
58218
58219         [BZ #15667]
58220         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
58221         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
58222
58223 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
58224
58225         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
58226         DL_DST_REQ_STATIC.
58227         (DL_DST_REQ_STATIC): Remove macro.
58228
58229 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
58230
58231         [BZ #7006]
58232         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
58233         with a shift of 0 bits.
58234
58235 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
58236
58237         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
58238         $(tststatic-ENV).
58239
58240 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
58241
58242         [BZ #15655]
58243         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
58244
58245 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
58246
58247         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
58248         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
58249         accepts -fno-tree-loop-distribute-patterns.
58250         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
58251         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
58252         recursive call.
58253         * string/memset.c (memset): Likewise.
58254         * string/test-memmove.c (simple_memmove): Disable loop transformation
58255         to library calls.
58256         * string/test-memset.c (simple_memset): Likewise.
58257         * benchtests/bench-memmove.c (simple_memmove): Likewise.
58258         * benchtests/bench-memset.c (simple_memset): Likewise.
58259         * configure: Regenerated.
58260
58261 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
58262
58263         * math/test-misc.c (main): Ignore fesetround failure when failures
58264         of subsequent rounding tests would be ignored.
58265
58266         [BZ #15654]
58267         * math/fedisblxcpt.c (fedisableexcept): Return 0.
58268         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
58269         * math/fegetenv.c (__fegetenv): Return 0.
58270         * math/fegetexcept.c (fegetexcept): Return 0.
58271         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
58272         FE_TONEAREST.
58273         * math/feholdexcpt.c (feholdexcept): Return 0.
58274         * math/fesetenv.c (__fesetenv): Return 0.
58275         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
58276         argument FE_TONEAREST.
58277         * math/feupdateenv.c (__feupdateenv): Return 0.
58278         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
58279
58280 2013-06-18  Roland McGrath  <roland@hack.frob.com>
58281
58282         * elf/rtld-Rules (rtld-compile-command.S): New variable.
58283         (rtld-compile-command.s, rtld-compile-command.c): New variables.
58284         ($(objpfx)rtld-%.os rules): Use them.
58285
58286 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
58287
58288         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
58289         fields.
58290
58291 2013-06-17  Roland McGrath  <roland@hack.frob.com>
58292
58293         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
58294         length of target pattern, then descending length of dependency pattern.
58295         * configure.in (AWK): Require gawk 3.1.2 or newer.
58296         * manual/install.texi (Tools for Compilation): Say that we do.
58297         * configure: Regenerated.
58298
58299         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
58300         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
58301         * scripts/sysd-rules.awk: ... this new script.
58302         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
58303         than a glob-style pattern.
58304
58305 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
58306
58307         * math/test-misc.c (main): Do not treat incorrectly rounded
58308         conversions as failure unless ROUNDING_TESTS passes.
58309
58310 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
58311
58312         [BZ #15631]
58313         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
58314         restore exception state around main square root computation, then
58315         check for inexactness explicitly.
58316
58317         * math/libm-test.inc (fma_test_data): Add another test.
58318
58319 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
58320
58321         * manual/threads.texi (Non-POSIX Extensions): New document
58322         node.  Document pthread_getattr_default_np and
58323         pthread_setattr_default_np.
58324
58325         * Versions.def (libpthread): Add GLIBC_2.18.
58326         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
58327         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
58328         Likewise.
58329         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
58330         Likewise.
58331         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
58332         Likewise.
58333         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
58334         Likewise.
58335         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
58336         Likewise.
58337         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
58338         Likewise.
58339         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
58340         Likewise.
58341         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
58342         Likewise.
58343         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
58344         Likewise.
58345
58346 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
58347
58348         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
58349         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
58350
58351 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
58352             H.J. Lu  <hjl.tools@gmail.com>
58353
58354         [BZ #15627]
58355         * sysdeps/x86_64/rtld-memset.c: Remove file.
58356         * sysdeps/x86_64/rtld-memset.S: New file.
58357
58358 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
58359
58360         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
58361         (test_in_one_mode): Take arguments for whether the rounding mode
58362         is supported for each floating-point type.
58363         (do_test): Pass new arguments to test_in_one_mode using
58364         ROUNDING_TESTS.
58365
58366 2013-06-13  Roland McGrath  <roland@hack.frob.com>
58367
58368         * posix/tst-waitid.c (do_test): Distinguish different instances of
58369         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
58370         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
58371         before entering the kernel for waitpid.
58372
58373 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
58374
58375         * NEWS: Fix note on clock function precision.  Text by Roland
58376         McGrath.
58377
58378 2013-06-13  Roland McGrath  <roland@hack.frob.com>
58379
58380         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
58381         it into place only when and if the sanity check passes.
58382
58383 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
58384
58385         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
58386         output for whether conversion result is exact.  Take argument
58387         indicating whether type is IBM long double.
58388         (round_for_all): Change need_exact field to ibm_ld.
58389         * stdlib/tst-strtod-round.c (struct exactness): New type.
58390         (struct test): Change bool ld_ok field to struct exactness exact.
58391         (TEST): Update all definitions for change to field.
58392         (tests): Regenerate array contents.
58393         (test_in_one_mode): Take pointer to new field instead of old ld_ok
58394         field value.  Check for IBM long double here.
58395         (do_test): Update calls to test_in_one_mode.
58396
58397 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
58398
58399         [BZ #12515]
58400         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
58401         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
58402
58403 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
58404
58405         [BZ #15605]
58406         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
58407         generated by the compiler on loop optimizations.
58408         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
58409         general definitions.
58410
58411 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
58412
58413         * math/bug-nextafter.c: Include <math-tests.h>.
58414         (main): Only test for exceptions if EXCEPTION_TESTS is true for
58415         the relevant type.
58416         * math/bug-nexttoward.c: Include <math-tests.h>.
58417         (main): Only test for exceptions if EXCEPTION_TESTS is true for
58418         the relevant type.
58419         * math/test-misc.c: Include <math-tests.h>.
58420         (main): Only test for exceptions if EXCEPTION_TESTS is true for
58421         the relevant type.
58422
58423 2013-06-12  Andreas Jaeger  <aj@suse.de>
58424
58425         * po/ia.po: Update Interlingua translation from translation
58426         project.
58427
58428 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
58429
58430         * include/fenv.h: Include stdbool.h.
58431         (struct rm_ctx): New structure.
58432         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
58433         Define macro.
58434         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
58435         (SET_RESTORE_ROUNDF): Likewise.
58436         (SET_RESTORE_ROUNDL): Likewise.
58437         (SET_RESTORE_ROUND_NOEX): Likewise.
58438         (SET_RESTORE_ROUND_NOEXF): Likewise.
58439         (SET_RESTORE_ROUND_NOEXL): Likewise.
58440         (SET_RESTORE_ROUND_53BIT): Likewise.
58441         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
58442         (libc_feresetround_noexf_ctx): Likewise.
58443         (libc_feresetround_noexl_ctx): Likewise.
58444         (libc_feholdsetround_53bit_ctx): Likewise.
58445         (libc_feresetround_53bit_ctx): Likewise.
58446         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
58447         (libc_feholdexcept_setround_sse_ctx): New function.
58448         (libc_fesetenv_sse_ctx): Likewise.
58449         (libc_feupdateenv_sse_ctx): Likewise.
58450         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
58451         (libc_feholdexcept_setround_387_ctx): Likewise.
58452         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
58453         (libc_feholdsetround_387_prec_ctx): Likewise.
58454         (libc_feholdsetround_387_ctx): Likewise.
58455         (libc_feholdsetround_387_53bit_ctx): Likewise.
58456         (libc_feholdsetround_sse_ctx): Likewise.
58457         (libc_feresetround_sse_ctx): Likewise.
58458         (libc_feresetround_387_ctx): Likewise.
58459         (libc_feupdateenv_387_ctx): Likewise.
58460         (libc_feholdexcept_setroundf_ctx): Define macro.
58461         (libc_fesetenvf_ctx): Likewise.
58462         (libc_feupdateenvf_ctx): Likewise.
58463         (libc_feholdsetroundf_ctx): Likewise.
58464         (libc_feresetroundf_ctx): Likewise.
58465         (libc_feholdexcept_setround_ctx): Likewise.
58466         (libc_fesetenv_ctx): Likewise.
58467         (libc_feupdateenv_ctx): Likewise.
58468         (libc_feholdsetround_ctx): Likewise.
58469         (libc_feresetround_ctx): Likewise.
58470         (libc_feholdexcept_setroundl_ctx): Likewise.
58471         (libc_feupdateenvl_ctx): Likewise.
58472         (libc_feholdsetroundl_ctx): Likewise.
58473         (libc_feresetroundl_ctx): Likewise.
58474         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
58475         (libc_feresetround_53bit_ctx): Likewise.
58476
58477 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
58478
58479         * locale/iso-639.def: Convert to UTF-8.
58480
58481 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
58482
58483         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
58484         (EXCEPTION_TESTS_double): Likewise.
58485         (EXCEPTION_TESTS_long_double): Likewise.
58486         (EXCEPTION_TESTS): Likewise.
58487         * math/libm-test.inc (test_exceptions): Only test exceptions if
58488         EXCEPTION_TESTS (FLOAT).
58489
58490 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
58491
58492         * benchtests/Makefile (string-bench): Add strcpy_chk and
58493         stpcpy_chk.
58494         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
58495         * benchtests/bench-stpcpy_chk.c: New file.
58496         * benchtests/bench-strcpy_chk-ifunc.c: New file.
58497         * benchtests/bench-strcpy_chk.c: New file.
58498         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
58499         code.
58500         (do_test): Likewise.
58501
58502 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
58503
58504         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
58505         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
58506         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
58507         with tabs where appropriate.
58508         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
58509         dl-procinfo.h.
58510         [PPC_PLATFORM_PPC440]: Likewise.
58511         [PPC_PLATFORM_PPC464]: Likewise.
58512         [PPC_PLATFORM_PPC476]: Likewise.
58513         (_dl_string_platform): Add support for detecting ppc405, ppc440,
58514         ppc464, and ppc476 platform strings merging from ports/
58515         dl-procinfo.h.
58516
58517 2013-06-11  Andreas Schwab  <schwab@suse.de>
58518
58519         [BZ #14991]
58520         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
58521         (from_ucs4_idx): Regenerate.
58522         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
58523         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
58524         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
58525         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
58526         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
58527         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
58528         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
58529         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
58530         from FROM_LOOP and TO_LOOP specific macros.
58531         (BODY): Handle combining characters.
58532         * iconvdata/BIG5HKSCS.irreversible: Update.
58533         * iconvdata/BIG5HKSCS.precomposed: New file.
58534         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
58535         characters.
58536         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
58537
58538 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
58539
58540         * include/sys/time.h: Fix indentation and add copyright header.
58541
58542         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
58543         (do_test): Likewise.
58544         * string/test-memchr.c (do_one_test): Likewise.
58545         (do_test): Likewise.
58546         * string/test-memcmp.c (do_one_test): Likewise.
58547         (do_test): Likewise.
58548         * string/test-memcpy.c (do_one_test): Likewise.
58549         (do_test): Likewise.
58550         * string/test-memmem.c (do_one_test): Likewise.
58551         (do_test): Likewise.
58552         (do_random_tests): Likewise.
58553         * string/test-memmove.c (do_one_test): Likewise.
58554         (do_test): Likewise.
58555         * string/test-memset.c (do_one_test): Likewise.
58556         (do_test): Likewise.
58557         * string/test-rawmemchr.c (do_one_test): Likewise.
58558         (do_test): Likewise.
58559         * string/test-strcasecmp.c (do_one_test): Likewise.
58560         (do_test): Likewise.
58561         * string/test-strcasestr.c (do_one_test): Likewise.
58562         (do_test): Likewise.
58563         * string/test-strcat.c (do_one_test): Likewise.
58564         (do_test): Likewise.
58565         * string/test-strchr.c (do_one_test): Likewise.
58566         (do_test): Likewise.
58567         * string/test-strcmp.c (do_one_test): Likewise.
58568         (do_test): Likewise.
58569         * string/test-strcpy.c (do_one_test): Likewise.
58570         (do_test): Likewise.
58571         * string/test-string.h: Likewise.
58572         (test_init): Likewise.
58573         * string/test-strlen.c (do_one_test): Likewise.
58574         (do_test): Likewise.
58575         * string/test-strncasecmp.c (do_one_test): Likewise.
58576         (do_test): Likewise.
58577         * string/test-strncat.c (do_one_test): Likewise.
58578         (do_test): Likewise.
58579         * string/test-strncmp.c (do_one_test): Likewise.
58580         (do_test_limit): Likewise.
58581         (do_test): Likewise.
58582         * string/test-strncpy.c (do_one_test): Likewise.
58583         (do_test): Likewise.
58584         * string/test-strnlen.c (do_one_test): Likewise.
58585         (do_test): Likewise.
58586         * string/test-strpbrk.c (do_one_test): Likewise.
58587         (do_test): Likewise.
58588         * string/test-strrchr.c (do_one_test): Likewise.
58589         (do_test): Likewise.
58590         * string/test-strspn.c (do_one_test): Likewise.
58591         (do_test): Likewise.
58592         * string/test-strstr.c (do_one_test): Likewise.
58593         (do_test): Likewise.
58594
58595         * benchtests/Makefile (string-bench): Add string benchmarks.
58596         * benchtests/bench-bcopy-ifunc.c: New file.
58597         * benchtests/bench-bcopy.c: New file.
58598         * benchtests/bench-bzero-ifunc.c: New file.
58599         * benchtests/bench-bzero.c: New file.
58600         * benchtests/bench-memccpy-ifunc.c: New file.
58601         * benchtests/bench-memccpy.c: New file.
58602         * benchtests/bench-memchr-ifunc.c: New file.
58603         * benchtests/bench-memchr.c: New file.
58604         * benchtests/bench-memcmp-ifunc.c: New file.
58605         * benchtests/bench-memcmp.c: New file.
58606         * benchtests/bench-memmem-ifunc.c: New file.
58607         * benchtests/bench-memmem.c: New file.
58608         * benchtests/bench-memmove-ifunc.c: New file.
58609         * benchtests/bench-memmove.c: New file.
58610         * benchtests/bench-mempcpy-ifunc.c: New file.
58611         * benchtests/bench-mempcpy.c: New file.
58612         * benchtests/bench-memset-ifunc.c: New file.
58613         * benchtests/bench-memset.c: New file.
58614         * benchtests/bench-rawmemchr-ifunc.c: New file.
58615         * benchtests/bench-rawmemchr.c: New file.
58616         * benchtests/bench-stpcpy-ifunc.c: New file.
58617         * benchtests/bench-stpcpy.c: New file.
58618         * benchtests/bench-stpncpy-ifunc.c: New file.
58619         * benchtests/bench-stpncpy.c: New file.
58620         * benchtests/bench-strcasecmp-ifunc.c: New file.
58621         * benchtests/bench-strcasecmp.c: New file.
58622         * benchtests/bench-strcasestr-ifunc.c: New file.
58623         * benchtests/bench-strcasestr.c: New file.
58624         * benchtests/bench-strcat-ifunc.c: New file.
58625         * benchtests/bench-strcat.c: New file.
58626         * benchtests/bench-strchr-ifunc.c: New file.
58627         * benchtests/bench-strchr.c: New file.
58628         * benchtests/bench-strchrnul-ifunc.c: New file.
58629         * benchtests/bench-strchrnul.c: New file.
58630         * benchtests/bench-strcmp-ifunc.c: New file.
58631         * benchtests/bench-strcmp.c: New file.
58632         * benchtests/bench-strcpy-ifunc.c: New file.
58633         * benchtests/bench-strcpy.c: New file.
58634         * benchtests/bench-strcspn-ifunc.c: New file.
58635         * benchtests/bench-strcspn.c: New file.
58636         * benchtests/bench-strlen-ifunc.c: New file.
58637         * benchtests/bench-strlen.c: New file.
58638         * benchtests/bench-strncasecmp-ifunc.c: New file.
58639         * benchtests/bench-strncasecmp.c: New file.
58640         * benchtests/bench-strncat-ifunc.c: New file.
58641         * benchtests/bench-strncat.c: New file.
58642         * benchtests/bench-strncmp-ifunc.c: New file.
58643         * benchtests/bench-strncmp.c: New file.
58644         * benchtests/bench-strncpy-ifunc.c: New file.
58645         * benchtests/bench-strncpy.c: New file.
58646         * benchtests/bench-strnlen-ifunc.c: New file.
58647         * benchtests/bench-strnlen.c: New file.
58648         * benchtests/bench-strpbrk-ifunc.c: New file.
58649         * benchtests/bench-strpbrk.c: New file.
58650         * benchtests/bench-strrchr-ifunc.c: New file.
58651         * benchtests/bench-strrchr.c: New file.
58652         * benchtests/bench-strspn-ifunc.c: New file.
58653         * benchtests/bench-strspn.c: New file.
58654         * benchtests/bench-strstr-ifunc.c: New file.
58655         * benchtests/bench-strstr.c: New file.
58656
58657         * benchtests/Makefile: Disable parallel execution of targets.
58658         (string-bench): Add memcpy.
58659         (benchset): New variable to store a list of benchmark sets.
58660         (bench-func): Renamed from bench.
58661         (bench-set): New target.
58662         (bench): Depend on bench-func and bench-set.
58663         * benchtests/README: Add section on benchmark sets.
58664         * benchtests/bench-memcpy-ifunc.c: New file.
58665         * benchtests/bench-memcpy.c: New file.
58666         * benchtests/bench-string.h: New file.
58667
58668 2013-06-11  Andreas Schwab  <schwab@suse.de>
58669
58670         [BZ #15577]
58671         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
58672         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
58673         values in the triple.
58674         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
58675         terminator in the group key.
58676
58677 2013-06-11  Andreas Jaeger  <aj@suse.de>
58678
58679         * po/zh_TW.po: Update Chinese (traditional) translation from
58680         translation project.
58681
58682 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
58683
58684         * include/time.h (__clock_gettime): Add libc_hidden_proto.
58685         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
58686         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
58687         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
58688         (clock_getcpuclockid): Likewise.
58689         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
58690         Add weak_alias and libc_hidden_def.
58691         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
58692         * rt/clock_gettime.c (clock_gettime): Rename to
58693         __clock_gettime.  Add weak_alias and libc_hidden_def.
58694         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
58695         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
58696         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
58697         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
58698         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
58699         Likewise.
58700         * rt/clock_settime.c (clock_settime): Rename to
58701         __clock_settime.  Add weak_alias and libc_hidden_def.
58702         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
58703
58704 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
58705
58706         * mach/err_boot.sub: Remove trailing whitespace.
58707         * mach/err_ipc.sub: Likewise.
58708         * mach/err_mach.sub: Likewise.
58709
58710         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
58711         (ROUNDING_TESTS_double): Likewise.
58712         (ROUNDING_TESTS_long_double): Likewise.
58713         (ROUNDING_TESTS): Likewise.
58714         * math/libm-test.inc: Include <math-tests.h>.
58715         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
58716         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
58717         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
58718         (IF_ROUND_INIT_FE_UPWARD): Likewise.
58719
58720 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
58721
58722         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
58723         of assigning.
58724
58725 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
58726
58727         * sysdeps/gnu/errlist.awk: Do not generate space at end of
58728         otherwise empty TRANS lines.
58729         * sysdeps/gnu/errlist.c: Regenerated.
58730
58731         * catgets/gencat.c (error_print): Use (void) in function
58732         definition.
58733         * crypt/crypt_util.c (__init_des): Likewise.
58734         * crypt/speeds.c (Stop): Likewise.
58735         (main): Likewise.
58736         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
58737         * inet/ruserpass.c (token): Likewise.
58738         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
58739         * intl/localealias.c (extend_alias_table): Likewise.
58740         * intl/plural-exp.c (init_germanic_plural): Likewise.
58741         * libio/fcloseall.c (__fcloseall): Likewise.
58742         * libio/genops.c (_IO_flush_all): Likewise.
58743         (_IO_flush_all_linebuffered): Likewise.
58744         (_IO_cleanup): Likewise.
58745         (_IO_iter_begin): Likewise.
58746         (_IO_iter_end): Likewise.
58747         (_IO_list_lock): Likewise.
58748         (_IO_list_unlock): Likewise.
58749         (_IO_list_resetlock): Likewise.
58750         * libio/getchar.c (getchar): Likewise.
58751         * libio/getchar_u.c (getchar_unlocked): Likewise.
58752         * libio/getwchar.c (getwchar): Likewise.
58753         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
58754         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
58755         * login/getpt.c (__getpt): Likewise.
58756         * login/tst-utmp.c (main): Likewise.
58757         * malloc/hooks.c (__malloc_check_init): Likewise.
58758         * malloc/malloc.c (__malloc_stats): Likewise.
58759         * malloc/mtrace.c (tr_break): Likewise.
58760         (mtrace): Likewise.
58761         (muntrace): Likewise.
58762         * misc/fstab.c (endfsent): Likewise.
58763         * misc/getclktck.c (__getclktck): Likewise.
58764         * misc/getdtsz.c (__getdtablesize): Likewise.
58765         * misc/gethostid.c (gethostid): Likewise.
58766         * misc/getpagesize.c (__getpagesize): Likewise.
58767         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
58768         (__get_nprocs): Likewise.
58769         (__get_phys_pages): Likewise.
58770         (__get_avphys_pages): Likewise.
58771         * misc/getttyent.c (getttyent): Likewise.
58772         (setttyent): Likewise.
58773         (endttyent): Likewise.
58774         * misc/getusershell.c (getusershell): Likewise.
58775         (endusershell): Likewise.
58776         (setusershell): Likewise.
58777         (initshells): Likewise.
58778         * misc/hsearch.c (__hdestroy): Likewise.
58779         * misc/sync.c (sync): Likewise.
58780         * misc/syslog.c (closelog_internal): Likewise.
58781         (closelog): Likewise.
58782         * misc/ttyslot.c (ttyslot): Likewise.
58783         * misc/vhangup.c (vhangup): Likewise.
58784         * posix/fork.c (__fork): Likewise.
58785         * posix/getegid.c (__getegid): Likewise.
58786         * posix/geteuid.c (__geteuid): Likewise.
58787         * posix/getgid.c (__getgid): Likewise.
58788         * posix/getpid.c (__getpid): Likewise.
58789         * posix/getppid.c (__getppid): Likewise.
58790         * posix/getuid.c (__getuid): Likewise.
58791         * posix/pause.c (pause): Likewise.
58792         * posix/setpgrp.c (setpgrp): Likewise.
58793         * posix/setsid.c (__setsid): Likewise.
58794         * posix/test-vfork.c (noop): Likewise.
58795         * resolv/gethnamaddr.c (_endhtent): Likewise.
58796         (_gethtent): Likewise.
58797         (ht_endhostent): Likewise.
58798         (gethostent): Likewise.
58799         (dns_service): Likewise.
58800         * stdlib/drand48.c (drand48): Likewise.
58801         * stdlib/lrand48.c (lrand48): Likewise.
58802         * stdlib/mrand48.c (mrand48): Likewise.
58803         * stdlib/rand.c (rand): Likewise.
58804         * stdlib/random.c (__random): Likewise.
58805         * stdlib/setenv.c (clearenv): Likewise.
58806         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
58807         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
58808         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
58809         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
58810         (__get_nprocs): Likewise.
58811         (__get_phys_pages): Likewise.
58812         (__get_avphys_pages): Likewise.
58813         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
58814         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
58815         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
58816         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
58817         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
58818         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
58819         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
58820         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
58821         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
58822         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
58823         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
58824         * sysdeps/mach/hurd/sync.c (sync): Likewise.
58825         * sysdeps/posix/clock.c (clock): Likewise.
58826         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
58827         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
58828         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
58829         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
58830         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
58831         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
58832         (__get_nprocs_conf): Likewise.
58833         (__get_phys_pages): Likewise.
58834         (__get_avphys_pages): Likewise.
58835         * time/clock.c (clock): Likewise.
58836         * time/tzset.c (__tzname_max): Likewise.
58837
58838 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
58839
58840         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
58841         (__bswap_32): Do not use "register".
58842         * crypt/crypt.c (_ufc_doit_r): Likewise.
58843         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
58844         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
58845         * gmon/gmon.c (__monstartup): Likewise.
58846         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
58847         * hurd/hurdmalloc.c (more_memory): Likewise.
58848         (malloc): Likewise.
58849         (free): Likewise.
58850         (realloc): Likewise.
58851         (malloc_fork_prepare): Likewise.
58852         (malloc_fork_parent): Likewise.
58853         (malloc_fork_child): Likewise.
58854         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
58855         (_svcauth_des): Likewise.
58856         * inet/inet_lnaof.c (inet_lnaof): Likewise.
58857         * inet/inet_net.c (inet_network): Likewise.
58858         * inet/inet_netof.c (inet_netof): Likewise.
58859         * inet/rcmd.c (__validuser2_sa): Likewise.
58860         * io/fts.c (fts_open): Likewise.
58861         (fts_load): Likewise.
58862         (fts_close): Likewise.
58863         (fts_read): Likewise.
58864         (fts_children): Likewise.
58865         (fts_build): Likewise.
58866         (fts_stat): Likewise.
58867         (fts_sort): Likewise.
58868         (fts_alloc): Likewise.
58869         (fts_lfree): Likewise.
58870         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
58871         (_IO_file_xsgetn): Likewise.
58872         (_IO_file_xsgetn_mmap): Likewise.
58873         * libio/iofopncook.c (_IO_cookie_read): Likewise.
58874         (_IO_cookie_write): Likewise.
58875         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
58876         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
58877         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
58878         * malloc/obstack.c (_obstack_begin): Likewise.
58879         (_obstack_begin_1): Likewise.
58880         (_obstack_newchunk): Likewise.
58881         (_obstack_allocated_p): Likewise.
58882         (obstack_free): Likewise.
58883         (_obstack_memory_used): Likewise.
58884         * misc/getttyent.c (getttynam): Likewise.
58885         (getttyent): Likewise.
58886         (skip): Likewise.
58887         (value): Likewise.
58888         * misc/getusershell.c (initshells): Likewise.
58889         * misc/syslog.c (__vsyslog_chk): Likewise.
58890         * misc/ttyslot.c (ttyslot): Likewise.
58891         * nis/nis_hash.c (__nis_hash): Likewise.
58892         * posix/fnmatch_loop.c (FCT): Likewise.
58893         * posix/getconf.c (print_all): Likewise.
58894         (main): Likewise.
58895         * posix/getopt.c (exchange): Likewise.
58896         * posix/glob.c (globfree): Likewise.
58897         (prefix_array): Likewise.
58898         (__glob_pattern_type): Likewise.
58899         * resolv/arpa/nameser.h (NS_GET16): Likewise.
58900         (NS_GET32): Likewise.
58901         (NS_PUT16): Likewise.
58902         (NS_PUT32): Likewise.
58903         * resolv/gethnamaddr.c (getanswer): Likewise.
58904         (gethostbyname2): Likewise.
58905         (gethostbyaddr): Likewise.
58906         (_gethtent): Likewise.
58907         (_gethtbyname2): Likewise.
58908         (_gethtbyaddr): Likewise.
58909         * resolv/ns_print.c (dst_s_get_int16): Likewise.
58910         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
58911         * resolv/res_init.c (__res_vinit): Likewise.
58912         (net_mask): Likewise.
58913         * resolv/res_mkquery.c (outchar): Likewise.
58914         (PRINT): Likewise.
58915         * stdio-common/printf_fp.c (outchar): Likewise.
58916         (PRINT): Likewise.
58917         * stdio-common/printf_fphex.c (outchar): Likewise.
58918         (PRINT): Likewise.
58919         * stdio-common/printf_size.c (outchar): Likewise.
58920         (PRINT): Likewise.
58921         * stdio-common/test_rdwr.c (main): Likewise.
58922         * stdio-common/tfformat.c (matches): Likewise.
58923         * stdio-common/vfprintf.c (outchar): Likewise.
58924         (printf_unknown): Likewise.
58925         (buffered_vfprintf): Likewise.
58926         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
58927         * stdio-common/xbug.c (AppendToBuffer): Likewise.
58928         (ReadFile): Likewise.
58929         * stdlib/qsort.c (SWAP): Likewise.
58930         (_quicksort): Likewise.
58931         * stdlib/setenv.c (__add_to_environ): Likewise.
58932         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
58933         * stdlib/strtol_l.c (__strtol_l): Likewise.
58934         * stdlib/tst-strtod.c (main): Likewise.
58935         * stdlib/tst-strtol.c (main): Likewise.
58936         * stdlib/tst-strtoll.c (main): Likewise.
58937         * string/bits/string2.h (__strcmp_cc): Likewise.
58938         (__strcmp_cg): Likewise.
58939         (__strcspn_c1): Likewise.
58940         (__strcspn_c2): Likewise.
58941         (__strcspn_c3): Likewise.
58942         (__strspn_c1): Likewise.
58943         (__strspn_c2): Likewise.
58944         (__strspn_c3): Likewise.
58945         (__strsep_1c): Likewise.
58946         (__strsep_2c): Likewise.
58947         (__strsep_3c): Likewise.
58948         * string/memccpy.c (__memccpy): Likewise.
58949         * string/stpcpy.c (__stpcpy): Likewise.
58950         * string/strcmp.c (strcmp): Likewise.
58951         * string/strrchr.c (strrchr): Likewise.
58952         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
58953         Likewise.
58954         * sysdeps/mach/hurd/getcwd.c
58955         (_hurd_canonicalize_directory_name_internal): Likewise.
58956         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
58957         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
58958         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
58959         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
58960         Likewise, in both definitions.
58961         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
58962         definitions.
58963         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
58964         64] (__bswap_64): Likewise.
58965         * time/test_time.c (main): Likewise.
58966         * time/tzfile.c (__tzfile_read): Likewise.
58967         (__tzfile_compute): Likewise.
58968         * time/tzset.c (__tzset_parse_tz): Likewise.
58969         (tzset_internal): Likewise.
58970         (compute_change): Likewise.
58971         * wcsmbs/wcscat.c (__wcscat): Likewise.
58972         * wcsmbs/wcschr.c (wcschr): Likewise.
58973         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
58974         * wcsmbs/wcscspn.c (wcscspn): Likewise.
58975         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
58976         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
58977         * wcsmbs/wcsspn.c (wcsspn): Likewise.
58978         * wcsmbs/wcsstr.c (wcsstr): Likewise.
58979         * wcsmbs/wmemchr.c (wmemchr): Likewise.
58980         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
58981         * wcsmbs/wmemset.c (wmemset): Likewise.
58982
58983 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
58984
58985         * scripts/config.guess: Update to version 2013-05-16.
58986         * scripts/config.sub: Update to version 2013-04-24.
58987         * scripts/install-sh: Update to version 2011-11-20.07.
58988         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
58989         * scripts/move-if-change: Update to version 2012-01-06 07:23.
58990
58991 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
58992
58993         * debug/fgetws_u_chk.c: Fix leading whitespaces.
58994         * elf/sln.c: Likewise.
58995         * hurd/hurd/ioctl.h: Likewise.
58996         * hurd/hurdmalloc.c: Likewise.
58997         * hurd/xattr.c: Likewise.
58998         * include/shlib-compat.h: Likewise.
58999         * inet/ruserpass.c: Likewise.
59000         * libio/iofgets_u.c: Likewise.
59001         * libio/iofgetws_u.c: Likewise.
59002         * locale/programs/ld-identification.c: Likewise.
59003         * locale/programs/ld-time.c: Likewise.
59004         * mach/msg-destroy.c: Likewise.
59005         * nss/nss_files/files-netgrp.c: Likewise.
59006         * resolv/res_data.c: Likewise.
59007         * soft-fp/op-1.h: Likewise.
59008         * soft-fp/op-2.h: Likewise.
59009         * soft-fp/op-4.h: Likewise.
59010         * soft-fp/op-common.h: Likewise.
59011         * stdio-common/printf_fphex.c: Likewise.
59012         * stdlib/strtod_l.c: Likewise.
59013         * sunrpc/rpc/clnt.h: Likewise.
59014         * sysdeps/generic/framestate.c: Likewise.
59015         * sysdeps/i386/bsd-_setjmp.S: Likewise.
59016         * sysdeps/i386/bsd-setjmp.S: Likewise.
59017         * sysdeps/i386/__longjmp.S: Likewise.
59018         * sysdeps/i386/setjmp.S: Likewise.
59019         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
59020         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
59021         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
59022         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
59023         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
59024         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
59025         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
59026         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
59027         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
59028         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
59029         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
59030         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
59031         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
59032         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
59033         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
59034         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
59035         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
59036         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
59037         * sysdeps/ieee754/support.c: Likewise.
59038         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
59039         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
59040         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
59041         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
59042         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
59043         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
59044         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
59045         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
59046         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
59047         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
59048         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
59049         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
59050         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
59051         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
59052         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
59053         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
59054         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
59055         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
59056
59057 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
59058
59059         * posix/transbug.c: Remove executable mode.
59060
59061 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
59062
59063         * crypt/speeds.c: Remove trailing whitespace.
59064         * dlfcn/default.c: Likewise.
59065         * elf/ifuncdep2.c: Likewise.
59066         * elf/ifuncmain1.c: Likewise.
59067         * elf/ifuncmain1vis.c: Likewise.
59068         * elf/testobj.h: Likewise.
59069         * elf/tst-stackguard1.c: Likewise.
59070         * gmon/sys/gmon.h: Likewise.
59071         * hurd/hurdmsg.c: Likewise.
59072         * hurd/new-fd.c: Likewise.
59073         * hurd/ports-get.c: Likewise.
59074         * iconvdata/ibm1008_420.c: Likewise.
59075         * inet/tst-getni1.c: Likewise.
59076         * inet/tst-getni2.c: Likewise.
59077         * libio/ioungetc.c: Likewise.
59078         * libio/wfiledoalloc.c: Likewise.
59079         * manual/libm-err-tab.pl: Likewise.
59080         * math/w_dremf.c: Likewise.
59081         * misc/ftruncate.c: Likewise.
59082         * posix/bug-glob2.c: Likewise.
59083         * posix/tst-pcre.c: Likewise.
59084         * posix/wait4.c: Likewise.
59085         * resolv/README: Likewise.
59086         * resolv/res_debug.h: Likewise.
59087         * resolv/tst-inet_ntop.c: Likewise.
59088         * setjmp/bug269-setjmp.c: Likewise.
59089         * soft-fp/extended.h: Likewise.
59090         * soft-fp/op-1.h: Likewise.
59091         * soft-fp/op-2.h: Likewise.
59092         * soft-fp/op-4.h: Likewise.
59093         * soft-fp/op-8.h: Likewise.
59094         * soft-fp/testit.c: Likewise.
59095         * stdio-common/bug16.c: Likewise.
59096         * stdlib/random.c: Likewise.
59097         * sunrpc/rpcsvc/rquota.x: Likewise.
59098         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
59099         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
59100         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
59101         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
59102         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
59103         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
59104         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
59105         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
59106         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
59107         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
59108         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
59109         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
59110         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
59111         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
59112         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
59113         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
59114         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
59115         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
59116         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
59117         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
59118         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
59119         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
59120         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
59121         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
59122         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
59123         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
59124         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
59125         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
59126         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
59127         * sysdeps/ieee754/s_lib_version.c: Likewise.
59128         * sysdeps/mach/hurd/check_fds.c: Likewise.
59129         * sysdeps/mach/hurd/getsockname.c: Likewise.
59130         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
59131         * sysdeps/mach/hurd/recvfrom.c: Likewise.
59132         * sysdeps/powerpc/bits/link.h: Likewise.
59133         * sysdeps/powerpc/dl-procinfo.c: Likewise.
59134         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
59135         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
59136         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
59137         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
59138         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
59139         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
59140         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
59141         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
59142         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
59143         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
59144         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
59145         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
59146         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
59147         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
59148         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
59149         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
59150         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
59151         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
59152         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
59153         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
59154         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
59155         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
59156         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
59157         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
59158         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
59159         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
59160         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
59161         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
59162         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
59163         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
59164         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
59165         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
59166         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
59167         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
59168         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
59169         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
59170         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
59171         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
59172         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
59173         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
59174         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
59175         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
59176         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
59177         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
59178         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
59179         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
59180         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
59181         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
59182         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
59183         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
59184         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
59185         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
59186         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
59187         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
59188         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
59189         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
59190         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
59191         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
59192         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
59193         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
59194         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
59195         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
59196         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
59197         * sysdeps/powerpc/sysdep.h: Likewise.
59198         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
59199         * sysdeps/s390/s390-64/sub_n.S: Likewise.
59200         * sysdeps/sh/dl-trampoline.S: Likewise.
59201         * sysdeps/sh/memset.S: Likewise.
59202         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
59203         * sysdeps/sh/strlen.S: Likewise.
59204         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
59205         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
59206         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
59207         * sysdeps/sparc/sparc32/rem.S: Likewise.
59208         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
59209         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
59210         * sysdeps/sparc/sparc32/strchr.S: Likewise.
59211         * sysdeps/sparc/sparc32/udiv.S: Likewise.
59212         * sysdeps/sparc/sparc32/urem.S: Likewise.
59213         * sysdeps/sparc/sparc64/add_n.S: Likewise.
59214         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
59215         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
59216         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
59217         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
59218         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
59219         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
59220         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
59221         * sysdeps/unix/bsd/times.c: Likewise.
59222         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
59223         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
59224         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
59225         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
59226         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
59227         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
59228         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
59229         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
59230         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
59231         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
59232         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
59233         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
59234         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
59235         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
59236         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
59237         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
59238         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
59239         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
59240         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
59241         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
59242         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
59243         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
59244         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
59245         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
59246         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
59247         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
59248         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
59249         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
59250         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
59251         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
59252         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
59253         * sysdeps/x86_64/strcspn.S: Likewise.
59254
59255 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
59256
59257         * locale/C-translit.h: Revert #include <stdint.h> because this is a
59258         generated file.  Regenerate properly from gen-translit.pl.
59259         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
59260         locale/C-translit.h.
59261
59262 2013-06-05  Andreas Schwab  <schwab@suse.de>
59263
59264         [BZ #15100]
59265         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
59266         week as 6 instead of -1.
59267         * time/tst-strptime.c (day_tests): Add test case.
59268
59269 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
59270
59271         * sysdeps/generic/math_private.h
59272         (libc_feholdexcept_setround_53bit): Replace with
59273         libc_feholdsetround_53bit.
59274         (libc_feupdateenv_53bit): Replace with
59275         libc_feresetround_53bit.
59276         (SET_RESTORE_ROUND_53BIT): Adjust.
59277
59278 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
59279
59280         * string/test-strchrnul.c: Add copyright header.
59281
59282         * posix/tst-getaddrinfo4.c: Increase test timeout.
59283
59284 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
59285
59286         [BZ #15536]
59287         * math/libm-test.inc (MAX_EXP): Remove
59288         (MIN_EXP): Define.
59289         (ulp): Use MIN_EXP - MANT_DIG.
59290         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
59291
59292 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
59293
59294         * po/be.po: Revert last change.
59295         * po/zh_CN.po: Likewise.
59296         * po/header.pot: Likewise.
59297
59298 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
59299
59300         * Makefile ($(common-objpfx)linkobj/libc.so): Define
59301         link-libc-deps to empty as target-specific variable.
59302         * Makerules (link-libc-args): New variable.
59303         (libc-for-link): Likewise.
59304         (link-libc-deps): Likewise.
59305         (lib%.so): Depend on $(link-libc-deps).  Link with
59306         $(link-libc-args).
59307         (build-module): Link with $(link-libc-args).
59308         (build-module-asneeded): Likewise.
59309         (build-module-helper-objlist): Filter out $(link-libc-deps) from
59310         list of objects.
59311         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
59312         target-specific variable.
59313         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
59314         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
59315         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
59316         libc.
59317         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
59318         libc and ld.so.
59319         ($(objpfx)libpcprofile.so): Likewise.
59320         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
59321         libc_nonshared.a.
59322         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
59323         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
59324         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
59325         $(link-libc-deps).
59326         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
59327         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
59328         * login/Makefile ($(objpfx)libutil.so): Likewise.
59329         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
59330         * math/Makefile ($(objpfx)libm.so): Likewise.
59331         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
59332         $(objpfx)libnsl.so): Define libc-for-link as target-specific
59333         variable instead of depending directly on libc.
59334         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
59335         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
59336         $(link-libc-deps).
59337         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
59338         libc.
59339         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
59340         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
59341         ($(objpfx)libanl.so): Likewise.
59342         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
59343         ld.so.
59344         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
59345         $(link-libc-deps).
59346         * sysdeps/i386/fpu/Makefile: Remove file.
59347         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
59348         ($(objpfx)libm.so): Remove dependency on ld.so.
59349
59350 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
59351
59352         [BZ # 15553]
59353         * nis/yp_xdr.c (XDRMAXNAME): Define.
59354         (XDRMAXRECORD): Define.
59355         (xdr_domainname): Use XDRMAXNAME.
59356         (xdr_mapname): Likewise.
59357         (xdr_peername): Likewise.
59358         (xdr_keydat): Use XDRMAXRECORD.
59359         (xdr_valdat): Likewise.
59360
59361 2013-05-30  Jeff Law  <law@redhat.com>
59362
59363         [BZ #14256]
59364         * manual/errno.texi (ESTALE): Update to account for more than
59365         just NFS file systems.
59366         * sysdeps/gnu/errlist.c: Regenerated.
59367
59368 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
59369
59370         [BZ #15465]
59371         * elf/Makefile (tests): Add tst-null-argv.
59372         (modules-names):  Add tst-null-argv-lib.
59373         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
59374         (tst-null-argv-ENV): Set environment for tst-null-argv.
59375         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
59376         (RTLD_PROGNAME): New macro.
59377         * elf/tst-null-argv.c: New test case.
59378         * elf/tst-null-argv-lib.c: Library for test case.
59379         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
59380         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
59381         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
59382         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
59383         * elf/dl-init.c (call_init): Likewise.
59384         (_dl_init): Likewise.
59385         * elf/dl-load.c (print_search_path): Likewise.
59386         (_dl_map_object): Likewise.
59387         * elf/dl-lookup.c (do_lookup_x): Likewise.
59388         (add_dependency): Likewise.
59389         (_dl_lookup_symbol_x): Likewise.
59390         (_dl_debug_bindings): Likewise.
59391         * elf/dl-open.c (_dl_show_scope): Likewise.
59392         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
59393         * elf/dl-version.c (match_symbol): Likewise.
59394         (_dl_check_map_versions): Likewise.
59395         * elf/rtld.c (dl_main): Likewise.
59396         (print_unresolved): Use RTLD_PROGNAME.
59397         (print_missing_version): Likewise.
59398         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
59399         (elf_machine_rela): Likewise.
59400         * sysdeps/powerpc/powerpc32/dl-machine.c
59401         (__process_machine_rela): Likewise.
59402         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
59403         Likewise.
59404         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
59405         Likewise.
59406         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
59407         Likewise.
59408         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
59409         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
59410         Likewise.
59411         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
59412         Likewise.
59413         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
59414
59415 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
59416
59417         * po/be.po: Add descriptive title.
59418         * po/zh_CN.po: Likewise.
59419         * po/header.pot: Likewise.
59420
59421 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
59422
59423         * locale/programs/locarchive.c (create_archive): Inlucde fname in
59424         error message.
59425         (enlarge_archive): Likewise.
59426
59427 2013-05-28  Ben North  <ben@redfrontdoor.org>
59428
59429         * manual/arith.texi (frexp): It is the magnitude of the return
59430         value which lies in [0.5, 1), not the return value itself.
59431
59432 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
59433
59434         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
59435
59436 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
59437
59438         * stdio-common/bug26.c (main): Correct fscanf template.
59439
59440         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
59441         declare _dl_skip_args.
59442
59443         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
59444         Don't declare.
59445
59446         * manual/platform.texi: Add missing @end deftypefun.
59447
59448 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
59449
59450         [BZ #15529]
59451         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
59452         bit of mantissa of 2^16382.
59453         * math/libm-test.inc (hypot_test_data): Add more tests.
59454
59455         * math/libm-test.inc: Add drem and pow10 to list of tested
59456         functions.
59457         (pow10_test): New function.
59458         (drem_test): Likewise.
59459         (drem_test_tonearest): Likewise.
59460         (drem_test_towardzero): Likewise.
59461         (drem_test_downward): Likewise.
59462         (drem_test_upward): Likewise.
59463         (main): Call the new functions.
59464
59465         * math/libm-test.inc (finite_test_data): Remove.
59466         (finite_test): Run tests from isfinite_test_data.
59467         (gamma_test_data): Remove.
59468         (gamma_test): Run tests from lgamma_test_data.
59469         * sysdeps/i386/fpu/libm-test-ulps: Update.
59470         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59471
59472 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
59473
59474         * manual/platform.texi: Add PowerPC PPR function set documentation.
59475         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
59476         implementation.
59477
59478 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
59479
59480         * math/libm-test.inc (MAX_EXP): Define.
59481         (ULPDIFF): Define.
59482         (ulp): New function.
59483         (check_float_internal): Use ULPDIFF.
59484         (cpow_test): Disable failing test.
59485         (check_ulp): Test ulp() implementation.
59486         (main): Call check_ulp before starting tests.
59487
59488 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
59489
59490         * math/gen-libm-test.pl (generate_testfile): Do not handle
59491         START_DATA and END_DATA.
59492         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
59493         END_DATA.
59494         (acos_tonearest_test_data): Likewise.
59495         (acos_towardzero_test_data): Likewise.
59496         (acos_downward_test_data): Likewise.
59497         (acos_upward_test_data): Likewise.
59498         (acosh_test_data): Likewise.
59499         (asin_test_data): Likewise.
59500         (asin_tonearest_test_data): Likewise.
59501         (asin_towardzero_test_data): Likewise.
59502         (asin_downward_test_data): Likewise.
59503         (asin_upward_test_data): Likewise.
59504         (asinh_test_data): Likewise.
59505         (atan_test_data): Likewise.
59506         (atanh_test_data): Likewise.
59507         (atan2_test_data): Likewise.
59508         (cabs_test_data): Likewise.
59509         (cacos_test_data): Likewise.
59510         (cacosh_test_data): Likewise.
59511         (carg_test_data): Likewise.
59512         (casin_test_data): Likewise.
59513         (casinh_test_data): Likewise.
59514         (catan_test_data): Likewise.
59515         (catanh_test_data): Likewise.
59516         (cbrt_test_data): Likewise.
59517         (ccos_test_data): Likewise.
59518         (ccosh_test_data): Likewise.
59519         (ceil_test_data): Likewise.
59520         (cexp_test_data): Likewise.
59521         (cimag_test_data): Likewise.
59522         (clog_test_data): Likewise.
59523         (clog10_test_data): Likewise.
59524         (conj_test_data): Likewise.
59525         (copysign_test_data): Likewise.
59526         (cos_test_data): Likewise.
59527         (cos_tonearest_test_data): Likewise.
59528         (cos_towardzero_test_data): Likewise.
59529         (cos_downward_test_data): Likewise.
59530         (cos_upward_test_data): Likewise.
59531         (cosh_test_data): Likewise.
59532         (cosh_tonearest_test_data): Likewise.
59533         (cosh_towardzero_test_data): Likewise.
59534         (cosh_downward_test_data): Likewise.
59535         (cosh_upward_test_data): Likewise.
59536         (cpow_test_data): Likewise.
59537         (cproj_test_data): Likewise.
59538         (creal_test_data): Likewise.
59539         (csin_test_data): Likewise.
59540         (csinh_test_data): Likewise.
59541         (csqrt_test_data): Likewise.
59542         (ctan_test_data): Likewise.
59543         (ctan_tonearest_test_data): Likewise.
59544         (ctan_towardzero_test_data): Likewise.
59545         (ctan_downward_test_data): Likewise.
59546         (ctan_upward_test_data): Likewise.
59547         (ctanh_test_data): Likewise.
59548         (ctanh_tonearest_test_data): Likewise.
59549         (ctanh_towardzero_test_data): Likewise.
59550         (ctanh_downward_test_data): Likewise.
59551         (ctanh_upward_test_data): Likewise.
59552         (erf_test_data): Likewise.
59553         (erfc_test_data): Likewise.
59554         (exp_test_data): Likewise.
59555         (exp_tonearest_test_data): Likewise.
59556         (exp_towardzero_test_data): Likewise.
59557         (exp_downward_test_data): Likewise.
59558         (exp_upward_test_data): Likewise.
59559         (exp10_test_data): Likewise.
59560         (exp2_test_data): Likewise.
59561         (expm1_test_data): Likewise.
59562         (fabs_test_data): Likewise.
59563         (fdim_test_data): Likewise.
59564         (finite_test_data): Likewise.
59565         (floor_test_data): Likewise.
59566         (fma_test_data): Likewise.
59567         (fma_towardzero_test_data): Likewise.
59568         (fma_downward_test_data): Likewise.
59569         (fma_upward_test_data): Likewise.
59570         (fmax_test_data): Likewise.
59571         (fmin_test_data): Likewise.
59572         (fmod_test_data): Likewise.
59573         (fpclassify_test_data): Likewise.
59574         (frexp_test_data): Likewise.
59575         (gamma_test_data): Likewise.
59576         (hypot_test_data): Likewise.
59577         (ilogb_test_data): Likewise.
59578         (isfinite_test_data): Likewise.
59579         (isgreater_test_data): Likewise.
59580         (isgreaterequal_test_data): Likewise.
59581         (isinf_test_data): Likewise.
59582         (isless_test_data): Likewise.
59583         (islessequal_test_data): Likewise.
59584         (islessgreater_test_data): Likewise.
59585         (isnan_test_data): Likewise.
59586         (isnormal_test_data): Likewise.
59587         (issignaling_test_data): Likewise.
59588         (isunordered_test_data): Likewise.
59589         (j0_test_data): Likewise.
59590         (j1_test_data): Likewise.
59591         (jn_test_data): Likewise.
59592         (ldexp_test_data): Likewise.
59593         (lgamma_test_data): Likewise.
59594         (lrint_test_data): Likewise.
59595         (lrint_tonearest_test_data): Likewise.
59596         (lrint_towardzero_test_data): Likewise.
59597         (lrint_downward_test_data): Likewise.
59598         (lrint_upward_test_data): Likewise.
59599         (llrint_test_data): Likewise.
59600         (llrint_tonearest_test_data): Likewise.
59601         (llrint_towardzero_test_data): Likewise.
59602         (llrint_downward_test_data): Likewise.
59603         (llrint_upward_test_data): Likewise.
59604         (log_test_data): Likewise.
59605         (log10_test_data): Likewise.
59606         (log1p_test_data): Likewise.
59607         (log2_test_data): Likewise.
59608         (logb_test_data): Likewise.
59609         (logb_downward_test_data): Likewise.
59610         (lround_test_data): Likewise.
59611         (llround_test_data): Likewise.
59612         (modf_test_data): Likewise.
59613         (nearbyint_test_data): Likewise.
59614         (nextafter_test_data): Likewise.
59615         (nexttoward_test_data): Likewise.
59616         (pow_test_data): Likewise.
59617         (pow_tonearest_test_data): Likewise.
59618         (pow_towardzero_test_data): Likewise.
59619         (pow_downward_test_data): Likewise.
59620         (pow_upward_test_data): Likewise.
59621         (remainder_test_data): Likewise.
59622         (remainder_tonearest_test_data): Likewise.
59623         (remainder_towardzero_test_data): Likewise.
59624         (remainder_downward_test_data): Likewise.
59625         (remainder_upward_test_data): Likewise.
59626         (remquo_test_data): Likewise.
59627         (rint_test_data): Likewise.
59628         (rint_tonearest_test_data): Likewise.
59629         (rint_towardzero_test_data): Likewise.
59630         (rint_downward_test_data): Likewise.
59631         (rint_upward_test_data): Likewise.
59632         (round_test_data): Likewise.
59633         (scalb_test_data): Likewise.
59634         (scalbn_test_data): Likewise.
59635         (scalbln_test_data): Likewise.
59636         (signbit_test_data): Likewise.
59637         (sin_test_data): Likewise.
59638         (sin_tonearest_test_data): Likewise.
59639         (sin_towardzero_test_data): Likewise.
59640         (sin_downward_test_data): Likewise.
59641         (sin_upward_test_data): Likewise.
59642         (sincos_test_data): Likewise.
59643         (sinh_test_data): Likewise.
59644         (sinh_tonearest_test_data): Likewise.
59645         (sinh_towardzero_test_data): Likewise.
59646         (sinh_downward_test_data): Likewise.
59647         (sinh_upward_test_data): Likewise.
59648         (sqrt_test_data): Likewise.
59649         (tan_test_data): Likewise.
59650         (tan_tonearest_test_data): Likewise.
59651         (tan_towardzero_test_data): Likewise.
59652         (tan_downward_test_data): Likewise.
59653         (tan_upward_test_data): Likewise.
59654         (tanh_test_data): Likewise.
59655         (tgamma_test_data): Likewise.
59656         (trunc_test_data): Likewise.
59657         (y0_test_data): Likewise.
59658         (y1_test_data): Likewise.
59659         (yn_test_data): Likewise.
59660         (significand_test_data): Likewise.
59661
59662         * math/gen-libm-test.pl (@functions): Remove variable.
59663         (generate_testfile): Don't handle START and END lines.
59664         * math/libm-test.inc (START): New macro.
59665         (END): Likewise.
59666         (END_COMPLEX): Likewise.
59667         (acos_test): Use END macro without arguments.
59668         (acos_test_tonearest): Likewise.
59669         (acos_test_towardzero): Likewise.
59670         (acos_test_downward): Likewise.
59671         (acos_test_upward): Likewise.
59672         (acosh_test): Likewise.
59673         (asin_test): Likewise.
59674         (asin_test_tonearest): Likewise.
59675         (asin_test_towardzero): Likewise.
59676         (asin_test_downward): Likewise.
59677         (asin_test_upward): Likewise.
59678         (asinh_test): Likewise.
59679         (atan_test): Likewise.
59680         (atanh_test): Likewise.
59681         (atan2_test): Likewise.
59682         (cabs_test): Likewise.
59683         (cacos_test): Use END_COMPLEX macro without arguments.
59684         (cacosh_test): Likewise.
59685         (carg_test): Use END macro without arguments.
59686         (casin_test): Use END_COMPLEX macro without arguments.
59687         (casinh_test): Likewise.
59688         (catan_test): Likewise.
59689         (catanh_test): Likewise.
59690         (cbrt_test): Use END macro without arguments.
59691         (ccos_test): Use END_COMPLEX macro without arguments.
59692         (ccosh_test): Likewise.
59693         (ceil_test): Use END macro without arguments.
59694         (cexp_test): Use END_COMPLEX macro without arguments.
59695         (cimag_test): Use END macro without arguments.
59696         (clog_test): Use END_COMPLEX macro without arguments.
59697         (clog10_test): Likewise.
59698         (conj_test): Likewise.
59699         (copysign_test): Use END macro without arguments.
59700         (cos_test): Likewise.
59701         (cos_test_tonearest): Likewise.
59702         (cos_test_towardzero): Likewise.
59703         (cos_test_downward): Likewise.
59704         (cos_test_upward): Likewise.
59705         (cosh_test): Likewise.
59706         (cosh_test_tonearest): Likewise.
59707         (cosh_test_towardzero): Likewise.
59708         (cosh_test_downward): Likewise.
59709         (cosh_test_upward): Likewise.
59710         (cpow_test): Use END_COMPLEX macro without arguments.
59711         (cproj_test): Likewise.
59712         (creal_test): Use END macro without arguments.
59713         (csin_test): Use END_COMPLEX macro without arguments.
59714         (csinh_test): Likewise.
59715         (csqrt_test): Likewise.
59716         (ctan_test): Likewise.
59717         (ctan_test_tonearest): Likewise.
59718         (ctan_test_towardzero): Likewise.
59719         (ctan_test_downward): Likewise.
59720         (ctan_test_upward): Likewise.
59721         (ctanh_test): Likewise.
59722         (ctanh_test_tonearest): Likewise.
59723         (ctanh_test_towardzero): Likewise.
59724         (ctanh_test_downward): Likewise.
59725         (ctanh_test_upward): Likewise.
59726         (erf_test): Use END macro without arguments.
59727         (erfc_test): Likewise.
59728         (exp_test): Likewise.
59729         (exp_test_tonearest): Likewise.
59730         (exp_test_towardzero): Likewise.
59731         (exp_test_downward): Likewise.
59732         (exp_test_upward): Likewise.
59733         (exp10_test): Likewise.
59734         (exp2_test): Likewise.
59735         (expm1_test): Likewise.
59736         (fabs_test): Likewise.
59737         (fdim_test): Likewise.
59738         (finite_test): Likewise.
59739         (floor_test): Likewise.
59740         (fma_test): Likewise.
59741         (fma_test_towardzero): Likewise.
59742         (fma_test_downward): Likewise.
59743         (fma_test_upward): Likewise.
59744         (fmax_test): Likewise.
59745         (fmin_test): Likewise.
59746         (fmod_test): Likewise.
59747         (fpclassify_test): Likewise.
59748         (frexp_test): Likewise.
59749         (gamma_test): Likewise.
59750         (hypot_test): Likewise.
59751         (ilogb_test): Likewise.
59752         (isfinite_test): Likewise.
59753         (isgreater_test): Likewise.
59754         (isgreaterequal_test): Likewise.
59755         (isinf_test): Likewise.
59756         (isless_test): Likewise.
59757         (islessequal_test): Likewise.
59758         (islessgreater_test): Likewise.
59759         (isnan_test): Likewise.
59760         (isnormal_test): Likewise.
59761         (issignaling_test): Likewise.
59762         (isunordered_test): Likewise.
59763         (j0_test): Likewise.
59764         (j1_test): Likewise.
59765         (jn_test): Likewise.
59766         (ldexp_test): Likewise.
59767         (lgamma_test): Likewise.
59768         (lrint_test): Likewise.
59769         (lrint_test_tonearest): Likewise.
59770         (lrint_test_towardzero): Likewise.
59771         (lrint_test_downward): Likewise.
59772         (lrint_test_upward): Likewise.
59773         (llrint_test): Likewise.
59774         (llrint_test_tonearest): Likewise.
59775         (llrint_test_towardzero): Likewise.
59776         (llrint_test_downward): Likewise.
59777         (llrint_test_upward): Likewise.
59778         (log_test): Likewise.
59779         (log10_test): Likewise.
59780         (log1p_test): Likewise.
59781         (log2_test): Likewise.
59782         (logb_test): Likewise.
59783         (logb_test_downward): Likewise.
59784         (lround_test): Likewise.
59785         (llround_test): Likewise.
59786         (modf_test): Likewise.
59787         (nearbyint_test): Likewise.
59788         (nextafter_test): Likewise.
59789         (nexttoward_test): Likewise.
59790         (pow_test): Likewise.
59791         (pow_test_tonearest): Likewise.
59792         (pow_test_towardzero): Likewise.
59793         (pow_test_downward): Likewise.
59794         (pow_test_upward): Likewise.
59795         (remainder_test): Likewise.
59796         (remainder_test_tonearest): Likewise.
59797         (remainder_test_towardzero): Likewise.
59798         (remainder_test_downward): Likewise.
59799         (remainder_test_upward): Likewise.
59800         (remquo_test): Likewise.
59801         (rint_test): Likewise.
59802         (rint_test_tonearest): Likewise.
59803         (rint_test_towardzero): Likewise.
59804         (rint_test_downward): Likewise.
59805         (rint_test_upward): Likewise.
59806         (round_test): Likewise.
59807         (scalb_test): Likewise.
59808         (scalbn_test): Likewise.
59809         (scalbln_test): Likewise.
59810         (signbit_test): Likewise.
59811         (sin_test): Likewise.
59812         (sin_test_tonearest): Likewise.
59813         (sin_test_towardzero): Likewise.
59814         (sin_test_downward): Likewise.
59815         (sin_test_upward): Likewise.
59816         (sincos_test): Likewise.
59817         (sinh_test): Likewise.
59818         (sinh_test_tonearest): Likewise.
59819         (sinh_test_towardzero): Likewise.
59820         (sinh_test_downward): Likewise.
59821         (sinh_test_upward): Likewise.
59822         (sqrt_test): Likewise.
59823         (tan_test): Likewise.
59824         (tan_test_tonearest): Likewise.
59825         (tan_test_towardzero): Likewise.
59826         (tan_test_downward): Likewise.
59827         (tan_test_upward): Likewise.
59828         (tanh_test): Likewise.
59829         (tgamma_test): Likewise.
59830         (trunc_test): Likewise.
59831         (y0_test): Likewise.
59832         (y1_test): Likewise.
59833         (yn_test): Likewise.
59834         (significand_test): Likewise.
59835
59836 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
59837
59838         [BZ #15381]
59839         * libio/genops.c (_IO_no_init): Initialize wide struct info.
59840
59841 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
59842
59843         [BZ #14894]
59844         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
59845         __ppc_mdoio and __ppc_mdoom.
59846         * manual/platform.texi: Document new functions __ppc_yield,
59847         __ppc_mdoio and __ppc_mdoom.
59848
59849 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
59850
59851         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
59852         (main): Mention "tls" pseudo-hwcap is legacy.
59853         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
59854
59855 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
59856
59857         * math/gen-libm-test.pl (parse_args): Output only string of
59858         arguments as text for test name, not full call or descriptions of
59859         tests for extra outputs.
59860         (generate_testfile): Do not pass function name to parse_args.
59861         Generate this_func variable from START.
59862         * math/libm-test.inc (struct test_f_f_data): Rename test_name
59863         field to arg_str.
59864         (struct test_ff_f_data): Likewise.
59865         (test_ff_f_data_nexttoward): Likewise.
59866         (struct test_fi_f_data): Likewise.
59867         (struct test_fl_f_data): Likewise.
59868         (struct test_if_f_data): Likewise.
59869         (struct test_fff_f_data): Likewise.
59870         (struct test_c_f_data): Likewise.
59871         (struct test_f_f1_data): Likewise.  Remove field extra_name.
59872         (struct test_fF_f1_data): Likewise.
59873         (struct test_ffI_f1_data): Likewise.
59874         (struct test_c_c_data): Rename test_name field to arg_str.
59875         (struct test_cc_c_data): Likewise.
59876         (struct test_f_i_data): Likewise.
59877         (struct test_ff_i_data): Likewise.
59878         (struct test_f_l_data): Likewise.
59879         (struct test_f_L_data): Likewise.
59880         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
59881         and extra2_name.
59882         (COMMON_TEST_SETUP): New macro.
59883         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
59884         (COMMON_TEST_CLEANUP): Likewise.
59885         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
59886         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
59887         macros.
59888         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
59889         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
59890         macros.
59891         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
59892         (RUN_TEST_fff_f): Take argument string.  Call new setup and
59893         cleanup macros.
59894         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
59895         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
59896         macros.
59897         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
59898         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
59899         macros.
59900         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
59901         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
59902         cleanup macros.
59903         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
59904         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
59905         cleanup macros.
59906         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
59907         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
59908         cleanup macros.
59909         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
59910         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
59911         macros.
59912         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
59913         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
59914         macros.
59915         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
59916         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
59917         macros.
59918         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
59919         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
59920         cleanup macros.
59921         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
59922         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
59923         cleanup macros.
59924         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
59925         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
59926         macros.
59927         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
59928         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
59929         cleanup macros.
59930         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
59931         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
59932         macros.
59933         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
59934         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
59935         macros.
59936         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
59937         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
59938         cleanup macros.
59939         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
59940
59941 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
59942
59943         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
59944         to _sifields.sigfault.
59945         (si_addr_lsb): Define new macro.
59946         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
59947         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
59948         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
59949
59950 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
59951
59952         [BZ #15441]
59953         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
59954         returns -1.
59955         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
59956         null return -1.
59957         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
59958         loading the domain.
59959
59960 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
59961
59962         * math/gen-libm-test.pl (parse_args): Do not include expected
59963         result in test name.
59964         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
59965         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
59966         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
59967         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
59968         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
59969         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59970
59971 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
59972
59973         * benchtests/Makefile: Sort function entries.
59974
59975         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
59976         tanh, asinh, acosh, atanh.
59977         * benchtests/acos-inputs: New file.
59978         * benchtests/acosh-inputs: New file.
59979         * benchtests/asin-inputs: New file.
59980         * benchtests/asinh-inputs: New file.
59981         * benchtests/atanh-inputs: New file.
59982         * benchtests/cosh-inputs: New file.
59983         * benchtests/log-inputs: New file.
59984         * benchtests/sinh-inputs: New file.
59985         * benchtests/tanh-inputs: New file.
59986
59987 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
59988
59989         [BZ #15339]
59990         * posix/tst-getaddrinfo4.c: New test.
59991         * posix/Makefile (tests): Add it.
59992
59993 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
59994
59995         [BZ #15339]
59996         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
59997         when no services were used.
59998         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
59999         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
60000
60001 2013-05-21  Andreas Schwab  <schwab@suse.de>
60002
60003         [BZ #15014]
60004         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
60005         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
60006         successful.
60007         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
60008         redundant variable declarations and reallocation of buffer when
60009         parsing as IPv6 address.  Always set NSS status when called from
60010         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
60011         buffer too small.  Correct computation of needed size.
60012         * nss/Makefile (tests): Add test-digits-dots.
60013         * nss/test-digits-dots.c: New test.
60014
60015 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
60016
60017         * benchtests/Makefile: Remove instructions for adding
60018         benchmark tests.
60019         * benchtests/README: New file to explain how to execute and
60020         enhance the benchmark tests.
60021
60022 2013-05-21  Andreas Schwab  <schwab@suse.de>
60023
60024         [BZ #15493]
60025         * setjmp/Makefile (tests): Add tst-sigsetjmp.
60026         * setjmp/tst-sigsetjmp.c: New test.
60027
60028 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
60029
60030         * sysdeps/x86_64/memset.S (memset): New implementation.
60031         (__bzero): Likewise.
60032         (__memset_tail): New function.
60033
60034 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
60035
60036         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
60037         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
60038         __memcpy_sse2_unaligned ifunc selection.
60039         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
60040         Add memcpy-sse2-unaligned.S.
60041         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
60042         Add: __memcpy_sse2_unaligned.
60043
60044 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
60045
60046         [BZ #15490]
60047         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
60048         math_force_eval before restoring floating-point envrionment.
60049         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
60050         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
60051         Likewise.
60052         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
60053         <math_private.h>.
60054         (__nearbyintl): Use math_force_eval before restoring
60055         floating-point environment.
60056         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
60057
60058         * math/gen-libm-test.pl (special_functions): Remove.
60059         (parse_args): Don't handle TEST_extra.  Handle functions with no
60060         return value.
60061         * math/libm-test.inc (struct test_sincos_data): Replace with
60062         struct test_fFF_11_data.
60063         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
60064         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
60065         (sincos_test_data): Change element type to struct
60066         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
60067         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
60068         RUN_TEST_LOOP_sincos.
60069         * math/README.libm-test: Don't mention special handling of
60070         individual functions.
60071         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
60072         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
60073         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
60074         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
60075         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
60076         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60077
60078         * math/gen-libm-test.pl (get_variable): Remove function.
60079         (parse_args): Don't show pointer parameters to call in test
60080         names.  Use "extra output N" in test names for extra outputs
60081         rather than naming variables.
60082
60083 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
60084
60085         [BZ #15488]
60086         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
60087         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
60088         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
60089         double tests.
60090         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
60091         disable.
60092         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
60093         check_long_double.
60094
60095         * math/gen-libm-test.pl (@tests): Remove variable.
60096         ($count): Likewise.
60097         (new_test): Remove function.
60098         (show_exceptions): New function.
60099         (special_functions): Use show_exceptions instead of new_test.
60100         (parse_args): Likewise.
60101         (generate_testfile): Pass only function name in generated call to
60102         print_max_error or print_complex_max_error.
60103         (get_ulps): Do not handle complex tests specially.
60104         (output_test): Rename to ...
60105         (get_all_ulps_for_test): ... this.  Return a string rather than
60106         printing to a file.  Require ulps to be present.
60107         (output_ulps): Generate arrays rather than #defines.
60108         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
60109         (struct ulp_data): New type.
60110         (BUILD_COMPLEX_ULP): Remove macro.
60111         (compare_ulp_data): New function.
60112         (find_ulps): Likewise.
60113         (find_test_ulps): Likewise.
60114         (find_function_ulps): Likewise.
60115         (find_complex_function_ulps): Likewise.
60116         (print_max_error): Determine allowed ulps using
60117         find_function_ulps.
60118         (print_complex_max_error): Determine allowed ulps using
60119         find_complex_function_ulps.
60120         (check_float_internal): Determine max ulps using find_test_ulps.
60121         (check_float): Do not take max_ulp parameter.  Update call to
60122         check_float_internal.
60123         (check_complex): Likewise.
60124         (check_int): Do not take max_ulp parameter.
60125         (check_long): Likewise.
60126         (check_bool): Likewise.
60127         (check_longlong): Likewise.
60128         (struct test_f_f_data): Remove max_ulp field.
60129         (struct test_ff_f_data): Likewise.
60130         (struct test_ff_f_data_nexttoward): Likewise.
60131         (struct test_fi_f_data): Likewise.
60132         (struct test_fl_f_data): Likewise.
60133         (struct test_if_f_data): Likewise.
60134         (struct test_fff_f_data): Likewise.
60135         (struct test_c_f_data): Likewise.
60136         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
60137         (struct test_fF_f1_data): Likewise.
60138         (struct test_ffI_f1_data): Likewise.
60139         (struct test_c_c_data): Remove max_ulp field.
60140         (struct test_cc_c_data): Likewise.
60141         (struct test_f_i_data): Likewise.
60142         (struct test_ff_i_data): Likewise.
60143         (struct test_f_l_data): Likewise.
60144         (struct test_f_L_data): Likewise.
60145         (struct test_sincos_data): Likewise.
60146         (RUN_TEST_f_f): Do not handle ulps.
60147         (RUN_TEST_LOOP_f_f): Likewise.
60148         (RUN_TEST_2_f): Likewise.
60149         (RUN_TEST_LOOP_2_f): Likewise.
60150         (RUN_TEST_fff_f): Likewise.
60151         (RUN_TEST_LOOP_fff_f): Likewise.
60152         (RUN_TEST_c_f): Likewise.
60153         (RUN_TEST_LOOP_c_f): Likewise.
60154         (RUN_TEST_f_f1): Likewise.
60155         (RUN_TEST_LOOP_f_f1): Likewise.
60156         (RUN_TEST_fF_f1): Likewise.
60157         (RUN_TEST_LOOP_fF_f1): Likewise.
60158         (RUN_TEST_fI_f1): Likewise.
60159         (RUN_TEST_LOOP_fI_f1): Likewise.
60160         (RUN_TEST_ffI_f1): Likewise.
60161         (RUN_TEST_LOOP_ffI_f1): Likewise.
60162         (RUN_TEST_c_c): Likewise.
60163         (RUN_TEST_LOOP_c_c): Likewise.
60164         (RUN_TEST_cc_c): Likewise.
60165         (RUN_TEST_LOOP_cc_c): Likewise.
60166         (RUN_TEST_f_i): Likewise.
60167         (RUN_TEST_LOOP_f_i): Likewise.
60168         (RUN_TEST_f_i_tg): Likewise.
60169         (RUN_TEST_LOOP_f_i_tg): Likewise.
60170         (RUN_TEST_ff_i_tg): Likewise.
60171         (RUN_TEST_LOOP_ff_i_tg): Likewise.
60172         (RUN_TEST_f_b): Likewise.
60173         (RUN_TEST_LOOP_f_b): Likewise.
60174         (RUN_TEST_f_b_tg): Likewise.
60175         (RUN_TEST_LOOP_f_b_tg): Likewise.
60176         (RUN_TEST_f_l): Likewise.
60177         (RUN_TEST_LOOP_f_l): Likewise.
60178         (RUN_TEST_f_L): Likewise.
60179         (RUN_TEST_LOOP_f_L): Likewise.
60180         (RUN_TEST_sincos): Likewise.
60181         (RUN_TEST_LOOP_sincos): Likewise.
60182
60183 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
60184
60185         [BZ #15480]
60186         [BZ #15485]
60187         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
60188         main case of finite arguments, set rounding mode to FE_TONEAREST
60189         and discard exceptions.
60190         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
60191         exceptions.
60192         (remainder_tonearest_test_data): New variable.
60193         (remainder_test_tonearest): New function.
60194         (remainder_towardzero_test_data): New variable.
60195         (remainder_test_towardzero): New function.
60196         (remainder_downward_test_data): New variable.
60197         (remainder_test_downward): New function.
60198         (remainder_upward_test_data): New variable.
60199         (remainder_test_upward): New function.
60200         (main): Call the new test functions.
60201
60202         * math/libm-test.inc (struct test_f_f1_data): Remove field
60203         extra_init.
60204         (struct test_fF_f1_data): Likewise.
60205         (struct test_ffI_f1_data): Likewise.
60206         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
60207         based on value of EXTRA_EXPECTED.
60208         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
60209         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
60210         EXTRA_VAR based on value of EXTRA_EXPECTED.
60211         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
60212         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
60213         EXTRA_VAR based on value of EXTRA_EXPECTED.
60214         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
60215         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
60216         EXTRA_VAR based on value of EXTRA_EXPECTED.
60217         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
60218         * math/gen-libm-test.pl (parse_args): Don't output initializers
60219         for extra output values.
60220
60221         * math/libm-test.inc (check_int): Expect result to be exactly
60222         equal to expected value and do not handle ulps.
60223         (check_long): Likewise.
60224         (check_longlong): Likewise.
60225
60226         * math/libm-test.inc (ceil_test_data): Test for "inexact"
60227         exceptions.
60228         (cimag_test_data): Likewise.
60229         (conj_test_data): Likewise.
60230         (copysign_test_data): Likewise.
60231         (cproj_test_data): Likewise.
60232         (creal_test_data): Likewise.
60233         (fabs_test_data): Likewise.
60234         (fdim_test_data): Likewise.
60235         (finite_test_data): Likewise.
60236         (floor_test_data): Likewise.
60237         (fmax_test_data): Likewise.
60238         (fmin_test_data): Likewise.
60239         (fmod_test_data): Likewise.
60240         (fpclassify_test_data): Likewise.
60241         (frexp_test_data): Likewise.
60242         (ilogb_test_data): Likewise.
60243         (isfinite_test_data): Likewise.
60244         (isgreater_test_data): Likewise.
60245         (isgreaterequal_test_data): Likewise.
60246         (isinf_test_data): Likewise.
60247         (isless_test_data): Likewise.
60248         (islessequal_test_data): Likewise.
60249         (islessgreater_test_data): Likewise.
60250         (isnan_test_data): Likewise.
60251         (isnormal_test_data): Likewise.
60252         (issignaling_test_data): Likewise.
60253         (isunordered_test_data): Likewise.
60254         (ldexp_test_data): Likewise.
60255         (lrint_test_data): Likewise.
60256         (lrint_test_data) [TEST_FLOAT]: Disable one test.
60257         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
60258         (lrint_tonearest_test_data): Test for "inexact" exceptions.
60259         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
60260         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
60261         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
60262         test input.
60263         (lrint_towardzero_test_data): Test for "inexact" exceptions.
60264         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
60265         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
60266         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
60267         that test input.
60268         (lrint_downward_test_data): Test for "inexact" exceptions.
60269         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
60270         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
60271         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
60272         test input.
60273         (lrint_upward_test_data): Test for "inexact" exceptions.
60274         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
60275         test input.
60276         (llrint_test_data): Test for "inexact" exceptions.
60277         (llrint_test_data) [TEST_FLOAT]: Disable one test.
60278         (llrint_tonearest_test_data): Test for "inexact" exceptions.
60279         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
60280         (llrint_towardzero_test_data): Test for "inexact" exceptions.
60281         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
60282         (llrint_downward_test_data): Test for "inexact" exceptions.
60283         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
60284         (llrint_upward_test_data): Test for "inexact" exceptions.
60285         (logb_test_data): Likewise.
60286         (logb_downward_test_data): Likewise.
60287         (nextafter_test_data): Likewise.
60288         (nexttoward_test_data): Likewise.
60289         (remainder_test_data): Likewise.
60290         (remquo_test_data): Likewise.
60291         (scalbn_test_data): Likewise.
60292         (scalbln_test_data): Likewise.
60293         (signbit_test_data): Likewise.
60294         (sqrt_test_data): Likewise.
60295         (significand_test_data): Likewise.
60296
60297 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
60298
60299         [BZ #15424]
60300         * benchtests/bench-modf.c (struct args): Mark arg0 as
60301         volatile.
60302         * scripts/bench.pl: Mark members of struct args as volatile.
60303
60304 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60305
60306         [BZ # 15497]
60307         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
60308         negative infinity on POWER6 or lower.
60309         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
60310
60311 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
60312
60313         [BZ #15442]
60314         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
60315         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
60316         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
60317         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
60318         (_FP_SETQNAN): New macro.
60319         (_FP_SETQNAN_SEMIRAW): Likewise.
60320         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
60321         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
60322         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
60323         (FP_EXTEND): Use _FP_FRAC_SNANP.
60324         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
60325         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
60326         into account.
60327         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
60328         New macro.
60329         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
60330         Likewise.
60331
60332 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
60333
60334         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
60335         with DIVIDE_BY_ZERO_EXCEPTION.
60336         (gamma_test_data): Likewise.
60337         (lgamma_test_data): Likewise.
60338         (log_test_data): Likewise.
60339         (log10_test_data): Likewise.
60340         (log2_test_data): Likewise.
60341         (tgamma_test_data): Likewise.
60342
60343         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
60344         (acos_test_tonearest): Likewise.
60345         (acos_test_towardzero): Likewise.
60346         (acos_test_downward): Likewise.
60347         (acos_test_upward): Likewise.
60348         (acosh_test): Likewise.
60349         (asin_test): Likewise.
60350         (asin_test_tonearest): Likewise.
60351         (asin_test_towardzero): Likewise.
60352         (asin_test_downward): Likewise.
60353         (asin_test_upward): Likewise.
60354         (asinh_test): Likewise.
60355         (atan_test): Likewise.
60356         (atanh_test): Likewise.
60357         (atan2_test): Likewise.
60358         (cabs_test): Likewise.
60359         (cacos_test): Likewise.
60360         (cacosh_test): Likewise.
60361         (casin_test): Likewise.
60362         (casinh_test): Likewise.
60363         (catan_test): Likewise.
60364         (catanh_test): Likewise.
60365         (cbrt_test): Likewise.
60366         (ccos_test): Likewise.
60367         (ccosh_test): Likewise.
60368         (cexp_test): Likewise.
60369         (clog_test): Likewise.
60370         (clog10_test): Likewise.
60371         (cos_test): Likewise.
60372         (cos_test_tonearest): Likewise.
60373         (cos_test_towardzero): Likewise.
60374         (cos_test_downward): Likewise.
60375         (cos_test_upward): Likewise.
60376         (cosh_test): Likewise.
60377         (cosh_test_tonearest): Likewise.
60378         (cosh_test_towardzero): Likewise.
60379         (cosh_test_downward): Likewise.
60380         (cosh_test_upward): Likewise.
60381         (cpow_test): Likewise.
60382         (csin_test): Likewise.
60383         (csinh_test): Likewise.
60384         (csqrt_test): Likewise.
60385         (ctan_test): Likewise.
60386         (ctan_test_tonearest): Likewise.
60387         (ctan_test_towardzero): Likewise.
60388         (ctan_test_downward): Likewise.
60389         (ctan_test_upward): Likewise.
60390         (ctanh_test): Likewise.
60391         (ctanh_test_tonearest): Likewise.
60392         (ctanh_test_towardzero): Likewise.
60393         (ctanh_test_downward): Likewise.
60394         (ctanh_test_upward): Likewise.
60395         (erf_test): Likewise.
60396         (erfc_test): Likewise.
60397         (exp_test): Likewise.
60398         (exp_test_tonearest): Likewise.
60399         (exp_test_towardzero): Likewise.
60400         (exp_test_downward): Likewise.
60401         (exp_test_upward): Likewise.
60402         (exp10_test): Likewise.
60403         (exp2_test): Likewise.
60404         (expm1_test): Likewise.
60405         (fmod_test): Likewise.
60406         (gamma_test): Likewise.
60407         (hypot_test): Likewise.
60408         (j0_test): Likewise.
60409         (j1_test): Likewise.
60410         (jn_test): Likewise.
60411         (lgamma_test): Likewise.
60412         (log_test): Likewise.
60413         (log10_test): Likewise.
60414         (log1p_test): Likewise.
60415         (log2_test): Likewise.
60416         (logb_test_downward): Likewise.
60417         (pow_test): Likewise.
60418         (pow_test_tonearest): Likewise.
60419         (pow_test_towardzero): Likewise.
60420         (pow_test_downward): Likewise.
60421         (pow_test_upward): Likewise.
60422         (remainder_test): Likewise.
60423         (remquo_test): Likewise.
60424         (sin_test): Likewise.
60425         (sin_test_tonearest): Likewise.
60426         (sin_test_towardzero): Likewise.
60427         (sin_test_downward): Likewise.
60428         (sin_test_upward): Likewise.
60429         (sincos_test): Likewise.
60430         (sinh_test): Likewise.
60431         (sinh_test_tonearest): Likewise.
60432         (sinh_test_towardzero): Likewise.
60433         (sinh_test_downward): Likewise.
60434         (sinh_test_upward): Likewise.
60435         (sqrt_test): Likewise.
60436         (tan_test): Likewise.
60437         (tan_test_tonearest): Likewise.
60438         (tan_test_towardzero): Likewise.
60439         (tan_test_downward): Likewise.
60440         (tan_test_upward): Likewise.
60441         (tanh_test): Likewise.
60442         (tgamma_test): Likewise.
60443         (y0_test): Likewise.
60444         (y1_test): Likewise.
60445         (yn_test): Likewise.
60446
60447         * math/gen-libm-test.pl (adjust_arg): Remove function.
60448         (special_function): Remove argument $in_func.  Only handle
60449         generating output for tables of tests, not inside functions.
60450         (parse_args): Likewise.
60451         (generate_testfile): Remove variable $in_func.  Update call to
60452         parse_args.
60453         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
60454         (MINUS_ZERO_INIT): Rename macro to minus_zero.
60455         (PLUS_INFTY_INIT): Rename macro to plus_infty.
60456         (MINUS_INFTY_INIT): Rename macro to minus_infty.
60457         (QNAN_VALUE_INIT): Rename macro to qnan_value.
60458         (MAX_VALUE_INIT): Rename macro to max_value.
60459         (MIN_VALUE_INIT): Rename macro to min_value.
60460         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
60461         (plus_zero): Remove variable.
60462         (minus_zero): Likewise.
60463         (plus_infty): Likewise.
60464         (minus_infty): Likewise.
60465         (qnan_value): Likewise.
60466         (max_value): Likewise.
60467         (min_value): Likewise.
60468         (min_subnorm_value): Likewise.
60469
60470 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
60471
60472         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
60473         uint64_t or uint32_t usage.
60474         * crypt/sha256-block.c: Likewise.
60475         * crypt/sha256-crypt.c: Likewise.
60476         * crypt/sha256.c: Likewise.
60477         * crypt/sha512-block.c: Likewise.
60478         * crypt/sha512-crypt.c: Likewise.
60479         * crypt/sha512.c: Likewise.
60480         * debug/backtrace-tst.c: Likewise.
60481         * debug/pcprofiledump.c: Likewise.
60482         * elf/cache.c: Likewise.
60483         * elf/dl-cache.c: Likewise.
60484         * elf/dl-misc.c: Likewise.
60485         * elf/dl-profile.c: Likewise.
60486         * elf/dl-support.c: Likewise.
60487         * elf/ldconfig.c: Likewise.
60488         * elf/sprof.c: Likewise.
60489         * iconv/dummy-repertoire.c: Likewise.
60490         * iconv/iconv_charmap.c: Likewise.
60491         * iconv/skeleton.c: Likewise.
60492         * iconvdata/8bit-generic.c: Likewise.
60493         * iconvdata/cp737.h: Likewise.
60494         * iconvdata/cp775.h: Likewise.
60495         * iconvdata/ibm1008.h: Likewise.
60496         * iconvdata/ibm1025.h: Likewise.
60497         * iconvdata/ibm1046.h: Likewise.
60498         * iconvdata/ibm1097.h: Likewise.
60499         * iconvdata/ibm1112.h: Likewise.
60500         * iconvdata/ibm1122.h: Likewise.
60501         * iconvdata/ibm1123.h: Likewise.
60502         * iconvdata/ibm1124.h: Likewise.
60503         * iconvdata/ibm1129.h: Likewise.
60504         * iconvdata/ibm1130.h: Likewise.
60505         * iconvdata/ibm1132.h: Likewise.
60506         * iconvdata/ibm1133.h: Likewise.
60507         * iconvdata/ibm1137.h: Likewise.
60508         * iconvdata/ibm1140.h: Likewise.
60509         * iconvdata/ibm1141.h: Likewise.
60510         * iconvdata/ibm1142.h: Likewise.
60511         * iconvdata/ibm1143.h: Likewise.
60512         * iconvdata/ibm1144.h: Likewise.
60513         * iconvdata/ibm1145.h: Likewise.
60514         * iconvdata/ibm1146.h: Likewise.
60515         * iconvdata/ibm1147.h: Likewise.
60516         * iconvdata/ibm1148.h: Likewise.
60517         * iconvdata/ibm1149.h: Likewise.
60518         * iconvdata/ibm1153.h: Likewise.
60519         * iconvdata/ibm1154.h: Likewise.
60520         * iconvdata/ibm1155.h: Likewise.
60521         * iconvdata/ibm1156.h: Likewise.
60522         * iconvdata/ibm1157.h: Likewise.
60523         * iconvdata/ibm1158.h: Likewise.
60524         * iconvdata/ibm1160.h: Likewise.
60525         * iconvdata/ibm1161.h: Likewise.
60526         * iconvdata/ibm1162.h: Likewise.
60527         * iconvdata/ibm1163.h: Likewise.
60528         * iconvdata/ibm1164.h: Likewise.
60529         * iconvdata/ibm1166.h: Likewise.
60530         * iconvdata/ibm1167.h: Likewise.
60531         * iconvdata/ibm12712.h: Likewise.
60532         * iconvdata/ibm1390.h: Likewise.
60533         * iconvdata/ibm1399.h: Likewise.
60534         * iconvdata/ibm16804.h: Likewise.
60535         * iconvdata/ibm4517.h: Likewise.
60536         * iconvdata/ibm4899.h: Likewise.
60537         * iconvdata/ibm4909.h: Likewise.
60538         * iconvdata/ibm4971.h: Likewise.
60539         * iconvdata/ibm5347.h: Likewise.
60540         * iconvdata/ibm803.h: Likewise.
60541         * iconvdata/ibm856.h: Likewise.
60542         * iconvdata/ibm901.h: Likewise.
60543         * iconvdata/ibm902.h: Likewise.
60544         * iconvdata/ibm9030.h: Likewise.
60545         * iconvdata/ibm9066.h: Likewise.
60546         * iconvdata/ibm921.h: Likewise.
60547         * iconvdata/ibm922.h: Likewise.
60548         * iconvdata/ibm9448.h: Likewise.
60549         * iconvdata/isiri-3342.h: Likewise.
60550         * iconvdata/jis0201.h: Likewise.
60551         * include/link.h: Likewise.
60552         * include/netdb.h: Likewise.
60553         * inet/check_native.c: Likewise.
60554         * inet/check_pf.c: Likewise.
60555         * inet/getipv4sourcefilter.c: Likewise.
60556         * inet/getnameinfo.c: Likewise.
60557         * inet/getsourcefilter.c: Likewise.
60558         * inet/htonl.c: Likewise.
60559         * inet/setipv4sourcefilter.c: Likewise.
60560         * inet/setsourcefilter.c: Likewise.
60561         * inet/test-inet6_opt.c: Likewise.
60562         * inet/tst-network.c: Likewise.
60563         * locale/C-collate.c: Likewise.
60564         * locale/C-ctype.c: Likewise.
60565         * locale/C-time.c: Likewise.
60566         * locale/C-translit.h: Likewise.
60567         * locale/loadarchive.c: Likewise.
60568         * locale/programs/3level.h: Likewise.
60569         * locale/programs/charmap.c: Likewise.
60570         * locale/programs/charmap.h: Likewise.
60571         * locale/programs/ld-address.c: Likewise.
60572         * locale/programs/ld-collate.c: Likewise.
60573         * locale/programs/ld-ctype.c: Likewise.
60574         * locale/programs/ld-identification.c: Likewise.
60575         * locale/programs/ld-measurement.c: Likewise.
60576         * locale/programs/ld-messages.c: Likewise.
60577         * locale/programs/ld-monetary.c: Likewise.
60578         * locale/programs/ld-name.c: Likewise.
60579         * locale/programs/ld-numeric.c: Likewise.
60580         * locale/programs/ld-paper.c: Likewise.
60581         * locale/programs/ld-telephone.c: Likewise.
60582         * locale/programs/ld-time.c: Likewise.
60583         * locale/programs/linereader.c: Likewise.
60584         * locale/programs/locale.c: Likewise.
60585         * locale/programs/locarchive.c: Likewise.
60586         * locale/programs/locfile.h: Likewise.
60587         * locale/programs/repertoire.c: Likewise.
60588         * locale/programs/simple-hash.c: Likewise.
60589         * locale/programs/simple-hash.h: Likewise.
60590         * malloc/memusage.c: Likewise.
60591         * malloc/memusagestat.c: Likewise.
60592         * nis/nis_defaults.c: Likewise.
60593         * nis/nis_hash.c: Likewise.
60594         * nis/nis_print.c: Likewise.
60595         * nis/nis_xdr.c: Likewise.
60596         * nscd/connections.c: Likewise.
60597         * nscd/hstcache.c: Likewise.
60598         * nscd/nscd_gethst_r.c: Likewise.
60599         * nscd/nscd_getserv_r.c: Likewise.
60600         * nscd/nscd_helper.c: Likewise.
60601         * nscd/servicescache.c: Likewise.
60602         * nss/makedb.c: Likewise.
60603         * nss/nss_db/db-XXX.c: Likewise.
60604         * nss/nss_db/db-initgroups.c: Likewise.
60605         * nss/nss_db/db-netgrp.c: Likewise.
60606         * nss/nss_files/files-network.c: Likewise.
60607         * nss/nss_files/files-parse.c: Likewise.
60608         * posix/bug-regex5.c: Likewise.
60609         * posix/fnmatch_loop.c: Likewise.
60610         * posix/regcomp.c: Likewise.
60611         * posix/regexec.c: Likewise.
60612         * posix/tst-rfc3484-2.c: Likewise.
60613         * posix/tst-rfc3484-3.c: Likewise.
60614         * posix/tst-rfc3484.c: Likewise.
60615         * resolv/nss_dns/dns-canon.c: Likewise.
60616         * resolv/nss_dns/dns-network.c: Likewise.
60617         * resolv/res_init.c: Likewise.
60618         * resolv/res_mkquery.c: Likewise.
60619         * resolv/tst-aton.c: Likewise.
60620         * stdlib/cxa_atexit.c: Likewise.
60621         * stdlib/cxa_finalize.c: Likewise.
60622         * stdlib/gen-fpioconst.c: Likewise.
60623         * stdlib/strtol_l.c: Likewise.
60624         * string/tst-endian.c: Likewise.
60625         * sunrpc/auth_des.c: Likewise.
60626         * sunrpc/clnt_udp.c: Likewise.
60627         * sunrpc/rtime.c: Likewise.
60628         * sunrpc/svcauth_des.c: Likewise.
60629         * sunrpc/xdr.c: Likewise.
60630         * sunrpc/xdr_intXX_t.c: Likewise.
60631         * sunrpc/xdr_rec.c: Likewise.
60632         * sysdeps/generic/ldconfig.h: Likewise.
60633         * sysdeps/generic/ldsodefs.h: Likewise.
60634         * sysdeps/generic/memusage.h: Likewise.
60635         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
60636         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
60637         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
60638         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
60639         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
60640         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
60641         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
60642         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
60643         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
60644         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
60645         * sysdeps/posix/getaddrinfo.c: Likewise.
60646         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
60647         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
60648         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
60649         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
60650         * sysdeps/powerpc/test-gettimebase.c: Likewise.
60651         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
60652         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
60653         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
60654         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
60655         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
60656         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
60657         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
60658         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
60659         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
60660         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
60661         * sysdeps/x86_64/dl-tls.h: Likewise.
60662         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
60663         * time/alt_digit.c: Likewise.
60664         * time/era.c: Likewise.
60665         * wcsmbs/tst-c16c32-1.c: Likewise.
60666
60667 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
60668
60669         * math/libm-test.inc (struct test_sincos_data): New type.
60670         (RUN_TEST_LOOP_sincos): New macro.
60671         (sincos_test_data): New variable.
60672         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
60673
60674 2013-05-16  Richard Henderson  <rth@redhat.com>
60675
60676         * math/atest-exp2.c (LIMB64): New macro.
60677         (CONSTSZ): New macro.
60678         (mp_exp1, mp_exp_m1, mp_log2): New variables.
60679         (hexdig): Move ...
60680         (print_mpn_fp): ... to function scope.
60681         (read_mpn_hex): Remove.
60682         (get_log2): Remove.
60683         (exp2_mpn): Use mp_log2.
60684         (main): Use mp_exp1.
60685
60686 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
60687
60688         * math/libm-test.inc: Remove comment about not testing "inexact"
60689         exceptions.
60690         (INEXACT_EXCEPTION): New macro.
60691         (NO_INEXACT_EXCEPTION): Likewise.
60692         (INVALID_EXCEPTION_OK): Update value.
60693         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
60694         (OVERFLOW_EXCEPTION_OK): Likewise.
60695         (UNDERFLOW_EXCEPTION_OK): Likewise.
60696         (IGNORE_ZERO_INF_SIGN): Likewise.
60697         (ERRNO_UNCHANGED): Likewise.
60698         (ERRNO_EDOM): Likewise.
60699         (ERRNO_ERANGE): Likewise.
60700         (test_exceptions): Handle testing "inexact" exceptions.
60701         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
60702         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
60703         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
60704         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
60705         INEXACT_EXCEPTION.
60706         (rint_towardzero_test_data): Likewise.
60707         (rint_downward_test_data): Likewise.
60708         (rint_upward_test_data): Likewise.
60709
60710         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
60711         with OVERFLOW_EXCEPTION.
60712         (exp10_test_data): Likewise.
60713         (exp2_test_data): Likewise.
60714         (expm1_test_data): Likewise.
60715         (lgamma_test_data): Likewise.
60716         (pow_test_data): Likewise.
60717         (tgamma_test_data): Likewise.
60718         (yn_test_data): Remove duplicate test of overflow.
60719
60720         * math/libm-test.inc (struct test_cc_c_data): New type.
60721         (RUN_TEST_LOOP_cc_c): New macro.
60722         (cpow_test_data): New variable.
60723         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
60724
60725         * math/libm-test.inc (struct test_f_L_data): New type.
60726         (RUN_TEST_LOOP_f_L): New macro.
60727         (llrint_test_data): New variable.
60728         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
60729         (llrint_tonearest_test_data): New variable.
60730         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
60731         (llrint_towardzero_test_data): New variable.
60732         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
60733         (llrint_downward_test_data): New variable.
60734         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
60735         (llrint_upward_test_data): New variable.
60736         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
60737         (llround_test_data): New variable.
60738         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
60739
60740 2013-05-13  Peter Collingbourne  <pcc@google.com>
60741
60742         * math/atest-exp2.c (get_log2): Remove const attribute.
60743
60744 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
60745
60746         * math/libm-test.inc (struct test_f_l_data): New type.
60747         (RUN_TEST_LOOP_f_l): New macro.
60748         (lrint_test_data): New variable.
60749         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
60750         (lrint_tonearest_test_data): New variable.
60751         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
60752         (lrint_towardzero_test_data): New variable.
60753         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
60754         (lrint_downward_test_data): New variable.
60755         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
60756         (lrint_upward_test_data): New variable.
60757         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
60758         (lround_test_data): New variable.
60759         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
60760
60761 2013-05-15  Peter Collingbourne  <pcc@google.com>
60762
60763         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
60764         (EXTRACT_WORDS64) Use where appropriate.
60765         (INSERT_WORDS64) Likewise.
60766
60767         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
60768         constraints with x constraints.
60769         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
60770
60771         * malloc/obstack.c (_obstack_compat): Add initializer.
60772
60773 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
60774
60775         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
60776         si_trapno and add si_addr_lsb to _sifields.sigfault.
60777         (si_trapno): Remove macro.
60778         (si_addr_lsb): Define new macro.
60779         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
60780
60781 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
60782
60783         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
60784         instead of TEST_f_l.
60785         (llrint_test_tonearest): Likewise.
60786         (llrint_test_towardzero): Likewise.
60787         (llrint_test_downward): Likewise.
60788         (llrint_test_upward): Likewise.
60789         (llround_test): Likewise.
60790
60791         * math/libm-test.inc (struct test_f_i_data): Add comment.
60792         (RUN_TEST_LOOP_f_b): New macro.
60793         (RUN_TEST_LOOP_f_b_tg): Likewise.
60794         (finite_test_data): New variable.
60795         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
60796         (isfinite_test_data): New variable.
60797         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
60798         (isinf_test_data): New variable.
60799         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
60800         (isnan_test_data): New variable.
60801         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
60802         (isnormal_test_data): New variable.
60803         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
60804         (issignaling_test_data): New variable.
60805         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
60806         (signbit_test_data): New variable.
60807         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
60808
60809         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
60810         with INVALID_EXCEPTION.
60811         (acosh_test_data): Likewise.
60812         (asin_test_data): Likewise.
60813         (atanh_test_data): Likewise.
60814         (fmod_test_data): Likewise.
60815         (log_test_data): Likewise.
60816         (log10_test_data): Likewise.
60817         (log2_test_data): Likewise.
60818         (pow_test_data): Likewise.
60819         (sqrt_test_data): Likewise.
60820         (y0_test_data): Likewise.
60821         (y1_test_data): Likewise.
60822         (yn_test_data): Likewise.
60823
60824         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
60825         function contents.
60826
60827         * math/libm-test.inc (struct test_ff_i_data): New type.
60828         (RUN_TEST_LOOP_ff_i_tg): New macro.
60829         (isgreater_test_data): New variable.
60830         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
60831         (isgreaterequal_test_data): New variable.
60832         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
60833         (isless_test_data): New variable.
60834         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
60835         (islessequal_test_data): New variable.
60836         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
60837         (islessgreater_test_data): New variable.
60838         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
60839         (isunordered_test_data): New variable.
60840         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
60841
60842 2013-05-14  David S. Miller  <davem@davemloft.net>
60843
60844         * sysdeps/sparc/fpu/libm-test-ulps: Update.
60845
60846 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
60847
60848         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
60849
60850         * math/libm-test.inc (struct test_fF_f1_data): Change type of
60851         extra_test to int.
60852         (struct test_f_i_data): Change type of max_ulp to int.
60853
60854         * math/libm-test.inc (test_ffI_f1_data): New type.
60855         (RUN_TEST_LOOP_ffI_f1): New macro.
60856         (remquo_test_data): New variable.
60857         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
60858
60859         * setjmp/tst-setjmp-fp.c: New file.
60860         * setjmp/Makefile (tests): Add tst-setjmp-fp.
60861         (link-libm): New variable.
60862         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
60863
60864         * math/libm-test.inc (struct test_f_i_data): New type.
60865         (RUN_TEST_LOOP_f_i): New macro.
60866         (RUN_TEST_LOOP_f_i_tg): Likewise.
60867         (fpclassify_test_data): New variable.
60868         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
60869         (ilogb_test_data): New variable.
60870         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
60871
60872         * math/libm-test.inc (scalbln_test): Correct function name in END
60873         call.
60874
60875         * math/libm-test.inc (struct test_f_f1_data): Add comment.
60876         (RUN_TEST_LOOP_fI_f1): New macro.
60877         (frexp_test_data): New variable.
60878         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
60879
60880         * math/libm-test.inc (struct test_fF_f1_data): New type.
60881         (RUN_TEST_LOOP_fF_f1): New macro.
60882         (modf_test_data): New variable.
60883         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
60884
60885         * math/libm-test.inc (struct test_f_f1_data): New type.
60886         (RUN_TEST_LOOP_f_f1): New macro.
60887         (gamma_test_data): New variable.
60888         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
60889         (lgamma_test_data): New variable.
60890         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
60891
60892 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
60893
60894         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
60895         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
60896         (main): Comment "tls" pseudo-hwcap.
60897
60898 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
60899
60900         * math/libm-test.inc (struct test_fl_f_data): New type.
60901         (RUN_TEST_LOOP_fl_f): New variable.
60902         (scalbln_test_data): New variable.
60903         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
60904
60905         * math/libm-test.inc (struct test_fi_f_data): New type.
60906         (RUN_TEST_LOOP_fi_f): New macro.
60907         (ldexp_test_data): New variable.
60908         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
60909         (scalbn_test_data): New variable.
60910         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
60911
60912         * math/libm-test.inc (struct test_c_f_data): New type.
60913         (RUN_TEST_LOOP_c_f): New macro.
60914         (cabs_test_data): New variable.
60915         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
60916         (carg_test_data): New variable.
60917         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
60918         (cimag_test_data): New variable.
60919         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
60920         (creal_test_data): New variable.
60921         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
60922
60923         * math/libm-test.inc (struct test_if_f_data): New type.
60924         (RUN_TEST_LOOP_if_f): New macro.
60925         (jn_test_data): New variable.
60926         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
60927         (yn_test_data): New variable.
60928         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
60929
60930         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
60931
60932 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60933
60934         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
60935         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
60936
60937 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
60938
60939         * benchtests/Makefile (CPPFLAGS-nonlib): Add
60940         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
60941         (bench-deps): Add bench-timing.h.
60942         * benchtests-bench-skeleton.c: Include bench-timing.h.
60943         (main): Use TIMING_* macros instead of clock_gettime.
60944         * benchtests/bench-timing.h: New file.
60945
60946         [BZ #14582]
60947         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
60948         Renamed from _LIB_VERSION.
60949         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
60950
60951 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
60952
60953         * math/libm-test.inc (struct test_fff_f_data): New type.
60954         (RUN_TEST_LOOP_fff_f): New macro.
60955         (fma_test_data): New variable.
60956         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
60957         (fma_towardzero_test_data): New variable.
60958         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
60959         (fma_downward_test_data): New variable.
60960         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
60961         (fma_upward_test_data): New variable.
60962         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
60963
60964         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
60965         (struct test_c_c_data): New type.
60966         (RUN_TEST_LOOP_c_c): New macro.
60967         (cacos_test_data): New variable.
60968         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
60969         (cacosh_test_data): New variable.
60970         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
60971         (casin_test_data): New variable.
60972         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
60973         (casinh_test_data): New variable.
60974         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
60975         (catan_test_data): New variable.
60976         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
60977         (catanh_test_data): New variable.
60978         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
60979         (ccos_test_data): New variable.
60980         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
60981         (ccosh_test_data): New variable.
60982         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
60983         (cexp_test_data): New variable.
60984         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
60985         (clog_test_data): New variable.
60986         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
60987         (clog10_test_data): New variable.
60988         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
60989         (conj_test_data): New variable.
60990         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
60991         (cproj_test_data): New variable.
60992         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
60993         (csin_test_data): New variable.
60994         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
60995         (csinh_test_data): New variable.
60996         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
60997         (csqrt_test_data): New variable.
60998         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
60999         (ctan_test_data): New variable.
61000         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
61001         (ctan_tonearest_test_data): New variable.
61002         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
61003         (ctan_towardzero_test_data): New variable.
61004         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
61005         (ctan_downward_test_data): New variable.
61006         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
61007         (ctan_upward_test_data): New variable.
61008         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
61009         (ctanh_test_data): New variable.
61010         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
61011         (ctanh_tonearest_test_data): New variable.
61012         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
61013         (ctanh_towardzero_test_data): New variable.
61014         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
61015         (ctanh_downward_test_data): New variable.
61016         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
61017         (ctanh_upward_test_data): New variable.
61018         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
61019         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
61020         of BUILD_COMPLEX.
61021
61022         * math/libm-test.inc (struct test_ff_f_data): New type.
61023         (struct test_ff_f_data_nexttoward): Likewise.
61024         (RUN_TEST_LOOP_2_f): New macro.
61025         (RUN_TEST_LOOP_ff_f): Likewise.
61026         (atan2_test_data): New variable.
61027         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
61028         (copysign_test_data): New variable.
61029         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
61030         (fdim_test_data): New variable.
61031         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
61032         (fmax_test_data): New variable.
61033         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
61034         (fmin_test_data): New variable.
61035         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
61036         (fmod_test_data): New variable.
61037         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
61038         (hypot_test_data): New variable.
61039         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
61040         (nextafter_test_data): New variable.
61041         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
61042         (nexttoward_test_data): New variable.
61043         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
61044         (pow_test_data): New variable.
61045         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
61046         (pow_tonearest_test_data): New variable.
61047         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
61048         (pow_towardzero_test_data): New variable.
61049         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
61050         (pow_downward_test_data): New variable.
61051         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
61052         (pow_upward_test_data): New variable.
61053         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
61054         (remainder_test_data): New variable.
61055         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
61056         (scalb_test_data): New variable.
61057         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
61058         * sysdeps/i386/fpu/libm-test-ulps: Update.
61059
61060 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
61061
61062         * math/libm-test.inc (fma_test): Use max_value instead of local
61063         variable fltmax.
61064         (nextafter_test): Likewise.
61065
61066         * math/libm-test.inc (acos_towardzero_test_data): New variable.
61067         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
61068         (acos_downward_test_data): New variable.
61069         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
61070         (acos_upward_test_data): New variable.
61071         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
61072         (acosh_test_data): New variable.
61073         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
61074         (asin_test_data): New variable.
61075         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
61076         (asin_tonearest_test_data): New variable.
61077         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
61078         (asin_towardzero_test_data): New variable.
61079         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
61080         (asin_downward_test_data): New variable.
61081         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
61082         (asin_upward_test_data): New variable.
61083         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
61084         (asinh_test_data): New variable.
61085         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
61086         (atan_test_data): New variable.
61087         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
61088         (atanh_test_data): New variable.
61089         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
61090         (cbrt_test_data): New variable.
61091         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
61092         (ceil_test_data): New variable.
61093         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
61094         (cos_test_data): New variable.
61095         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
61096         (cos_tonearest_test_data): New variable.
61097         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
61098         (cos_towardzero_test_data): New variable.
61099         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
61100         (cos_downward_test_data): New variable.
61101         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
61102         (cos_upward_test_data): New variable.
61103         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
61104         (cosh_test_data): New variable.
61105         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
61106         (cosh_tonearest_test_data): New variable.
61107         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
61108         (cosh_towardzero_test_data): New variable.
61109         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
61110         (cosh_downward_test_data): New variable.
61111         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
61112         (cosh_upward_test_data): New variable.
61113         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
61114         (erf_test_data): New variable.
61115         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
61116         (erfc_test_data): New variable.
61117         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
61118         (exp_test_data): New variable.
61119         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
61120         (exp_tonearest_test_data): New variable.
61121         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
61122         (exp_towardzero_test_data): New variable.
61123         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
61124         (exp_downward_test_data): New variable.
61125         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
61126         (exp_upward_test_data): New variable.
61127         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
61128         (exp10_test_data): New variable.
61129         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
61130         (exp2_test_data): New variable.
61131         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
61132         (expm1_test_data): New variable.
61133         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
61134         (fabs_test_data): New variable.
61135         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
61136         (floor_test_data): New variable.
61137         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
61138         (j0_test_data): New variable.
61139         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
61140         (j1_test_data): New variable.
61141         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
61142         (log_test_data): New variable.
61143         (log_test): Run tests with RUN_TEST_LOOP_f_f.
61144         (log10_test_data): New variable.
61145         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
61146         (log1p_test_data): New variable.
61147         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
61148         (log2_test_data): New variable.
61149         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
61150         (logb_test_data): New variable.
61151         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
61152         (logb_downward_test_data): New variable.
61153         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
61154         (nearbyint_test_data): New variable.
61155         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
61156         (rint_test_data): New variable.
61157         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
61158         (rint_tonearest_test_data): New variable.
61159         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
61160         (rint_towardzero_test_data): New variable.
61161         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
61162         (rint_downward_test_data): New variable.
61163         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
61164         (rint_upward_test_data): New variable.
61165         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
61166         (round_test_data): New variable.
61167         (round_test): Run tests with RUN_TEST_LOOP_f_f.
61168         (sin_test_data): New variable.
61169         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
61170         (sin_tonearest_test_data): New variable.
61171         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
61172         (sin_towardzero_test_data): New variable.
61173         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
61174         (sin_downward_test_data): New variable.
61175         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
61176         (sin_upward_test_data): New variable.
61177         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
61178         (sinh_test_data): New variable.
61179         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
61180         (sinh_tonearest_test_data): New variable.
61181         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
61182         (sinh_towardzero_test_data): New variable.
61183         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
61184         (sinh_downward_test_data): New variable.
61185         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
61186         (sinh_upward_test_data): New variable.
61187         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
61188         (sqrt_test_data): New variable.
61189         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
61190         (tan_test_data): New variable.
61191         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
61192         (tan_tonearest_test_data): New variable.
61193         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
61194         (tan_towardzero_test_data): New variable.
61195         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
61196         (tan_downward_test_data): New variable.
61197         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
61198         (tan_upward_test_data): New variable.
61199         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
61200         (tanh_test_data): New variable.
61201         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
61202         (tgamma_test_data): New variable.
61203         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
61204         (trunc_test_data): New variable.
61205         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
61206         (y0_test_data): New variable.
61207         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
61208         (y1_test_data): New variable.
61209         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
61210         (significand_test_data): New variable.
61211         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
61212
61213 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
61214
61215         [BZ #12387]
61216         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
61217
61218 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
61219
61220         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
61221
61222 2013-05-10  Andreas Jaeger  <aj@suse.de>
61223
61224         [BZ #15448]
61225         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
61226         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
61227
61228 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
61229
61230         * math/gen-libm-test.pl (adjust_arg): New function.
61231         (special_functions): Handle generating output in both functions
61232         and arrays.
61233         (parse_args): Likewise.
61234         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
61235         $in_func argument to parse_args.
61236         * math/libm-test.inc (struct test_f_f_data): New type.
61237         (IF_ROUND_INIT_): New macro.
61238         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
61239         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
61240         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
61241         (IF_ROUND_INIT_FE_UPWARD): Likewise.
61242         (ROUND_RESTORE_): Likewise.
61243         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
61244         (ROUND_RESTORE_FE_TONEAREST): Likewise.
61245         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
61246         (ROUND_RESTORE_FE_UPWARD): Likewise.
61247         (RUN_TEST_LOOP_f_f): New macro.
61248         (acos_test_data): New variable.
61249         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
61250         (acos_tonearest_test_data): New variable.
61251         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
61252
61253 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
61254
61255         * benchtests/bench-skeleton.c (startup): Fix coding style.
61256
61257 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
61258
61259         [BZ #6809]
61260         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
61261         negative infinity argument.
61262         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
61263         negative infinity argument.
61264         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
61265         negative infinity argument.
61266         * math/libm-test.inc (tgamma_test): Expect errno to be set for
61267         domain errors.
61268
61269 2013-05-10  Florian Weimer  <fweimer@redhat.com>
61270
61271         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
61272         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
61273         * iconv/iconv_prog.c (main): Likewise.
61274         * locale/programs/charmap-dir.c (charmap_readdir)
61275         (fopen_uncompressed): Likewise.
61276         * locale/programs/locfile.c (siblings_uncached)
61277         (write_locale_data): Use lstat64 instead of lstat.
61278         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
61279         stat.
61280
61281 2013-05-10  Andreas Jaeger  <aj@suse.de>
61282
61283         [BZ #15395]
61284         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
61285         localization.
61286         Include <locale.h>.
61287
61288 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
61289
61290         * elf/dl-close.c (_dl_close_worker): Add comments.
61291
61292 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
61293
61294         [BZ #15359]
61295         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
61296         high part of pi/2.
61297         (__ieee754_rem_pio2l): Update comments.
61298
61299         [BZ #15429]
61300         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
61301         high part of pi/2.
61302         (__ieee754_rem_pio2l): Update comments.
61303
61304         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
61305         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
61306
61307         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
61308         M_PI_4l.
61309
61310         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
61311         (M_PI_34_LOG10El): Likewise.
61312         (M_PI2_LOG10El): Likewise.
61313         (M_PI4_LOG10El): Likewise.
61314         (M_PI_LOG10El): Likewise.
61315
61316 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61317
61318         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
61319
61320 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
61321
61322         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
61323         (MINUS_ZERO_INIT): Likewise.
61324         (PLUS_INFTY_INIT): Likewise.
61325         (MINUS_INFTY_INIT): Likewise.
61326         (QNAN_VALUE_INIT): Likewise.
61327         (MAX_VALUE_INIT): Likewise.
61328         (MIN_VALUE_INIT): Likewise.
61329         (MIN_SUBNORM_VALUE_INIT): Likewise.
61330         (plus_zero): Initialize with PLUS_ZERO_INIT.
61331         (minus_zero): Initialize with MINUS_ZERO_INIT.
61332         (plus_infty): Initialize with PLUS_INFTY_INIT.
61333         (minus_infty): Initialize with MINUS_INFTY_INIT.
61334         (qnan_value): Initialize with QNAN_VALUE_INIT.
61335         (max_value): Initialize with MAX_VALUE_INIT.
61336         (min_value): Initialize with MIN_VALUE_INIT.
61337         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
61338
61339         * math/libm-test.inc (RUN_TEST_if_f): New macro.
61340         (jn_test): Use TEST_if_f instead of TEST_ff_f.
61341         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
61342         (yn_test): Use TEST_if_f instead of TEST_ff_f.
61343
61344         * math/libm-test.inc (RUN_TEST_f_f): New macro.
61345         (RUN_TEST_2_f): Likewise.
61346         (RUN_TEST_ff_f): Likewise.
61347         (RUN_TEST_fi_f): Likewise.
61348         (RUN_TEST_fl_f): Likewise.
61349         (RUN_TEST_fff_f): Likewise.
61350         (RUN_TEST_c_f): Likewise.
61351         (RUN_TEST_f_f1): Likewise.
61352         (RUN_TEST_fF_f1): Likewise.
61353         (RUN_TEST_fI_f1): Likewise.
61354         (RUN_TEST_ffI_f1): Likewise.
61355         (RUN_TEST_c_c): Likewise.
61356         (RUN_TEST_cc_c): Likewise.
61357         (RUN_TEST_f_i): Likewise.
61358         (RUN_TEST_f_i_tg): Likewise.
61359         (RUN_TEST_ff_i_tg): Likewise.
61360         (RUN_TEST_f_b): Likewise.
61361         (RUN_TEST_f_b_tg): Likewise.
61362         (RUN_TEST_f_l): Likewise.
61363         (RUN_TEST_f_L): Likewise.
61364         (RUN_TEST_sincos): Likewise.
61365         * math/gen-libm-test.pl (new_test): Take new argument to indicate
61366         whether to show exceptions.  Do not include ");\n" in return
61367         value.
61368         (special_functions): Output call to RUN_TEST_sincos instead of
61369         check_float calls.  Update calls to new_test.
61370         (parse_args): Output call to single RUN_TEST_* macro instead of
61371         check_* calls and other assignments.  Update calls to new_test.
61372
61373         [BZ #2546]
61374         [BZ #2560]
61375         [BZ #5159]
61376         [BZ #15426]
61377         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
61378         input to result for tgamma overflow.
61379         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
61380         (gamma_coeff): New variable.
61381         (NCOEFF): New macro.
61382         (gamma_positive): New function.
61383         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
61384         underflow here.  Use gamma_positive instead of exp (lgamma) for
61385         other arguments.
61386         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
61387         (gamma_coeff): New variable.
61388         (NCOEFF): New macro.
61389         (gammaf_positive): New function.
61390         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
61391         underflow here.  Use gamma_positive instead of exp (lgamma) for
61392         other arguments.
61393         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
61394         (gamma_coeff): New variable.
61395         (NCOEFF): New macro.
61396         (gammal_positive): New function.
61397         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
61398         underflow here.  Use gamma_positive instead of exp (lgamma) for
61399         other arguments.
61400         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
61401         (gamma_coeff): New variable.
61402         (NCOEFF): New macro.
61403         (gammal_positive): New function.
61404         (__ieee754_gammal_r): Handle positive infinity, overflow and
61405         underflow here.  Handle NaN the same as positive infinity.  Remove
61406         check x < 0xffffffff for negative integers.  Use gamma_positive
61407         instead of exp (lgamma) for other arguments.
61408         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
61409         (gamma_coeff): New variable.
61410         (NCOEFF): New macro.
61411         (gammal_positive): New function.
61412         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
61413         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
61414         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
61415         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
61416         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
61417         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
61418         * sysdeps/generic/math_private.h (__gamma_productf): New
61419         prototype.
61420         (__gamma_product): Likewise.
61421         (__gamma_productl): Likewise.
61422         * math/Makefile (libm-calls): Add gamma_product.
61423         * math/libm-test.inc (tgamma_test): Add more tests.
61424         * sysdeps/i386/fpu/libm-test-ulps: Update.
61425         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
61426
61427 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
61428
61429         * benchtests/bench-skeleton.c (main): Preheat CPU.
61430
61431 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
61432
61433         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
61434
61435 2013-05-07  Roland McGrath  <roland@hack.frob.com>
61436
61437         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
61438         and _dl_skip_args_internal.
61439
61440 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
61441
61442         * manual/message.texi (Message Translation): Talk about users.
61443         Message to key mapping impacts design.
61444
61445 2013-05-06  Roland McGrath  <roland@hack.frob.com>
61446
61447         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
61448
61449         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
61450
61451         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
61452         * sysdeps/wordsize-64/glob64.c: ... here.
61453
61454         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
61455         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
61456         New macros.
61457
61458         * debug/getlogin_r_chk.c: Moved to ...
61459         * login/getlogin_r_chk.c: ... here.
61460         * debug/Makefile (routines): Move getlogin_r_chk to ...
61461         * login/Makefile (routines): ... here.
61462         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
61463         * login/Versions (libc: GLIBC_2.4): ... here.
61464
61465         * io/poll.c (__poll): Renamed from poll.
61466         Add libc_hidden_def.
61467         (poll): Define as weak alias.
61468
61469         * debug/ptsname_r_chk.c: Moved to ...
61470         * login/ptsname_r_chk.c: ... here.
61471         * debug/Makefile (routines): Move ptsname_r_chk to ...
61472         * login/Makefile (routines): ... here.
61473         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
61474         * login/Versions (libc: GLIBC_2.4): ... here.
61475
61476         * posix/getlogin.c: Moved to ...
61477         * login/getlogin.c: ... here.
61478         * posix/getlogin_r.c: Moved to ...
61479         * login/getlogin_r.c: ... here.
61480         * posix/getlogin_r.c: Moved to ...
61481         * login/getlogin_r.c: ... here.
61482         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
61483         * login/Makefile (routines): ... here.
61484         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
61485         * login/Versions (libc: GLIBC_2.0): ... here.
61486
61487         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
61488         (setrlimit): Define as weak alias.
61489
61490         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
61491         Call __ names for open, ftruncate, and close.
61492         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
61493         (truncate): Define as weak alias.
61494
61495 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
61496
61497         * math/gen-libm-test.pl (parse_args): Initialize x before each
61498         test of frexp, modf and remquo.
61499
61500         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
61501         test signgam value.
61502
61503 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61504
61505         [BZ #15418]
61506         [BZ #15419]
61507         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
61508         internal tests.
61509         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
61510
61511 2013-05-06  Roland McGrath  <roland@hack.frob.com>
61512
61513         * elf/dl-writev.h: New file.
61514         * elf/dl-misc.c: Include it.
61515         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
61516         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
61517
61518 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
61519
61520         * math/libm-test.inc (noXFails): Remove variable.
61521         (noXPasses): Likewise.
61522         (BUILD_COMPLEX_INT): Remove macro.
61523         (print_screen): Remove xfail argument.
61524         (print_screen_max_error): Likewise.
61525         (update_stats): Likewise.
61526         (print_max_error): Likewise.  Update calls to other affected
61527         functions.
61528         (print_complex_max_error): Likewise.
61529         (test_single_exception): Update calls to print_screen.
61530         (test_single_errno): Likewise.
61531         (check_float_internal): Remove xfail argument.  Update calls to
61532         other affected functions.
61533         (check_float): Likewise.
61534         (check_complex): Likewise.
61535         (check_int): Likewise.
61536         (check_long): Likewise.
61537         (check_bool): Likewise.
61538         (check_longlong): Likewise.
61539         (main): Don't print noXFails and noXPasses.
61540         * math/gen-libm-test.pl (top level): Don't mention expected
61541         failure handling in comment.
61542         (new_test): Don't handle expected failures.
61543         (parse_args): Don't mention expected failure handling in comment.
61544         (generate_testfile): Don't handle expected failures.
61545         (parse_ulps): Likewise.
61546         (print_ulps_file): Likewise.
61547         (get_failure): Remove function.
61548         (output_test): Don't handle expected failures.
61549         * make/README.libm-test: Don't mention expected failure handling.
61550
61551         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
61552         (minus_zero): Likewise.
61553         (plus_infty): Likewise.
61554         (minus_infty): Likewise.
61555         (qnan_value): Likewise.
61556         (max_value): Likewise.
61557         (min_value): Likewise.
61558         (min_subnorm_value): Likewise.
61559         (initialize): Do not initialize those variables dynamically.
61560
61561 2013-05-03  Roland McGrath  <roland@hack.frob.com>
61562
61563         * io/open.c (__open_2): Moved to ...
61564         * io/open_2.c: ... this new file.
61565         * io/open64.c (__open64_2): Moved to ...
61566         * io/open64_2.c: ... this new file.
61567         * io/openat.c (__openat_2): Moved to ...
61568         * io/openat_2.c: ... this new file.
61569         * io/openat64.c (__openat64_2): Moved to ...
61570         * io/openat64_2.c: ... this new file.
61571         * io/Makefile (routines): Add them.
61572         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
61573         * sysdeps/unix/sysv/linux/open_2.c: File removed.
61574         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
61575         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
61576         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
61577         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
61578         (__openat64): Add hidden_ver.
61579         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
61580         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
61581
61582         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
61583         Separately conditionalize setting of GLRO(dl_sysinfo) so
61584         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
61585         as well, but the actual setting is only under [NEED_DL_SYSINFO].
61586
61587 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61588
61589         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
61590         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
61591         definition.
61592         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
61593         * sysdeps/unix/sysv/linux/powerpc/init-first.c
61594         (_libc_vdso_platform_setup): Add __vdso_time initialization.
61595         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
61596         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
61597
61598 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
61599
61600         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
61601         test signgam value.
61602
61603         * math/libm-test.inc (hypot_test): Do not use
61604         IGNORE_ZERO_INF_SIGN.
61605
61606 2013-05-03  Andreas Jaeger  <aj@suse.de>
61607
61608         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
61609         Linux 3.9.
61610         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
61611         (PF_MAX): Adjust for VSOCK change.
61612
61613 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61614
61615         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
61616
61617 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
61618
61619         [BZ #15264]
61620         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
61621         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
61622         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
61623
61624 2013-05-02  David S. Miller  <davem@davemloft.net>
61625
61626         * sysdeps/sparc/fpu/libm-test-ulps: Update.
61627
61628 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
61629
61630         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
61631
61632 2013-05-01  Roland McGrath  <roland@hack.frob.com>
61633
61634         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
61635
61636 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
61637
61638         [BZ #14952]
61639         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
61640         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
61641         Use __attribute__ ((__gnu_inline__)).
61642         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
61643         Don't use __attribute__ ((__gnu_inline__)).
61644
61645 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
61646
61647         [BZ #15423]
61648         * math/s_catan.c (__catan): Handle small real or imaginary part of
61649         input specially to avoid spurious underflow.
61650         * math/s_catanf.c (__catanf): Likewise.
61651         * math/s_catanh.c (__catanh): Likewise.
61652         * math/s_catanhf.c (__catanhf): Likewise.
61653         * math/s_catanhl.c (__catanhl): Likewise.
61654         * math/s_catanl.c (__catanl): Likewise.
61655         * math/libm-test.inc (catan_test): Add more tests.
61656         (catanh_test): Likewise.
61657         * sysdeps/i386/fpu/libm-test-ulps: Update.
61658         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
61659
61660 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61661
61662         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
61663
61664 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
61665
61666         [BZ #15416]
61667         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
61668         accurately for denominator in atan2.
61669         * math/s_catanf.c (__catanf): Likewise.
61670         * math/s_catanh.c (__catanh): Likewise.
61671         * math/s_catanhf.c (__catanhf): Likewise.
61672         * math/s_catanhl.c (__catanhl): Likewise.
61673         * math/s_catanl.c (__catanl): Likewise.
61674         * math/libm-test.inc (catan_test): Add more tests.
61675         (catanh_test): Likewise.
61676         * sysdeps/i386/fpu/libm-test-ulps: Update.
61677         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
61678
61679 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
61680
61681         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
61682
61683         * benchtests/Makefile (bench): Remove slow benchmarks.
61684         * benchtests/atan-inputs: Add slow benchmark inputs.
61685         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
61686         (BENCH_FUNC): Accept variant offset.
61687         (VARIANT): Define.
61688         * benchtests/bench-skeleton.c (main): Run benchmark for each
61689         variant.
61690         * benchtests/cos-inputs: Add slow benchmark inputs.
61691         * benchtests/exp-inputs: Likewise.
61692         * benchtests/pow-inputs: Likewise.
61693         * benchtests/sin-inputs: Likewise.
61694         * benchtests/slowatan-inputs: Remove.
61695         * benchtests/slowatan.c: Remove.
61696         * benchtests/slowcos-inputs: Remove.
61697         * benchtests/slowcos.c: Remove.
61698         * benchtests/slowexp-inputs: Remove.
61699         * benchtests/slowexp.c: Remove.
61700         * benchtests/slowpow-inputs: Remove.
61701         * benchtests/slowpow.c: Remove.
61702         * benchtests/slowsin-inputs: Remove.
61703         * benchtests/slowsin.c: Remove.
61704         * benchtests/slowtan-inputs: Remove.
61705         * benchtests/slowtan.c: Remove.
61706         * benchtests/tan-inputs: Add slow benchmark inputs.
61707         * scripts/bench.pl: Parse comments and directives.
61708
61709         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
61710         in CPPFLAGS.
61711         ($(objpfx)bench-%.c): Remove *-ITER.
61712         * benchtests/bench-modf.c: Remove definition of ITER.
61713         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
61714         (main): Loop for DURATION seconds instead of fixed number of
61715         iterations.
61716         * scripts/bench.pl: Don't expect iterations in parameters.
61717
61718 2013-04-29  Roland McGrath  <roland@hack.frob.com>
61719
61720         * io/fchdir.c (__fchdir): Renamed from fchdir.
61721         (fchdir): Define as weak alias.
61722
61723 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
61724
61725         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
61726         (ERRNO_EDOM): Likewise.
61727         (ERRNO_ERANGE): Likewise.
61728         (noErrnoTests): New variable.
61729         (init_max_error): Set errno to 0.
61730         (test_single_errno): New function.
61731         (test_errno): Likewise.
61732         (check_float_internal): Call test_errno.  Set errno to 0.
61733         (check_complex): Refer to errno tests in comment.
61734         (check_int): Call test_errno.  Set errno to 0.
61735         (check_long): Likewise.
61736         (check_bool): Likewise.
61737         (check_longlong): Likewise.
61738         (cos_test): Use ERRNO_* flags for errno tests instead of
61739         check_int.
61740         (expm1_test): Likewise.
61741         (fmod_test): Likewise.
61742         (ilogb_test): Likewise.
61743         (lgamma_test): Likewise.
61744         (pow_test): Likewise.
61745         (remainder_test): Likewise.
61746         (sin_test): Likewise.
61747         (tan_test): Likewise.
61748         (yn_test): Likewise.
61749         (initialize): Set errno to 0.
61750         (main): Print number of errno tests.
61751         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
61752
61753 2013-04-29  Andreas Jaeger  <aj@suse.de>
61754
61755         [BZ #15084]
61756         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
61757         and RES_USEVC.
61758
61759         [BZ #15085]
61760         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
61761         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
61762         unimplemented.
61763
61764         [BZ #15380]
61765         * stdlib/random.c (__initstate): Return NULL if
61766         __initstate fails.
61767
61768         [BZ #15086]
61769         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
61770         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
61771         RES_SNGLKUPREOP.
61772
61773 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61774
61775         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
61776
61777 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
61778
61779         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
61780         of individual tests.
61781         (casin_test): Likewise.
61782         (casinh_test): Likewise.
61783
61784 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
61785
61786         [BZ #15409]
61787         * math/s_catan.c (__catan): Handle arguments with large real or
61788         imaginary part separately without squaring.
61789         * math/s_catanf.c (__catanf): Likewise.
61790         * math/s_catanh.c (__catanh): Likewise.
61791         * math/s_catanhf.c (__catanhf): Likewise.
61792         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
61793         and redefine.
61794         (__catanhl): Handle arguments with large real or imaginary part
61795         separately without squaring.
61796         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
61797         and redefine.
61798         (__catanl): Handle arguments with large real or imaginary part
61799         separately without squaring.
61800         * math/libm-test.inc (catan_test): Add more tests.
61801         (catanh_test): Likewise.
61802         * sysdeps/i386/fpu/libm-test-ulps: Update.
61803         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
61804
61805 2013-04-27  Andreas Jaeger  <aj@suse.de>
61806
61807         [BZ #15007]
61808         * stdlib/stdlib.h: Update guards for qecvt.
61809         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
61810         <stdlib.h>.
61811
61812 2013-04-27  Allan McRae  <allan@archlinux.org>
61813
61814         * sysdeps/i386/fpu/libm-test-ulps: Update.
61815
61816 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
61817
61818         [BZ #15406]
61819         * math/s_catan.c: Include <float.h>.
61820         (__catan): Ensure underflow exception occurs for underflowed
61821         result.
61822         * math/s_catanf.c: Include <float.h>.
61823         (__catanf): Ensure underflow exception occurs for underflowed
61824         result.
61825         * math/s_catanh.c: Include <float.h>.
61826         (__catanh): Ensure underflow exception occurs for underflowed
61827         result.
61828         * math/s_catanhf.c: Include <float.h>.
61829         (__catanhf): Ensure underflow exception occurs for underflowed
61830         result.
61831         * math/s_catanhl.c: Include <float.h>.
61832         (__catanhl): Ensure underflow exception occurs for underflowed
61833         result.
61834         * math/s_catanl.c: Include <float.h>.
61835         (__catanl): Ensure underflow exception occurs for underflowed
61836         result.
61837         * math/libm-test.inc (catan_test): Add more tests.
61838         (catanh_test): Likewise.
61839
61840         [BZ #15405]
61841         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
61842         underflowed result.
61843         * math/s_ccoshf.c (__ccoshf): Likewise.
61844         * math/s_ccoshl.c (__ccoshl): Likewise.
61845         * math/s_csin.c (__csin): Likewise.
61846         * math/s_csinf.c (__csinf): Likewise.
61847         * math/s_csinh.c (__csinh): Likewise.
61848         * math/s_csinhf.c (__csinhf): Likewise.
61849         * math/s_csinhl.c (__csinhl): Likewise.
61850         * math/s_csinl.c (__csinl): Likewise.
61851         * math/libm-test.inc (ccos_test): Add more tests.
61852         (ccosh_test): Likewise.
61853         (csin_test): Likewise.
61854         (csinh_test): Likewise.
61855
61856 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61857
61858         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
61859         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
61860         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
61861         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
61862         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
61863         powerpc/power5+/fpu folders.
61864         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
61865
61866
61867 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
61868
61869         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
61870
61871 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
61872
61873         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
61874         additions to variable.
61875         [$(config-machine) = x86_64] (modules-names): Likewise.
61876         ($(objpfx)tst-audit3): Remove dependency.
61877         ($(objpfx)tst-audit3.out): Likewise.
61878         ($(objpfx)tst-audit4): Likewise.
61879         ($(objpfx)tst-audit4.out): Likewise.
61880         ($(objpfx)tst-audit5): Likewise.
61881         ($(objpfx)tst-audit5.out): Likewise.
61882         ($(objpfx)tst-audit6): Likewise.
61883         ($(objpfx)tst-audit6.out): Likewise.
61884         ($(objpfx)tst-audit7): Likewise.
61885         ($(objpfx)tst-audit7.out): Likewise.
61886         (tst-audit3-ENV): Remove variable.
61887         (tst-audit4-ENV): Likewise.
61888         (tst-audit5-ENV): Likewise.
61889         (tst-audit6-ENV): Likewise.
61890         (tst-audit7-ENV): Likewise.
61891         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
61892         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
61893         addition to variable.
61894         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
61895         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
61896         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
61897         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
61898         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
61899         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
61900         tst-audit3, tst-audit4 and tst-audit5.
61901         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
61902         tst-audit6 and tst-audit7.
61903         [$(subdir) = elf] (modules-names): Add audit modules for those
61904         tests.
61905         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
61906         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
61907         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
61908         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
61909         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
61910         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
61911         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
61912         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
61913         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
61914         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
61915         [$(subdir) = elf] (tst-audit3-ENV): New variable.
61916         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
61917         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
61918         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
61919         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
61920         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
61921         Likewise.
61922         [$(subdir) = elf && $(config-cflags-avx) = yes]
61923         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
61924         [$(subdir) = elf && $(config-cflags-avx) = yes]
61925         (CFLAGS-tst-auditmod4a.c): Likewise.
61926         [$(subdir) = elf && $(config-cflags-avx) = yes]
61927         (CFLAGS-tst-auditmod4b.c): Likewise.
61928         [$(subdir) = elf && $(config-cflags-avx) = yes]
61929         (CFLAGS-tst-auditmod6b.c): Likewise.
61930         [$(subdir) = elf && $(config-cflags-avx) = yes]
61931         (CFLAGS-tst-auditmod6c.c): Likewise.
61932         [$(subdir) = elf && $(config-cflags-avx) = yes]
61933         (CFLAGS-tst-auditmod7b.c): Likewise.
61934         * elf/tst-audit3.c: Move to ...
61935         * sysdeps/x86_64/tst-audit3.c: ... here.
61936         * elf/tst-audit4.c: Move to ...
61937         * sysdeps/x86_64/tst-audit4.c: ... here.
61938         * elf/tst-audit5.c: Move to ...
61939         * sysdeps/x86_64/tst-audit5.c: ... here.
61940         * elf/tst-audit6.c: Move to ...
61941         * sysdeps/x86_64/tst-audit6.c: ... here.
61942         * elf/tst-audit7.c: Move to ...
61943         * sysdeps/x86_64/tst-audit7.c: ... here.
61944         * elf/tst-auditmod3a.c: Move to ...
61945         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
61946         * elf/tst-auditmod3b.c: Move to ...
61947         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
61948         * elf/tst-auditmod4a.c: Move to ...
61949         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
61950         * elf/tst-auditmod4b.c: Move to ...
61951         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
61952         * elf/tst-auditmod5a.c: Move to ...
61953         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
61954         * elf/tst-auditmod5b.c: Move to ...
61955         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
61956         * elf/tst-auditmod6a.c: Move to ...
61957         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
61958         * elf/tst-auditmod6b.c: Move to ...
61959         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
61960         * elf/tst-auditmod6c.c: Move to ...
61961         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
61962         * elf/tst-auditmod7a.c: Move to ...
61963         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
61964         * elf/tst-auditmod7b.c: Move to ...
61965         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
61966
61967 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
61968
61969         [BZ #15366]
61970         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
61971         define unconditionally.
61972         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
61973         define unconditionally.
61974         (INT8_C, INT16_C, etc.): Likewise.
61975
61976 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
61977
61978         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
61979         __ehdr_start with hidden visibility.
61980
61981         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
61982
61983 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
61984
61985         * math/libm-test.inc (cos_test): Use accurate hex constants.
61986         (sincost_test): Likewise.
61987
61988 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
61989
61990         * math/libm-test.inc (catan_test): Add more tests.
61991         (catanh_test): Likewise.
61992
61993         * math/s_catanf.c (__catanf): Use suffixed floating-point
61994         constants.
61995         * math/s_catanhf.c (__catanhf): Likewise.
61996         * math/s_catanhl.c (__catanhl): Likewise.
61997         * math/s_catanl.c (__catanl): Likewise.
61998
61999         [BZ #15394]
62000         * math/s_catan.c (__catan): Calculate imaginary part of result
62001         with log1p not log unless computing log of number close to 0.
62002         * math/s_catanf.c (__catanf): Likewise.
62003         * math/s_catanl.c (__catanl): Likewise.
62004         * math/s_catanh.c (__catanh): Calculate real part of result with
62005         log1p not log unless computing log of number close to 0.
62006         * math/s_catanhf.c (__catanhf): Likewise.
62007         * math/s_catanhl.c (__catanhl): Likewise.
62008         * math/libm-test.inc (catan_test): Add more tests.
62009         (catanh_test): Likewise.
62010         * sysdeps/i386/fpu/libm-test-ulps: Update.
62011         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62012
62013 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
62014
62015         * benchtests/Makefile: Mention files in which fast and slow
62016         paths of math functions are implemented.
62017
62018 2013-04-23  Roland McGrath  <roland@hack.frob.com>
62019
62020         * sysdeps/posix/timespec_get.c: New file.
62021
62022 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62023
62024         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
62025         POWER.
62026         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
62027         for POWER.
62028         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
62029         powerpc/power5/fpu folders.
62030         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
62031         * benchtests/Makefile: Add modf testcase.
62032         * benchtests/bench-modf.c: New file: Benchmark test for mo
62033
62034 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
62035
62036         [BZ #14888]
62037         * time/Makefile (tests): Add tst-strptime-whitespace.
62038         * time/strptime_l.c (get_number): Use ISSPACE.
62039         (__strptime_internal): Likewise.
62040         * time/tst-strptime-whitespace.c: New test case.
62041
62042 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
62043
62044         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
62045         member.
62046         (_nss_files_init): Set it here.
62047
62048 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
62049
62050         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
62051         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
62052         unsigned.
62053
62054 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
62055
62056         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
62057
62058 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
62059
62060         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
62061         size just once.
62062
62063 2013-04-21  David S. Miller  <davem@davemloft.net>
62064
62065         * po/ru.po: Update Russion translation from translation project.
62066
62067 2013-04-17  Adam Conrad  <adconrad@0c3.net>
62068
62069         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
62070         and setfsgid.
62071
62072 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
62073
62074         * configure.in: Remove i386 configure warning. Remove i386 case.
62075         * configure: Regenerate.
62076         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
62077         Add example to error message.
62078         * sysdeps/i386/configure: Regenerate.
62079
62080 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
62081
62082         * benchtests/Makefile (bench): Add cos, tan, slowcos and
62083         slowtan.
62084         * benchtests/cos-inputs: New file.
62085         * benchtests/slowcos-inputs: New file.
62086         * benchtests/slowcos.c: New file.
62087         * benchtests/slowtan-inputs: New file.
62088         * benchtests/slowtan.c: New file.
62089         * benchtests/tan-inputs: New file.
62090
62091 2013-04-16  Roland McGrath  <roland@hack.frob.com>
62092
62093         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
62094         considered kosher.
62095
62096 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
62097
62098         * benchtests/Makefile: Include cppflags-iterator.mk to add
62099         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
62100
62101         * Makefile.in (bench-clean): New target.
62102         * benchtests/Makefile (bench-clean): Likewise.
62103
62104 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
62105
62106         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
62107
62108 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
62109
62110         * stdio-common/tstdiomisc.c: Fix coding-style violation.
62111
62112 2013-04-15  Andreas Schwab  <schwab@suse.de>
62113
62114         * nscd/grpcache.c (cache_addgr): Properly check for short write.
62115         * nscd/initgrcache.c (addinitgroupsX): Likewise.
62116         * nscd/pwdcache.c (cache_addpw): Likewise.
62117         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
62118         more than recsize.
62119
62120 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
62121
62122         * benchtests/Makefile (bench): Write all output to
62123         bench-out.tmp together.
62124
62125 2013-04-15  Andreas Schwab  <schwab@suse.de>
62126
62127         * nscd/nscd.c (main): Don't fork again after closing files.
62128
62129 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
62130
62131         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
62132
62133         * benchtests/Rules (bench-deps): Collect dependencies into a
62134         single variable.  Add Makefile to dependencies.
62135         ($(objpfx)bench-%.c): Depend on bench-deps.
62136
62137 2013-04-12  Roland McGrath  <roland@hack.frob.com>
62138             Xavier Roche  <roche+kml2@exalead.com>
62139
62140         [BZ #15361]
62141         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
62142         just that it's a file descriptor.
62143         * manual/llio.texi (Synchronizing AIO Operations): Update description
62144         for EBADF error from aio_fsync.
62145
62146 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
62147
62148         * Rules (bench): Move target definition...
62149         * benchtests/Makefile: ... here.
62150
62151 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
62152
62153         * math/libm-test.inc (cos_test): Fix PI/2 test.
62154         (sincos_test): Likewise.
62155         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
62156         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
62157
62158 2013-04-11  Andreas Schwab  <schwab@suse.de>
62159
62160         [BZ #13988]
62161         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
62162         accept exponent character only when digits were seen.
62163         * stdio-common/Makefile (tests): Add bug26.
62164         * stdio-common/bug26.c: New file.
62165
62166         [BZ #14293]
62167         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
62168         non-freeable.
62169
62170 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
62171
62172         * Makeconfig (rtld-prefix): Define built linker prefix.
62173         * Rules (run-bench): Use it.
62174         * math/Makefile (run-regen-ulps): Likewise.
62175
62176         * Rules (bench): Remove eval.
62177
62178 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
62179             Roland McGrath  <roland@hack.frob.com>
62180             Ondrej Bilka  <neleai@seznam.cz>
62181
62182         [BZ #15346]
62183         * time/getdate.c: Include ctype.h and alloca.h.
62184         (__getdate_r): Trim leading and trailing spaces of input.
62185         * time/tst-getdate.c (tests): Add tests with leading and
62186         trailing spaces.
62187
62188 2013-04-08  Roland McGrath  <roland@hack.frob.com>
62189
62190         [BZ #14280]
62191         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
62192         when computing value.
62193
62194 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
62195
62196         * math/README.libm-test (How can I generate "libm-test-ulps"?):
62197         Use testrun.sh to run libm tests.
62198
62199         [BZ #15309]
62200         * elf/dl-open.c (dl_open_worker): memset all of seen array.
62201
62202 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
62203
62204         [BZ #15264]
62205         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
62206
62207 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
62208
62209         * Makefile.in (regen-ulps): New target.
62210         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
62211         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
62212         [ifneq (no,$(PERL)] (regen-ulps): New target.
62213         [ifeq (no,$(PERL)] (regen-ulps): New target.
62214         * math/libm-test.inc (ulps_file_name): Define.
62215         (output_dir): New variable.
62216         (options): Add "output-dir" option.
62217         (parse_opt): Handle 'o' case.
62218         (main): If output_dir is non-NULL use it as a prefix
62219         otherwise use "".
62220         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
62221
62222 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
62223
62224         [BZ #10060, #10062]
62225         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
62226         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
62227         fail configure if __sync_val_compare_and_swap is not inlined.
62228         * sysdeps/i386/configure: Regenerate.
62229         * configure.in: Build for i686 when configured for i386.
62230         * configure: Regenerate.
62231         * README: Remove i386 reference.
62232
62233 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
62234
62235         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
62236         * sysdeps/s390/s390-64/sysdep.h: Likewise.
62237
62238 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
62239
62240         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
62241         (lmsnanval): New variables.
62242         (F): Add conversion tests.
62243         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
62244         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
62245
62246         * stdio-common/tstdiomisc.c (F): Properly collect individual
62247         tests' results.
62248
62249         [BZ #14686, #15336]
62250         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
62251         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
62252         Instead, use input NaN values or generate a qNaN by arithmetic
62253         operation.  Also fix bugs to comply with the standard.
62254         * math/libm-test.inc (remainder_test): Add more tests.
62255
62256         [BZ #15335, #15342]
62257         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
62258         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
62259         input NaN values or generate a qNaN by arithmetic operation.
62260
62261         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
62262         unreachable code.
62263
62264         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
62265         definitions.
62266
62267 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
62268
62269         [BZ #14478]
62270         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
62271         underflowed result.
62272         * math/s_cexpf.c (__cexpf): Likewise.
62273         * math/s_cexpl.c (__cexpl): Likewise.
62274         * math/libm-test.inc (cexp_test): Add more tests.
62275
62276 2013-04-03  Andreas Schwab  <schwab@suse.de>
62277
62278         [BZ #15330]
62279         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
62280         order arrays from heap if bigger than alloca cutoff.
62281
62282 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
62283
62284         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
62285         (SNAN_TESTS_double): Refer to GCC PR56831.
62286         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
62287         GCC PR56828.
62288
62289 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
62290
62291         * Rules (bench): Move bench.out after the run is complete.
62292
62293         * Rules (bench): Echo currently running benchmark.
62294
62295         * benchtests/Makefile (bench): Add atan and slowatan.
62296         * benchtests/atan-inputs: New file.
62297         * benchtests/slowatan-inputs: New file.
62298         * benchtests/slowatan.c: New file.
62299
62300         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
62301         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
62302         its value.
62303
62304         [BZ #15305]
62305         * sysdeps/unix/sysv/linux/kernel-features.h
62306         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
62307         __ASSUME_XFS_RESTRICTED_CHOWN.
62308         * sysdeps/unix/sysv/linux/pathconf.c
62309         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
62310         Save and restore errno.
62311
62312 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
62313
62314         [BZ #15327]
62315         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
62316         arguments using __kernel_casinh.
62317         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
62318         arguments using __kernel_casinhf.
62319         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
62320         arguments using __kernel_casinhl.
62321         * math/libm-test.inc (cacosh_test): Add more tests.
62322         * sysdeps/i386/fpu/libm-test-ulps: Update.
62323         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62324
62325 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
62326
62327         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
62328         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
62329
62330         * bench/Makefile (bench): Add sin and slowsin.
62331         * benchtests/sin-inputs: New file.
62332         * benchtests/slowsin-inputs: New file.
62333         * benchtests/slowsin.c: New file.
62334
62335         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
62336         (bench): Add slowexp and slowpow.
62337         (exp-ITER): Increase iterations.
62338         (pow-ITER): Likewise.
62339         * benchtests/exp-inputs: Change input.
62340         * benchtests/pow-inputs: Likewise.
62341         * benchtests/slowexp-inputs: New file.
62342         * benchtests/slowexp.c: New file.
62343         * benchtests/slowpow-inputs: New file.
62344         * benchtests/slowpow.c: New file.
62345
62346 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62347
62348         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
62349         instructions.
62350         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
62351         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
62352         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
62353         * benchtests/Makefile: Add rint benchtest.
62354         * benchtests/rint-inputs: Input for rint benchtest.
62355
62356 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
62357
62358         * Versions.def (libm): Add GLIBC_2.18.
62359         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
62360         hidden libm prototypes.
62361         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
62362         * math/Makefile (libm-calls): Add s_issignaling.
62363         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
62364         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
62365         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
62366         declaration.
62367         * math/math.h [__USE_GNU] (issignaling): New macro.
62368         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
62369         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
62370         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
62371         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
62372         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
62373         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
62374         * manual/arith.texi (issignaling): New section.
62375         * manual/libm-err-tab.pl (@all_functions): Update comment.
62376         * math/gen-libm-test.pl (parse_args): Apply special handling for
62377         issignaling.
62378         * math/libm-test.inc (print_float, issignaling_test): New
62379         functions.
62380         (check_float_internal): Add issignaling checks.
62381         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
62382         default definition.
62383         * sysdeps/powerpc/math-tests.h: New file.
62384         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
62385         tests.
62386         * math/test-snan.c (TEST_FUNC): Likewise.
62387
62388 2013-03-30  David S. Miller  <davem@davemloft.net>
62389
62390         * po/de.po: Update from translation team.
62391
62392 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
62393
62394         [BZ #10357]
62395         * math/k_casinh.c (__kernel_casinh): Handle arguments with
62396         imaginary part less than 1.0 and real part less than 0.5
62397         specially.
62398         * math/k_casinhf.c (__kernel_casinhf): Likewise.
62399         * math/k_casinhl.c (__kernel_casinhl): Likewise.
62400         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
62401         (cacos_test): Add more tests.
62402         (casin_test): Likewise.
62403         (casinh_test): Likewise.
62404         * sysdeps/i386/fpu/libm-test-ulps: Update.
62405         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62406
62407 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
62408
62409         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
62410         ONE with its value.
62411
62412         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
62413         (__pow_mp): Replace ONE and MONE with their values.
62414         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
62415         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
62416         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
62417         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
62418         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
62419         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
62420
62421         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
62422
62423         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
62424         (__pow_mp): Replace ZERO and MZERO with their values.
62425         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
62426         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
62427         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
62428         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
62429         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
62430         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
62431         (__sqr): Likewise.
62432
62433         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
62434
62435         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
62436
62437 2013-03-28  Roland McGrath  <roland@hack.frob.com>
62438
62439         * include/stdlib.h [!SHARED] (__call_tls_dtors):
62440         Declare with __attribute__ ((weak)).
62441         * stdlib/exit.c (__libc_atexit) [!SHARED]:
62442         Call __call_tls_dtors only if it's not NULL.
62443
62444 2013-03-28  Roland McGrath  <roland@hack.frob.com>
62445
62446         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
62447         didn't do it already, then set _dl_phdr and _dl_phnum based on the
62448         magic __ehdr_start linker symbol if it's defined.
62449         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
62450         them up here if it was already done.
62451
62452         * elf/dl-support.c (_dl_phdr): Make pointer to const.
62453         (_dl_aux_init): Use const in cast when setting it.
62454         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
62455         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
62456         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
62457
62458         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
62459         Declare them here.
62460         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
62461         * csu/libc-tls.c: Nor here.
62462         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
62463
62464         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
62465         (__libc_message): Never call vsyslog.
62466
62467 2013-03-28  Alan Modra  <amodra@gmail.com>
62468
62469         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
62470         Define as empty.
62471         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
62472         Likewise.
62473
62474 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62475
62476         [BZ #15214]
62477         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
62478         underflow.
62479         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
62480
62481 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
62482
62483         [BZ #15304]
62484         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
62485         Don't add gid passed as argument.
62486
62487         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
62488
62489 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
62490
62491         [BZ #15307]
62492         * math/k_casinh.c (__kernel_casinh): Handle arguments with
62493         imaginary part between 1.0 and 1.5 and real part less than 0.5
62494         specially.
62495         * math/k_casinhf.c (__kernel_casinhf): Likewise.
62496         * math/k_casinhl.c (__kernel_casinhl): Likewise.
62497         * math/libm-test.inc (cacos_test): Add more tests.
62498         (casin_test): Likewise.
62499         (casinh_test): Likewise.
62500         * sysdeps/i386/fpu/libm-test-ulps: Update.
62501         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62502
62503 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
62504
62505         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
62506         constants.
62507         (norm): Likewise.
62508         (denorm): Likewise.
62509         (__dbl_mp): Likewise.
62510         (add_magnitudes): Likewise.
62511         (sub_magnitudes): Likewise.
62512         (__add): Likewise.
62513         (__sub): Likewise.
62514         (__mul): Likewise.
62515         (__sqr): Likewise.
62516         (__inv): Likewise.
62517         (__dvd): Likewise.
62518
62519         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
62520         commented code.
62521         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
62522         (__dubcos): Likewise.
62523         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
62524         (__ieee754_acos): Likewise.
62525         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
62526         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
62527         (__exp1): Likewise.
62528         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
62529         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
62530         (log1): Likewise.
62531         (my_log2): Likewise.
62532         (checkint): Likewise.
62533         * sysdeps/ieee754/dbl-64/e_remainder.c
62534         (__ieee754_remainder): Likewise.
62535         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
62536         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
62537         (bsloww): Likewise.
62538         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
62539
62540         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
62541         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
62542         MANTISSA_STORE_T to store computations on mantissa.  Use
62543         macros for rounding and division.
62544         (denorm): Likewise.
62545         (__dbl_mp): Likewise.
62546         (add_magnitudes): Likewise.
62547         (sub_magnitudes): Likewise.
62548         (__mul): Likewise.
62549         (__sqr): Likewise.
62550         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
62551         powers of two in terms of TWOPOW macro.
62552         (mp_no): Make type of mantissa as MANTISSA_T.
62553         [!RADIXI]: Define RADIXI.
62554         [!TWO52]: Define TWO52.
62555         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
62556
62557 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62558
62559         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
62560         llroundl symbol when building for PPC32.
62561
62562 2013-03-24  Mark H Weaver  <mhw@netris.org>
62563
62564         * manual/arith.texi (Normalization Functions): Fix prototypes for
62565         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
62566
62567 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62568
62569         [BZ #13889]
62570         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
62571         high value to check if expl overflow.
62572         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
62573         to check for underflow and overflow.
62574         * math/libm-test.inc: Add exp test.
62575
62576 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
62577
62578         [BZ #11120]
62579         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
62580         with NOT_IN_libc.
62581
62582 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62583
62584         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
62585         symbol.
62586
62587 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
62588
62589         * math/gen-libm-test.pl (parse_args, special_functions): Properly
62590         wrap blocks consisting of several statements.
62591
62592         * sysdeps/generic/math-tests.h: New file.
62593         * sysdeps/i386/fpu/math-tests.h: Likewise.
62594         * math/test-snan.c: Include it.
62595         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
62596
62597 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
62598
62599         [BZ #15285]
62600         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
62601         (__ieee754_j0l): Do not improve calculations using cos of twice
62602         input for inputs above LDBL_MAX / 2.0L.
62603         (__ieee754_y0l): Likewise.
62604         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
62605         (__ieee754_j1l): Do not improve calculations using cos of twice
62606         input for inputs above LDBL_MAX / 2.0L.
62607         (__ieee754_y1l): Likewise.
62608         * math/libm-test.inc (j0_test): Add another test.
62609         (j1_test): Likewise.
62610         (y0_test): Likewise.
62611         (y1_test): Likewise.
62612         * sysdeps/i386/fpu/libm-test-ulps: Update.
62613
62614 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
62615
62616         * Rules ($(objpfx)bench-%.c): Include code from a C source
62617         file.
62618
62619 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
62620
62621         [BZ #15287]
62622         * math/k_casinh.c (__kernel_casinh): Handle arguments with
62623         imaginary part 1.0 and real part less than 0.5 specially.
62624         * math/k_casinhf.c (__kernel_casinhf): Likewise.
62625         * math/k_casinhl.c (__kernel_casinhl): Likewise.
62626         * math/libm-test.inc (cacos_test): Add more tests.
62627         (casin_test): Likewise.
62628         (casinh_test): Likewise.
62629         * sysdeps/i386/fpu/libm-test-ulps: Update.
62630         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62631
62632 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
62633
62634         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
62635         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
62636
62637 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
62638
62639         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
62640         * config.make.in (config-cflags-sse4): Remove variable.
62641         (config-cflags-avx): Likewise.
62642         (config-cflags-sse2avx): Likewise.
62643         (config-cflags-novzeroupper): Likewise.
62644         (config-asflags-i686): Likewise.
62645         (have-mfma4): Likewise.
62646         (have-as-vis3): Likewise.
62647         (MIG): Likewise.
62648         * configure.in (MIG): Do not AC_SUBST.
62649         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
62650         (libc_cv_cc_sse4): Do not AC_SUBST.
62651         (libc_cv_cc_avx): Likewise.
62652         (libc_cv_cc_sse2avx): Likewise.
62653         (libc_cv_cc_novzeroupper): Likewise.
62654         (libc_cv_cc_fma4): Likewise.
62655         (libc_cv_as_i686): Likewise.
62656         (libc_cv_sparc_as_vis3): Likewise.
62657         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
62658         LIBC_CONFIG_VAR.
62659         (config-asflags-i686): Likewise.
62660         (config-cflags-avx): Likewise.
62661         (config-cflags-sse2avx): Likewise.
62662         (have-mfma4): Likewise.
62663         (config-cflags-novzeroupper): Likewise.
62664         * sysdeps/mach/configure.in (MIG): Likewise.
62665         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
62666         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
62667         LIBC_CONFIG_VAR.
62668         (config-cflags-avx): Likewise.
62669         (config-cflags-sse2avx): Likewise.
62670         (have-mfma4): Likewise.
62671         (config-cflags-novzeroupper): Likewise.
62672         * configure: Regenerated.
62673         * sysdeps/i386/configure: Likewise.
62674         * sysdeps/mach/configure: Likewise.
62675         * sysdeps/sparc/configure: Likewise.
62676         * sysdeps/x86_64/configure: Likewise.
62677
62678 2013-03-20  Roland McGrath  <roland@hack.frob.com>
62679
62680         [BZ #14812]
62681         * locale/programs/localedef.c (options): Put N_ translation marker
62682         on argument names, not just descriptions.
62683
62684 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
62685
62686         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
62687
62688 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
62689
62690         [BZ #14176]
62691         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
62692
62693 2013-03-19  Roland McGrath  <roland@hack.frob.com>
62694
62695         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
62696         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
62697         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
62698         [!BEFORE_ABORT] (before_abort): New function.
62699         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
62700         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
62701         (writev_for_fatal): New function.
62702         (WRITEV_FOR_FATAL): New macro; call that.
62703         (backtrace_and_maps): New function.
62704         (BEFORE_ABORT): New macro; call that.
62705         (struct str_list): Type removed.
62706         (__libc_message, __libc_fatal): Functions removed.
62707         Include <sysdeps/posix/libc_fatal.c> instead.
62708
62709 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
62710
62711         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
62712         constants.
62713         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
62714         double constants.
62715
62716 2013-03-19  Andreas Schwab  <schwab@suse.de>
62717
62718         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
62719         * sysdeps/gnu/configure: Regenerate.
62720
62721         * configure.in: Substitute libc_cv_rtlddir.
62722         * configure: Regenerate.
62723         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
62724         * Makeconfig (rtlddir, inst_rtlddir): New variables.
62725         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
62726         * elf/Makefile (install-others, CFLAGS-interp.c)
62727         (ldso_install, common-ldd-rewrite): Likewise.
62728         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
62729         $(inst_slibdir)/$(rtld-installed-name).
62730         * scripts/rellns-sh: Add -p option.
62731         * Makerules (make-shlib-link): Use rellns-sh to get relative name
62732         for source.
62733
62734 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
62735
62736         * manual/nptl.texi: Renamed to ...
62737         * manual/threads.texi: ... this.
62738         * manual/Makefile (chapters): Update.
62739
62740 2013-03-18  Roland McGrath  <roland@hack.frob.com>
62741
62742         [BZ #14812]
62743         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
62744         on argument names, not just descriptions.
62745         * malloc/memusagestat.c (options): Likewise.
62746         * nss/getent.c (options): Likewise.
62747
62748 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
62749
62750         [BZ #14812]
62751         * iconv/iconv_prog.c (options): Put N_ translation marker
62752         on argument names, not just descriptions.
62753         * iconv/iconvconfig.c (options): Likewise.
62754
62755 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
62756
62757         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
62758         implementation which is faster on all x86_64 architectures.
62759         Tested on AMD, Intel Nehalem, SNB, IVB.
62760         * sysdeps/x86_64/strnlen.S: Likewise.
62761
62762         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
62763         Remove all multiarch strlen and strnlen versions.
62764         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
62765         Remove strlen and strnlen related parts.
62766
62767         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
62768         Inline strlen part.
62769         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
62770
62771         * sysdeps/x86_64/multiarch/strlen.S: Remove.
62772         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
62773         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
62774         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
62775         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
62776         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
62777
62778 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
62779
62780         * manual/memory.texi (Malloc Tunable Parameters):
62781         Sort parameters alphabetically. Add comments for missing entries.
62782
62783 2013-03-17  David S. Miller  <davem@davemloft.net>
62784
62785         * sysdeps/sparc/fpu/libm-test-ulps: Update.
62786
62787 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
62788
62789         [BZ #15283]
62790         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
62791         for arguments at most half maximum finite value.
62792         * math/libm-test.inc (j0_test): Add more tests.
62793         (j1_test): Likewise.
62794         (y0_test): Likewise.
62795         (y1_test): Likewise.
62796         * sysdeps/i386/fpu/libm-test-ulps: Update.
62797         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62798
62799         [BZ #14155]
62800         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
62801         1 / x and functions P and Q for arguments above 0x1p256L.
62802         (__ieee754_y0l): Likewise.
62803         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
62804         (__ieee754_y1l): Likewise.
62805         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
62806         (j1_test): Likewise.
62807         (y0_test): Likewise.
62808         (y1_test): Likewise.
62809
62810 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
62811
62812         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
62813         variable.
62814
62815 2013-03-15  Roland McGrath  <roland@hack.frob.com>
62816
62817         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
62818         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
62819         zero since it's initialized to EXEC_PAGESIZE.
62820
62821         * sysdeps/unix/sysv/linux/ldsodefs.h
62822         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
62823         * sysdeps/generic/ldsodefs.h: ... here.
62824
62825 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
62826
62827         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
62828
62829         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
62830         math/test-snan.c.
62831         * math/test-snan.c: Renamed from
62832         sysdeps/powerpc/fpu/test-powerpc-snan.c.
62833         * math/Makefile (tests): Add test-snan.
62834         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
62835         test-powerpc-snan.
62836
62837         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
62838         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
62839         functions.
62840         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
62841         __builtin_nan family of functions.
62842         * math/libm-test.inc (initialize): Initialize qnan_value with
62843         __builtin_nan family of functions.
62844         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
62845         Remove variables.
62846         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
62847         Remove functions.
62848         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
62849         storage class.  Initialize qNaN_var and sNaN_var with
62850         __builtin_nan and __builtin_nans families of functions,
62851         respectively.
62852
62853         * math/libm-test.inc (acosh_test): Also test with qNaN input.
62854         (sqrt_test): Remove duplicate test with qNaN input.
62855         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
62856         (round_test, signbit_test, significand_test): Note missing +/-Inf
62857         as well as qNaN tests.
62858
62859         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
62860         qNaN_var.  Fix a few strings, too.
62861         * math/libm-test.inc (nan_value): Rename to qnan_value.
62862         * math/gen-libm-test.pl (%beautify): Adjust to that.
62863         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
62864         * math/test-misc.c (main): Likewise.
62865         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
62866         to __qnan_bytes, and __qnan_union, respectively.
62867         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
62868         Likewise.
62869         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
62870         and lqnanval, respectively.
62871         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
62872         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
62873         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
62874         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
62875
62876         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
62877         * math/test-misc.c (main) [__x86_64__]: Enable test for long
62878         doubles.
62879
62880         * math/test-misc.c (main): Fix copy'n'pastos.
62881         * misc/tst-efgcvt.c (special): Likewise.
62882
62883         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
62884         Remove declarations.
62885
62886 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
62887
62888         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
62889         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
62890         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
62891         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
62892
62893 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62894
62895         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
62896         macro to return vdso values correctly in IFUNC implementations.
62897         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
62898         Optimization by using IFUNC.
62899
62900 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
62901             Richard Henderson  <rth@redhat.com>
62902             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
62903
62904         * Makefile.in (bench): New target.
62905         * NEWS: Mention the benchmark framework.
62906         * Rules (bench): Likewise.
62907         (binaries-bench): Generate binaries for functions to
62908         benchmark.
62909         * benchtests/Makefile: New makefile for benchmark tests.
62910         * benchtests/bench-skeleton.c: New skeleton file for benchmark
62911         programs.
62912         * benchtests/exp-inputs: New input file for EXP function.
62913         * benchtests/pow-inputs: New input file for POW function.
62914         * scripts/bench.pl: New script to generate source files for
62915         benchmark programs.
62916
62917 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
62918
62919         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
62920         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
62921         computations on mantissa.  Use macros for rounding and
62922         division.
62923         (denorm): Likewise.
62924         (__dbl_mp): Likewise.
62925         (add_magnitudes): Likewise.
62926         (sub_magnitudes): Likewise.
62927         (__mul): Likewise.
62928         (__sqr): Likewise.
62929         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
62930         powers of two in terms of TWOPOW macro.
62931         (mp_no): Make type of mantissa as MANTISSA_T.
62932         [!RADIXI]: Define RADIXI.
62933         [!TWO52]: Define TWO52.
62934         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
62935
62936         * manual/nptl.texi (cindex): Modify threads to pthreads.
62937
62938 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
62939
62940         * sysdeps/x86_64/preconfigure: Regenerated.
62941
62942 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
62943
62944         [BZ #14155]
62945         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
62946         0x1p28 and above.
62947         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
62948         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
62949         0x1p28 and above.
62950         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
62951         * math/libm-test.inc (j0_test): Do not allow one spurious
62952         underflow exception.
62953         (y1_test): Likewise.
62954
62955 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
62956
62957         * manual/Makefile (chapters): Add nptl.
62958         * manual/debug.texi (Debugging Support): Add link to Threads
62959         chapter.
62960         * manual/nptl.texi: New file.
62961
62962         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
62963
62964 2013-03-14  Petr Baudis  <pasky@ucw.cz>
62965
62966         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
62967         for non-NULL pointer before the memory validity test. Pointed
62968         out by Holger Brunck <holger.brunck@keymile.com>.
62969
62970 2013-03-13  Andreas Schwab  <schwab@suse.de>
62971
62972         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
62973         instead of .os.
62974
62975 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
62976
62977         * timezone/zic.c: Update from tzcode 2013b.
62978
62979 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
62980
62981         * manual/install.texi (Configuring and compiling):
62982         Mention i686 and i586.
62983         * INSTALL: Regenerate.
62984
62985 2013-03-12  Roland McGrath  <roland@hack.frob.com>
62986
62987         * sysdeps/init_array/elf-init.c: New file.
62988         * csu/elf-init.c
62989         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
62990         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
62991
62992         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
62993         __gmon_start__ as global, but as static with a .preinit_array pointer.
62994         * sysdeps/init_array/gmon-start.c: New file.  Use that.
62995         * sysdeps/init_array/crti.S: New file, empty except for comments.
62996         * sysdeps/init_array/crtn.S: Likewise.
62997
62998 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
62999
63000         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
63001         definining bcopy.
63002         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
63003         Remove Prefer_SSE_for_memop.
63004         * sysdeps/x86_64/multiarch/init-arch.h: Remove
63005         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
63006         HAS_PREFER_SSE_FOR_MEMOP.
63007         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
63008         memset-x86-64.
63009         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
63010         Remove bzero, memset ifunc support.
63011         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
63012         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
63013         * sysdeps/x86_64/multiarch/memset.S: Likewise.
63014         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
63015
63016 2013-03-11  Andreas Schwab  <schwab@suse.de>
63017
63018         [BZ #15234]
63019         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
63020         by SHLIB_COMPAT.
63021         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
63022         (GLIBC_2.16): Remove pthread_atfork.
63023
63024 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
63025
63026         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
63027         (ptestcases.h): Likewise.
63028
63029 2013-03-08  Roland McGrath  <roland@hack.frob.com>
63030
63031         * Makeconfig ($(common-objpfx)config.status): Depend on
63032         sysdeps/*/preconfigure{,.in} too.
63033
63034 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
63035
63036         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
63037         (__free_hook): Use void * instead of __malloc_ptr_t.
63038         (__malloc_hook): Likewise.
63039         (__realloc_hook): Likewise.
63040         (__memalign_hook): Likewise.
63041         (__after_morecore_hook): Likewise.
63042         * malloc/arena.c (save_malloc_hook): Likewise.
63043         (save_free_hook): Likewise.
63044         * malloc/hooks.c (malloc_hook_ini): Likewise.
63045         (realloc_hook_ini): Likewise.
63046         (memalign_hook_ini): Likewise.
63047         * malloc/malloc.c (malloc_hook_ini): Likewise.
63048         (realloc_hook_ini): Likewise.
63049         (memalign_hook_ini): Likewise.
63050         (__free_hook): Likewise.
63051         (__malloc_hook): Likewise.
63052         (__realloc_hook): Likewise.
63053         (__memalign_hook): Likewise.
63054         (__libc_malloc): Likewise.
63055         (__libc_free): Likewise.
63056         (__libc_realloc): Likewise.
63057         (__libc_memalign): Likewise.
63058         (__libc_valloc): Likewise.
63059         (__libc_pvalloc): Likewise.
63060         (__libc_calloc): Likewise.
63061         (__posix_memalign): Likewise.
63062         * malloc/morecore.c (__sbrk): Likewise.
63063         (__default_morecore): Likewise.
63064
63065         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
63066
63067         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
63068         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
63069         __malloc_ptrdiff_t.
63070
63071         * malloc/malloc.h (__malloc_size_t): Remove macro.
63072         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
63073         __malloc_size_t.
63074         (old_memalign_hook): Likewise.
63075         (old_realloc_hook): Likewise.
63076         (struct hdr): Likewise.
63077         (flood): Likewise.
63078         (mallochook): Likewise.
63079         (memalignhook): Likewise.
63080         (reallochook): Likewise.
63081         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
63082         (tr_old_realloc_hook): Likewise.
63083         (tr_old_memalign_hook): Likewise.
63084         (tr_mallochook): Likewise.
63085         (tr_reallochook): Likewise.
63086         (tr_memalignhook): Likewise.
63087
63088 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63089
63090         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
63091         default_ldbl_pack and using as default implementation.
63092         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
63093         implementation.
63094         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
63095         redundant definition.
63096         (ldbl_insert_mantissa): Likewise.
63097         (ldbl_canonicalize): Likewise.
63098         (ldbl_nearbyint): Likewise.
63099         (ldbl_pack): Rename to ldbl_pack_ppc.
63100         (ldbl_unpack): Rename to ldbl_unpack_ppc.
63101         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
63102         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
63103
63104 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
63105
63106         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
63107         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
63108         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
63109         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
63110         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
63111         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
63112         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
63113         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
63114
63115 2013-03-07  Andreas Jaeger  <aj@suse.de>
63116
63117         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
63118         bits/mman-linux.h.
63119
63120 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
63121
63122         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
63123         Include mpa.h and declare __MPEXP.
63124         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
63125         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
63126         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
63127         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
63128         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
63129         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
63130         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
63131
63132         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
63133         (__slowpow): Use long double EXPL and LOGL functions to
63134         compute POW.
63135         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
63136         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
63137         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
63138         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
63139         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
63140         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
63141
63142         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
63143         intermediate variable to calculate exponent.
63144         (__sqr): Likewise.
63145         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
63146         Likewise.
63147         (__sqr): Likewise.
63148
63149         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
63150         [!NO__SQR]: Define __sqr.
63151         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
63152         and NO__SQR.  Remove all code except __mul and __sqr.  Include
63153         sysdeps/ieee754/dbl-64/mpa.c.
63154         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
63155
63156         [BZ #12723]
63157         * posix/Makefile (tests): Add tst-pathconf.
63158         * posix/tst-pathconf.c: New test case.
63159         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
63160         _PC_PIPE_BUF.
63161         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
63162
63163 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
63164
63165         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
63166
63167 2013-03-06  Andreas Jaeger  <aj@suse.de>
63168
63169         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
63170         definition via __MAP_ANONYMOUS.
63171
63172         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
63173         it's not part of Linux headers.
63174
63175         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
63176         (MAP_HUGE_MASK): Define.
63177
63178         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
63179         Define.
63180         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
63181         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
63182         Define.
63183         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
63184         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
63185         Define.
63186         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
63187         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
63188         Define.
63189         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
63190
63191         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
63192         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
63193         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
63194         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
63195         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
63196         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
63197
63198         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
63199         Handle f2fs.
63200
63201         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
63202         Handle f2fs and efivarfs.
63203
63204         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
63205         f2fs.
63206
63207         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
63208         (EFIVARFS_MAGIC): Add.
63209         (F2FS_LINK_MAX): Add.
63210
63211 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
63212
63213         * stdio-common/vfprintf.c: Replace __builtin_expect with
63214         __glibc_unlikely.
63215
63216 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
63217
63218         [BZ #13550]
63219         * sysdeps/generic/bp-sym.h: Remove file.
63220         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
63221         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
63222         <bp-sym.h> and <bp-asm.h>.
63223         (__longjmp): Don't use BP_SYM.
63224         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
63225         and <bp-asm.h>.
63226         (memcpy): Don't use BP_SYM.
63227         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
63228         <bp-sym.h> and <bp-asm.h>.
63229         (memcpy): Don't use BP_SYM.
63230         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
63231         <bp-asm.h>.
63232         (memcpy): Don't use BP_SYM.
63233         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
63234         <bp-asm.h>.
63235         (memset): Don't use BP_SYM.
63236         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
63237         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
63238         (__bzero): Don't use BP_SYM.
63239         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
63240         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
63241         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
63242         <bp-sym.h> and <bp-asm.h>.
63243         (memcmp): Don't use BP_SYM.  Remove comment about bounded
63244         pointers.
63245         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
63246         <bp-sym.h> and <bp-asm.h>.
63247         (memcpy): Don't use BP_SYM.
63248         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
63249         <bp-sym.h> and <bp-asm.h>.
63250         (memset): Don't use BP_SYM.
63251         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
63252         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
63253         (__bzero): Don't use BP_SYM.
63254         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
63255         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
63256         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
63257         <bp-sym.h> and <bp-asm.h>.
63258         (strncmp): Don't use BP_SYM.  Remove comment about bounded
63259         pointers.
63260         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
63261         <bp-sym.h> and <bp-asm.h>.
63262         (memcpy): Don't use BP_SYM.
63263         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
63264         <bp-sym.h> and <bp-asm.h>.
63265         (memset): Don't use BP_SYM.
63266         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
63267         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
63268         (__bzero): Don't use BP_SYM.
63269         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
63270         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
63271         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
63272         <bp-sym.h> and <bp-asm.h>.
63273         (__memchr): Don't use BP_SYM.
63274         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
63275         <bp-sym.h> and <bp-asm.h>.
63276         (memcmp): Don't use BP_SYM.  Remove comment about bounded
63277         pointers.
63278         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
63279         <bp-sym.h> and <bp-asm.h>.
63280         (memcpy): Don't use BP_SYM.
63281         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
63282         <bp-sym.h> and <bp-asm.h>.
63283         (__mempcpy): Don't use BP_SYM.
63284         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
63285         <bp-sym.h> and <bp-asm.h>.
63286         (__memrchr): Don't use BP_SYM.
63287         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
63288         <bp-sym.h> and <bp-asm.h>.
63289         (memset): Don't use BP_SYM.
63290         (__bzero): Likewise.
63291         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
63292         <bp-sym.h> and <bp-asm.h>.
63293         (__rawmemchr): Don't use BP_SYM.
63294         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
63295         <bp-sym.h> and <bp-asm.h>.
63296         (__STRCMP): Don't use BP_SYM.
63297         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
63298         <bp-sym.h> and <bp-asm.h>.
63299         (strchr): Don't use BP_SYM.
63300         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
63301         <bp-sym.h> and <bp-asm.h>.
63302         (__strchrnul): Don't use BP_SYM.
63303         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
63304         <bp-sym.h> and <bp-asm.h>.
63305         (strlen): Don't use BP_SYM.
63306         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
63307         <bp-sym.h> and <bp-asm.h>.
63308         (strncmp): Don't use BP_SYM.  Remove comment about bounded
63309         pointers.
63310         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
63311         <bp-sym.h> and <bp-asm.h>.
63312         (__strnlen): Don't use BP_SYM.
63313         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
63314         <bp-sym.h> and <bp-asm.h>.
63315         (__GI__setjmp): Don't use BP_SYM.
63316         (_setjmp): Likewise.
63317         (__sigsetjmp): Likewise.
63318         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
63319         (L(start_addresses)): Don't use BP_SYM.
63320         (_start): Likewise.
63321         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
63322         <bp-asm.h>.
63323         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
63324         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
63325         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
63326         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
63327         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
63328         <bp-asm.h>.
63329         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
63330         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
63331         about bounded pointers.
63332         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
63333         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
63334         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
63335         <bp-asm.h>.
63336         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
63337         about bounded pointers.  Remove GKM FIXME comments.
63338         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
63339         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
63340         <bp-asm.h>.
63341         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
63342         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
63343         Remove GKM FIXME comments.
63344         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
63345         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
63346         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
63347         <bp-asm.h>.
63348         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
63349         about bounded pointers.  Remove GKM FIXME comment.
63350         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
63351         and <bp-asm.h>.
63352         (strncmp): Don't use BP_SYM.  Remove comment about bounded
63353         pointers.
63354         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
63355         <bp-sym.h> and <bp-asm.h>.
63356         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
63357         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
63358         <bp-sym.h> and <bp-asm.h>.
63359         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
63360         comment.
63361
63362 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
63363
63364         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
63365         call free(NULL).
63366
63367 2013-03-05  David S. Miller  <davem@davemloft.net>
63368
63369         * po/es.po: Update from translation team.
63370
63371 2013-03-05  Andreas Jaeger  <aj@suse.de>
63372
63373         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
63374         <bits/mman-linux.h>.
63375         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
63376         is fine.
63377         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
63378         <bits/mman-linux.h> to end of file.
63379         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
63380         is fine.
63381         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
63382         <bits/mman-linux.h> to end of file.
63383         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
63384         is fine.
63385         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
63386         <bits/mman-linux.h> to end of file.
63387
63388         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
63389         (MCL_CURRENT, MCL_FUTURE): Define here.
63390
63391 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
63392
63393         [BZ #15232]
63394         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
63395         attribute_hidden.
63396         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
63397
63398 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
63399
63400         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
63401         fourth parameter needed for rt_sigprocmask syscall.
63402         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
63403         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
63404         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
63405         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
63406         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
63407         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
63408
63409 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
63410
63411         [BZ #13550]
63412         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
63413         comment about bounded pointers.
63414         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
63415         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
63416
63417 2013-03-04  Andreas Jaeger  <aj@suse.de>
63418
63419         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
63420         common definitions.
63421
63422         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
63423         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
63424         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
63425         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
63426         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
63427         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
63428
63429 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63430
63431         [BZ #15055]
63432         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
63433         __ieee754_sqrl instead of __sqrl.
63434
63435 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
63436
63437         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
63438         * sysdeps/powerpc/fpu_control.h: ... here.
63439         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
63440         * sysdeps/powerpc/bits/fenvinline.h: ... here.
63441         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
63442         * sysdeps/powerpc/bits/mathinline.h: ... here.
63443
63444 2013-03-01  Roland McGrath  <roland@hack.frob.com>
63445
63446         * elf/dl-hwcaps.c (_dl_important_hwcaps):
63447         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
63448         to just [NEED_DL_SYSINFO_DSO].
63449         * elf/dl-support.c: Likewise.
63450         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
63451         * elf/rtld.c (dl_main): Likewise.
63452         * elf/setup-vdso.h (setup_vdso): Likewise.
63453         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
63454         * sysdeps/unix/sysv/linux/dl-sysdep.c
63455         (_dl_discover_osversion): Likewise.
63456
63457 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
63458
63459         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
63460         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
63461
63462 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
63463
63464         * NEWS: Mention libm performance improvements and non-x86 PI
63465         futex support.
63466
63467         * csu/libc-start.c (__pthread_initialize_minimal): Change
63468         function arguments.
63469         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
63470
63471 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
63472
63473         [BZ #13550]
63474         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
63475         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
63476         <bp-sym.h> and <bp-asm.h>.
63477         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
63478         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
63479         and <bp-asm.h>.
63480         (memcpy): Don't use BP_SYM.
63481         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
63482         <bp-asm.h>.
63483         (__mpn_add_n): Don't use BP_SYM.
63484         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
63485         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
63486         and <bp-asm.h>.
63487         (__mpn_addmul_1): Don't use BP_SYM.
63488         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
63489         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
63490         <bp-sym.h>.
63491         (_setjmp): Don't use BP_SYM.
63492         (__novmx_setjmp): Likewise.
63493         (__GI__setjmp): Likewise.
63494         (__vmx_setjmp): Likewise.
63495         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
63496         <bp-sym.h>.
63497         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
63498         (__bzero): Don't use BP_SYM.
63499         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
63500         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
63501         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
63502         <bp-sym.h> and <bp-asm.h>.
63503         (memcpy): Don't use BP_SYM.
63504         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
63505         <bp-sym.h> and <bp-asm.h>.
63506         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
63507         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
63508         <bp-sym.h> and <bp-asm.h>.
63509         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
63510         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
63511         <bp-asm.h>.
63512         (__mpn_lshift): Don't use BP_SYM.
63513         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
63514         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
63515         <bp-asm.h>.
63516         (memset): Don't use BP_SYM.
63517         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
63518         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
63519         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
63520         <bp-asm.h>.
63521         (__mpn_mul_1): Don't use BP_SYM.
63522         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
63523         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
63524         <bp-sym.h> and <bp-asm.h>.
63525         (memcmp): Don't use BP_SYM.
63526         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
63527         <bp-sym.h> and <bp-asm.h>.
63528         (memcpy): Don't use BP_SYM.
63529         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
63530         <bp-sym.h> and <bp-asm.h>.
63531         (memset): Don't use BP_SYM.
63532         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
63533         <bp-sym.h> and <bp-asm.h>.
63534         (strncmp): Don't use BP_SYM.
63535         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
63536         <bp-sym.h> and <bp-asm.h>.
63537         (memcpy): Don't use BP_SYM.
63538         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
63539         <bp-sym.h> and <bp-asm.h>.
63540         (memset): Don't use BP_SYM.
63541         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
63542         <bp-sym.h> and <bp-asm.h>.
63543         (__memchr): Don't use BP_SYM.
63544         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
63545         <bp-sym.h> and <bp-asm.h>.
63546         (memcmp): Don't use BP_SYM.
63547         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
63548         <bp-sym.h> and <bp-asm.h>.
63549         (memcpy): Don't use BP_SYM.
63550         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
63551         <bp-sym.h> and <bp-asm.h>.
63552         (__mempcpy): Don't use BP_SYM.
63553         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
63554         <bp-sym.h> and <bp-asm.h>.
63555         (__memrchr): Don't use BP_SYM.
63556         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
63557         <bp-sym.h> and <bp-asm.h>.
63558         (memset): Don't use BP_SYM.
63559         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
63560         <bp-sym.h> and <bp-asm.h>.
63561         (__rawmemchr): Don't use BP_SYM.
63562         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
63563         <bp-sym.h> and <bp-asm.h>.
63564         (__STRCMP): Don't use BP_SYM.
63565         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
63566         <bp-sym.h> and <bp-asm.h>.
63567         (strchr): Don't use BP_SYM.
63568         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
63569         <bp-sym.h> and <bp-asm.h>.
63570         (__strchrnul): Don't use BP_SYM.
63571         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
63572         <bp-sym.h> and <bp-asm.h>.
63573         (strlen): Don't use BP_SYM.
63574         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
63575         <bp-sym.h> and <bp-asm.h>.
63576         (strncmp): Don't use BP_SYM.
63577         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
63578         <bp-sym.h> and <bp-asm.h>.
63579         (__strnlen): Don't use BP_SYM.
63580         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
63581         <bp-asm.h>.
63582         (__mpn_rshift): Don't use BP_SYM.
63583         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
63584         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
63585         <bp-sym.h> and <bp-asm.h>.
63586         (__sigsetjmp): Don't use BP_SYM.
63587         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
63588         (L(start_addresses)): Don't use BP_SYM.
63589         (_start): Likewise.
63590         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
63591         <bp-asm.h>.
63592         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
63593         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
63594         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
63595         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
63596         <bp-asm.h>.
63597         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
63598         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
63599         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
63600         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
63601         <bp-asm.h>.
63602         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
63603         comments.
63604         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
63605         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
63606         <bp-asm.h>.
63607         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
63608         FIXME comments.
63609         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
63610         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
63611         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
63612         <bp-asm.h>.
63613         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
63614         comment.
63615         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
63616         and <bp-asm.h>.
63617         (strncmp): Don't use BP_SYM,
63618         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
63619         <bp-asm.h>.
63620         (__mpn_sub_n): Don't use BP_SYM.
63621         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
63622         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
63623         and <bp-asm.h>.
63624         (__mpn_submul_1): Don't use BP_SYM.
63625         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
63626         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
63627         <bp-sym.h> and <bp-asm.h>.
63628         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
63629         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
63630         <bp-sym.h> and <bp-asm.h>.
63631         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
63632         comment.
63633
63634 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
63635
63636         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
63637         Use ZK to minimize writes to Z.
63638         (sub_magnitudes): Simplify code a bit.
63639         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
63640         Use ZK to minimize writes to Z.
63641         (sub_magnitudes): Simplify code a bit.
63642
63643 2013-02-27  Roland McGrath  <roland@hack.frob.com>
63644
63645         * csu/gmon-start.c: Add special exception to license text.
63646
63647 2013-02-27  Richard Henderson  <rth@redhat.com>
63648
63649         * scripts/config.guess: Update from config.git.
63650         * scripts/config.sub: Likewise.
63651
63652 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
63653
63654         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
63655
63656         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
63657
63658         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
63659
63660         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
63661
63662         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
63663
63664 2013-02-26  Roland McGrath  <roland@hack.frob.com>
63665
63666         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
63667         [$(build-shared = yes].
63668
63669 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
63670
63671         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
63672         (__mul): Reduce iterations for calculating mantissa.
63673
63674         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
63675         MPTWO.
63676         (__mpranred): Likewise.
63677
63678         [BZ #15160]
63679         * malloc/memusagestat.c (main): Draw graphs for heap and stack
63680         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
63681
63682 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
63683
63684         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
63685         Define __attribute__.
63686
63687 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
63688
63689         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
63690         unused.
63691         * posix/regex_internal.h (__attribute): Remove.
63692         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
63693         (re_string_context_at): Likewise.
63694         (bitset_not): Use __attribute__ and mark function as possibly
63695         unused.
63696         (bitset_merge): Likewise.
63697         (bitset_mask): Likewise.
63698         (re_string_char_size_at): Likewise.
63699         (re_string_wchar_at): Likewise.
63700         (re_string_elem_size_at): Likewise.
63701
63702 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
63703
63704         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
63705         code.
63706         (cc32): Likewise.
63707
63708         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
63709         (__acr): Likewise.
63710         (__cpy): Likewise.
63711         (norm): Likewise.
63712         (denorm): Likewise.
63713         (__dbl_mp): Likewise.
63714         (add_magnitudes): Likewise.
63715         (sub_magnitudes): Likewise.
63716         (__mul): Likewise.
63717         (__inv): Likewise.
63718
63719         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
63720         style.
63721
63722         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
63723         style.
63724
63725         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
63726         code.
63727
63728         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
63729         up changes with default code.
63730         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
63731         Likewise.
63732
63733 2013-02-24  Allan McRae  <allan@archlinux.org>
63734
63735         * manual/socket.texi (The Internet Namespace): Order menu items
63736         to match that in the file.
63737
63738         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
63739         node listing of the info page menu.
63740
63741 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
63742
63743         [BZ #13550]
63744         * sysdeps/i386/bp-asm.h: Remove file.
63745         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
63746         (PARMS): Do not use macros from bp-asm.h.
63747         (S1): Likewise.
63748         (S2): Likewise.
63749         (SIZE): Likewise.
63750         (__mpn_add_n): Do not use BP_SYM
63751         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
63752         "bp-asm.h".
63753         (PARMS): Do not use macros from bp-asm.h.
63754         (S1): Likewise.
63755         (SIZE): Likewise.
63756         (__mpn_addmul_1): Do not use BP_SYM
63757         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
63758         "bp-asm.h".
63759         (PARMS): Do not use macros from bp-asm.h.
63760         (SIGMSK): Likewise.
63761         (_setjmp): Likewise.  Do not use BP_SYM.
63762         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
63763         "bp-asm.h".
63764         (PARMS): Do not use macros from bp-asm.h.
63765         (SIGMSK): Likewise.
63766         (setjmp): Likewise.  Do not use BP_SYM.
63767         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
63768         "bp-asm.h".
63769         (PARMS): Do not use macros from bp-asm.h.
63770         (__frexp): Do not use BP_SYM.
63771         (frexp): Likewise.
63772         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
63773         "bp-asm.h".
63774         (PARMS): Do not use macros from bp-asm.h.
63775         (__frexpf): Do not use BP_SYM.
63776         (frexpf): Likewise.
63777         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
63778         "bp-asm.h".
63779         (PARMS): Do not use macros from bp-asm.h.
63780         (__frexpl): Do not use BP_SYM.
63781         (frexpl): Likewise.
63782         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
63783         "bp-asm.h".
63784         (PARMS): Do not use macros from bp-asm.h.
63785         (__remquo): Do not use BP_SYM.
63786         (remquo): Likewise.
63787         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
63788         "bp-asm.h".
63789         (PARMS): Do not use macros from bp-asm.h.
63790         (__remquof): Do not use BP_SYM.
63791         (remquof): Likewise.
63792         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
63793         "bp-asm.h".
63794         (PARMS): Do not use macros from bp-asm.h.
63795         (__remquol): Do not use BP_SYM.
63796         (remquol): Likewise.
63797         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
63798         "bp-asm.h".
63799         (PARMS): Do not use macros from bp-asm.h.
63800         (DEST): Likewise.
63801         (SRC): Likewise.
63802         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
63803         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
63804         "bp-asm.h".
63805         (PARMS): Do not use macros from bp-asm.h.
63806         (strlen): Do not use BP_SYM.
63807         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
63808         "bp-asm.h".
63809         (PARMS): Do not use macros from bp-asm.h.
63810         (S1): Likewise.
63811         (S2): Likewise.
63812         (SIZE): Likewise.
63813         (__mpn_add_n): Do not use BP_SYM.
63814         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
63815         "bp-asm.h".
63816         (PARMS): Do not use macros from bp-asm.h.
63817         (S1): Likewise.
63818         (SIZE): Likewise.
63819         (__mpn_addmul_1): Do not use BP_SYM.
63820         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
63821         weak_alias.
63822         (bzero): Likewise.
63823         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
63824         "bp-asm.h".
63825         (PARMS): Do not use macros from bp-asm.h.
63826         (S): Likewise.
63827         (SIZE): Likewise.
63828         (__mpn_lshift): Do not use BP_SYM.
63829         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
63830         "bp-asm.h".
63831         (PARMS): Do not use macros from bp-asm.h.
63832         (DEST): Likewise.
63833         (SRC): Likewise.
63834         (LEN): Likewise.
63835         (memcpy): Likewise.  Do not use BP_SYM.
63836         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
63837         libc_hidden_def and weak_alias.
63838         (mempcpy): Do not use BP_SYM in weak_alias.
63839         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
63840         "bp-asm.h".
63841         (PARMS): Do not use macros from bp-asm.h.
63842         (DEST): Likewise.
63843         (LEN): Likewise.
63844         [!BZERO_P] (CHR): Likewise.
63845         (memset): Likewise.  Do not use BP_SYM.
63846         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
63847         "bp-asm.h".
63848         (PARMS): Do not use macros from bp-asm.h.
63849         (S1): Likewise.
63850         (SIZE): Likewise.
63851         (__mpn_mul_1): Do not use BP_SYM.
63852         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
63853         "bp-asm.h".
63854         (PARMS): Do not use macros from bp-asm.h.
63855         (S): Likewise.
63856         (SIZE): Likewise.
63857         (__mpn_rshift): Do not use BP_SYM.
63858         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
63859         "bp-asm.h".
63860         (PARMS): Do not use macros from bp-asm.h.
63861         (STR): Likewise.
63862         (CHR): Likewise.
63863         (strchr): Likewise.  Do not use BP_SYM.
63864         (index): Do not use BP_SYM in weak_alias.
63865         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
63866         "bp-asm.h".
63867         (PARMS): Do not use macros from bp-asm.h.
63868         (DEST): Likewise.
63869         (SRC): Likewise.
63870         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
63871         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
63872         "bp-asm.h".
63873         (PARMS): Do not use macros from bp-asm.h.
63874         (strlen): Do not use BP_SYM.
63875         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
63876         "bp-asm.h".
63877         (PARMS): Do not use macros from bp-asm.h.
63878         (S1): Likewise.
63879         (S2): Likewise.
63880         (SIZE): Likewise.
63881         (__mpn_sub_n): Do not use BP_SYM.
63882         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
63883         "bp-asm.h".
63884         (PARMS): Do not use macros from bp-asm.h.
63885         (S1): Likewise.
63886         (SIZE): Likewise.
63887         (__mpn_submul_1): Do not use BP_SYM.
63888         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
63889         "bp-asm.h".
63890         (PARMS): Do not use macros from bp-asm.h.
63891         (S1): Likewise.
63892         (S2): Likewise.
63893         (SIZE): Likewise.
63894         (__mpn_add_n): Do not use BP_SYM.
63895         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
63896         weak_alias.
63897         (bzero): Likewise.
63898         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
63899         "bp-asm.h".
63900         (PARMS): Do not use macros from bp-asm.h.
63901         (BLK2): Likewise.
63902         (LEN): Likewise.
63903         (memcmp): Do not use BP_SYM.
63904         (bcmp): Do not use BP_SYM in weak_alias.
63905         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
63906         "bp-asm.h".
63907         (PARMS): Do not use macros from bp-asm.h.
63908         (DEST): Likewise.
63909         (SRC): Likewise.
63910         (LEN): Likewise.
63911         (memcpy): Likewise.  Do not use BP_SYM.
63912         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
63913         "bp-asm.h".
63914         (PARMS): Do not use macros from bp-asm.h.
63915         (DEST): Likewise.
63916         (SRC): Likewise.
63917         (LEN): Likewise.
63918         (memmove): Likewise.  Do not use BP_SYM.
63919         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
63920         "bp-asm.h".
63921         (PARMS): Do not use macros from bp-asm.h.
63922         (DEST): Likewise.
63923         (SRC): Likewise.
63924         (LEN): Likewise.
63925         (__mempcpy): Likewise.  Do not use BP_SYM.
63926         (mempcpy): Do not use BP_SYM in weak_alias.
63927         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
63928         "bp-asm.h".
63929         (PARMS): Do not use macros from bp-asm.h.
63930         (DEST): Likewise.
63931         (LEN): Likewise.
63932         [!BZERO_P] (CHR): Likewise.
63933         (memset): Likewise.  Do not use BP_SYM.
63934         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
63935         "bp-asm.h".
63936         (PARMS): Do not use macros from bp-asm.h.
63937         (STR2): Likewise.
63938         (strcmp): Do not use BP_SYM.
63939         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
63940         "bp-asm.h".
63941         (PARMS): Do not use macros from bp-asm.h.
63942         (STR): Likewise.
63943         (DELIM): Likewise.
63944         [USE_AS_STRTOK_R] (SAVE): Likewise.
63945         (FUNCTION): Likewise.  Do not use BP_SYM.
63946         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
63947         aliases.
63948         (strtok_r): Likewise.
63949         (__GI___strtok_r): Likewise.
63950         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
63951         (PARMS): Do not use macros from bp-asm.h.
63952         (S): Likewise.
63953         (SIZE): Likewise.
63954         (__mpn_lshift): Do not use BP_SYM.
63955         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
63956         (PARMS): Do not use macros from bp-asm.h.
63957         (STR): Likewise.
63958         (CHR): Likewise.
63959         (__memchr): Do not use BP_SYM.
63960         (memchr): Do not use BP_SYM in weak_alias.
63961         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
63962         (PARMS): Do not use macros from bp-asm.h.
63963         (BLK2): Likewise.
63964         (LEN): Likewise.
63965         (memcmp): Do not use BP_SYM.
63966         (bcmp): Do not use BP_SYM in weak_alias.
63967         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
63968         (PARMS): Do not use macros from bp-asm.h.
63969         (S1): Likewise.
63970         (SIZE): Likewise.
63971         (__mpn_mul_1): Do not use BP_SYM.
63972         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
63973         "bp-asm.h".
63974         (PARMS): Do not use macros from bp-asm.h.
63975         (STR): Likewise.
63976         (CHR): Likewise.
63977         (__rawmemchr): Do not use BP_SYM.
63978         (rawmemchr): Do not use BP_SYM in weak_alias.
63979         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
63980         (PARMS): Do not use macros from bp-asm.h.
63981         (S): Likewise.
63982         (SIZE): Likewise.
63983         (__mpn_rshift): Do not use BP_SYM.
63984         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
63985         (PARMS): Do not use macros from bp-asm.h.
63986         (SIGMSK): Likewise.
63987         (__sigsetjmp): Likewise.  Do not use BP_SYM.
63988         * sysdeps/i386/start.S: Do not include "bp-sym.h".
63989         (_start): Do not use BP_SYM.
63990         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
63991         (PARMS): Do not use macros from bp-asm.h.
63992         (DEST): Likewise.
63993         (SRC): Likewise.
63994         (__stpcpy): Likewise.  Do not use BP_SYM.
63995         (stpcpy): Do not use BP_SYM in weak_alias.
63996         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
63997         "bp-asm.h".
63998         (PARMS): Do not use macros from bp-asm.h.
63999         (DEST): Likewise.
64000         (SRC): Likewise.
64001         (LEN): Likewise.
64002         (__stpncpy): Likewise.  Do not use BP_SYM.
64003         (stpncpy): Do not use BP_SYM in weak_alias.
64004         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
64005         (PARMS): Do not use macros from bp-asm.h.
64006         (STR): Likewise.
64007         (CHR): Likewise.
64008         (strchr): Likewise.  Do not use BP_SYM.
64009         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
64010         "bp-asm.h".
64011         (PARMS): Do not use macros from bp-asm.h.
64012         (STR): Likewise.
64013         (CHR): Likewise.
64014         (__strchrnul): Likewise.  Do not use BP_SYM.
64015         (strchrnul): Do not use BP_SYM in weak_alias.
64016         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
64017         "bp-asm.h".
64018         (PARMS): Do not use macros from bp-asm.h.
64019         (STOP): Likewise.
64020         (strcspn): Do not use BP_SYM.
64021         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
64022         "bp-asm.h".
64023         (PARMS): Do not use macros from bp-asm.h.
64024         (STR): Likewise.
64025         (STOP): Likewise.
64026         (strpbrk): Likewise.  Do not use BP_SYM.
64027         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
64028         "bp-asm.h".
64029         (PARMS): Do not use macros from bp-asm.h.
64030         (STR): Likewise.
64031         (CHR): Likewise.
64032         (strrchr): Likewise.  Do not use BP_SYM.
64033         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
64034         (PARMS): Do not use macros from bp-asm.h.
64035         (SKIP): Likewise.
64036         (strspn): Do not use BP_SYM.
64037         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
64038         (PARMS): Do not use macros from bp-asm.h.
64039         (STR): Likewise.
64040         (DELIM): Likewise.
64041         (SAVE): Likewise.
64042         (FUNCTION): Likewise.  Do not use BP_SYM.
64043         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
64044         aliases.
64045         (strtok_r): Likewise.
64046         (__GI___strtok_r): Likewise.
64047         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
64048         (PARMS): Do not use macros from bp-asm.h.
64049         (S1): Likewise.
64050         (S2): Likewise.
64051         (SIZE): Likewise.
64052         (__mpn_sub_n): Do not use BP_SYM.
64053         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
64054         "bp-asm.h".
64055         (PARMS): Do not use macros from bp-asm.h.
64056         (S1): Likewise.
64057         (SIZE): Likewise.
64058         (__mpn_submul_1): Do not use BP_SYM.
64059         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
64060         <bp-sym.h>.
64061         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
64062         and <bp-asm.h>.
64063         (PARMS): Do not use macros from bp-asm.h.
64064         (FLAGS): Likewise.
64065         (PTID): Likewise.
64066         (TLS): Likewise.
64067         (CTID): Likewise.
64068         (__clone): Do not use BP_SYM.
64069         (clone): Do not use BP_SYM in weak_alias.
64070         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
64071         and <bp-asm.h>.
64072         (PARMS): Do not use macros from bp-asm.h.
64073         (LEN): Likewise.
64074         (__mmap64): Do not use BP_SYM.
64075         (mmap64): Do not use BP_SYM in weak_alias.
64076         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
64077         <bp-sym.h> and <bp-asm.h>.
64078         (PARMS): Do not use macros from bp-asm.h.
64079         (__posix_fadvise64_l64): Do not use BP_SYM.
64080         * sysdeps/unix/sysv/linux/i386/semtimedop.S
64081         (PARMS): Do not use macros from bp-asm.h.
64082         (NSOPS): Likewise.
64083         (semtimedop): Do not use BP_SYM.
64084         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
64085         and <bp-asm.h>.
64086
64087 2013-02-21  Allan McRae  <allan@archlinux.org>
64088
64089         * manual/message.texi (Charset conversion in gettext):
64090         Move @end statement to beginning of line.
64091
64092 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
64093
64094         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
64095         static.
64096         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
64097         Likewise.
64098
64099         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
64100         (denorm): Likewise.
64101         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
64102         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
64103
64104 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
64105
64106         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
64107         tail-call to the resolved function if pltexit isn't needed.
64108
64109 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
64110
64111         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
64112         or Y being zero as being unlikely.
64113         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
64114         Likewise.
64115
64116 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
64117
64118         * manual/nss.texi (System Databases and Name Service Switch):
64119         Remove frobnicate @pxref.
64120
64121 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
64122
64123         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
64124         __attribute__ ((unused)) to __attribute__ ((__unused__)).
64125
64126 2013-02-20  Petr Machata  <pmachata@redhat.com>
64127
64128         * elf/elf.h (R_ARM_TARGET1): New macro.
64129         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
64130         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
64131         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
64132         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
64133         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
64134         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
64135         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
64136         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
64137         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
64138         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
64139         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
64140         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
64141         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
64142         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
64143         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
64144         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
64145         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
64146         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
64147         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
64148         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
64149         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
64150         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
64151         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
64152         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
64153         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
64154         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
64155         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
64156         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
64157         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
64158         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
64159         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
64160         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
64161         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
64162         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
64163         (R_ARM_THM_GOT_BREL12): Likewise.
64164         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
64165         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
64166         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
64167         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
64168         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
64169         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
64170         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
64171         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
64172         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
64173
64174 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
64175
64176         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
64177         __attribute_used__ to __attribute__ ((unused)).
64178
64179 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
64180
64181         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
64182         powerpc mpa.c.
64183         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
64184         comment formatting.
64185         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
64186
64187 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
64188
64189         [BZ #13550]
64190         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
64191         Remove macro.
64192         (ENTER): Remove both macro definitions.
64193         (LEAVE): Likewise.
64194         (CHECK_BOUNDS_LOW): Likewise.
64195         (CHECK_BOUNDS_HIGH): Likewise.
64196         (CHECK_BOUNDS_BOTH): Likewise.
64197         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
64198         (RETURN_BOUNDED_POINTER): Likewise.
64199         (RETURN_NULL_BOUNDED_POINTER): Likewise.
64200         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
64201         (POP_ERRNO_LOCATION_RETURN): Likewise.
64202         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
64203         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
64204         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
64205         macros.
64206         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
64207         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
64208         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
64209         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
64210         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
64211         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
64212         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
64213         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
64214         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
64215         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
64216         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
64217         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
64218         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
64219         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
64220         removed macros.
64221         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
64222         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
64223         macros.
64224         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
64225         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
64226         * sysdeps/i386/i586/memset.S (memset): Likewise.
64227         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
64228         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
64229         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
64230         macros.
64231         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
64232         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
64233         Change uses of L(2) to L(out).
64234         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
64235         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
64236         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
64237         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
64238         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
64239         removed macros.
64240         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
64241         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
64242         macros.
64243         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
64244         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
64245         (RETURN): Do not use macro LEAVE.
64246         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
64247         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
64248         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
64249         * sysdeps/i386/i686/memset.S (memset): Likewise.
64250         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
64251         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
64252         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
64253         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
64254         Likewise.
64255         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
64256         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
64257         L(1_2) and L(1_3) into L(1).
64258         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
64259         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
64260         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
64261         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
64262         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
64263         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
64264         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
64265         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
64266         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
64267         macros.
64268         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
64269         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
64270         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
64271         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
64272         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
64273         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
64274         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
64275         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
64276         * sysdeps/i386/strcspn.S (strcspn): Likewise.
64277         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
64278         * sysdeps/i386/strrchr.S (strrchr): Likewise.
64279         * sysdeps/i386/strspn.S (strspn): Likewise.
64280         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
64281         conditional code.
64282         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
64283         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
64284         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
64285         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
64286         L(1_3) into L(1_1).
64287         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
64288         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
64289         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
64290         macros.
64291         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
64292
64293 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
64294
64295         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
64296         macro.
64297
64298 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
64299
64300         * math/atest-exp.c (exp_mpn): Remove ROUND.
64301         * math/atest-exp2.c (exp_mpn): Likewise.
64302         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
64303
64304         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
64305         * stdlib/tst-tls-atexit-lib.c: Likewise.
64306         * stdlib/tst-tls-atexit.c: Likewise.
64307
64308 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
64309
64310         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
64311         and __attribute_alloc_size__.
64312
64313 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
64314
64315         * include/programs/xmalloc.h: Change __attribute_alloc_size to
64316         __attribute_alloc_size__.
64317         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
64318         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
64319
64320 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
64321
64322         * include/programs/xmalloc.h: New file.
64323         * catgets/gencat.c: Include it.
64324         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
64325         * elf/pldd.c: Likewise.
64326         * iconv/iconv_charmap.c: Likewise.
64327         * iconv/iconvconfig.c: Likewise.
64328         * iconv/strtab.c: Likewise.
64329         * locale/programs/locale.c: Likewise.
64330         * locale/programs/localedef.h: Likewise.
64331         * locale/programs/simple-hash.c: Likewise.
64332         * nscd/nscd.h: Likewise.
64333         * nss/makedb.c: Likewise.
64334         * sysdeps/generic/ldconfig.h: Likewise.
64335
64336 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
64337
64338         * Versions.def: Add GLIBC_2.18.
64339         * include/link.h (struct link_map): New member l_tls_dtor_count.
64340         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
64341         (__call_tls_dtors): Likewise.
64342         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
64343         __cxa_thread_atexit_impl.
64344         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
64345         Likewise.
64346         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
64347         Likewise.
64348         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
64349         Likewise.
64350         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
64351         Likewise.
64352         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
64353         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
64354         Likewise.
64355         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
64356         Likewise.
64357         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
64358         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
64359         Likewise.
64360         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
64361         (tests): Add test case tst-tls-atexit.
64362         (modules-names): Add shared library for tst-tls-atexit.
64363         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
64364         (GLIBC_PRIVATE): Add __call_tls_dtors.
64365         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
64366         for libstdc++.
64367         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
64368         * stdlib/tst-tls-atexit.c: New test case.
64369         * stdlib/tst-tls-atexit-lib.c: New test case.
64370
64371         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
64372
64373         * elf/Versions (ld): Add _dl_find_dso_for_object.
64374         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
64375         * elf/dl-open.c (_dl_find_dso_for_object): New function.
64376         (dl_open_worker): Use _dl_find_dso_for_object.
64377         * elf/dl-sym.c (do_sym): Likewise.
64378         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
64379
64380 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
64381
64382         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
64383         Syntactic changes only.
64384         (_dl_runtime_profile): Do a tail-call to the resolved function.
64385
64386 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
64387
64388         [BZ #13550]
64389         * sysdeps/x86_64/bp-asm.h: Remove file.
64390         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
64391         <bp-sym.h> and <bp-asm.h>.
64392         (__clone): Do not use BP_SYM.
64393         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
64394         <bp-sym.h> and <bp-asm.h>.
64395         * sysdeps/unix/x86_64/sysdep.S: Likewise.
64396         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
64397         "bp-asm.h".
64398         (_setjmp): Do not use BP_SYM.
64399         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
64400         "bp-asm.h".
64401         (setjmp): Do not use BP_SYM.
64402         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
64403         libc_hidden_def.
64404         (mempcpy): Do not use BP_SYM in weak_alias.
64405         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
64406         "bp-asm.h".
64407         (strchr): Do not use BP_SYM.
64408         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
64409         "bp-asm.h".
64410         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
64411         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
64412         (_start): Do not use BP_SYM.
64413         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
64414         "bp-asm.h".
64415         (strcat): Do not use BP_SYM.
64416         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
64417         "bp-asm.h".
64418         (STRCMP): Do not use BP_SYM.
64419         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
64420         "bp-asm.h".
64421         (STRCPY): Do not use BP_SYM.
64422         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
64423         "bp-asm.h".
64424         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
64425         "bp-asm.h".
64426         (FUNCTION): Do not use BP_SYM.
64427         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
64428         weak_alias.
64429         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
64430
64431 2013-02-17  Andreas Jaeger  <aj@suse.de>
64432
64433         * time/Versions: Sort entries.
64434         * string/Versions: Likewise.
64435         * resolv/Versions: Likewise.
64436         * posix/Versions: Likewise.
64437         * iconv/Versions: Likewise.
64438         * elf/Versions: Likewise.
64439         * wcsmbs/Versions: Likewise.
64440
64441 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
64442
64443         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
64444         loop termination condition.
64445
64446         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
64447         variable to calculate EZ.
64448         (__sqr): Likewise.
64449
64450         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
64451         the lower precision input.
64452
64453 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
64454
64455         [BZ #13550]
64456         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
64457         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
64458         (run-via-rtld-prefix): Do not handle %-bp tests.
64459         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
64460         (all-object-suffixes): Remove .ob.
64461         (bppfx): Remove variable.
64462         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
64463         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
64464         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
64465         [$(build-bounded) = yes] (libtype.ob): Likewise.
64466         * Makerules (elide-routines.ob): Remove variable.
64467         (do-tests-clean): Do not handle *-bp.out.
64468         (common-mostlyclean): Do not handle *-bp and *-bp.out.
64469         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
64470         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
64471         (tests): Do not include $(tests-bp.out).
64472         (xtests): Do not include $(xtests-bp.out).
64473         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
64474         [$(build-bounded) = yes] ($(addprefix
64475         $(objpfx),$(binaries-bounded))): Remove rule.
64476         ($(objpfx)%-bp.out): Remove rule.
64477         * config.make.in (build-bounded): Remove variable.
64478         * crypt/Makefile [$(build-bounded) = yes]
64479         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
64480         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
64481         append to variable.
64482         [$(build-bounded) = yes] (install-lib): Likewise.
64483         [$(build-bounded) = yes] (generated): Likewise.
64484         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
64485         Remove rule.
64486         * intl/Makefile [$(build-bounded) = yes]
64487         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
64488         * math/Makefile [$(build-bounded) = yes]
64489         ($(tests:%=$(objpfx)%-bp): Likewise.
64490         * misc/Makefile [$(build-bounded) = yes]
64491         ($(objpfx)tst-tsearch-bp): Likewise.
64492         * nptl/Makeconfig (bounded-thread-library): Remove variable.
64493         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
64494         Remove dependency.
64495         * string/Makefile (o-objects.ob): Remove variable.
64496         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
64497         (CFLAGS-.ob): Remove variable.
64498         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
64499         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
64500         both definitions of variable.
64501         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
64502         (ASFLAGS-.ob): Remove variable.
64503
64504 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
64505
64506         [BZ #13550]
64507         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
64508         Remove __BOUNDED_POINTERS__ from condition.
64509         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
64510         * string/bits/string2.h [!__NO_STRING_INLINES &&
64511         !__BOUNDED_POINTERS__]: Likewise.
64512         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
64513         Likewise.
64514         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
64515         Remove conditional code.
64516         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
64517         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
64518         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
64519         condition.
64520
64521         [BZ #13550]
64522         * csu/libc-start.c: Do not include <bp-sym.h>.
64523         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
64524         * elf/dl-open.c: Do not include <bp-sym.h>.
64525         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
64526         * math/fegetenv.c: Do not include <bp-sym.h>.
64527         (fegetenv): Do not use BP_SYM in versioned symbols.
64528         * nptl/sysdeps/pthread/bits/libc-lockP.h
64529         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
64530         <bp-sym.h>.
64531         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
64532         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
64533         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
64534         (__pthread_mutex_destroy): Likewise.
64535         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
64536         (__pthread_mutex_lock): Likewise.
64537         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
64538         (__pthread_mutex_trylock): Likewise.
64539         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
64540         (__pthread_mutex_unlock): Likewise.
64541         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
64542         (__pthread_mutexattr_init): Likewise.
64543         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
64544         (__pthread_mutexattr_destroy): Likewise.
64545         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
64546         (__pthread_mutexattr_settype): Likewise.
64547         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
64548         (__pthread_rwlock_init): Likewise.
64549         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
64550         (__pthread_rwlock_destroy): Likewise.
64551         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
64552         (__pthread_rwlock_rdlock): Likewise.
64553         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
64554         (__pthread_rwlock_tryrdlock): Likewise.
64555         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
64556         (__pthread_rwlock_wrlock): Likewise.
64557         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
64558         (__pthread_rwlock_trywrlock): Likewise.
64559         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
64560         (__pthread_rwlock_unlock): Likewise.
64561         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
64562         (__pthread_key_create): Likewise.
64563         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
64564         (__pthread_setspecific): Likewise.
64565         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
64566         (__pthread_getspecific): Likewise.
64567         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
64568         Likewise.
64569         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
64570         (_pthread_cleanup_push_defer): Likewise.
64571         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
64572         (_pthread_cleanup_pop_restore): Likewise.
64573         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
64574         (pthread_setcancelstate): Likewise.
64575         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
64576         <bp-sym.h>.
64577         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
64578         (memchr): Do not use BP_SYM in weak_alias.
64579         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
64580         (fegetenv): Do not use BP_SYM in versioned symbols.
64581         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
64582         (fesetenv): Do not use BP_SYM in versioned symbols.
64583         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
64584         (feupdateenv): Do not use BP_SYM in versioned symbols.
64585         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
64586         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
64587         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
64588         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
64589         (open64): Do not use BP_SYM in weak_alias.
64590         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
64591         (fegetenv): Do not use BP_SYM in versioned symbols.
64592         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
64593         (fesetenv): Do not use BP_SYM in versioned symbols.
64594         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
64595         (feupdateenv): Do not use BP_SYM in versioned symbols.
64596         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
64597         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
64598         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
64599         (feraiseexcept): Do not use BP_SYM in versioned symbols.
64600         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
64601         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
64602         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
64603         <bp-sym.h>.
64604         (__libc_start_main): Do not use BP_SYM.
64605
64606 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
64607
64608         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
64609         redundant return line.
64610         (norm): Likewise.
64611         (denorm): Likewise.
64612         (dbl_mp): Likewise.
64613         (sub_magnitudes): Likewise.
64614         (__add): Likewise.
64615         (__sub): Likewise.
64616         (__mul): Likewise.
64617         (__inv): Likewise.
64618         (__dvd): Likewise.
64619         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
64620         (norm): Likewise.
64621         (denorm): Likewise.
64622         (dbl_mp): Likewise.
64623         (sub_magnitudes): Likewise.
64624         (__add): Likewise.
64625         (__sub): Likewise.
64626         (__mul): Likewise.
64627         (__inv): Likewise.
64628         (__dvd): Likewise.
64629
64630         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
64631         instead of __mul.
64632         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
64633         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
64634         (cc32): Likewise.
64635
64636         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
64637         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
64638         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
64639         of __mul for squares.
64640         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
64641         function
64642         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
64643         Likewise.
64644         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
64645         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
64646
64647 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
64648
64649         [BZ #13550]
64650         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
64651         code.
64652         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
64653         prototype or function definition.  Rename ubp_* variables and
64654         parameters.  Remove argv definitions conditional on
64655         [__BOUNDED_POINTERS__].
64656         * debug/backtrace.c (__backtrace): Do not use __unbounded.
64657         * elf/dl-runtime.c (_dl_fixup): Likewise.
64658         * include/set-hooks.h (RUN_HOOK): Likewise.
64659         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
64660         definition.
64661         * string/strcpy.c (strcpy): Do not use __unbounded.
64662         * sysdeps/generic/frame.h (struct layout): Likewise.
64663         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
64664         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
64665         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
64666         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
64667         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
64668         (__backtrace): Likewise.
64669         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
64670         use __ptrvalue.
64671         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
64672         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
64673         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
64674         Likewise.
64675         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
64676         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
64677         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
64678         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
64679         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
64680         Do not use __unbounded.
64681         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
64682         Rename __unboundedrlimits parameter to rlimits in prototype.
64683         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
64684         Do not use __unbounded.
64685         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
64686         not use __ptrvalue.
64687         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
64688         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
64689         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
64690         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
64691         __ptrvalue or __unbounded.
64692         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
64693         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
64694         use __unbounded.
64695         (__new_msgctl): Do not use __ptrvalue.
64696         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
64697         __unbounded.
64698         (__libc_msgrcv): Do not use __ptrvalue.
64699         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
64700         startup_info): Do not use __unbounded.
64701         (__libc_start_main): Likewise.  Rename ubp_* variables and
64702         parameters.  Remove argv definitions conditional on
64703         [__BOUNDED_POINTERS__].
64704         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
64705         __ptrvalue.
64706         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
64707         use __unbounded.
64708         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
64709         or __ptrvalue.
64710         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
64711         use __unbounded.
64712         (__new_shmctl): Do not use __ptrvalue.
64713         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
64714         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
64715         Likewise.
64716         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
64717         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
64718         (__libc_sigaction): Likewise.
64719         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
64720         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
64721         Likewise.
64722         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
64723
64724 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
64725
64726         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
64727
64728         * string/mempcpy.c: Implement by calling memcpy.
64729
64730 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
64731
64732         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
64733
64734         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
64735         evaluation.
64736
64737         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
64738         values in the mantissa.
64739
64740         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
64741         minimize writes to Z.
64742         (sub_magnitudes): Simplify code a bit.
64743
64744 2013-02-12  Roland McGrath  <roland@hack.frob.com>
64745
64746         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
64747         from the message.  The linker prefixes all warnings with that already.
64748
64749 2013-02-12  Andreas Schwab  <schwab@suse.de>
64750
64751         [BZ #15078]
64752         * posix/regexec.c (extend_buffers): Add parameter min_len.
64753         (check_matching): Pass minimum needed length.
64754         (clean_state_log_if_needed): Likewise.
64755         (get_subexp): Likewise.
64756         * posix/Makefile (tests): Add bug-regex34.
64757         (bug-regex34-ENV): Define.
64758         * posix/bug-regex34.c: New file.
64759
64760         [BZ #11561]
64761         * posix/regcomp.c (parse_bracket_exp): When looking up collating
64762         elements compare against the byte sequence of it, not its name.
64763         * posix/Makefile (tests): Add bug-regex35.
64764         (bug-regex35-ENV): Define.
64765         * posix/bug-regex35.c: New file.
64766
64767 2013-02-11  Tom de Vries  <tom@codesourcery.com>
64768
64769         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
64770         comment.
64771         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
64772         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
64773         (CHECK_EOL): Add undef.
64774
64775 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
64776
64777         * bits/stdlib-bsearch.h: New file.
64778         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
64779         * stdlib/stdlib.h: Likewise.
64780
64781 2013-02-11  Roland McGrath  <roland@hack.frob.com>
64782
64783         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
64784         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
64785         declaration.
64786         * manual/search.texi (Array Search Function): Add missing const in
64787         lfind prototype.
64788         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
64789         declaration to use rlim_t.
64790         (Basic Scheduling Functions): Remove erroneous const from
64791         sched_getparam prototype.  Remove erroneous * from
64792         sched_get_priority_max and sched_get_priority_min prototypes.
64793         (Resource Usage): Fix summary @comment on vtimes to refer to
64794         sys/vtimes.h rather than vtimes.h.
64795         Add missing *s in vtimes prototype.
64796         (Limits on Resources): Fix ulimit prototype to return long int.
64797         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
64798         prototypes to use long int rather than double.
64799         (BSD Random): Fix initstate and setstate to use char *, not void *.
64800         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
64801         prototype to make second argument 'struct aiocb64 *const[]'.
64802         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
64803         (Status of AIO Operations): Remove erroneous const in aio_return and
64804         aio_return64 prototypes.
64805         (Synchronizing I/O): Fix sync prototype to return void.
64806         * manual/startup.texi (Suboptions): Remove an erroneous const in
64807         getsubopt prototype.
64808         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
64809         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
64810         use size_t rather than int.
64811         (Scanning All Users): Likewise for getpwent_r.
64812         (Setting Groups): Add missing const to setgroups prototype.
64813         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
64814         * manual/socket.texi (Host Names): Fix gethostbyaddr and
64815         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
64816         'const void *' rather than 'const char *'.
64817         (Host Address Functions): Likewise for inet_ntop.
64818         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
64819         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
64820         ssize_t for return value.
64821         (Sending Data): Likewise for send, sendto, sendmsg.
64822         (Socket Option Functions): Add a missing const in setsockopt prototype.
64823         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
64824         use wchar_t for the argument.
64825         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
64826         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
64827         take no arguments.
64828         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
64829         double/float/long double for second argument.
64830         Fix return types of significand, significandf, significandl.
64831         * manual/filesys.texi (Setting Permissions): Use mode_t for second
64832         argument in fchmod prototype.
64833         (File Owner): Use uid_t and gid_t in fchown prototype.
64834         (File Times): Add const to utimes, futimes, and lutimes prototypes.
64835         (Making Special Files): Use mode_t and dev_t in mknod prototype.
64836         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
64837         use 'const struct dirent **' as argument types to CMP function pointer
64838         argument.
64839         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
64840         (File Times): Fix summary magic @comment for struct utimbuf and utime
64841         to refer to utime.h, not time.h.
64842         * manual/string.texi (Argz Functions): Add missing const in
64843         argz_extract and argz_next prototypes.
64844         (Finding Tokens in a String): Likewise for basename.
64845         (String/Array Comparison): Fix typo in wcscasecmp prototype.
64846         (Copying and Concatenation): Fix typo in wmemmove prototype.
64847         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
64848         (Signal Stack): Remove erroneous const in sigstack prototype.
64849         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
64850         prototype.
64851         (Simple Calendar Time): Likewise for stime.
64852         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
64853         prototype.
64854         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
64855         say sys/sysctl.h instead.
64856         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
64857         and vsyslog prototypes.
64858
64859 2013-02-11  Tom de Vries  <tom@codesourcery.com>
64860
64861         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
64862         Remove.
64863
64864 2013-02-11  Roland McGrath  <roland@hack.frob.com>
64865
64866         * misc/sys/mman.h: Fix typo in mremap comment.
64867
64868 2013-02-08  Roland McGrath  <roland@hack.frob.com>
64869
64870         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
64871         the '\0' terminator.
64872
64873 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
64874
64875         [BZ #13550]
64876         * debug/segfault.c: Don't include <bp-checks.h>.
64877         * sysdeps/generic/bp-checks.h: Remove file.
64878         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
64879         (__GETDENTS): Don't use CHECK_N.
64880         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
64881         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
64882         (__getgroups): Don't use CHECK_N.
64883         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
64884         (setgroups): Don't use CHECK_N.
64885         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
64886         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
64887         (__libc_msgrcv): Don't use CHECK_N.
64888         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
64889         (__libc_msgsnd): Don't use CHECK_N.
64890         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
64891         <bp-checks.h>.
64892         (__libc_pread): Don't use CHECK_N.
64893         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
64894         include <bp-checks.h>.
64895         (__libc_pread64): Don't use CHECK_N.
64896         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
64897         include <bp-checks.h>.
64898         (__libc_pwrite): Don't use CHECK_N.
64899         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
64900         include <bp-checks.h>.
64901         (__libc_pwrite64): Don't use CHECK_N.
64902         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
64903         <bp-checks.h>.
64904         (__libc_pread): Don't use CHECK_N.
64905         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
64906         include <bp-checks.h>.
64907         (__libc_pread64): Don't use CHECK_N.
64908         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
64909         include <bp-checks.h>.
64910         (__libc_pwrite): Don't use CHECK_N.
64911         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
64912         include <bp-checks.h>.
64913         (__libc_pwrite64): Don't use CHECK_N.
64914         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
64915         (do_pread): Don't use CHECK_N.
64916         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
64917         (do_pread64): Don't use CHECK_N.
64918         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
64919         (do_pwrite): Don't use CHECK_N.
64920         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
64921         (do_pwrite64): Don't use CHECK_N.
64922         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
64923         (__libc_readv): Don't use CHECK_N.
64924         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
64925         (semop): Don't use CHECK_N.
64926         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
64927         <bp-checks.h>.
64928         (semtimedop): Don't use CHECK_N.
64929         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
64930         (__libc_pread): Don't use CHECK_N.
64931         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
64932         <bp-checks.h>.
64933         (__libc_pread64): Don't use CHECK_N.
64934         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
64935         <bp-checks.h>.
64936         (__libc_pwrite): Don't use CHECK_N.
64937         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
64938         <bp-checks.h>.
64939         (__libc_pwrite64): Don't use CHECK_N.
64940         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
64941         <bp-checks.h>.
64942         (__libc_msgrcv): Don't use CHECK_N.
64943         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
64944         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
64945         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
64946         (__libc_writev): Don't use CHECK_N.
64947
64948 2013-02-08  Roland McGrath  <roland@hack.frob.com>
64949
64950         * string/strcpy.c: Removed unused variable.
64951
64952         * Makeconfig (+sysdep-includes): Define with := rather than =.
64953         Use an existing include/ subdir of each sysdeps dir before it.
64954
64955 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
64956
64957         * nscd/connection.c (register_traced_file): Comment function.
64958         [HAVE_INOTIFY] (union __inev): Define.
64959         [HAVE_INOTIFY] (inotify_check_files): New function.
64960         [HAVE_INOTIFY] (clear_db_cache): Likewise.
64961         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
64962         clear_db_cache.
64963         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
64964
64965 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
64966
64967         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
64968         loaded if not already and that a failure is permanent.
64969
64970 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
64971
64972         [BZ #15006]
64973         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
64974         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
64975
64976 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
64977
64978         [BZ #13550]
64979         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
64980         (CHECK_1_NULL_OK): Likewise.
64981         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
64982         (__fxstat): Do not use CHECK_1.
64983         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
64984         <bp-checks.h>.
64985         (___fxstat64): Do not use CHECK_1.
64986         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
64987         <bp-checks.h>.
64988         (__fxstatat): Do not use CHECK_1.
64989         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
64990         <bp-checks.h>.
64991         (__fxstatat64): Do not use CHECK_1.
64992         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
64993         <bp-checks.h>.
64994         (__fxstat): Do not use CHECK_1.
64995         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
64996         <bp-checks.h>.
64997         (__fxstatat): Do not use CHECK_1.
64998         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
64999         <bp-checks.h>.
65000         (__getresgid): Do not use CHECK_1.
65001         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
65002         <bp-checks.h>.
65003         (__getresuid): Do not use CHECK_1.
65004         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
65005         <bp-checks.h>.
65006         (__lxstat): Do not use CHECK_1.
65007         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
65008         <bp-checks.h>.
65009         (__old_msgctl): Do not use CHECK_1.
65010         (__new_msgctl): Likewise.
65011         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
65012         <bp-checks.h>.
65013         (__new_setrlimit): Do not use CHECK_1.
65014         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
65015         <bp-checks.h>.
65016         (__old_shmctl): Do not use CHECK_1.
65017         (__new_shmctl): Likewise.
65018         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
65019         <bp-checks.h>.
65020         (__xstat): Do not use CHECK_1.
65021         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
65022         (__lxstat): Do not use CHECK_1.
65023         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
65024         <bp-checks.h>.
65025         (___lxstat64): Do not use CHECK_1.
65026         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
65027         (__old_msgctl): Do not use CHECK_1.
65028         (__new_msgctl): Likewise.
65029         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
65030         <bp-checks.h>.
65031         (__gettimeofday): Do not use CHECK_1.
65032         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
65033         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
65034         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
65035         <bp-checks.h>.
65036         (__gettimeofday): Do not use CHECK_1.
65037         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
65038         (__old_shmctl): Do not use CHECK_1_NULL_OK.
65039         (__new_shmctl): Do not use CHECK_1.
65040         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
65041         <bp-checks.h>.
65042         (do_sigtimedwait): Do not use CHECK_1.
65043         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
65044         <bp-checks.h>.
65045         (do_sigwaitinfo): Do not use CHECK_1.
65046         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
65047         <bp-checks.h>.
65048         (msgctl): Do not use CHECK_1.
65049         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
65050         <bp-checks.h>.
65051         (shmctl): Do not use CHECK_1.
65052         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
65053         (ustat): Do not use CHECK_1.
65054         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
65055         <bp-checks.h>.
65056         (__fxstat): Do not use CHECK_1.
65057         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
65058         <bp-checks.h>.
65059         (__fxstatat): Do not use CHECK_1.
65060         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
65061         <bp-checks.h>.
65062         (__lxstat): Do not use CHECK_1.
65063         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
65064         <bp-checks.h>.
65065         (__xstat): Do not use CHECK_1.
65066         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
65067         (__xstat): Do not use CHECK_1.
65068         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
65069         (___xstat64): Do not use CHECK_1.
65070
65071         [BZ #13550]
65072         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
65073         definitions.
65074         (CHECK_BOUNDS_HIGH): Likewise.
65075         * string/strcpy.c: Do not include <bp-checks.h>.
65076         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
65077
65078 2013-02-07  Roland McGrath  <roland@hack.frob.com>
65079
65080         * nscd/nscd-client.h (__nscd_drop_map_ref):
65081         Add __attribute__ ((unused)).
65082         * nis/nss-nisplus.h (niserr2nss): Likewise.
65083
65084         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
65085         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
65086
65087         * csu/libc-tls.c (init_static_tls, init_slotinfo):
65088         Remove inline keyword.
65089         * include/rounding-mode.h (round_away): Likewise.
65090         * libio/wfileops.c (adjust_wide_data): Likewise.
65091         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
65092         (__m128i_strloadu_tolower): Likewise.
65093         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
65094         (__m128i_strloadu_tolower): Likewise.
65095         * time/mktime.c (ydhms_diff): Likewise.
65096         * locale/elem-hash.h (elem_hash): Likewise.
65097         * locale/setlocale.c (setdata): Likewise.
65098         * posix/regex_internal.h (re_string_char_size_at): Likewise.
65099         (re_string_wchar_at): Likewise.
65100         (bitset_not, bitset_merge, bitset_mask): Likewise.
65101         [!(__GNUC__ > 3)] (inline): Remove macro.
65102         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
65103         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
65104         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
65105         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
65106         * string/memcmp.c (memcmp_bytes): Likewise.
65107         * locale/programs/locarchive.c (compute_hashval): Likewise.
65108         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
65109         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
65110         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
65111         * nss/getent.c (print_rpc, print_protocols): Likewise.
65112         (print_passwd, print_group, print_aliases): Likewise.
65113         * nis/nss-nisplus.h (niserr2nss): Likewise.
65114         * nscd/connections.c (restart_p): Likewise.
65115         Change return type to bool.
65116
65117 2013-02-05  Roland McGrath  <roland@hack.frob.com>
65118
65119         * Makeconfig (all-Depend-files): Add existing
65120         $(sorted-subdirs:=/Depend) files.
65121         (all-subdirs): Remove nss.
65122         * sysdeps/unix/inet/Subdirs: Add it here instead.
65123         * hesiod/Depend: New file.
65124
65125         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
65126         instead of calling alloca.
65127
65128         * io/lseek.c (__lseek): Rename to __libc_lseek.
65129         Define __lseek as an alias.
65130
65131         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
65132
65133 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
65134
65135         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
65136         else clause and remove check for non-standard endianness.
65137
65138 2013-02-04  David S. Miller  <davem@davemloft.net>
65139
65140         * sysdeps/sparc/fpu/libm-test-ulps: Update.
65141
65142 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
65143
65144         [BZ #13550]
65145         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
65146         (__ubp_memchr): Remove prototype.
65147         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
65148         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
65149         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
65150         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
65151         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
65152         Remove alias.
65153         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
65154         (__ubp_memchr): Likewise.
65155         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
65156         (__ubp_memchr): Likewise.
65157         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
65158         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
65159         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
65160         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
65161         CHECK_STRING.
65162         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
65163         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
65164         (__getcwd): Do not use CHECK_STRING.
65165         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
65166         <bp-checks.h>.
65167         (__real_chown): Do not use CHECK_STRING.
65168         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
65169         <bp-checks.h>.
65170         (fchownat): Do not use CHECK_STRING.
65171         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
65172         CHECK_STRING.
65173         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
65174         <bp-checks.h>.
65175         (__lchown): Do not use CHECK_STRING.
65176         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
65177         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
65178         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
65179         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
65180         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
65181         include <bp-checks.h>.
65182         (truncate64): Do not use CHECK_STRING.
65183         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
65184         <bp-checks.h>.
65185         (__real_chown): Do not use CHECK_STRING.
65186         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
65187         <bp-checks.h>.
65188         (__lchown): Do not use CHECK_STRING.
65189         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
65190         <bp-checks.h>.
65191         (__chown): Do not use CHECK_STRING.
65192         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
65193         <bp-checks.h>.
65194         (truncate64): Do not use CHECK_STRING.
65195         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
65196         Likewise.
65197         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
65198         (__xmknod): Do not use CHECK_STRING.
65199         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
65200         <bp-checks.h>.
65201         (__xmknodat): Do not use CHECK_STRING.
65202         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
65203         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
65204
65205 2013-02-04  Andreas Schwab  <schwab@suse.de>
65206
65207         [BZ #14142]
65208         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
65209         * include/netdb.h: Likewise for h_errno.
65210         * elf/tst-stackguard1.c: Include <tls.h>.
65211
65212 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
65213
65214         * elf/link.h (struct link_map): Extend the l_addr comment.
65215         * include/link.h (struct link_map): Likewise.
65216
65217 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
65218
65219         [BZ #13550]
65220         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
65221         (BOUNDED_1): Remove macro.
65222         * debug/backtrace.c: Don't include <bp-checks.h>.
65223         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
65224         (__backtrace): Likewise.
65225         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
65226         <bp-checks.h>.
65227         (__backtrace): Don't use BOUNDED_1.
65228         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
65229         <bp-checks.h>.
65230         (__backtrace): Don't use BOUNDED_1.
65231         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
65232         (__backtrace): Don't use BOUNDED_1.
65233         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
65234         (shmat): Don't use BOUNDED_N.
65235
65236 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
65237
65238         [BZ #13550]
65239         * sysdeps/generic/bp-start.h: Remove file.
65240         * csu/libc-start.c: Don't include <bp-start.h>.
65241         (LIBC_START_MAIN): Set up __environ directly instead of using
65242         INIT_ARGV_and_ENVIRON.
65243         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
65244         <bp-start.h>.
65245
65246         [BZ #13550]
65247         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
65248         definitions.
65249         (CHECK_FCNTL): Likewise.
65250         (CHECK_N_PAGES): Likewise.
65251
65252         [BZ #13550]
65253         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
65254         definitions.
65255         (CHECK_SIGSET_NULL_OK): Likewise.
65256         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
65257         <bp-checks.h>.
65258         (sigpending): Don't use CHECK_SIGSET.
65259         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
65260         <bp-checks.h>.
65261         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
65262         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
65263         <bp-checks.h>.
65264         (do_sigsuspend): Don't use CHECK_SIGSET.
65265         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
65266         use CHECK_SIGSET.
65267         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
65268         (do_sigwait): Don't use CHECK_SIGSET.
65269         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
65270         use CHECK_SIGSET.
65271         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
65272         include <bp-checks.h>.
65273         (sigpending): Don't use CHECK_SIGSET.
65274         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
65275         include <bp-checks.h>.
65276         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
65277         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
65278         <bp-checks.h>.
65279         (sigpending): Don't use CHECK_SIGSET.
65280         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
65281         <bp-checks.h>.
65282         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
65283
65284         [BZ #13550]
65285         * sysdeps/generic/bp-semctl.h: Remove file.
65286         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
65287         <bp-checks.h> and <bp-semctl.h>.
65288         (__old_semctl): Don't use CHECK_SEMCTL.
65289         (__new_semctl): Likewise.
65290         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
65291         and <bp-semctl.h>.
65292         (__old_semctl): Don't use CHECK_SEMCTL.
65293         (__new_semctl): Likewise.
65294         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
65295         <bp-checks.h> and <bp-semctl.h>.
65296         (__old_semctl): Don't use CHECK_SEMCTL.
65297         (__new_semctl): Likewise.
65298         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
65299         <bp-checks.h> and <bp-semctl.h>.
65300         (semctl): Don't use CHECK_SEMCTL.
65301
65302         [BZ #13550]
65303         * Makerules (elide-bp-thunks): Remove variable.
65304         (elide-routines.oS): Don't use $(elide-bp-thunks).
65305         (elide-routines.os): Likewise.
65306         (elide-routines.o): Likewise.
65307         (elide-routines.op): Likewise.
65308         (elide-routines.og): Likewise.
65309         (objects): Don't use $(bp-thunks).
65310         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
65311         include.
65312         (common-generated): Do not add s-proto-bp.d.
65313         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
65314         (int): Likewise.
65315         (typ): Likewise.
65316         Do not generate makefile rules for bounded-pointer thunks.
65317         * sysdeps/generic/bp-thunks.h: Remove file.
65318         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
65319         * sysdeps/unix/s-proto-bp.S: Likewise.
65320
65321         [BZ #15062]
65322         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
65323         parts of result separately when argument is not close to line from
65324         -i to i and one part of argument is small.
65325         * math/k_casinhf.c (__kernel_casinhf): Likewise.
65326         * math/k_casinhl.c (__kernel_casinhl): Likewise.
65327         * math/libm-test.inc (cacos_test): Add more tests.
65328         (casin_test): Likewise.
65329         (casinh_test): Likewise.
65330         * sysdeps/i386/fpu/libm-test-ulps: Update.
65331         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
65332
65333 2013-01-31  David S. Miller  <davem@davemloft.net>
65334
65335         * po/de.po: Update from translation team.
65336
65337 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
65338
65339         * time/tzfile.c: Include stdint.h for SIZE_MAX.
65340
65341 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
65342
65343         * configure.in (_AC_PROG_CC_C89): New definition.
65344         * configure: Regenerate.
65345
65346         * configure.in (AC_PROG_CPP): New definition.
65347         * configure: Regenerate.
65348
65349 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
65350
65351         * debug/tst-backtrace.h: New file.
65352         * debug/tst-backtrace2.c: Include tst-backtrace.h.
65353         (ret): Remove variable.
65354         (x): Likewise.
65355         (FAIL): Remove macro.
65356         (NO_INLINE): Likewise.
65357         (fn1): Use match function instead of strstr.
65358         * debug/tst-backtrace3.c: Include tst-backtrace.h.
65359         (ret): Remove variable.
65360         (x): Likewise.
65361         (FAIL): Remove macro.
65362         (NO_INLINE): Likewise.
65363         (fn): Use match function instead of strstr.
65364         * debug/tst-backtrace4.c: Include tst-backtrace.h.
65365         (ret): Remove variable.
65366         (x): Likewise.
65367         (FAIL): Remove macro.
65368         (NO_INLINE): Likewise.
65369         (handle_signal): Use match function instead of strstr.
65370         * debug/tst-backtrace5.c: Include tst-backtrace.h.
65371         (ret): Remove variable.
65372         (x): Likewise.
65373         (FAIL): Remove macro.
65374         (NO_INLINE): Likewise.
65375         (handle_signal): Use match function instead of strstr.
65376
65377 2013-01-23  Roland McGrath  <roland@hack.frob.com>
65378
65379         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
65380
65381 2013-01-23  David S. Miller  <davem@davemloft.net>
65382
65383         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
65384         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
65385         argument of CAS if possible.
65386         * sysdeps/sparc/sparc64/bits/atomic.h
65387         (__arch_compare_and_exchange_val_32_acq): Likewise.
65388         (__arch_compare_and_exchange_val_64_acq): Likewise.
65389
65390 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
65391
65392         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
65393         * sysdeps/posix/ulimit.c: ... this.
65394         Include <limits.h>.
65395         * sysdeps/unix/bsd/ulimit.c: Remove file.
65396
65397 2013-01-23  Adam Conrad  <adconrad@0c3.net>
65398
65399         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
65400         (LDFLAGS-tst-array5): Likewise.
65401
65402 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
65403
65404         [BZ #15036]
65405         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
65406         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
65407         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
65408         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
65409
65410 2013-01-21  David S. Miller  <davem@davemloft.net>
65411
65412         * sysdeps/sparc/backtrace.c: New file.
65413         * sysdeps/sparc/sparc32/backtrace.h: New file.
65414         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
65415         * sysdeps/sparc/sparc64/backtrace.h: New file.
65416         * sysdeps/sparc/sparc64/backtrace.c: Delete.
65417         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
65418         -funwind-tables.
65419
65420 2013-01-21  Andreas Schwab  <schwab@suse.de>
65421
65422         [BZ #15020]
65423         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
65424         closed its stdout.
65425
65426 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
65427
65428         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
65429         "mpa2.h".
65430         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
65431
65432 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
65433             Mark Mitchell  <mark@codesourcery.com>
65434             Tom de Vries  <tom@codesourcery.com>
65435             Paul Pluzhnikov  <ppluzhnikov@google.com>
65436
65437         * debug/tst-backtrace2.c: New file.
65438         * debug/tst-backtrace3.c: Likewise.
65439         * debug/tst-backtrace4.c: Likewise.
65440         * debug/tst-backtrace5.c: Likewise.
65441         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
65442         (CFLAGS-tst-backtrace3.c): Likewise.
65443         (CFLAGS-tst-backtrace4.c): Likewise.
65444         (CFLAGS-tst-backtrace5.c): Likewise.
65445         (LDFLAGS-tst-backtrace2): Likewise.
65446         (LDFLAGS-tst-backtrace3): Likewise.
65447         (LDFLAGS-tst-backtrace4): Likewise.
65448         (LDFLAGS-tst-backtrace5): Likewise.
65449         (tests): Add new tests tst-backtrace2, tst-backtrace3,
65450         tst-backtrace4 and tst-backtrace5.
65451
65452 2013-01-18  Anton Blanchard  <anton@samba.org>
65453             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
65454
65455         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
65456         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
65457         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
65458         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
65459         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
65460         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
65461         "+r" and remove output regs list as redundant.  Add explicit inline
65462         asm to specify register of return val to work around compiler codegen
65463         bug.  Remove (int) cast on return value.  Add return type parameter to
65464         use in macro so that this macro does not truncate return value for
65465         64-bit values.
65466         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
65467         pass to INTERNAL_VSYSCALL_NCS.
65468         (INLINE_VSYSCALL): Add 'long int' as return type to
65469         INTERNAL_VSYSCALL_NCS macro invocation.
65470         (INTERNAL_VSYSCALL): Add 'long int' as return type to
65471         INTERNAL_VSYSCALL_NCS macro invocation.
65472         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
65473
65474 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
65475
65476         [BZ #14496]
65477         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
65478         Fix application of SIMD FP exception mask.
65479
65480         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
65481         mp_no from a power of two.
65482         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
65483         __mpexp_twomm1.  Use __pow_mp.
65484
65485         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
65486         multiplication.
65487
65488 2013-01-17  David S. Miller  <davem@davemloft.net>
65489
65490         * sysdeps/sparc/fpu/libm-test-ulps: Update.
65491
65492 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
65493
65494         [BZ #15023]
65495         * include/complex.h: Condition contents on [!_COMPLEX_H].
65496         (__kernel_casinhf): New prototype.
65497         (__kernel_casinh): Likewise.
65498         (__kernel_casinhl): Likewise.
65499         * math/Makefile (libm_calls): Add k_casinh.
65500         * math/k_casinh.c: New file.
65501         * math/k_casinhf.c: Likewise.
65502         * math/k_casinhl.c: Likewise.
65503         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
65504         finite nonzero arguments.
65505         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
65506         finite nonzero arguments.
65507         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
65508         finite nonzero arguments.
65509         * math/s_casinh.c: Do not include <float.h>.
65510         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
65511         * math/s_casinhf.c: Do not include <float.h>.
65512         (__casinhf): Move code for finite nonzero arguments to
65513         k_casinhf.c.
65514         * math/s_casinhl.c: Do not include <float.h>.
65515         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
65516         redefine.
65517         (__casinhl): Move code for finite nonzero arguments to
65518         k_casinhl.c.
65519         * math/libm-test.inc (cacos_test): Add more tests.
65520         * sysdeps/i386/fpu/libm-test-ulps: Update.
65521         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
65522
65523 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
65524
65525         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
65526         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
65527         [!HAVE_MREMAP]: Remove [defined linux] case.
65528         * malloc/arena.c: Do not include <malloc-sysdep.h>.
65529
65530 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
65531
65532         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
65533
65534 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
65535
65536         * elf/elf.h (R_386_SIZE32): New relocation.
65537         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
65538         R_386_SIZE32.
65539         (elf_machine_rela): Likewise.
65540         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
65541         R_X86_64_SIZE64 and R_X86_64_SIZE32.
65542
65543 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
65544
65545         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
65546         (FP_FAST_FMA): Do not define.
65547         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
65548         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
65549         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
65550         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
65551         !_SOFT_FLOAT]: Likewise.
65552         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
65553         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
65554         value.
65555         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
65556         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
65557         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
65558         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
65559         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
65560         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
65561         file.
65562
65563 2013-01-16  Andreas Schwab  <schwab@suse.de>
65564
65565         [BZ #14327]
65566         * include/stdlib.h (__mktemp): Add declaration.
65567         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
65568         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
65569
65570 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
65571
65572         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
65573         definitions.
65574         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
65575         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
65576         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
65577         definitions here.
65578         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
65579         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
65580         definitions.
65581         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
65582         and ONE.
65583         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
65584         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
65585         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
65586         definitions.
65587         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
65588         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
65589         definitions.
65590         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
65591
65592         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
65593
65594 2013-01-15  David S. Miller  <davem@davemloft.net>
65595
65596         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
65597         trunc{,f} to libm-sysdep_routes.
65598         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
65599         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
65600         file.
65601         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
65602         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
65603         file.
65604         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
65605         file.
65606         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
65607         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
65608         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
65609         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
65610         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
65611         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
65612         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
65613         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
65614
65615         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
65616         nearbyint{,f} to libm-sysdep_routes.
65617         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
65618         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
65619         New file.
65620         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
65621         file.
65622         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
65623         New file.
65624         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
65625         file.
65626         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
65627         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
65628         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
65629         file.
65630         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
65631         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
65632         file.
65633         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
65634         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
65635         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
65636
65637         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
65638         libc_feholdexcept and libc_fesetenv.
65639
65640 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
65641
65642         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
65643
65644 2013-01-14  David S. Miller  <davem@davemloft.net>
65645
65646         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
65647         (SPARC_ASM_VIS2_IFUNC): Likewise.
65648         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
65649         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
65650         use of 'siam' instruction.
65651         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
65652         Likewise.
65653         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
65654         Likewise.
65655         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
65656         Likewise.
65657         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
65658         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
65659         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
65660         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
65661         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
65662         file.
65663         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
65664         file.
65665         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
65666         file.
65667         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
65668         file.
65669         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
65670         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
65671         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
65672         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
65673         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
65674         new VIS2 routines.
65675         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
65676         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
65677         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
65678         Likewise.
65679         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
65680         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
65681         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
65682         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
65683         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
65684         routines to libm-sysdep_routines.
65685         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
65686
65687         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
65688         fdim/fdimf to libm-sysdep_routines.
65689         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
65690         file.
65691         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
65692         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
65693         file.
65694         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
65695         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
65696         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
65697         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
65698         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
65699         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
65700         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
65701
65702 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
65703
65704         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
65705         to optimize copies.
65706
65707         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
65708         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
65709         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
65710
65711         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
65712         local variable MPTWO.
65713         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
65714         Likewise.
65715
65716 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
65717
65718         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
65719         GLOB_NOESCAPE.
65720
65721 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
65722
65723         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
65724
65725 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
65726
65727         * manual/pattern.texi (glob_t): Document gl_flags.
65728         (glob64_t): Likewise.
65729
65730 2013-01-11  David S. Miller  <davem@davemloft.net>
65731
65732         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
65733         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
65734         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
65735         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
65736         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
65737         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
65738         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
65739         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
65740         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
65741         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
65742         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
65743         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
65744         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
65745
65746         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
65747         sparc V9 rather than using V8 code.
65748         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
65749         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
65750
65751         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
65752         Move to...
65753         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
65754         Here.
65755
65756 2013-01-11  Roland McGrath  <roland@hack.frob.com>
65757
65758         [BZ #14941]
65759         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
65760         not in the main loop.
65761         * configure: Regenerated.
65762
65763 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
65764
65765         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
65766         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
65767         to just #else.
65768         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
65769         [!__GLIBC_HAVE_LONG_LONG] case.
65770         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
65771         condition to just #else.
65772         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
65773         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
65774         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
65775         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
65776         unconditional.
65777         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
65778         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
65779         #elif condition to just #else.
65780         * sysdeps/unix/sysv/linux/sys/sysmacros.h
65781         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
65782         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
65783         #elif condition to just #else.
65784
65785 2013-01-11  Steve Ellcey  <sellcey@mips.com>
65786
65787         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
65788         (EF_MIPS_ARCH_64): Fix value.
65789         (EF_MIPS_ARCH_32R2): New.
65790         (EF_MIPS_ARCH_64R2): New.
65791
65792 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
65793
65794         * Makeconfig (+link-pie-before-libc): New.
65795         (+link-pie-after-libc): Likewise.
65796         (+link-pie-tests): Likewise.
65797         (+link-pie): Rewritten.
65798         (link-before-libc): Remove $(config-LDFLAGS).
65799         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
65800         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
65801         (config-LDFLAGS): Renamed to ...
65802         (rtld-LDFLAGS): This.
65803         (rtld-tests-LDFLAGS): New macro.
65804         (link-libc-rpath-link): Likewise.
65805         (link-libc-tests-rpath-link): Likewise.
65806         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
65807         (link-libc): Prepand $(link-libc-rpath-link).
65808         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
65809         (test-program-prefix): New macro.
65810         (test-via-rtld-prefix): Likewise.
65811         (test-program-cmd): Likewise.
65812         (host-test-program-cmd): Likewise.
65813         * Makefile ($(common-objpfx)testrun.sh): Replace
65814         $(run-program-prefix) with $(test-program-prefix).
65815         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
65816         $(rtld-LDFLAGS).
65817         ($(common-objpfx)shlib.lds): Likewise.
65818         (build-module-helper): Likewise.
65819         ($(common-objpfx)format.lds): Likewise.
65820         * Rules (binaries-pie-tests): New.
65821         (binaries-pie-notests): Likewise.
65822         (binaries-pie): Rewritten.
65823         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
65824         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
65825         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
65826         (make-test-out): Replace $(host-built-program-cmd) with
65827         $(host-test-program-cmd).
65828         * config.make.in (build-hardcoded-path-in-tests): New variable.
65829         * configure.in (--enable-hardcoded-path-in-tests): New configure
65830         option.
65831         (hardcoded_path_in_tests): New AC_SUBST.
65832         * configure: Regenerated.
65833         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
65834         $(built-program-cmd) with $(test-program-cmd).
65835         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
65836         (test_program_cmd): This.
65837         * elf/Makefile ($(objpfx)order.out): Run test with
65838         $(test-program-prefix).
65839         ($(objpfx)order2.out): Likewise.
65840         ($(objpfx)tst-initorder.out): Likewise.
65841         ($(objpfx)tst-initorder2.out): Likewise.
65842         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
65843         $(test-program-cmd).
65844         ($(objpfx)tst-array1-static.out): Likewise.
65845         ($(objpfx)tst-array2.out): Likewise.
65846         ($(objpfx)tst-array3.out): Likewise.
65847         ($(objpfx)tst-array4.out): Likewise.
65848         ($(objpfx)tst-array5.out): Likewise.
65849         ($(objpfx)tst-array5-static.out): Likewise.
65850         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
65851         $(test-program-cmd).
65852         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
65853         $(run-program-prefix) with $(test-program-prefix).
65854         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
65855         (test_program_prefix): This.
65856         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
65857         $(run-program-prefix) with $(test-program-prefix).
65858         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
65859         (test_program_prefix): This.
65860         * iconvdata/tst-tables.sh: Likewise.
65861         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
65862         $(run-program-prefix) with $(test-program-prefix).
65863         ($(objpfx)tst-translit.out): Likewise.
65864         ($(objpfx)tst-gettext2.out): Likewise.
65865         ($(objpfx)tst-gettext4.out): Likewise.
65866         ($(objpfx)tst-gettext6.out): Likewise.
65867         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
65868         (test_program_prefix): This.
65869         * intl/tst-gettext2.sh: Likewise.
65870         * intl/tst-gettext4.sh  Likewise.
65871         * intl/tst-gettext6.sh: Likewise.
65872         * intl/tst-translit.sh: Likewise.
65873         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
65874         with $(test-program-cmd).
65875         * libio/Makefile ($(objpfx)test-freopen.out): Replace
65876         $(run-program-prefix) with $(test-program-prefix).
65877         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
65878         (test_program_prefix): This.
65879         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
65880         $(run-program-prefix) with $(test-program-prefix).
65881         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
65882         (test_program_prefix): This.
65883         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
65884         * posix/Makefile ($(objpfx)globtest.out): Replace
65885         $(run-via-rtld-prefix) and $(test-wrapper) with
65886         $(test-program-prefix) and $(test-via-rtld-prefix).
65887         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
65888         $(test-program-prefix).
65889         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
65890         $(host-test-program-cmd).
65891         (tst-spawn-ARGS): Likewise.
65892         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
65893         $(test-program-prefix).
65894         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
65895         (test_via_rtld_prefix): This.
65896         (test_wrapper): Renamed to ...
65897         (test_program_prefix): This.
65898         (run_program_prefix): Replaced by test_program_prefix.
65899         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
65900         (test_program_prefix): This.
65901         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
65902         with $(host-test-program-cmd).
65903         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
65904         $(run-program-prefix) with $(test-program-prefix).
65905         ($(objpfx)tst-printf.out): Likewise.
65906         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
65907         $(test-program-cmd).
65908         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
65909         (test_program_prefix): This.
65910         * stdio-common/tst-unbputc.sh: Likewise.
65911         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
65912         $(run-program-prefix) with $(test-program-prefix).
65913         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
65914         (test_program_prefix): This.
65915         * string/Makefile ($(objpfx)tst-svc.out):  Replace
65916         $(built-program-cmd) with $(test-program-cmd).
65917
65918 2013-01-11  Andreas Jaeger  <aj@suse.de>
65919
65920         [BZ #15003]
65921         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
65922         value. Sync with Linux 3.7.
65923
65924 2013-01-10  David S. Miller  <davem@davemloft.net>
65925
65926         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
65927         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
65928         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
65929
65930 2013-01-10  Roland McGrath  <roland@hack.frob.com>
65931
65932         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
65933         never set.
65934         * configure: Regenerated.
65935
65936 2013-01-10  David S. Miller  <davem@davemloft.net>
65937
65938         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
65939         sparc V9 rather than using V8 code.
65940         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
65941         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
65942
65943 2013-01-10  Roland McGrath  <roland@hack.frob.com>
65944
65945         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
65946         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
65947         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
65948         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
65949         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
65950         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
65951         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
65952         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
65953         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
65954         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
65955         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
65956         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
65957         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
65958         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
65959         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
65960         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
65961         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
65962         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
65963         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
65964         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
65965         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
65966         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
65967         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
65968         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
65969         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
65970         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
65971         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
65972
65973 2013-01-10  David S. Miller  <davem@davemloft.net>
65974
65975         * sysdeps/sparc/fpu/libm-test-ulps: Update.
65976
65977 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
65978
65979         * posix/Makefile (tests-static): New variable.
65980         (tests): Add $(tests-static).
65981         (tst-exec-static-ARGS): New variable.
65982         (tst-spawn-static-ARGS): Likewise.
65983         * posix/tst-exec-static.c: New file.
65984         * posix/tst-spawn-static.c: Likewise.
65985         * posix/tst-exec.c: Support run directly.
65986         * posix/tst-spawn.c: Likewise.
65987
65988 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
65989
65990         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
65991         long.
65992         * math/bits/mathcalls.h (llrint): Likewise.
65993         (llround): Likewise.
65994         * stdlib/stdlib.h (struct drand48_data): Likewise.
65995         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
65996         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
65997         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
65998         Likewise.
65999         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
66000         Likewise.
66001         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
66002         (elf_greg_t): Likewise.
66003         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
66004         (__jmp_buf): Likewise.
66005         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
66006         definitions.
66007         (llrint): Likewise, for all definitions.
66008         (llrintl): Likewise.
66009
66010         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
66011         Remove [__GNUC__] condition.
66012         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
66013         condition to just [__USE_ISOC99].
66014         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
66015
66016 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
66017
66018         [BZ #14200]
66019         * sysdeps/unix/sysv/linux/x86/bits/environments.h
66020         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
66021         defined.
66022         (_POSIX_V6_ILP32_OFF32): Likewise.
66023         (_XBS5_ILP32_OFF32): Likewise.
66024         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
66025         (__ILP32_OFFBIG_LDFLAGS): Likewise.
66026
66027 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
66028
66029         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
66030
66031         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
66032         doubles __mpexp_twomm1.  Adjust usage.
66033         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
66034         Remove.
66035
66036 2013-01-10  Andreas Schwab  <schwab@suse.de>
66037
66038         [BZ #14964]
66039         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
66040         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
66041
66042 2013-01-09  David S. Miller  <davem@davemloft.net>
66043
66044         [BZ #15003]
66045         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS)
66046         (TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT)
66047         (TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS)
66048         (TCP_FASTOPEN): Define.
66049         (tcp_repair_opt): New structure.
66050         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
66051         enum values.
66052         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE)
66053         (TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN)
66054         (TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
66055         (tcp_cookie_transactions): New structure.
66056
66057 2013-01-09  Anton Blanchard  <anton@samba.org>
66058
66059         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
66060         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
66061         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
66062         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
66063
66064 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
66065
66066         * include/features.h (__USE_ANSI): Remove.
66067
66068 2013-01-09  Roland McGrath  <roland@hack.frob.com>
66069
66070         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
66071
66072         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
66073
66074 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
66075
66076         * sysdeps/s390/fpu/libm-test-ulps: Update.
66077
66078         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66079
66080         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
66081         (__acr): Likewise.
66082         (__cpy): Likewise.
66083         (norm): Likewise.
66084         (denorm): Likewise.
66085         (__mp_dbl): Likewise.
66086         (__dbl_mp): Likewise.
66087         (add_magnitudes): Likewise.
66088         (sub_magnitudes): Likewise.
66089         (__add): Likewise.
66090         (__sub): Likewise.
66091         (__mul): Likewise.
66092         (__inv): Likewise.
66093         (__dvd): Likewise.
66094         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
66095         (__acr): Likewise.
66096         (__cpy): Likewise.
66097         (norm): Likewise.
66098         (denorm): Likewise.
66099         (__mp_dbl): Likewise.
66100         (__dbl_mp): Likewise.
66101         (add_magnitudes): Likewise.
66102         (sub_magnitudes): Likewise.
66103         (__add): Likewise.
66104         (__sub): Likewise.
66105         (__mul): Likewise.
66106         (__inv): Likewise.
66107         (__dvd): Likewise.
66108         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
66109         (__acr): Likewise.
66110         (__cpy): Likewise.
66111         (norm): Likewise.
66112         (denorm): Likewise.
66113         (__mp_dbl): Likewise.
66114         (__dbl_mp): Likewise.
66115         (add_magnitudes): Likewise.
66116         (sub_magnitudes): Likewise.
66117         (__add): Likewise.
66118         (__sub): Likewise.
66119         (__mul): Likewise.
66120         (__inv): Likewise.
66121         (__dvd): Likewise.
66122
66123 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
66124
66125         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
66126         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
66127         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
66128         2 && __USE_EXTERN_INLINES]: Likewise.
66129
66130 2013-01-08  Andreas Jaeger  <aj@suse.de>
66131
66132         [BZ #14985]
66133         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
66134         Remove.
66135         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
66136         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
66137
66138 2013-01-07  Anton Blanchard  <anton@samba.org>
66139
66140         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
66141         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
66142         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
66143         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
66144         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
66145         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
66146         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
66147         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
66148         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
66149         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
66150         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
66151         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
66152         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
66153         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
66154         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
66155         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
66156         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
66157         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
66158         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
66159         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
66160         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
66161         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
66162         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
66163         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
66164         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
66165         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
66166         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
66167         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
66168         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
66169         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
66170         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
66171         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
66172         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
66173         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
66174         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
66175         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
66176         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
66177         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
66178         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
66179         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
66180         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
66181         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
66182         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
66183
66184 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
66185
66186         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
66187         (__MALLOC_PMT): Likewise.
66188         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
66189         [__GNUC__], only on [_LIBC].
66190         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
66191         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
66192         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
66193         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
66194         forward declaration.
66195         (realloc_hook_ini): Likewise.
66196         (memalign_hook_ini): Likewise.
66197         (__libc_memalign): Do not use __MALLOC_PMT in variable
66198         declaration.
66199         (__libc_valloc): Likewise.
66200         (__libc_pvalloc): Likewise.
66201         (__libc_calloc): Likewise.
66202         (__posix_memalign): Likewise.
66203
66204         [BZ #14996]
66205         * math/s_casinh.c: Include <float.h>.
66206         (__casinh): Do not do computation with squaring and square root
66207         for large arguments.
66208         * math/s_casinhf.c: Include <float.h>.
66209         (__casinhf): Do not do computation with squaring and square root
66210         for large arguments.
66211         * math/s_casinhl.c: Include <float.h>.
66212         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
66213         (__casinhl): Do not do computation with squaring and square root
66214         for large arguments.
66215         * math/libm-test.inc (casin_test): Add more tests.
66216         (casinh_test): Likewise.
66217         * sysdeps/i386/fpu/libm-test-ulps: Update.
66218         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66219
66220 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
66221
66222         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
66223         (__x86_64_raw_data_cache_size): Likewise.
66224         (__x86_64_data_cache_size_half): Likewise.
66225         (__x86_64_raw_data_cache_size_half): Likewise.
66226         (__x86_64_shared_cache_size): Likewise.
66227         (__x86_64_raw_shared_cache_size): Likewise.
66228         (__x86_64_shared_cache_size_half): Likewise.
66229         (__x86_64_raw_shared_cache_size_half): Likewise.
66230         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
66231         to ...
66232         (__x86_data_cache_size): This.
66233         (__x86_64_raw_data_cache_size): Renamed to ...
66234         (__x86_raw_data_cache_size): This.
66235         (__x86_64_data_cache_size_half): Renamed to ...
66236         (__x86_data_cache_size_half): This.
66237         (__x86_64_raw_data_cache_size_half): Renamed to ...
66238         (__x86_raw_data_cache_size_half): This.
66239         (__x86_64_shared_cache_size): Renamed to ...
66240         (__x86_shared_cache_size): This.
66241         (__x86_64_raw_shared_cache_size): Renamed to ...
66242         (__x86_raw_shared_cache_size): This.
66243         (__x86_64_shared_cache_size_half): Renamed to ...
66244         (__x86_shared_cache_size_half): This.
66245         (__x86_64_raw_shared_cache_size_half): Renamed to ...
66246         (__x86_raw_shared_cache_size_half): This.
66247         * sysdeps/x86_64/memcpy.S: Updated.
66248         * sysdeps/x86_64/memset.S: Likewise.
66249         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
66250         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
66251         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
66252
66253 2013-01-04  David S. Miller  <davem@davemloft.net>
66254
66255         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66256
66257 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
66258
66259         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
66260         1 to avoid redefinition warning.
66261         (__USE_GNU): Don't define.
66262         (init_signaling_nan): Protoize.
66263
66264         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66265
66266 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
66267
66268         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
66269         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
66270         (__cpymn): Likewise.
66271         (norm): Remove commented code.
66272         (denorm): Likewise.
66273         (__mp_dbl): Likewise.
66274         (__inv): Likewise.
66275         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
66276         (__cpymn): Likewise.
66277         (norm): Remove commented code.
66278         (denorm): Likewise.
66279         (__mp_dbl): Likewise.
66280         (__inv): Likewise.
66281
66282         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
66283         mp_no value for 1.0 and 2.0.
66284         (norm): Use RADIXI instead of radixi.d.
66285         (denorm): Likewise.
66286         (__mul): Use 0.0 instead of zero.d.
66287         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
66288         mp_no value for 1.0 and 2.0.
66289         (norm): Use RADIXI instead of radixi.d.
66290         (denorm): Likewise.
66291         (__mul): Use 0.0 instead of zero.d.
66292
66293 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
66294
66295         [BZ #14994]
66296         * math/s_casinh.c (__casinh): Reduce finite argument to first
66297         quadrant then set signs of results at the end.
66298         * math/s_casinhf.c (__casinhf): Likewise.
66299         * math/s_casinhl.c (__casinhl): Likewise.
66300         * math/libm-test.inc (casin_test): Add more tests.
66301         (casinh_test): Likewise.
66302         * sysdeps/i386/fpu/libm-test-ulps: Update.
66303         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66304
66305 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
66306
66307         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
66308
66309         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
66310
66311         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
66312         declarations.
66313         (denorm): Likewise.
66314         (__mp_dbl): Likewise.
66315         (__inv): Likewise.
66316
66317         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
66318         and adjust the header comment.
66319
66320         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
66321         variable name from declaration.
66322
66323 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
66324
66325         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
66326         Initialize COMMON_CPUID_INDEX_7 element.
66327         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
66328         (CPUID_RTM): Likewise.
66329         (HAS_RTM): Likewise.
66330         (COMMON_CPUID_INDEX_7): New enum.
66331
66332 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
66333
66334         [BZ #14981]
66335         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
66336         size is zero, record memory as freed.
66337
66338 2013-01-03  Andreas Jaeger  <aj@suse.de>
66339
66340         * po/ia.po: Add new Interlingua translation.
66341
66342 2012-01-03  Allan McRae  <allan@archlinux.org>
66343
66344         * locale/programs/localedef.c: Fix description of '--posix' flag.
66345
66346 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
66347
66348         * NEWS: Update dates in second copyright notice.
66349         * README: Update copyright dates in example.
66350         * manual/libc.texinfo: Update copyright dates.
66351         * scripts/test-installation.pl: Update copyright date in --version
66352         output.
66353
66354         * hurd/ctty-input.c: Fix copyright notice formatting.
66355         * hurd/ctty-output.c: Likewise.
66356         * hurd/dtable.c: Likewise.
66357         * hurd/hurd-raise.c: Likewise.
66358         * hurd/hurdprio.c: Likewise.
66359         * hurd/msgportdemux.c: Likewise.
66360         * misc/sys/file.h: Likewise.
66361         * misc/sys/ioctl.h: Likewise.
66362         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
66363         * sysdeps/mach/hurd/chdir.c: Likewise.
66364         * sysdeps/mach/hurd/fchdir.c: Likewise.
66365         * sysdeps/mach/hurd/rename.c: Likewise.
66366         * sysdeps/mach/hurd/rmdir.c: Likewise.
66367         * sysdeps/mach/hurd/seekdir.c: Likewise.
66368         * sysdeps/mach/hurd/setsid.c: Likewise.
66369         * sysdeps/posix/wait3.c: Likewise.
66370
66371         * All files with FSF copyright notices: Update copyright dates
66372         using scripts/update-copyrights.
66373         * intl/plural.c: Regenerated.
66374         * locale/programs/charmap-kw.h: Likewise.
66375         * locale/programs/locfile-kw.h: Likewise.
66376
66377 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
66378
66379         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
66380         four values.
66381
66382         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
66383         calculation loop and add branch prediction.
66384
66385         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
66386         check access beyond bounds of m1np.
66387
66388         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
66389         MPTWO.
66390         (__inv): Remove local variable MPTWO to use the global
66391         constant.
66392         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
66393         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
66394         variable MPTWO.
66395         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
66396         MP3HALFS static const.
66397
66398 2013-01-01  David S. Miller  <davem@davemloft.net>
66399
66400         * po/ca.po: Update from translation team.
66401
66402 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
66403
66404         * scripts/update-copyrights: New file.
66405         * Makeconfig: Reformat copyright notice.
66406         * ctype/ctype.h: Likewise.
66407         * debug/swprintf_chk.c: Likewise.
66408         * elf/dl-cache.c: Likewise.
66409         * elf/dl-debug.c: Likewise.
66410         * elf/dl-object.c: Likewise.
66411         * grp/initgroups.c: Likewise.
66412         * hurd/Makefile: Likewise.
66413         * hurd/hurd/signal.h: Likewise.
66414         * hurd/hurdfault.c: Likewise.
66415         * hurd/hurdioctl.c: Likewise.
66416         * hurd/hurdlookup.c: Likewise.
66417         * hurd/intr-msg.c: Likewise.
66418         * iconv/gconv_open.c: Likewise.
66419         * libio/swprintf.c: Likewise.
66420         * locale/lc-ctype.c: Likewise.
66421         * locale/nl_langinfo.c: Likewise.
66422         * mach/Machrules: Likewise.
66423         * mach/Makefile: Likewise.
66424         * malloc/obstack.h: Likewise.
66425         * manual/Makefile: Likewise.
66426         * manual/tsort.awk: Likewise.
66427         * misc/bits/stab.def: Likewise.
66428         * nis/nis_print_group_entry.c: Likewise.
66429         * nis/nis_table.c: Likewise.
66430         * nis/nss_compat/compat-pwd.c: Likewise.
66431         * nis/nss_compat/compat-spwd.c: Likewise.
66432         * po/Makefile: Likewise.
66433         * posix/fnmatch.c: Likewise.
66434         * posix/regex.h: Likewise.
66435         * resolv/Makefile: Likewise.
66436         * resolv/nss_dns/dns-network.c: Likewise.
66437         * resolv/res_hconf.c: Likewise.
66438         * scripts/gen-sorted.awk: Likewise.
66439         * soft-fp/soft-fp.h: Likewise.
66440         * stdio-common/printf.h: Likewise.
66441         * stdlib/monetary.h: Likewise.
66442         * stdlib/random.c: Likewise.
66443         * stdlib/random_r.c: Likewise.
66444         * sysdeps/generic/Makefile: Likewise.
66445         * sysdeps/gnu/Makefile: Likewise.
66446         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
66447         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
66448         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
66449         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
66450         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
66451         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
66452         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
66453         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
66454         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
66455         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
66456         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
66457         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
66458         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
66459         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
66460         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
66461         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
66462         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
66463         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
66464         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
66465         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
66466         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
66467         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
66468         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
66469         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
66470         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
66471         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
66472         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
66473         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
66474         * sysdeps/mach/hurd/errnos.awk: Likewise.
66475         * sysdeps/mach/hurd/fork.c: Likewise.
66476         * sysdeps/mach/hurd/getcwd.c: Likewise.
66477         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
66478         * sysdeps/mach/hurd/mmap.c: Likewise.
66479         * sysdeps/mach/hurd/utimes.c: Likewise.
66480         * sysdeps/mach/hurd/xmknod.c: Likewise.
66481         * sysdeps/posix/profil.c: Likewise.
66482         * sysdeps/posix/readdir_r.c: Likewise.
66483         * sysdeps/powerpc/bits/mathdef.h: Likewise.
66484         * sysdeps/powerpc/bits/setjmp.h: Likewise.
66485         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
66486         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
66487         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
66488         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
66489         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
66490         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
66491         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
66492         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
66493         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
66494         * sysdeps/pthread/lio_listio.c: Likewise.
66495         * sysdeps/sparc/dl-procinfo.h: Likewise.
66496         * sysdeps/unix/i386/sysdep.S: Likewise.
66497         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
66498         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
66499         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
66500         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
66501         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
66502         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
66503         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
66504         * sysdeps/unix/sysv/linux/speed.c: Likewise.
66505         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
66506         * sysdeps/wordsize-32/divdi3.c: Likewise.
66507         * time/sys/time.h: Likewise.
66508         * wcsmbs/Makefile: Likewise.
66509
66510 2013-01-01  David S. Miller  <davem@davemloft.net>
66511
66512         * po/fr.po: Update from translation team.
66513
66514         * catgets/gencat.c: Update copyright year.
66515         * csu/version.c: Likewise.
66516         * debug/catchsegv.sh: Likewise.
66517         * debug/pcprofiledump.c: Likewise.
66518         * debug/xtrace.sh: Likewise.
66519         * elf/ldconfig.c: Likewise.
66520         * elf/ldd.bash.in: Likewise.
66521         * elf/pldd.c: Likewise.
66522         * elf/sotruss.ksh: Likewise.
66523         * elf/sprof.c: Likewise.
66524         * iconv/iconv_prog.c: Likewise.
66525         * iconv/iconvconfig.c: Likewise.
66526         * locale/programs/locale.c: Likewise.
66527         * locale/programs/localedef.c: Likewise.
66528         * login/programs/pt_chown.c: Likewise.
66529         * malloc/memusage.sh: Likewise.
66530         * malloc/memusagestat.c: Likewise.
66531         * malloc/mtrace.pl: Likewise.
66532         * nscd/nscd.c: Likewise.
66533         * nss/getent.c: Likewise.
66534         * nss/makedb.c: Likewise.
66535         * posix/getconf.c: Likewise.
66536
66537 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
66538
66539         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
66540         numbers.
66541
66542 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
66543
66544         * math/bits/mathcalls.h (modf): Use __nonnull.
66545
66546 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
66547
66548         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
66549         (split): Use macro CN instead of the bare value.
66550         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
66551         could be used.
66552         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
66553         instead of the bare value.
66554         (power1): Likewise.
66555
66556 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
66557
66558         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
66559         __ATAN_TWOM.
66560         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
66561
66562         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
66563         their values.
66564         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
66565         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
66566         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
66567         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
66568
66569 2012-12-28  Andreas Jaeger  <aj@suse.de>
66570
66571         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
66572         values are from Linux 3.7.
66573
66574         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
66575         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
66576
66577 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
66578
66579         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
66580         TRUE case.
66581
66582         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
66583         (norm): Likewise.
66584         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
66585         variables with preprocessor constants.
66586         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
66587         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
66588         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
66589
66590 2012-12-27  Bruno Haible  <bruno@clisp.org>
66591
66592         [BZ #14317]
66593         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
66594         only if needed.
66595
66596 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
66597
66598         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
66599         and use variable directly.
66600         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
66601
66602         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
66603         MPONE.
66604         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
66605         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
66606         variable MPONE.
66607         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
66608         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
66609         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
66610         include directive.  Remove local variable MPONE.
66611         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
66612         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
66613         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
66614
66615 2012-12-25  David S. Miller  <davem@davemloft.net>
66616
66617         * version.h (RELEASE): Set to "development".
66618         (VERSION): Set to "2.17.90".
66619         * NEWS: Add 2.18 section.
66620
66621 2012-12-21  David S. Miller  <davem@davemloft.net>
66622
66623         * po/hr.po: Update from translation team.
66624
66625 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
66626
66627         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
66628
66629 2012-12-19  Steve Ellcey  <sellcey@mips.com>
66630
66631         * NEWS:  Mention new memcpy for MIPS.
66632
66633 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
66634
66635         * manual/contrib.texi (Contributors): Spelling correction.
66636
66637 2012-12-15  David S. Miller  <davem@davemloft.net>
66638
66639         * po/ru.po: Update from translation team.
66640
66641 2012-12-13  David S. Miller  <davem@davemloft.net>
66642
66643         * NEWS: Mention IFUNC testsuite enhancements.
66644
66645         * po/pl.po: Update from translation team.
66646         * po/bg.po: Likewise.
66647
66648         * manual/contrib.texi (Contributors): Update entries for Hongjiu
66649         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
66650
66651 2012-12-11  David S. Miller  <davem@davemloft.net>
66652
66653         * po/sv.po: Update from translation team.
66654
66655         * po/vi.po: Update from translation team.
66656
66657         * po/cs.po: Update from translation team.
66658
66659         * po/de.po: Update from translation team.
66660         * po/eo.po: Likewise.
66661         * po/nl.po: Likewise.
66662
66663 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
66664
66665         [BZ #14246]
66666         * manual/argp.texi (Argp Helper Functions): Move node to follow
66667         Argp Parsing State.
66668
66669         [BZ #14872]
66670         * manual/conf.texi (Limits on File System Capacity): Mention if
66671         terminating null is included in the max size.
66672
66673 2012-12-10  Andreas Jaeger  <aj@suse.de>
66674
66675         * po/cs.po: Update from translation team.
66676
66677 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
66678
66679         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
66680         void pointer and cast to uintptr_t.
66681         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
66682         path.
66683         * sysdeps/s390/s390-64/memcpy.S: Likewise.
66684         * sysdeps/s390/s390-64/memset.S: Likewise.
66685
66686 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
66687
66688         [BZ #14833]
66689         * menual/message.texi (Message Translation): Fix typos.
66690         (Helper programs for gettext): Likewise.
66691
66692 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
66693
66694         [BZ #14898]
66695         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
66696         Change to -1.
66697
66698 2012-12-07  David S. Miller  <davem@davemloft.net>
66699
66700         * po/libc.pot: Update.
66701
66702 2012-12-07  Richard Henderson  <rth@redhat.com>
66703
66704         [BZ #10114]
66705         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
66706         normal/normal case to before the switch.
66707         (_FP_DIV): Likewise.
66708
66709 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
66710             Mike Frysinger  <vapier@gentoo.org>
66711
66712         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
66713         check for __NR_fadvise64_64.
66714
66715 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
66716
66717         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
66718         0, not just to plain "0" as a statement.
66719         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
66720         with cw.
66721
66722 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
66723
66724         * NEWS: Use sourceware.org in Bugzilla URL.
66725
66726 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
66727
66728         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
66729         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
66730
66731         * stdio-common/tst-put-error.c (do_test): Add newline to the
66732         padded test to ensure flush.
66733
66734 2012-12-05  Jeff Law  <law@redhat.com>
66735
66736         * sunrpc/etc.rpc (fedfs_admin): Add entry.
66737
66738 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
66739
66740         * README: Don't refer to ports add-on as distributed separately.
66741         Mention AArch64 in list of systems supported in the ports add-on.
66742
66743         * LICENSES: Add more non-FSF copyright and license notices.
66744
66745         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
66746         ((unused)).
66747
66748         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
66749
66750         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
66751         10000 as width of padded output.
66752
66753 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
66754
66755         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
66756
66757         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
66758         variable LX with __attribute__ ((unused)).
66759         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
66760         Likewise.
66761         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
66762         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
66763         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
66764         with __attribute__ ((unused)).
66765
66766 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
66767
66768         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
66769
66770 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
66771
66772         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
66773         (CFLAGS-nldbl-acos.c): New variable.
66774         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
66775         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
66776         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
66777         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
66778         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
66779         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
66780         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
66781         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
66782         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
66783         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
66784         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
66785         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
66786         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
66787         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
66788         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
66789         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
66790         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
66791         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
66792         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
66793         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
66794         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
66795         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
66796         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
66797         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
66798         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
66799         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
66800         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
66801         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
66802         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
66803         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
66804         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
66805         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
66806         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
66807         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
66808         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
66809         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
66810         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
66811         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
66812         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
66813         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
66814         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
66815         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
66816         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
66817         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
66818         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
66819         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
66820         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
66821         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
66822         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
66823         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
66824         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
66825         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
66826         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
66827         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
66828         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
66829         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
66830         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
66831         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
66832         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
66833         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
66834         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
66835         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
66836         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
66837         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
66838         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
66839         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
66840         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
66841         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
66842         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
66843         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
66844         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
66845         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
66846         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
66847         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
66848         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
66849         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
66850         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
66851         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
66852         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
66853         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
66854         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
66855         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
66856         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
66857         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
66858         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
66859         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
66860         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
66861         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
66862         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
66863         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
66864         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
66865         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
66866         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
66867         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
66868         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
66869         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
66870         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
66871
66872         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
66873         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
66874
66875         [BZ #14914]
66876         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
66877         whole low double instead of just low 47 bits when splitting values
66878         into two parts.
66879
66880 2012-12-03  Allan McRae  <allan@archlinux.org>
66881
66882         * manual/stdio.texi (Predefined Printf Handlers): Remove
66883         @hsep and @vsep usage.
66884
66885 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
66886
66887         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
66888         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
66889
66890 2012-12-03  Jeff Law  <law@redhat.com>
66891
66892         * time/sys/time.h (settimeofday): Do not mark TV argument
66893         as __nonnull.
66894
66895 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
66896
66897         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
66898         when currently writing and seek to current position when not.
66899         * libio/Makefile (tests): Remove bug-fclose1.
66900         * libio/bug-fclose1.c: Delete.
66901
66902 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
66903
66904         * manual/arith.texi (feenableexcept): Fix typo.
66905         (fedisableexcept): Likewise.
66906
66907 2012-11-30  Roland McGrath  <roland@hack.frob.com>
66908
66909         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
66910         second, differently-typed declaration, rather than a cast.
66911
66912 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
66913
66914         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
66915         * include/rpc/svc.h: ... here.
66916
66917 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
66918
66919         [BZ #13013]
66920         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
66921         depending n and resplen2 to catch cases where answer
66922         equals answerp2.
66923
66924 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
66925
66926         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
66927         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
66928
66929 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
66930
66931         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
66932
66933 2012-11-29  Roland McGrath  <roland@hack.frob.com>
66934
66935         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
66936
66937 2012-11-28  Jeff Law  <law@redhat.com>
66938
66939         [BZ #13761]
66940         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
66941         dataset_temporary.  Track alloca usage into alloca_used.
66942         If dataset is large allocate and release it via malloc/free.
66943
66944 2012-06-04  Florian Weimer  <fweimer@redhat.com>
66945
66946         [BZ #14197]
66947         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
66948
66949 2012-11-28  David S. Miller  <davem@davemloft.net>
66950
66951         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66952
66953 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
66954
66955         [BZ #14803]
66956         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
66957         of pi/2 rounded to nearest to 64 bits.
66958         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
66959         nearest to 64 bits.
66960         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
66961         bits.
66962
66963 2012-11-28  Jeff Law <law@redhat.com>
66964             Martin Osvald <mosvald@redhat.com>
66965
66966         [BZ #14889]
66967         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
66968         * sunrpc/svc.c: Include time.h.
66969         (__svc_accept_failed): New function.
66970         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
66971         any reason other than EINTR, call __svc_accept_failed.
66972         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
66973         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
66974
66975 2012-11-28  Andreas Schwab  <schwab@suse.de>
66976
66977         * scripts/abilist.awk: Also handle indirect functions in .opd
66978         section.
66979
66980 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
66981
66982         [BZ #13881]
66983         * sysdeps/x86/fpu/powl_helper.c: New file.
66984         * sysdeps/x86/fpu/Makefile: Likewise.
66985         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
66986         (p3): New object.
66987         (__ieee754_powl): Use __powl_helper for finite arguments except
66988         integer exponents below 8.
66989         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
66990         (p3): New object.
66991         (__ieee754_powl): Use __powl_helper for finite arguments except
66992         integer exponents below 8.
66993         * math/libm-test.inc (pow_test): Add more tests and enable some
66994         previously disabled tests.
66995         * sysdeps/i386/fpu/libm-test-ulps: Update.
66996         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66997
66998 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
66999             Carlos O'Donell  <carlos_odonell@mentor.com>
67000
67001         * nss/makedb.c (is_prime): Assert that input is odd and greater
67002         than 4.  Note that fact in a comment too.
67003         (next_prime): Add 4 to input.
67004
67005 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
67006
67007         [BZ #11741]
67008         * libio/Makefile (tests): Add test case tst-fwrite-error.
67009         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
67010         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
67011         * libio/tst-fwrite-error.c: New test case.
67012
67013 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
67014
67015         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
67016         before casting to void *.
67017         * include/libc-internal.h (__pointer_type): New macro.
67018         (__integer_if_pointer_type_sub): Likewise.
67019         (__integer_if_pointer_type): Likewise.
67020         (cast_to_integer): Likewise.
67021         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
67022         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
67023         before casting to atomic64_t.
67024         (atomic_exchange_acq): Likewise.
67025         (__arch_exchange_and_add_body): Likewise.
67026         (__arch_add_body): Likewise.
67027         (atomic_add_negative): Likewise.
67028         (atomic_add_zero): Likewise.
67029
67030 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
67031
67032         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
67033         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
67034         (add_fdes): Likewise.
67035         (linear_search_fdes): Likewise.
67036         (binary_search_unencoded_fdes): Likewise.
67037
67038 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
67039
67040         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
67041
67042 2012-11-24  Adam Conrad  <adconrad@0c3.net>
67043
67044         * configure.in: Autodetect C++ header directories.
67045         * configure: Regenerated.
67046
67047 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
67048
67049         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
67050
67051 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
67052
67053         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67054
67055 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
67056
67057         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
67058         LDBL_MANT_DIG == 106]: Disable some tests.
67059         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
67060         Likewise.
67061         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
67062         Likewise.
67063
67064         [BZ #14871]
67065         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
67066         input for small inputs.  Return +/- pi/2 for large inputs.
67067         * math/libm-test.inc (atan_test): Add more tests.
67068
67069         * sysdeps/generic/unwind-dw2-fde-glibc.c
67070         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
67071         __attribute__ ((unused)).
67072
67073         [BZ #14645]
67074         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
67075         x * y if x and y are nonzero and z is zero.
67076
67077         [BZ #14811]
67078         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
67079         nonzero exponents with absolute value below 0x1p-117 to +/-
67080         0x1p-117.
67081
67082         [BZ #14869]
67083         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
67084         up arguments below 2**-450, not just those below 2**-500.
67085         * math/libm-test.inc (hypot_test): Add another test.
67086
67087         [BZ #14868]
67088         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
67089         Return a+b for ratio over 2**120, not 2**60.
67090         * math/libm-test.inc (hypot_test): Add another test.
67091
67092         * math/libm-test.inc (clog_test): Use
67093         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
67094         (clog10_test): Likewise.
67095
67096         [BZ #6778]
67097         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
67098
67099 2012-11-22  Andreas Schwab  <schwab@suse.de>
67100
67101         * sysdeps/i386/fpu/libm-test-ulps: Update.
67102
67103 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
67104
67105         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
67106         printf output with newline.
67107
67108 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
67109
67110         [BZ #14865]
67111         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
67112         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
67113         -z nodlopen, -z initfirst and -z execstack support.
67114         * configure: Regenerated.
67115
67116         * elf/elf.h (DF_1_NODIRECT): New macro.
67117         (DF_1_IGNMULDEF): Likewise.
67118         (DF_1_NOKSYMS): Likewise.
67119         (DF_1_NOHDR): Likewise.
67120         (DF_1_EDITED): Likewise.
67121         (DF_1_NORELOC): Likewise.
67122         (DF_1_SYMINTPOSE): Likewise.
67123         (DF_1_GLOBAUDIT): Likewise.
67124         (DF_1_SINGLETON): Likewise.
67125         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
67126         DT_1_SUPPORTED_MASK bits.
67127         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
67128
67129 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
67130
67131         * sysdeps/unix/make-syscalls.sh: Document prefixes.
67132
67133 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
67134
67135         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
67136         macro.
67137
67138         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
67139         (sendmmsg): Move declarations...
67140         * socket/sys/socket.h: ... here.
67141         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
67142         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
67143         include it from...
67144         * socket/recvmmsg.c: ... this new file.
67145         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
67146         (sendmmsg): Rename to __sendmmsg, create weak alias and make
67147         definition of __sendmmsg hidden.
67148         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
67149         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
67150         Move ENOSYS stub into and include it from...
67151         * socket/sendmmsg.c: ... this new file.
67152         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
67153         (sysdep_routines): Move recvmmsg and sendmmsg...
67154         * socket/Makefile (routines): ... here.
67155         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
67156         (GLIBC_PRIVATE): Add __sendmmsg.
67157         * include/sys/socket.h (__sendmmsg): Add declarations.
67158         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
67159         sendmmsg.
67160
67161 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
67162
67163         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
67164         variable I1 with __attribute__ ((unused)).
67165         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
67166
67167 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
67168
67169         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
67170         DUMMY variables with __attribute__ ((unused)).
67171
67172         * bits/byteswap.h: Include <bits/types.h>.
67173         (__bswap_64): Use __uint64_t instead of unsigned long long int.
67174
67175 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
67176
67177         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
67178         string_t.  Do not manually set errno.
67179         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
67180         length with __strnlen.  Make sure to both set errno and return it on
67181         failure.
67182
67183 2012-11-19  David S. Miller  <davem@davemloft.net>
67184
67185         With help from Joseph Myers.
67186         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
67187         very large arguments properly.
67188         * math/libm-test.inc (atan_test): New tests.
67189         (atan2_test): New tests.
67190         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67191         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
67192
67193 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
67194
67195         [BZ #14856]
67196         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
67197         Define to 3.
67198
67199         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
67200         [POSIX] (EADDRNOTAVAIL): Likewise.
67201         [POSIX] (EAFNOSUPPORT): Likewise.
67202         [POSIX] (EALREADY): Likewise.
67203         [POSIX] (ECONNABORTED): Likewise.
67204         [POSIX] (ECONNREFUSED): Likewise.
67205         [POSIX] (ECONNRESET): Likewise.
67206         [POSIX] (EDESTADDRREQ): Likewise.
67207         [POSIX] (EDQUOT): Likewise.
67208         [POSIX] (EHOSTUNREACH): Likewise.
67209         [POSIX] (EIDRM): Likewise.
67210         [POSIX] (EISCONN): Likewise.
67211         [POSIX] (ELOOP): Likewise.
67212         [POSIX] (EMULTIHOP): Likewise.
67213         [POSIX] (ENETDOWN): Likewise.
67214         [POSIX] (ENETUNREACH): Likewise.
67215         [POSIX] (ENOBUFS): Likewise.
67216         [POSIX] (ENODATA): Likewise.
67217         [POSIX] (ENOLINK): Likewise.
67218         [POSIX] (ENOMSG): Likewise.
67219         [POSIX] (ENOPROTOOPT): Likewise.
67220         [POSIX] (ENOSR): Likewise.
67221         [POSIX] (ENOSTR): Likewise.
67222         [POSIX] (ENOTCONN): Likewise.
67223         [POSIX] (ENOTSOCK): Likewise.
67224         [POSIX] (EOPNOTSUPP): Likewise.
67225         [POSIX] (EOVERFLOW): Likewise.
67226         [POSIX] (EPROTO): Likewise.
67227         [POSIX] (EPROTONOSUPPORT): Likewise.
67228         [POSIX] (EPROTOTYPE): Likewise.
67229         [POSIX] (ESTALE): Likewise.
67230         [POSIX] (ETIME): Likewise.
67231         [POSIX] (ETXTBSY): Likewise.
67232         [POSIX] (EWOULDBLOCK): Likewise.
67233         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
67234         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
67235         [POSIX] (SEEK_CUR): Likewise.
67236         [POSIX] (SEEK_END): Likewise.
67237         [POSIX || UNIX98] (mode_t): Do not require.
67238         [POSIX] (off_t): Likewise.
67239         [POSIX] (pid_t): Likewise.
67240         [POSIX] (sys/stat.h): Do not allow header.
67241         [POSIX] (unistd.h): Likewise.
67242         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
67243         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
67244         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
67245         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
67246         require.
67247         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
67248         sigevent): Specify elements.
67249         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
67250         entry.
67251         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
67252         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
67253
67254         * conform/data/cpio.h-data [POSIX]: Disable whole file.
67255         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
67256         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
67257         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
67258         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
67259         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
67260         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
67261         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
67262         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
67263         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
67264         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
67265         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
67266         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
67267         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
67268         Likewise.
67269         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
67270         Likewise.
67271         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
67272         Likewise.
67273         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
67274         Likewise.
67275         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
67276         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
67277         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
67278         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
67279         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
67280         Specify lower bound on value.
67281         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
67282         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
67283         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
67284         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
67285         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
67286         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise.
67287         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
67288         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
67289         value.
67290         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
67291         as optional.
67292         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
67293         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
67294         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
67295         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
67296         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
67297         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
67298         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
67299         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
67300         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
67301         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
67302         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
67303         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
67304         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
67305         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
67306         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
67307         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
67308         entry.
67309         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
67310         optional.
67311         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
67312         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
67313         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
67314         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
67315         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
67316         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
67317         Likewise.
67318         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
67319         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
67320         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
67321         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
67322         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
67323         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
67324         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
67325         as optional.
67326         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
67327         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
67328         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
67329         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
67330         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
67331         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
67332         specify as optional.
67333         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
67334         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
67335         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
67336         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
67337         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
67338         [XPG3] (NL_LANGMAX): Likewise.
67339         [POSIX || XPG3] (NL_MSGMAX): Likewise.
67340         [POSIX || XPG3] (NL_NMAX): Likewise.
67341         [POSIX || XPG3] (NL_SETMAX): Likewise.
67342         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
67343         [XPG3] (NZERO): Likewise.
67344         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
67345         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
67346         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
67347         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
67348         (REG_ERANGE): Expect.
67349         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
67350         optional-constant.
67351         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
67352         Use (void) in prototype.
67353         [POSIX] (*_t): Allow.
67354         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
67355         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
67356         (WRDE_BADVAL): Expect.
67357
67358         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
67359         expect.
67360         [XPG3 || XPG4] (O_RSYNC): Likewise.
67361         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
67362         Likewise.
67363         [XPG3 || XPG4] (pthread_sigmask): Likewise.
67364         [XPG3 || XPG4] (sigqueue): Likewise.
67365         [XPG3 || XPG4] (sigtimedwait): Likewise.
67366         [XPG3 || XPG4] (sigwaitinfo): Likewise.
67367         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
67368         [XPG3 || XPG4] (vsnprintf): Likewise.
67369         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
67370         Likewise.
67371         [XPG3 || XPG4] (blksize_t): Likewise.
67372         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
67373         Likewise.
67374         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
67375         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
67376         [XPG3 || XPG4] (struct itimerspec): Likewise.
67377         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
67378         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
67379         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
67380         [XPG3 || XPG4] (clockid_t): Likewise.
67381         [XPG3 || XPG4] (timer_t): Likewise.
67382         [XPG3 || XPG4] (clock_getres): Likewise.
67383         [XPG3 || XPG4] (clock_gettime): Likewise.
67384         [XPG3 || XPG4] (clock_settime): Likewise.
67385         [XPG3 || XPG4] (nanosleep): Likewise.
67386         [XPG3 || XPG4] (timer_create): Likewise.
67387         [XPG3 || XPG4] (timer_delete): Likewise.
67388         [XPG3 || XPG4] (timer_gettime): Likewise.
67389         [XPG3 || XPG4] (timer_getoverrun): Likewise.
67390         [XPG3 || XPG4] (timer_settime): Likewise.
67391         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
67392         [XPG3 || XPG4] (getlogin_r): Likewise.
67393         [XPG3 || XPG4] (pread): Likewise.
67394         [XPG3 || XPG4] (pthread_atfork): Likewise.
67395         [XPG3 || XPG4] (pwrite): Likewise.
67396
67397         [BZ #14835]
67398         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
67399         <bits/siginfo.h>.
67400
67401 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
67402
67403         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
67404         finalizing MALLSTREAM.
67405
67406         * sysdeps/mach/hurd/syncfs.c: New file.
67407
67408 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
67409
67410         [BZ #14719]
67411         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
67412         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
67413         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
67414         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
67415         (_nss_dns_gethostbyname4_r): Likewise.
67416         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
67417         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
67418
67419 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
67420
67421         [BZ #13763]
67422         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
67423
67424 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
67425
67426         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
67427         * elf/cache.c (print_entry): Print ",AArch64" for
67428         FLAG_AARCH64_LIB64
67429
67430         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
67431         * elf/cache.c (print_entry): Print ",hard-float" for
67432         FLAG_ARM_LIBHF.
67433
67434 2012-11-18  David S. Miller  <davem@davemloft.net>
67435
67436         With help from Joseph Myers.
67437         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
67438         cutoff to 2**-13.
67439         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
67440         cutoff to 2**-25.
67441         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
67442         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
67443         small.
67444         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
67445         * math/libm-test.inc (y0_test): New tests.
67446         (y1_test): New tests.
67447         * sysdeps/i386/fpu/libm-test-ulps: Update.
67448         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
67449         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67450
67451 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
67452
67453         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
67454         64-bit targets.
67455         * configure: Regenerated.
67456
67457 2012-11-17  David S. Miller  <davem@davemloft.net>
67458
67459         [BZ #14811]
67460         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
67461         nonzero exponents with absolute value below 0x1p-128 to +/-
67462         0x1p-128.
67463
67464 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
67465
67466         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
67467
67468         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
67469
67470         * posix/getconf-speclist.c: New file.
67471         * posix/posix-envs.def: Likewise.
67472         * posix/confstr.c (START_ENV_GROUP): New macro.
67473         (END_ENV_GROUP): Likewise.
67474         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
67475         (KNOWN_PRESENT_ENV_STRING): Likewise.
67476         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
67477         (UNKNOWN_ENVIRONMENT): Likewise.
67478         (confstr): Include posix-envs.def instead of handling
67479         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
67480         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
67481         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
67482         (END_ENV_GROUP): Likewise.
67483         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
67484         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
67485         (UNKNOWN_ENVIRONMENT): Likewise.
67486         (__sysconf): Include posix-envs.def instead of handling associated
67487         cases directly here.
67488         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
67489         preprocessing getconf-speclist.c rather than running getconf or
67490         generating empty file.
67491
67492 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
67493
67494         * scripts/check-local-headers.sh: Ignore 'mach' headers.
67495
67496 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
67497
67498         [BZ #14672]
67499         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
67500
67501 2012-11-16  David S. Miller  <davem@davemloft.net>
67502
67503         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
67504         smaller than LDBL_EPSILON/2.0L, just return xm1.
67505
67506 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
67507
67508         * elf/tst-array1.c (init): Set constructor priority to 1000.
67509         (fini): Set destructor priority to 1000.
67510         * elf/tst-array2dep.c: Likewise.
67511
67512 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
67513
67514         [BZ #11741]
67515         * libio/fileops.c (_IO_new_file_write): Correctly return error.
67516         (_IO_new_file_xsputn): Also return EOF if none of the input
67517         data was written when overflow failed.
67518         * libio/iopadn.c (_IO_padn): Likewise.
67519         * libio/iowpadn.c (_IO_wpadn): Likewise.
67520         * stdio-common/tst-put-error.c: Add copyright notice.
67521         (do_test): Add case for printing padded string.
67522         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
67523         _IO_padn returned error.
67524         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
67525         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
67526         return EOF.
67527
67528 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
67529
67530         * libio/libioP.h: Add comment note that the references to C++
67531         bits are now obsolete.
67532
67533 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
67534
67535         * math/libm-test.inc (check_complex): Use asprintf.
67536
67537 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
67538
67539         * debug/pcprofiledump.c (print_version): Update copyright year.
67540         * malloc/memusagestat.c (print_version): Likewise.
67541
67542 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
67543
67544         [BZ #14831]
67545         * elf/Makefile (tests): Add tst-audit8.
67546         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
67547         ($(objpfx)tst-audit8.out): New target.
67548         (tst-audit8-ENV): New variable.
67549         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
67550         audit if l_reloc_result is NULL.
67551         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
67552         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
67553         * elf/tst-audit8.c: New file.
67554
67555 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
67556
67557         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
67558         * misc/Makefile (CFLAGS-select.c): Define.
67559         * posix/Makefile (CFLAGS-pause.c): Define.
67560
67561 2012-11-13  David S. Miller  <davem@davemloft.net>
67562
67563         * crypt/Makefile: Move test targets after toplevel Rules
67564         inclusion.  Grab any necessary sysdep routines when linking.
67565         * crypt/md5.c (md5_process_block): Remove define, we will always
67566         name it __md5_process_block.
67567         (md5_finish_ctx): Update md5_process_block call.
67568         (md5_stream): Likewise.
67569         (md5_process_bytes): Likewise.
67570         (md5_process_block): Rename to __md5_process_block and move to ...
67571         * crypt/md5-block.c: ... here.
67572         * crypt/sha256.c (sha256_process_block): Move to ...
67573         * crypt/sha256-block.c: ... here.
67574         * crypt/sha512.c (sha512_process_block): Move to ...
67575         * crypt/sha512-block.c: ... here.
67576         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
67577         path.
67578         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
67579         * sysdeps/sparc/sparc64/multiarch/Makefile
67580         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
67581         crypt subdir.
67582         (localedef-aux): Add md5 crypto assembler when in locale subdir.
67583         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
67584         multiarch changes.
67585         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
67586         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
67587         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
67588         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
67589         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
67590         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
67591         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
67592         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
67593         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
67594         file.
67595         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
67596         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
67597         file.
67598         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
67599
67600 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
67601
67602         * timezone/tzselect.ksh: Update from tzcode git revision
67603         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
67604         * timezone/zdump.c: Likewise.
67605         * timezone/zic.c: Likewise.
67606         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
67607         in TZVERSION setting, not $(PKGVERSION).
67608         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
67609         REPORT_BUGS_TO settings.
67610
67611         [BZ #14838]
67612         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
67613         macro.
67614
67615 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
67616
67617         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
67618         detection to immediately after _FP_ROUND().
67619         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
67620         bits are 0.
67621
67622 2012-11-11  David S. Miller  <davem@davemloft.net>
67623
67624         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
67625         inttypes.h
67626         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
67627         __close rather than their public counterparts.
67628
67629 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
67630
67631         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
67632         file.
67633         [UNIX98] (sem_timedwait): Do not expect.
67634         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
67635         [XPG4 || UNIX98] (sockatmark): Do not expect.
67636         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
67637         (clock_getcpuclockid): Do not expect.
67638         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
67639         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
67640         Do not expect.
67641         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
67642         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
67643         [UNIX98] (vwscanf): Likewise.
67644         [UNIX98] (vswscanf): Likewise.
67645
67646 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
67647
67648         * timezone/version.h: Remove file.
67649         * timezone/README: Do not refer to version.h.
67650         * timezone/Makefile ($(objpfx)zic.o): New dependency on
67651         $(objpfx)version.h.
67652         ($(objpfx)zdump.o): Likewise.
67653         ($(objpfx)version.h): New target.
67654
67655         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
67656         2012i.
67657         * timezone/README: Don't mention modification to tzselect.ksh.
67658         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
67659         work on unmodified tzselect.ksh.  Substitute version numbers in
67660         tzselect.ksh.
67661
67662         * Makefile (format-me): Remove.
67663         (INSTALL): Adjust indentation.  Use commands directly instead of
67664         using $(format-me).
67665
67666         * aclocal.m4 (ACX_PKGVERSION): New macro.
67667         (ACX_BUGURL): Likewise.
67668         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
67669         (PKGVERSION): New AC_DEFINE_UNQUOTED.
67670         (REPORT_BUGS_TO): Likewise.
67671         * configure: Regenerated.
67672         * config.h.in (PKGVERSION): New macro.
67673         (REPORT_BUGS_TO): Likewise.
67674         * config.make.in (PKGVERSION): New variable.
67675         (PKGVERSION_TEXI): Likewise.
67676         (REPORT_BUGS_TO): Likewise.
67677         (REPORT_BUGS_TEXI): Likewise.
67678         * Makefile (format-me): Use -I$(common-objpfx)manual.
67679         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
67680         ($(common-objpfx)manual/%): New target.
67681         (manual/%): Remove target.
67682         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
67683         (print_version): Use PKGVERSION.
67684         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
67685         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
67686         and REPORT_BUGS_TO.
67687         ($(objpfx)xtrace): Likewise.
67688         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
67689         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
67690         (print_version): Use PKGVERSION.
67691         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
67692         (do_version): Use PKGVERSION.
67693         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
67694         REPORT_BUGS_TO.
67695         (common-ldd-rewrite): Likewise.
67696         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
67697         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
67698         (print_version): Use PKGVERSION.
67699         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
67700         * elf/pldd.c (argp_program_bug_address): Remove variable.
67701         (more_help): New function.
67702         (argp): Use more_help.
67703         (print_version): Use PKGVERSION.
67704         * elf/sln.c (main): Use PKGVERSION.
67705         (usage): Use REPORT_BUGS_TO.
67706         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
67707         (top level): Use PKGVERSION.
67708         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
67709         (print_version): Use PKGVERSION.
67710         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
67711         (print_version): Use PKGVERSION.
67712         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
67713         (print_version): Use PKGVERSION.
67714         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
67715         (print_version): Use PKGVERSION.
67716         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
67717         (print_version): Use PKGVERSION.
67718         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
67719         (print_version): Use PKGVERSION.
67720         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
67721         and BUGURL.
67722         ($(objpfx)memusage): Likewise.
67723         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
67724         (do_version): Use PKGVERSION.
67725         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
67726         (print_version): Use PKGVERSION.
67727         * malloc/mtrace.pl ($PACKAGE): Remove variable.
67728         ($PKGVERSION): New variable.
67729         ($REPORT_BUGS_TO): Likewise.
67730         (usage): Use $REPORT_BUGS_TO.
67731         (top level): Use $PKGVERSION.
67732         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
67733         ($(objpfx)pkgvers.texi): New rule.
67734         ($(objpfx)stamp-pkgvers): Likewise.
67735         * manual/install.texi: Include pkgvers.texi.
67736         (--with-pkgversion): Document new configure option.
67737         (--with-bugurl): Likewise.
67738         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
67739         than necessarily for this particular distribution.  Use
67740         REPORT_BUGS_TO for where to report bugs.
67741         * INSTALL: Regenerated.
67742         * manual/libc.texinfo: Include pkgvers.texi.
67743         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
67744         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
67745         (print_version): Use PKGVERSION.
67746         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
67747         (print_version): Use PKGVERSION.
67748         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
67749         (print_version): Use PKGVERSION.
67750         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
67751         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
67752         macro.
67753         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
67754         (print_version): Use PKGVERSION.
67755         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
67756         (print_version): Use PKGVERSION.
67757         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
67758         and PKGVERSION.
67759
67760         * timezone/checktab.awk: Update from tzcode 2012i.
67761         * timezone/ialloc.c: Likewise.
67762         * timezone/private.h: Likewise.
67763         * timezone/scheck.c: Likewise.
67764         * timezone/tzfile.h: Likewise.
67765         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
67766         (TZVERSION): Hardcode tzcode version number.
67767         * timezone/zdump.c: Update from tzcode 2012i.
67768         * timezone/zic.c: Likewise.
67769         * timezone/version.h: New file.
67770         * timezone/README: Describe version.h.  Update upstream location.
67771
67772         [BZ #14824]
67773         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
67774         (mktemp): Enable declaration.
67775         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
67776         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
67777         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
67778         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
67779         Likewise.
67780         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
67781         Likewise.
67782         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
67783         Likewise.
67784         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
67785         Likewise.
67786         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
67787         Likewise.
67788         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
67789         Likewise.
67790
67791         [BZ #14821]
67792         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
67793         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
67794         for copies of such integer values.
67795         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
67796         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
67797
67798 2012-11-09  Andreas Jaeger  <aj@suse.de>
67799
67800         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
67801         definitions and declarations that are provided by
67802         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
67803
67804 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
67805
67806         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
67807         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
67808         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
67809         definition.
67810
67811 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
67812
67813         * elf/elf.h: Update comment before AArch64 relocations.
67814
67815 2012-11-07  David S. Miller  <davem@davemloft.net>
67816
67817         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
67818         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
67819         (__start_context): Declare.
67820         (__makecontext_ret): Delete.
67821         (__makecontext): Hook up __start_context instead of
67822         __makecontext_ret.
67823         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
67824         (sysdep_routines): Add __start_context when in stdlib.
67825
67826 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
67827
67828         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
67829         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
67830         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
67831         hardcoded "nm".
67832         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
67833         (READELF): New variable.  Use it instead of hardcoded "readelf".
67834
67835 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
67836
67837         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
67838         * sysdeps/x86/Makefile: Here.
67839         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
67840         * sysdeps/x86/tst-xmmymm.sh: This.
67841
67842 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
67843
67844         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
67845         expectations.
67846         [UNIX98] (pthread_barrier_t): Do not expect.
67847         [UNIX98] (pthread_barrierattr_t): Likewise.
67848         [UNIX98] (pthread_spinlock_t): Likewise.
67849         [UNIX98] (pthread_barrier_destroy): Likewise.
67850         [UNIX98] (pthread_barrier_init): Likewise.
67851         [UNIX98] (pthread_barrier_wait): Likewise.
67852         [UNIX98] (pthread_barrierattr_destroy): Likewise.
67853         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
67854         [UNIX98] (pthread_barrierattr_init): Likewise.
67855         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
67856         [UNIX98] (pthread_getcpuclockid): Likewise.
67857         [UNIX98] (pthread_mutex_timedlock): Likewise.
67858         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
67859         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
67860         [UNIX98] (pthread_sigmask): Likewise.
67861         [UNIX98] (pthread_spin_destroy): Likewise.
67862         [UNIX98] (pthread_spin_init): Likewise.
67863         [UNIX98] (pthread_spin_lock): Likewise.
67864         [UNIX98] (pthread_spin_trylock): Likewise.
67865         [UNIX98] (pthread_spin_unlock): Likewise.
67866         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
67867         Do not expect.
67868         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
67869         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
67870         [XPG3 || XPG4] (pthread_cond_t): Likewise.
67871         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
67872         [XPG3 || XPG4] (pthread_key_t): Likewise.
67873         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
67874         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
67875         [XPG3 || XPG4] (pthread_once_t): Likewise.
67876         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
67877         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
67878         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
67879         [XPG3 || XPG4] (pthread_t): Likewise.
67880
67881         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
67882         not expect.
67883         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
67884
67885         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
67886         Change function return type to int.
67887
67888         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
67889         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
67890         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
67891         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
67892         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
67893         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
67894         [!POSIX] (posix_madvise): Likewise.
67895         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
67896         && !UNIX98].
67897         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
67898         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
67899         (mode_t): Likewise.
67900         (posix_mem_offset): Likewise.
67901         (posix_typed_mem_get_info): Likewise.
67902         (posix_typed_mem_open): Likewise.
67903
67904         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
67905         Change condition to [XOPEN2K8].
67906
67907         * conform/conformtest.pl: Preprocess allow-header data with -x c
67908         instead of from stdin.
67909         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
67910         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
67911         [C99-based standards] (cerfc): Likewise.
67912         [C99-based standards] (cexp2): Likewise.
67913         [C99-based standards] (cexpm1): Likewise.
67914         [C99-based standards] (clog10): Likewise.
67915         [C99-based standards] (clog1p): Likewise.
67916         [C99-based standards] (clog2): Likewise.
67917         [C99-based standards] (clgamma): Likewise.
67918         [C99-based standards] (ctgamma): Likewise.
67919         [C99-based standards] (cerff): Likewise.
67920         [C99-based standards] (cerfcf): Likewise.
67921         [C99-based standards] (cexp2f): Likewise.
67922         [C99-based standards] (cexpm1f): Likewise.
67923         [C99-based standards] (clog10f): Likewise.
67924         [C99-based standards] (clog1pf): Likewise.
67925         [C99-based standards] (clog2f): Likewise.
67926         [C99-based standards] (clgammaf): Likewise.
67927         [C99-based standards] (ctgammaf): Likewise.
67928         [C99-based standards] (cerfl): Likewise.
67929         [C99-based standards] (cerfcl): Likewise.
67930         [C99-based standards] (cexp2l): Likewise.
67931         [C99-based standards] (cexpm1l): Likewise.
67932         [C99-based standards] (clog10l): Likewise.
67933         [C99-based standards] (clog1pl): Likewise.
67934         [C99-based standards] (clog2l): Likewise.
67935         [C99-based standards] (clgammal): Likewise.
67936         [C99-based standards] (ctgammal): Likewise.
67937         * conform/data/inttypes.h-data [C99-based standards]: Include
67938         stdint.h-data.  Remove all expectations for stdint.h contents.
67939         [C99-based standards] (PRI*): Do not allow.
67940         [C99-based standards] (SCN*): Likewise.
67941         [C99-based standards] (*_t): Likewise.
67942         [C99-based-standards] (PRId8): Expect macro.
67943         [C99-based-standards] (PRIi8): Likewise.
67944         [C99-based-standards] (PRIo8): Likewise.
67945         [C99-based-standards] (PRIu8): Likewise.
67946         [C99-based-standards] (PRIx8): Likewise.
67947         [C99-based-standards] (PRIX8): Likewise.
67948         [C99-based-standards] (SCNd8): Likewise.
67949         [C99-based-standards] (SCNi8): Likewise.
67950         [C99-based-standards] (SCNo8): Likewise.
67951         [C99-based-standards] (SCNu8): Likewise.
67952         [C99-based-standards] (SCNx8): Likewise.
67953         [C99-based-standards] (PRIdLEAST8): Likewise.
67954         [C99-based-standards] (PRIiLEAST8): Likewise.
67955         [C99-based-standards] (PRIoLEAST8): Likewise.
67956         [C99-based-standards] (PRIuLEAST8): Likewise.
67957         [C99-based-standards] (PRIxLEAST8): Likewise.
67958         [C99-based-standards] (PRIXLEAST8): Likewise.
67959         [C99-based-standards] (SCNdLEAST8): Likewise.
67960         [C99-based-standards] (SCNiLEAST8): Likewise.
67961         [C99-based-standards] (SCNoLEAST8): Likewise.
67962         [C99-based-standards] (SCNuLEAST8): Likewise.
67963         [C99-based-standards] (SCNxLEAST8): Likewise.
67964         [C99-based-standards] (PRIdFAST8): Likewise.
67965         [C99-based-standards] (PRIiFAST8): Likewise.
67966         [C99-based-standards] (PRIoFAST8): Likewise.
67967         [C99-based-standards] (PRIuFAST8): Likewise.
67968         [C99-based-standards] (PRIxFAST8): Likewise.
67969         [C99-based-standards] (PRIXFAST8): Likewise.
67970         [C99-based-standards] (SCNdFAST8): Likewise.
67971         [C99-based-standards] (SCNiFAST8): Likewise.
67972         [C99-based-standards] (SCNoFAST8): Likewise.
67973         [C99-based-standards] (SCNuFAST8): Likewise.
67974         [C99-based-standards] (SCNxFAST8): Likewise.
67975         [C99-based-standards] (PRId16): Likewise.
67976         [C99-based-standards] (PRIi16): Likewise.
67977         [C99-based-standards] (PRIo16): Likewise.
67978         [C99-based-standards] (PRIu16): Likewise.
67979         [C99-based-standards] (PRIx16): Likewise.
67980         [C99-based-standards] (PRIX16): Likewise.
67981         [C99-based-standards] (SCNd16): Likewise.
67982         [C99-based-standards] (SCNi16): Likewise.
67983         [C99-based-standards] (SCNo16): Likewise.
67984         [C99-based-standards] (SCNu16): Likewise.
67985         [C99-based-standards] (SCNx16): Likewise.
67986         [C99-based-standards] (PRIdLEAST16): Likewise.
67987         [C99-based-standards] (PRIiLEAST16): Likewise.
67988         [C99-based-standards] (PRIoLEAST16): Likewise.
67989         [C99-based-standards] (PRIuLEAST16): Likewise.
67990         [C99-based-standards] (PRIxLEAST16): Likewise.
67991         [C99-based-standards] (PRIXLEAST16): Likewise.
67992         [C99-based-standards] (SCNdLEAST16): Likewise.
67993         [C99-based-standards] (SCNiLEAST16): Likewise.
67994         [C99-based-standards] (SCNoLEAST16): Likewise.
67995         [C99-based-standards] (SCNuLEAST16): Likewise.
67996         [C99-based-standards] (SCNxLEAST16): Likewise.
67997         [C99-based-standards] (PRIdFAST16): Likewise.
67998         [C99-based-standards] (PRIiFAST16): Likewise.
67999         [C99-based-standards] (PRIoFAST16): Likewise.
68000         [C99-based-standards] (PRIuFAST16): Likewise.
68001         [C99-based-standards] (PRIxFAST16): Likewise.
68002         [C99-based-standards] (PRIXFAST16): Likewise.
68003         [C99-based-standards] (SCNdFAST16): Likewise.
68004         [C99-based-standards] (SCNiFAST16): Likewise.
68005         [C99-based-standards] (SCNoFAST16): Likewise.
68006         [C99-based-standards] (SCNuFAST16): Likewise.
68007         [C99-based-standards] (SCNxFAST16): Likewise.
68008         [C99-based-standards] (PRId32): Likewise.
68009         [C99-based-standards] (PRIi32): Likewise.
68010         [C99-based-standards] (PRIo32): Likewise.
68011         [C99-based-standards] (PRIu32): Likewise.
68012         [C99-based-standards] (PRIx32): Likewise.
68013         [C99-based-standards] (PRIX32): Likewise.
68014         [C99-based-standards] (SCNd32): Likewise.
68015         [C99-based-standards] (SCNi32): Likewise.
68016         [C99-based-standards] (SCNo32): Likewise.
68017         [C99-based-standards] (SCNu32): Likewise.
68018         [C99-based-standards] (SCNx32): Likewise.
68019         [C99-based-standards] (PRIdLEAST32): Likewise.
68020         [C99-based-standards] (PRIiLEAST32): Likewise.
68021         [C99-based-standards] (PRIoLEAST32): Likewise.
68022         [C99-based-standards] (PRIuLEAST32): Likewise.
68023         [C99-based-standards] (PRIxLEAST32): Likewise.
68024         [C99-based-standards] (PRIXLEAST32): Likewise.
68025         [C99-based-standards] (SCNdLEAST32): Likewise.
68026         [C99-based-standards] (SCNiLEAST32): Likewise.
68027         [C99-based-standards] (SCNoLEAST32): Likewise.
68028         [C99-based-standards] (SCNuLEAST32): Likewise.
68029         [C99-based-standards] (SCNxLEAST32): Likewise.
68030         [C99-based-standards] (PRIdFAST32): Likewise.
68031         [C99-based-standards] (PRIiFAST32): Likewise.
68032         [C99-based-standards] (PRIoFAST32): Likewise.
68033         [C99-based-standards] (PRIuFAST32): Likewise.
68034         [C99-based-standards] (PRIxFAST32): Likewise.
68035         [C99-based-standards] (PRIXFAST32): Likewise.
68036         [C99-based-standards] (SCNdFAST32): Likewise.
68037         [C99-based-standards] (SCNiFAST32): Likewise.
68038         [C99-based-standards] (SCNoFAST32): Likewise.
68039         [C99-based-standards] (SCNuFAST32): Likewise.
68040         [C99-based-standards] (SCNxFAST32): Likewise.
68041         [C99-based-standards] (PRId64): Likewise.
68042         [C99-based-standards] (PRIi64): Likewise.
68043         [C99-based-standards] (PRIo64): Likewise.
68044         [C99-based-standards] (PRIu64): Likewise.
68045         [C99-based-standards] (PRIx64): Likewise.
68046         [C99-based-standards] (PRIX64): Likewise.
68047         [C99-based-standards] (SCNd64): Likewise.
68048         [C99-based-standards] (SCNi64): Likewise.
68049         [C99-based-standards] (SCNo64): Likewise.
68050         [C99-based-standards] (SCNu64): Likewise.
68051         [C99-based-standards] (SCNx64): Likewise.
68052         [C99-based-standards] (PRIdLEAST64): Likewise.
68053         [C99-based-standards] (PRIiLEAST64): Likewise.
68054         [C99-based-standards] (PRIoLEAST64): Likewise.
68055         [C99-based-standards] (PRIuLEAST64): Likewise.
68056         [C99-based-standards] (PRIxLEAST64): Likewise.
68057         [C99-based-standards] (PRIXLEAST64): Likewise.
68058         [C99-based-standards] (SCNdLEAST64): Likewise.
68059         [C99-based-standards] (SCNiLEAST64): Likewise.
68060         [C99-based-standards] (SCNoLEAST64): Likewise.
68061         [C99-based-standards] (SCNuLEAST64): Likewise.
68062         [C99-based-standards] (SCNxLEAST64): Likewise.
68063         [C99-based-standards] (PRIdFAST64): Likewise.
68064         [C99-based-standards] (PRIiFAST64): Likewise.
68065         [C99-based-standards] (PRIoFAST64): Likewise.
68066         [C99-based-standards] (PRIuFAST64): Likewise.
68067         [C99-based-standards] (PRIxFAST64): Likewise.
68068         [C99-based-standards] (PRIXFAST64): Likewise.
68069         [C99-based-standards] (SCNdFAST64): Likewise.
68070         [C99-based-standards] (SCNiFAST64): Likewise.
68071         [C99-based-standards] (SCNoFAST64): Likewise.
68072         [C99-based-standards] (SCNuFAST64): Likewise.
68073         [C99-based-standards] (SCNxFAST64): Likewise.
68074         [C99-based-standards] (PRIdMAX): Likewise.
68075         [C99-based-standards] (PRIiMAX): Likewise.
68076         [C99-based-standards] (PRIoMAX): Likewise.
68077         [C99-based-standards] (PRIuMAX): Likewise.
68078         [C99-based-standards] (PRIxMAX): Likewise.
68079         [C99-based-standards] (PRIXMAX): Likewise.
68080         [C99-based-standards] (SCNdMAX): Likewise.
68081         [C99-based-standards] (SCNiMAX): Likewise.
68082         [C99-based-standards] (SCNoMAX): Likewise.
68083         [C99-based-standards] (SCNuMAX): Likewise.
68084         [C99-based-standards] (SCNxMAX): Likewise.
68085         [C99-based-standards] (PRIdPTR): Likewise.
68086         [C99-based-standards] (PRIiPTR): Likewise.
68087         [C99-based-standards] (PRIoPTR): Likewise.
68088         [C99-based-standards] (PRIuPTR): Likewise.
68089         [C99-based-standards] (PRIxPTR): Likewise.
68090         [C99-based-standards] (PRIXPTR): Likewise.
68091         [C99-based-standards] (SCNdPTR): Likewise.
68092         [C99-based-standards] (SCNiPTR): Likewise.
68093         [C99-based-standards] (SCNoPTR): Likewise.
68094         [C99-based-standards] (SCNuPTR): Likewise.
68095         [C99-based-standards] (SCNxPTR): Likewise.
68096         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
68097         allow.
68098         * conform/data/stdint.h-data: Update comments to clarify
68099         requirements.
68100         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
68101         type.
68102         [C99-based standards] (INT8_MAX): Likewise.
68103         [C99-based standards] (INT16_MIN): Likewise.
68104         [C99-based standards] (INT16_MAX): Likewise.
68105         [C99-based standards] (INT32_MIN): Likewise.
68106         [C99-based standards] (INT32_MAX): Likewise.
68107         [C99-based standards] (INT64_MIN): Likewise.
68108         [C99-based standards] (INT64_MAX): Likewise.
68109         [C99-based standards] (UINT8_MAX): Likewise.
68110         [C99-based standards] (UINT16_MAX): Likewise.
68111         [C99-based standards] (UINT32_MAX): Likewise.
68112         [C99-based standards] (UINT64_MAX): Likewise.
68113         [C99-based standards] (INT_LEAST8_MIN): Likewise.
68114         [C99-based standards] (INT_LEAST8_MAX): Likewise.
68115         [C99-based standards] (INT_LEAST16_MIN): Likewise.
68116         [C99-based standards] (INT_LEAST16_MAX): Likewise.
68117         [C99-based standards] (INT_LEAST32_MIN): Likewise.
68118         [C99-based standards] (INT_LEAST32_MAX): Likewise.
68119         [C99-based standards] (INT_LEAST64_MIN): Likewise.
68120         [C99-based standards] (INT_LEAST64_MAX): Likewise.
68121         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
68122         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
68123         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
68124         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
68125         [C99-based standards] (INT_FAST8_MIN): Likewise.
68126         [C99-based standards] (INT_FAST8_MAX): Likewise.
68127         [C99-based standards] (INT_FAST16_MIN): Likewise.
68128         [C99-based standards] (INT_FAST16_MAX): Likewise.
68129         [C99-based standards] (INT_FAST32_MIN): Likewise.
68130         [C99-based standards] (INT_FAST32_MAX): Likewise.
68131         [C99-based standards] (INT_FAST64_MIN): Likewise.
68132         [C99-based standards] (INT_FAST64_MAX): Likewise.
68133         [C99-based standards] (UINT_FAST8_MAX): Likewise.
68134         [C99-based standards] (UINT_FAST16_MAX): Likewise.
68135         [C99-based standards] (UINT_FAST32_MAX): Likewise.
68136         [C99-based standards] (UINT_FAST64_MAX): Likewise.
68137         [C99-based standards] (INTPTR_MIN): Likewise.
68138         [C99-based standards] (INTPTR_MAX): Likewise.
68139         [C99-based standards] (UINTPTR_MAX): Likewise.
68140         [C99-based standards] (INTMAX_MIN): Likewise.
68141         [C99-based standards] (INTMAX_MAX): Likewise.
68142         [C99-based standards] (UINTMAX_MAX): Likewise.
68143         [C99-based standards] (PTRDIFF_MIN): Likewise.
68144         [C99-based standards] (PTRDIFF_MAX): Likewise.
68145         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
68146         [C99-based standards] (SIZE_MAX): Likewise.
68147         [C99-based standards] (WCHAR_MAX): Likewise.
68148         [C99-based standards] (WINT_MAX): Likewise.
68149         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
68150         constraint on value.
68151         [C99-based standards] (WCHAR_MIN): Likewise.
68152         [C99-based standards] (WINT_MIN): Likewise.
68153         [C99-based standards] (*_t): Allow.
68154         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
68155         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
68156         Include math.h-data and complex.h-data.  Remove all expectations
68157         of math.h and complex.h contents.
68158         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
68159         at end of line.
68160         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
68161         (struct tm): Expect tag.
68162         [C99-based-standards] (wcstof): Expect function.
68163         [C99-based-standards] (wcstold): Likewise.
68164         [C99-based-standards] (wcstoll): Likewise.
68165         [C99-based-standards] (wcstoull): Likewise.
68166         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
68167         macro-int-constant.  Specify type.
68168         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
68169         constraint on value.
68170         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
68171         Specify type.
68172         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
68173         Specify value.
68174         [ISO C standards]: Do not allow headers.
68175         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
68176         wcs[abcdefghijklmnopqrstuvwxyz]*.
68177         [ISO C standards] (*_t): Do not allow.
68178         * conform/data/wctype.h-data [C99-based standards] (iswblank):
68179         Expect function.
68180         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
68181         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
68182         Specify type.
68183         [ISO C standards]: Do not allow headers.
68184         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
68185         is[abcdefghijklmnopqrstuvwxyz]*.
68186         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
68187         to[abcdefghijklmnopqrstuvwxyz]*.
68188         [ISO C standards] (*_t): Do not allow.
68189         * conform/data/stdalign.h-data: New file.
68190         * conform/data/stdbool.h-data: Likewise.
68191         * conform/data/stdnoreturn.h-data: Likewise.
68192
68193 2012-11-07  Roland McGrath  <roland@hack.frob.com>
68194
68195         [BZ #14815]
68196         * manual/filesys.texi (Directory Entries): Typo fix.
68197         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
68198
68199 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
68200
68201         * elf/elf.h (EM_AARCH64): New macro.
68202         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
68203         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
68204         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
68205         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
68206         (R_AARCH64_TLSDESC): Likewise.
68207         (NT_ARM_TLS): Likewise.
68208         (NT_ARM_HW_BREAK): Likewise.
68209         (NT_ARM_HW_WATCH): Likewise.
68210
68211 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
68212
68213         [BZ #14811]
68214         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
68215         (__ieee754_powl): Saturate nonzero exponents with absolute value
68216         below 0x1p-79 to +/- 0x1p-79.
68217         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
68218         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
68219         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
68220         nonzero exponents with absolute value below 0x1p-32 to +/-
68221         0x1p-32.
68222         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
68223         (__ieee754_powl): Saturate nonzero exponents with absolute value
68224         below 0x1p-79 to +/- 0x1p-79.
68225         * math/libm-test.inc (pow_test): Add more tests.
68226
68227 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
68228
68229         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
68230         _dl_s390_cap_flags with kernel. Increase string length.
68231         (_dl_s390_platforms): Add z196 and zEC12.
68232
68233 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
68234
68235         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
68236         Change XOPEN21K to XOPEN2K.
68237
68238 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
68239
68240         * string/memmove.c: Use memcpy when possible.
68241
68242 2012-11-06  Andreas Jaeger  <aj@suse.de>
68243
68244         * po/eo.po: Update from translation team.
68245
68246 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
68247
68248         [BZ #14793]
68249         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
68250         exponent and small x and y exponents, scale x or y up.  Increase
68251         by 2 the exponent used in scaling up.
68252         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
68253         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
68254         * math/libm-test.inc (fma_test): Add more tests.
68255         (fma_test_towardzero): Likewise.
68256         (fma_test_downward): Likewise.
68257         (fma_test_upward): Likewise.
68258
68259 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
68260
68261         [BZ #14805]
68262         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
68263         fenv_t *.
68264
68265         [BZ #14801]
68266         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
68267         namespace for names of struct fields.
68268         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
68269         fenv_t fields.
68270         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
68271         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
68272
68273 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
68274
68275         [BZ #3665]
68276         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
68277
68278 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
68279
68280         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
68281         PTR_DEMANGLE.
68282
68283         [BZ #5246]
68284         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
68285         PTR_DEMANGLE.
68286
68287 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
68288
68289         [BZ #14797]
68290         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
68291         definitely overflow as x * y not x * y + z.
68292         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
68293         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
68294         * math/libm-test.inc (fma_test): Add more tests.
68295         (fma_test_towardzero): Likewise.
68296         (fma_test_downward): Likewise.
68297         (fma_test_upward): Likewise.
68298
68299 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
68300
68301         [BZ #157]
68302
68303         * include/stub-tag.h: Remove file.
68304         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
68305         '#include' of it.
68306         * manual/maint.texi (Porting): Don't reference it.
68307         * Makerules ($(objpfx)stubs): Likewise.
68308         * dirent/closedir.c: Don't include <stub-tag.h>.
68309         * dirent/dirfd.c: Likewise.
68310         * dirent/fdopendir.c: Likewise.
68311         * dirent/getdents.c: Likewise.
68312         * dirent/getdents64.c: Likewise.
68313         * dirent/opendir.c: Likewise.
68314         * dirent/readdir.c: Likewise.
68315         * dirent/readdir64.c: Likewise.
68316         * dirent/readdir64_r.c: Likewise.
68317         * dirent/readdir_r.c: Likewise.
68318         * dirent/rewinddir.c: Likewise.
68319         * dirent/seekdir.c: Likewise.
68320         * dirent/telldir.c: Likewise.
68321         * gmon/profil.c: Likewise.
68322         * grp/setgroups.c: Likewise.
68323         * inet/if_index.c: Likewise.
68324         * io/access.c: Likewise.
68325         * io/chdir.c: Likewise.
68326         * io/chmod.c: Likewise.
68327         * io/chown.c: Likewise.
68328         * io/close.c: Likewise.
68329         * io/dup.c: Likewise.
68330         * io/dup2.c: Likewise.
68331         * io/dup3.c: Likewise.
68332         * io/euidaccess.c: Likewise.
68333         * io/faccessat.c: Likewise.
68334         * io/fchdir.c: Likewise.
68335         * io/fchmod.c: Likewise.
68336         * io/fchmodat.c: Likewise.
68337         * io/fchown.c: Likewise.
68338         * io/fchownat.c: Likewise.
68339         * io/fcntl.c: Likewise.
68340         * io/flock.c: Likewise.
68341         * io/fstatfs.c: Likewise.
68342         * io/fstatfs64.c: Likewise.
68343         * io/fstatvfs.c: Likewise.
68344         * io/fstatvfs64.c: Likewise.
68345         * io/futimens.c: Likewise.
68346         * io/fxstat.c: Likewise.
68347         * io/fxstat64.c: Likewise.
68348         * io/fxstatat.c: Likewise.
68349         * io/fxstatat64.c: Likewise.
68350         * io/getcwd.c: Likewise.
68351         * io/isatty.c: Likewise.
68352         * io/lchmod.c: Likewise.
68353         * io/lchown.c: Likewise.
68354         * io/link.c: Likewise.
68355         * io/linkat.c: Likewise.
68356         * io/lseek.c: Likewise.
68357         * io/lseek64.c: Likewise.
68358         * io/lxstat64.c: Likewise.
68359         * io/mkdir.c: Likewise.
68360         * io/mkdirat.c: Likewise.
68361         * io/mkfifo.c: Likewise.
68362         * io/mkfifoat.c: Likewise.
68363         * io/open.c: Likewise.
68364         * io/open64.c: Likewise.
68365         * io/openat.c: Likewise.
68366         * io/openat64.c: Likewise.
68367         * io/pipe.c: Likewise.
68368         * io/pipe2.c: Likewise.
68369         * io/poll.c: Likewise.
68370         * io/posix_fadvise.c: Likewise.
68371         * io/posix_fadvise64.c: Likewise.
68372         * io/posix_fallocate.c: Likewise.
68373         * io/posix_fallocate64.c: Likewise.
68374         * io/read.c: Likewise.
68375         * io/readlink.c: Likewise.
68376         * io/readlinkat.c: Likewise.
68377         * io/rmdir.c: Likewise.
68378         * io/sendfile.c: Likewise.
68379         * io/sendfile64.c: Likewise.
68380         * io/statfs.c: Likewise.
68381         * io/statfs64.c: Likewise.
68382         * io/statvfs.c: Likewise.
68383         * io/statvfs64.c: Likewise.
68384         * io/symlink.c: Likewise.
68385         * io/symlinkat.c: Likewise.
68386         * io/ttyname.c: Likewise.
68387         * io/ttyname_r.c: Likewise.
68388         * io/umask.c: Likewise.
68389         * io/unlink.c: Likewise.
68390         * io/unlinkat.c: Likewise.
68391         * io/utime.c: Likewise.
68392         * io/utimensat.c: Likewise.
68393         * io/write.c: Likewise.
68394         * io/xmknod.c: Likewise.
68395         * io/xmknodat.c: Likewise.
68396         * io/xstat.c: Likewise.
68397         * io/xstat64.c: Likewise.
68398         * login/getpt.c: Likewise.
68399         * login/grantpt.c: Likewise.
68400         * login/unlockpt.c: Likewise.
68401         * math/e_acoshl.c: Likewise.
68402         * math/e_acosl.c: Likewise.
68403         * math/e_asinl.c: Likewise.
68404         * math/e_atan2l.c: Likewise.
68405         * math/e_atanhl.c: Likewise.
68406         * math/e_coshl.c: Likewise.
68407         * math/e_expl.c: Likewise.
68408         * math/e_fmodl.c: Likewise.
68409         * math/e_gammal_r.c: Likewise.
68410         * math/e_hypotl.c: Likewise.
68411         * math/e_j0l.c: Likewise.
68412         * math/e_j1l.c: Likewise.
68413         * math/e_jnl.c: Likewise.
68414         * math/e_lgammal_r.c: Likewise.
68415         * math/e_log10l.c: Likewise.
68416         * math/e_log2l.c: Likewise.
68417         * math/e_logl.c: Likewise.
68418         * math/e_powl.c: Likewise.
68419         * math/e_rem_pio2l.c: Likewise.
68420         * math/e_sinhl.c: Likewise.
68421         * math/e_sqrtl.c: Likewise.
68422         * math/fclrexcpt.c: Likewise.
68423         * math/fedisblxcpt.c: Likewise.
68424         * math/feenablxcpt.c: Likewise.
68425         * math/fegetenv.c: Likewise.
68426         * math/fegetexcept.c: Likewise.
68427         * math/fegetround.c: Likewise.
68428         * math/feholdexcpt.c: Likewise.
68429         * math/fesetenv.c: Likewise.
68430         * math/fesetround.c: Likewise.
68431         * math/feupdateenv.c: Likewise.
68432         * math/fgetexcptflg.c: Likewise.
68433         * math/fraiseexcpt.c: Likewise.
68434         * math/fsetexcptflg.c: Likewise.
68435         * math/ftestexcept.c: Likewise.
68436         * math/k_cosl.c: Likewise.
68437         * math/k_rem_pio2l.c: Likewise.
68438         * math/k_sinl.c: Likewise.
68439         * math/k_tanl.c: Likewise.
68440         * math/s_asinhl.c: Likewise.
68441         * math/s_atanl.c: Likewise.
68442         * math/s_cbrtl.c: Likewise.
68443         * math/s_erfl.c: Likewise.
68444         * math/s_expm1l.c: Likewise.
68445         * math/s_log1pl.c: Likewise.
68446         * math/s_tanhl.c: Likewise.
68447         * misc/acct.c: Likewise.
68448         * misc/brk.c: Likewise.
68449         * misc/chflags.c: Likewise.
68450         * misc/chroot.c: Likewise.
68451         * misc/fchflags.c: Likewise.
68452         * misc/fgetxattr.c: Likewise.
68453         * misc/flistxattr.c: Likewise.
68454         * misc/fremovexattr.c: Likewise.
68455         * misc/fsetxattr.c: Likewise.
68456         * misc/fsync.c: Likewise.
68457         * misc/ftruncate.c: Likewise.
68458         * misc/futimes.c: Likewise.
68459         * misc/futimesat.c: Likewise.
68460         * misc/getdomain.c: Likewise.
68461         * misc/getdtsz.c: Likewise.
68462         * misc/gethostid.c: Likewise.
68463         * misc/gethostname.c: Likewise.
68464         * misc/getloadavg.c: Likewise.
68465         * misc/getpagesize.c: Likewise.
68466         * misc/getsysstats.c: Likewise.
68467         * misc/getxattr.c: Likewise.
68468         * misc/gtty.c: Likewise.
68469         * misc/ioctl.c: Likewise.
68470         * misc/lgetxattr.c: Likewise.
68471         * misc/listxattr.c: Likewise.
68472         * misc/llistxattr.c: Likewise.
68473         * misc/lremovexattr.c: Likewise.
68474         * misc/lsetxattr.c: Likewise.
68475         * misc/lutimes.c: Likewise.
68476         * misc/madvise.c: Likewise.
68477         * misc/mincore.c: Likewise.
68478         * misc/mlock.c: Likewise.
68479         * misc/mlockall.c: Likewise.
68480         * misc/mmap.c: Likewise.
68481         * misc/mprotect.c: Likewise.
68482         * misc/msync.c: Likewise.
68483         * misc/munlock.c: Likewise.
68484         * misc/munlockall.c: Likewise.
68485         * misc/munmap.c: Likewise.
68486         * misc/preadv.c: Likewise.
68487         * misc/preadv64.c: Likewise.
68488         * misc/ptrace.c: Likewise.
68489         * misc/pwritev.c: Likewise.
68490         * misc/pwritev64.c: Likewise.
68491         * misc/readv.c: Likewise.
68492         * misc/reboot.c: Likewise.
68493         * misc/remap_file_pages.c: Likewise.
68494         * misc/removexattr.c: Likewise.
68495         * misc/revoke.c: Likewise.
68496         * misc/select.c: Likewise.
68497         * misc/setdomain.c: Likewise.
68498         * misc/setegid.c: Likewise.
68499         * misc/seteuid.c: Likewise.
68500         * misc/sethostid.c: Likewise.
68501         * misc/sethostname.c: Likewise.
68502         * misc/setregid.c: Likewise.
68503         * misc/setreuid.c: Likewise.
68504         * misc/setxattr.c: Likewise.
68505         * misc/sstk.c: Likewise.
68506         * misc/stty.c: Likewise.
68507         * misc/swapoff.c: Likewise.
68508         * misc/swapon.c: Likewise.
68509         * misc/sync.c: Likewise.
68510         * misc/syncfs.c: Likewise.
68511         * misc/syscall.c: Likewise.
68512         * misc/truncate.c: Likewise.
68513         * misc/ualarm.c: Likewise.
68514         * misc/usleep.c: Likewise.
68515         * misc/ustat.c: Likewise.
68516         * misc/utimes.c: Likewise.
68517         * misc/vhangup.c: Likewise.
68518         * misc/writev.c: Likewise.
68519         * posix/_exit.c: Likewise.
68520         * posix/alarm.c: Likewise.
68521         * posix/execve.c: Likewise.
68522         * posix/fexecve.c: Likewise.
68523         * posix/fork.c: Likewise.
68524         * posix/fpathconf.c: Likewise.
68525         * posix/getaddrinfo.c: Likewise.
68526         * posix/getegid.c: Likewise.
68527         * posix/geteuid.c: Likewise.
68528         * posix/getgid.c: Likewise.
68529         * posix/getgroups.c: Likewise.
68530         * posix/getlogin.c: Likewise.
68531         * posix/getlogin_r.c: Likewise.
68532         * posix/getpgid.c: Likewise.
68533         * posix/getpid.c: Likewise.
68534         * posix/getppid.c: Likewise.
68535         * posix/getresgid.c: Likewise.
68536         * posix/getresuid.c: Likewise.
68537         * posix/getsid.c: Likewise.
68538         * posix/getuid.c: Likewise.
68539         * posix/glob64.c: Likewise.
68540         * posix/nanosleep.c: Likewise.
68541         * posix/pathconf.c: Likewise.
68542         * posix/pause.c: Likewise.
68543         * posix/posix_madvise.c: Likewise.
68544         * posix/pread.c: Likewise.
68545         * posix/pread64.c: Likewise.
68546         * posix/pwrite.c: Likewise.
68547         * posix/pwrite64.c: Likewise.
68548         * posix/sched_getaffinity.c: Likewise.
68549         * posix/sched_getp.c: Likewise.
68550         * posix/sched_gets.c: Likewise.
68551         * posix/sched_primax.c: Likewise.
68552         * posix/sched_primin.c: Likewise.
68553         * posix/sched_rr_gi.c: Likewise.
68554         * posix/sched_setaffinity.c: Likewise.
68555         * posix/sched_setp.c: Likewise.
68556         * posix/sched_sets.c: Likewise.
68557         * posix/sched_yield.c: Likewise.
68558         * posix/setgid.c: Likewise.
68559         * posix/setlogin.c: Likewise.
68560         * posix/setpgid.c: Likewise.
68561         * posix/setresgid.c: Likewise.
68562         * posix/setresuid.c: Likewise.
68563         * posix/setsid.c: Likewise.
68564         * posix/setuid.c: Likewise.
68565         * posix/sleep.c: Likewise.
68566         * posix/spawni.c: Likewise.
68567         * posix/sysconf.c: Likewise.
68568         * posix/times.c: Likewise.
68569         * posix/wait.c: Likewise.
68570         * posix/wait3.c: Likewise.
68571         * posix/wait4.c: Likewise.
68572         * posix/waitpid.c: Likewise.
68573         * resolv/gai_sigqueue.c: Likewise.
68574         * resource/getpriority.c: Likewise.
68575         * resource/getrlimit.c: Likewise.
68576         * resource/getrusage.c: Likewise.
68577         * resource/nice.c: Likewise.
68578         * resource/setpriority.c: Likewise.
68579         * resource/setrlimit.c: Likewise.
68580         * resource/ulimit.c: Likewise.
68581         * rt/aio_cancel.c: Likewise.
68582         * rt/aio_fsync.c: Likewise.
68583         * rt/aio_read.c: Likewise.
68584         * rt/aio_sigqueue.c: Likewise.
68585         * rt/aio_suspend.c: Likewise.
68586         * rt/aio_write.c: Likewise.
68587         * rt/clock_getres.c: Likewise.
68588         * rt/clock_gettime.c: Likewise.
68589         * rt/clock_nanosleep.c: Likewise.
68590         * rt/clock_settime.c: Likewise.
68591         * rt/lio_listio.c: Likewise.
68592         * rt/mq_close.c: Likewise.
68593         * rt/mq_getattr.c: Likewise.
68594         * rt/mq_notify.c: Likewise.
68595         * rt/mq_open.c: Likewise.
68596         * rt/mq_receive.c: Likewise.
68597         * rt/mq_send.c: Likewise.
68598         * rt/mq_setattr.c: Likewise.
68599         * rt/mq_timedreceive.c: Likewise.
68600         * rt/mq_timedsend.c: Likewise.
68601         * rt/mq_unlink.c: Likewise.
68602         * rt/shm_open.c: Likewise.
68603         * rt/shm_unlink.c: Likewise.
68604         * rt/timer_create.c: Likewise.
68605         * rt/timer_delete.c: Likewise.
68606         * rt/timer_getoverr.c: Likewise.
68607         * rt/timer_gettime.c: Likewise.
68608         * rt/timer_settime.c: Likewise.
68609         * setjmp/__longjmp.c: Likewise.
68610         * setjmp/setjmp.c: Likewise.
68611         * signal/kill.c: Likewise.
68612         * signal/killpg.c: Likewise.
68613         * signal/raise.c: Likewise.
68614         * signal/sigaction.c: Likewise.
68615         * signal/sigaltstack.c: Likewise.
68616         * signal/sigblock.c: Likewise.
68617         * signal/sigignore.c: Likewise.
68618         * signal/sigintr.c: Likewise.
68619         * signal/signal.c: Likewise.
68620         * signal/sigpause.c: Likewise.
68621         * signal/sigpending.c: Likewise.
68622         * signal/sigqueue.c: Likewise.
68623         * signal/sigreturn.c: Likewise.
68624         * signal/sigset.c: Likewise.
68625         * signal/sigsetmask.c: Likewise.
68626         * signal/sigstack.c: Likewise.
68627         * signal/sigsuspend.c: Likewise.
68628         * signal/sigtimedwait.c: Likewise.
68629         * signal/sigvec.c: Likewise.
68630         * signal/sigwait.c: Likewise.
68631         * signal/sigwaitinfo.c: Likewise.
68632         * signal/sysv_signal.c: Likewise.
68633         * socket/accept.c: Likewise.
68634         * socket/accept4.c: Likewise.
68635         * socket/bind.c: Likewise.
68636         * socket/connect.c: Likewise.
68637         * socket/getpeername.c: Likewise.
68638         * socket/getsockname.c: Likewise.
68639         * socket/getsockopt.c: Likewise.
68640         * socket/isfdtype.c: Likewise.
68641         * socket/listen.c: Likewise.
68642         * socket/recv.c: Likewise.
68643         * socket/recvfrom.c: Likewise.
68644         * socket/recvmsg.c: Likewise.
68645         * socket/send.c: Likewise.
68646         * socket/sendmsg.c: Likewise.
68647         * socket/sendto.c: Likewise.
68648         * socket/setsockopt.c: Likewise.
68649         * socket/shutdown.c: Likewise.
68650         * socket/sockatmark.c: Likewise.
68651         * socket/socket.c: Likewise.
68652         * socket/socketpair.c: Likewise.
68653         * stdio-common/ctermid.c: Likewise.
68654         * stdio-common/cuserid.c: Likewise.
68655         * stdio-common/remove.c: Likewise.
68656         * stdio-common/rename.c: Likewise.
68657         * stdio-common/renameat.c: Likewise.
68658         * stdio-common/tempname.c: Likewise.
68659         * stdlib/getcontext.c: Likewise.
68660         * stdlib/makecontext.c: Likewise.
68661         * stdlib/setcontext.c: Likewise.
68662         * stdlib/swapcontext.c: Likewise.
68663         * stdlib/system.c: Likewise.
68664         * streams/fattach.c: Likewise.
68665         * streams/fdetach.c: Likewise.
68666         * streams/getmsg.c: Likewise.
68667         * streams/getpmsg.c: Likewise.
68668         * streams/putmsg.c: Likewise.
68669         * streams/putpmsg.c: Likewise.
68670         * sysdeps/unix/bsd/getpt.c: Likewise.
68671         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
68672         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
68673         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
68674         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
68675         Likewise.
68676         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
68677         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
68678         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
68679         * sysvipc/msgctl.c: Likewise.
68680         * sysvipc/msgget.c: Likewise.
68681         * sysvipc/msgrcv.c: Likewise.
68682         * sysvipc/msgsnd.c: Likewise.
68683         * sysvipc/semctl.c: Likewise.
68684         * sysvipc/semget.c: Likewise.
68685         * sysvipc/semop.c: Likewise.
68686         * sysvipc/semtimedop.c: Likewise.
68687         * sysvipc/shmat.c: Likewise.
68688         * sysvipc/shmctl.c: Likewise.
68689         * sysvipc/shmdt.c: Likewise.
68690         * sysvipc/shmget.c: Likewise.
68691         * termios/tcdrain.c: Likewise.
68692         * termios/tcflow.c: Likewise.
68693         * termios/tcflush.c: Likewise.
68694         * termios/tcgetattr.c: Likewise.
68695         * termios/tcgetpgrp.c: Likewise.
68696         * termios/tcsendbrk.c: Likewise.
68697         * termios/tcsetattr.c: Likewise.
68698         * termios/tcsetpgrp.c: Likewise.
68699         * time/adjtime.c: Likewise.
68700         * time/clock.c: Likewise.
68701         * time/getitimer.c: Likewise.
68702         * time/gettimeofday.c: Likewise.
68703         * time/setitimer.c: Likewise.
68704         * time/settimeofday.c: Likewise.
68705         * time/stime.c: Likewise.
68706         * time/time.c: Likewise.
68707
68708 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
68709
68710         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
68711         /usr/old/bin.
68712
68713         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
68714         instead of spaces.
68715         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
68716
68717 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
68718
68719         [BZ #14796]
68720         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
68721         FE_TONEAREST before applying Dekker multiplication and Knuth
68722         addition.  Clear inexact exceptions and check for exact zero
68723         results afterwards.
68724         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
68725         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
68726         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
68727         * math/libm-test.inc (fma_test): Add more tests.
68728         (fma_test_towardzero): Likewise.
68729         (fma_test_downward): Likewise.
68730         (fma_test_upward): Likewise.
68731         * sysdeps/generic/math_private.h (default_libc_fesetround): New
68732         function.
68733         (libc_fesetround): New macro.
68734         (libc_fesetroundf): Likewise.
68735         (libc_fesetroundl): Likewise.
68736         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
68737         function.
68738         (libc_fesetround_387): Likewise.
68739         (libc_fesetroundf): New macro.
68740         (libc_fesetround): Likewise.
68741         (libc_fesetroundl): Likewise.
68742         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
68743         function.
68744         (libc_fesetroundf): New macro.
68745         (libc_fesetround): Likewise.
68746         (libc_fesetroundl): Likewise.
68747         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
68748         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
68749         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
68750         libm_hidden_ver.
68751         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
68752         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
68753         libm_hidden_def.
68754         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
68755         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
68756         libm_hidden_ver.
68757         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
68758         libm_hidden_def.
68759
68760         [BZ #3439]
68761         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
68762         integer constant usable in #if and use that to give value to enum
68763         constant.
68764         (FE_DIVBYZERO): Likewise.
68765         (FE_UNDERFLOW): Likewise.
68766         (FE_OVERFLOW): Likewise.
68767         (FE_INVALID): Likewise.
68768         (FE_INVALID_SNAN): Likewise.
68769         (FE_INVALID_ISI): Likewise.
68770         (FE_INVALID_IDI): Likewise.
68771         (FE_INVALID_ZDZ): Likewise.
68772         (FE_INVALID_IMZ): Likewise.
68773         (FE_INVALID_COMPARE): Likewise.
68774         (FE_INVALID_SOFTWARE): Likewise.
68775         (FE_INVALID_SQRT): Likewise.
68776         (FE_INVALID_INTEGER_CONVERSION): Likewise.
68777         (FE_TONEAREST): Likewise.
68778         (FE_TOWARDZERO): Likewise.
68779         (FE_UPWARD): Likewise.
68780         (FE_DOWNWARD): Likewise.
68781         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
68782         (FE_DIVBYZERO): Likewise.
68783         (FE_OVERFLOW): Likewise.
68784         (FE_UNDERFLOW): Likewise.
68785         (FE_INEXACT): Likewise.
68786         (FE_TONEAREST): Likewise.
68787         (FE_DOWNWARD): Likewise.
68788         (FE_UPWARD): Likewise.
68789         (FE_TOWARDZERO): Likewise.
68790         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
68791         (FE_UNDERFLOW): Likewise.
68792         (FE_OVERFLOW): Likewise.
68793         (FE_DIVBYZERO): Likewise.
68794         (FE_INVALID): Likewise.
68795         (FE_TONEAREST): Likewise.
68796         (FE_TOWARDZERO): Likewise.
68797         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
68798         (FE_OVERFLOW): Likewise.
68799         (FE_UNDERFLOW): Likewise.
68800         (FE_DIVBYZERO): Likewise.
68801         (FE_INEXACT): Likewise.
68802         (FE_TONEAREST): Likewise.
68803         (FE_TOWARDZERO): Likewise.
68804         (FE_UPWARD): Likewise.
68805         (FE_DOWNWARD): Likewise.
68806         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
68807         (FE_DIVBYZERO): Likewise.
68808         (FE_OVERFLOW): Likewise.
68809         (FE_UNDERFLOW): Likewise.
68810         (FE_INEXACT): Likewise.
68811         (FE_TONEAREST): Likewise.
68812         (FE_DOWNWARD): Likewise.
68813         (FE_UPWARD): Likewise.
68814         (FE_TOWARDZERO): Likewise.
68815
68816 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
68817
68818         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
68819
68820 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
68821
68822         * scripts/cross-test-ssh.sh (command): Use newlines to separate
68823         commands.  Quote $PWD.
68824         (blacklist_exports): Don't use remove_newlines.  Replace "declare
68825         -x" by "export".
68826         (remove_newlines): Remove.
68827
68828 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
68829
68830         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
68831         * stdlib/stdlib.h (atof): Moved to ...
68832         * include/bits/stdlib-float.h: Here.  New file.
68833         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
68834         * stdlib/bits/stdlib-float.h: New file.
68835         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
68836         -mno-sse -mno-mmx.
68837         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
68838         <xmmintrin.h>.
68839
68840 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
68841
68842         * conform/conformtest.pl (@headers): Add fenv.h.
68843         * conform/data/fenv.h-data: New file.
68844         * include/fenv.h [_ISOMAC]: Disable all contents of file except
68845         include of <math/fenv.h>.
68846
68847         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
68848         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
68849         && !UNIX98].  Enables tests for XOPEN2K8.
68850         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
68851         POSIX2008]: Likewise.
68852
68853         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
68854         (struct rusage): Do not expect type or its members.
68855
68856         [BZ #3439]
68857         * math/math.h (FP_NAN): Define macro to integer constant usable in
68858         #if and use that to give value to enum constant.
68859         (FP_INFINITE): Likewise.
68860         (FP_ZERO): Likewise.
68861         (FP_SUBNORMAL): Likewise.
68862         (FP_NORMAL): Likewise.
68863
68864 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
68865
68866         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
68867         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
68868         arguments.
68869
68870 2012-11-02  Roland McGrath  <roland@hack.frob.com>
68871
68872         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
68873         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
68874         autoconf-time if not.
68875         * configure.in: Remove AC_PREREQ.
68876
68877 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
68878
68879         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
68880         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
68881         of the internal implementation.
68882
68883 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
68884
68885         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
68886         except include of <misc/sys/syslog.h>.
68887
68888 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
68889
68890         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
68891         function returns with a NULL context exit with zero.
68892
68893 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
68894
68895         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
68896
68897 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
68898
68899         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
68900         (run_program_cmd): This.
68901         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
68902         (tst_langinfo): New variable.  Use it.
68903
68904 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
68905
68906         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
68907         floating point opcodes.
68908
68909 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
68910
68911         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
68912         variable.
68913
68914         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
68915
68916         * sysdeps/mach/hurd/powerpc: Remove directory.
68917         * sysdeps/mach/powerpc: Likewise.
68918
68919 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
68920
68921         * scripts/check-local-headers.sh: Ignore c++ headers.
68922
68923 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
68924
68925         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
68926         __libc_cleanup_region_start argument.
68927
68928 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
68929
68930         [BZ #14784]
68931         [BZ #14785]
68932         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
68933         x * y using scaling, not as x * y + z.
68934         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
68935         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
68936         * math/libm-test.inc (fma_test): Add more tests.
68937         (fma_test_towardzero): Likewise.
68938         (fma_test_downward): Likewise.
68939         (fma_test_upward): Likewise.
68940
68941 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
68942
68943         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
68944
68945 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
68946
68947         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
68948         New variable.
68949
68950 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
68951
68952         * rt/tst-shm.c (worker): Correct checking for mmap failure.
68953
68954 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
68955
68956         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
68957         Fix sort order.
68958         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
68959         Likewise.
68960
68961 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
68962
68963         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
68964         Fix the order of the list for glibc 2.17.
68965         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
68966         Likewise.
68967
68968 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
68969
68970         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
68971
68972 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
68973
68974         [BZ #14610]
68975         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
68976         for low part of x being zero before using __atanl (y).
68977         * math/libm-test.inc (atan2_test): Add another test.
68978
68979         * manual/install.texi (Configuring and compiling): Document
68980         general use of test-wrapper and test-wrapper-env.
68981         * INSTALL: Regenerated.
68982
68983         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
68984         (__fma): Do not extract and scale down low bits on after-rounding
68985         systems when result rounded to normal precision would have normal
68986         exponent.
68987         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
68988         (__fmal): Do not extract and scale down low bits on after-rounding
68989         systems when result rounded to normal precision would have normal
68990         exponent.
68991         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
68992         (__fmal): Do not extract and scale down low bits on after-rounding
68993         systems when result rounded to normal precision would have normal
68994         exponent.
68995         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
68996         macro.
68997         (fma_test): Add more tests.
68998         (fma_test_towardzero): Likewise.
68999         (fma_test_downward): Likewise.
69000         (fma_test_upward): Likewise.
69001
69002 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
69003
69004         * sysdeps/i386/tininess.h: Renamed to ...
69005         * sysdeps/x86/tininess.h: This.
69006         * sysdeps/x86_64/tininess.h: Removed.
69007
69008 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
69009
69010         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
69011         input.  Use $(build-program-cmd).
69012         ($(objpfx)tst-array1-static.out): Likewise.
69013         ($(objpfx)tst-array2.out): Likewise.
69014         ($(objpfx)tst-array3.out): Likewise.
69015         ($(objpfx)tst-array4.out): Likewise.
69016         ($(objpfx)tst-array5.out): Likewise.
69017         ($(objpfx)tst-array5-static.out): Likewise.
69018
69019 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
69020
69021         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
69022         if defined.
69023
69024         * nss/nsswitch.h (nss_interface_function): Provide new
69025         macro for use with NSS functions.
69026         * grp/initgroups.c: Use new macro.
69027         * nss/getXXbyYY.c: Likewise.
69028         * nss/getXXbyYY_r.c: Likewise.
69029         * nss/getXXent.c: Likewise.
69030         * nss/getXXent_r.c: Likewise.
69031         * sysdeps/posix/getaddrinfo.c: Likewise.
69032
69033 2012-10-30  Andreas Jaeger  <aj@suse.de>
69034
69035         * po/ru.po: Update Russion translation from translation project.
69036
69037 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
69038
69039         [BZ #14152]
69040         [BZ #14783]
69041         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
69042         result and shift together with sticky bit instead of replicating
69043         round-to-nearest rounding.
69044         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
69045         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
69046         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
69047         missing underflow exceptions.
69048         (fma_test_towardzero): Add more tests.
69049         (fma_test_downward): Likewise.
69050         (fma_test_upward): Likewise.
69051
69052         [BZ #14047]
69053         * sysdeps/generic/tininess.h: New file.
69054         * sysdeps/i386/tininess.h: Likewise.
69055         * sysdeps/sh/tininess.h: Likewise.
69056         * sysdeps/x86_64/tininess.h: Likewise.
69057         * stdlib/tst-strtod-underflow.c: Likewise.
69058         * stdlib/tst-tininess.c: Likewise.
69059         * stdlib/strtod_l.c: Include <tininess.h>.
69060         (round_and_return): Do not set errno for exact underflow cases.
69061         Force an underflow exception when setting errno for underflow.
69062         Determine underflow based on rounding to normal precision if
69063         TININESS_AFTER_ROUNDING.
69064         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
69065         ERANGE for exact underflow cases.
69066         * stdlib/Makefile (tests): Add tst-tininess and
69067         tst-strtod-underflow.
69068         ($(objpfx)tst-tininess): Use $(link-libm).
69069         ($(objpfx)tst-strtod-underflow): Likewise.
69070
69071 2012-10-30  Andreas Jaeger  <aj@suse.de>
69072
69073         [BZ #14767]
69074         * elf/Makefile (tests): Remove conditional for have-initfini-array
69075         since this is now always required and the variable does not exist
69076         anymore.
69077         (tests-static): Likewise.
69078         (modules-names): Likewise.
69079
69080         * po/eo.po: Add Esperanto translation from translation project.
69081
69082         * elf/tst-array1.c (fini_array): Make writeable so that it can be
69083         merged with constructor/destructor.
69084         (init_array): Likewise.
69085         * elf/tst-array2dep.c (fini_array): Likewise.
69086         (init_array): Likewise.
69087
69088 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
69089
69090         * manual/message.texi: Delete @cartouche tags.
69091
69092 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
69093
69094         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
69095         EOPNOTSUPP.
69096         * sysdeps/mach/hurd/fsync.c: Likewise.
69097
69098         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
69099         [_POSIX_REALTIME_SIGNALS]: Change condition to
69100         [_POSIX_REALTIME_SIGNALS > 0].
69101
69102 2012-10-27  Andreas Jaeger  <aj@suse.de>
69103
69104         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
69105         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
69106         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
69107         [__WORDSIZE != 64]: Likewise.
69108
69109 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
69110
69111         *  iconvdata/tst-table.sh: Remove ${SHELL}.
69112         *  iconvdata/tst-tables.sh: Likewise.
69113
69114 2012-10-25  David S. Miller  <davem@davemloft.net>
69115
69116         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
69117         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
69118         of strtoull.
69119
69120         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
69121         ifunc-impl-list.c
69122         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
69123         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
69124         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
69125         file.
69126
69127 2012-10-25  Roland McGrath  <roland@hack.frob.com>
69128
69129         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
69130         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
69131         __getdirentries.
69132
69133 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
69134             Jim Blandy  <jimb@codesourcery.com>
69135
69136         * scripts/cross-test-ssh.sh: New file.
69137         * manual/install.texi (Configuring and compiling): Document use of
69138         cross-test-ssh.sh.
69139         * INSTALL: Regenerated.
69140
69141 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
69142
69143         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
69144         EOPNOTSUPP.
69145
69146 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
69147
69148         * Makeconfig (run-program-prefix): Fix comment.
69149
69150 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
69151             Jim Blandy  <jimb@codesourcery.com>
69152
69153         * Makeconfig (test-wrapper): New variable,
69154         (test-wrapper-env): Likewise.
69155         [$(cross-compiling) = yes && $(test-wrapper) != ""]
69156         (run-built-tests): Define to yes.
69157         (run-program-prefix): Use $(test-wrapper).
69158         (built-program-cmd): Likewise.
69159         * Rules (make-test-out): Use $(test-wrapper-env) and
69160         $(host-built-program-cmd).
69161         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
69162         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
69163         tst-pathopt.sh.
69164         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
69165         $(test-wrapper-env) to tst-rtld-load-self.sh.
69166         ($(objpfx)order2.out): Use $(test-wrapper).
69167         ($(objpfx)tst-initorder.out): Likewise.
69168         ($(objpfx)tst-initorder2.out): Likewise.
69169         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
69170         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
69171         (test_wrapper_env): New variable.  Use it to run ld.so.
69172         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
69173         Use it to run ld.so.
69174         (test_wrapper_env): Likewise.
69175         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
69176         $(test-wrapper) to run-iconv-test.sh.
69177         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
69178         (ICONV): Use $test_wrapper.
69179         * posix/Makefile ($(objpfx)globtest.out): Pass
69180         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
69181         globtest.sh, not $(run-program-prefix).
69182         * posix/globtest.sh (run_via_rtld_prefix): New variable.
69183         (test_wrapper): Likewise.
69184         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
69185         set together with run_via_rtld_prefix.
69186         (run_program_prefix): Define in terms of test_wrapper and
69187         run_via_rtld_prefix.
69188
69189 2012-10-24  Roland McGrath  <roland@hack.frob.com>
69190
69191         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
69192         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
69193         Targets removed.
69194
69195         [BZ #14743]
69196         * include/time.h: Remove librt_hidden_proto (clock_gettime).
69197         Declare __clock_getres, __clock_gettime, __clock_settime,
69198         __clock_nanosleep, and __clock_getcpuclockid.
69199         * rt/clock_gettime.c: Define __clock_gettime as an alias.
69200         Remove librt_hidden_def (clock_gettime).
69201         * sysdeps/unix/clock_gettime.c: Likewise.
69202         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
69203         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
69204         * rt/clock_getres.c: Define __clock_getres as an alias.
69205         * sysdeps/posix/clock_getres.c: Likewise.
69206         * rt/clock_settime.c: Define __clock_settime as an alias.
69207         * sysdeps/unix/clock_settime.c: Likewise.
69208         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
69209         * sysdeps/unix/clock_nanosleep.c: Likewise.
69210         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
69211         * rt/clock-compat.c: New file.
69212         * rt/Makefile (librt-routines): Add clock-compat and move
69213         $(clock-routines) to ...
69214         (routines): ... here, new variable.
69215         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
69216         Don't add get_clockfreq here.
69217         * rt/Versions (libc: GLIBC_2.17): New version set.
69218         Add clock_* symbols here.
69219         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
69220         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
69221         (GLIBC_2.17): Add clock_* symbols.
69222         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
69223         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
69224         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
69225         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
69226         Likewise.
69227         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
69228         Likewise.
69229         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
69230         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
69231         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
69232         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
69233         * NEWS: Mention the move.
69234
69235         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
69236         Use __open, __read, __close rather than their public counterparts.
69237         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
69238         (__get_clockfreq_via_cpuinfo): Likewise.
69239         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
69240         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
69241
69242         * config.h.in (HAVE_IFUNC): New #undef.
69243         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
69244         was successful.
69245         * configure: Regenerated.
69246
69247 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
69248
69249         * configure.in: Move READELF check to start of file.
69250         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
69251         libc_cv_asm_gnu_indirect_function in the process.
69252         * configure: Regenerated.
69253
69254 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
69255
69256         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
69257         send the output to /dev/null.
69258         (libc_cv_cc_with_libunwind): Likewise.
69259         (libc_cv_as_noexecstack): Likewise.
69260         * configure: Regenerate.
69261
69262 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
69263
69264         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
69265
69266         * posix/globtest.sh (TMPDIR): Do not set.
69267         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
69268         (testout): Likewise.
69269
69270 2012-10-24  Andreas Jaeger  <aj@suse.de>
69271
69272         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
69273         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
69274         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
69275         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
69276         posix_fadvise64, posix_fallocate64.
69277
69278         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
69279         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
69280         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
69281         Likewise.
69282         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
69283         Likewise.
69284         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
69285
69286         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
69287         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
69288         <bits/fcntl-linux.h>.
69289         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
69290
69291         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
69292         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
69293         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
69294         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
69295         [__WORDSIZE != 64]: Likewise.
69296
69297 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
69298
69299         * Makeconfig (run-built-tests): New variable.
69300         * Rules [$(cross-compiling) = yes]: Change condition to
69301         [$(run-built-tests) = no].
69302         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
69303         to [$(run-built-tests) = yes].
69304         * elf/Makefile [$(cross-compiling) = no]: Likewise.
69305         * grp/Makefile [$(cross-compiling) = no]: Likewise.
69306         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
69307         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
69308         * intl/Makefile [$(cross-compiling) = no]: Likewise.
69309         * io/Makefile [$(cross-compiling) = no]: Likewise.
69310         * libio/Makefile [$(cross-compiling) = no]: Likewise.
69311         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
69312         * misc/Makefile [$(cross-compiling) = no]: Likewise.
69313         * posix/Makefile [$(cross-compiling) = no]: Likewise.
69314         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
69315         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
69316         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
69317         * string/Makefile [$(cross-compiling) = no]: Likewise.
69318
69319         * posix/Makefile ($(objpfx)globtest.out): Pass
69320         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
69321         $(rtld-installed-name).
69322         * posix/globtest.sh (elf_objpfx): Remove variable.
69323         (rtld_installed_name): Likewise.
69324         (library_path): Likewise.
69325         (run_program_prefix): New variable.  Use for running globtest
69326         binary.
69327
69328 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
69329             Joseph Myers  <joseph@codesourcery.com>
69330
69331         * Makeconfig (host-built-program-cmd): New variable.
69332         * elf/Makefile (tst-stackguard1-ARGS): Use
69333         $(host-built-program-cmd).
69334         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
69335         (tst-spawn-ARGS): Likewise.
69336         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
69337
69338 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
69339             Jim Blandy  <jimb@codesourcery.com>
69340
69341         * Makeconfig (run-via-rtld-prefix): New variable.
69342         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
69343         (built-program-cmd): Likewise.
69344
69345 2012-10-22  Andreas Jaeger  <aj@suse.de>
69346
69347         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
69348         __O_RSYNC if it exists, otherwise to O_SYNC.
69349
69350 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
69351             Joseph Myers  <joseph@codesourcery.com>
69352
69353         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
69354         /dev/null.
69355         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
69356         from /dev/null
69357         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
69358         /dev/null.
69359
69360 2012-10-22  Andreas Jaeger  <aj@suse.de>
69361
69362         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
69363         Define always.
69364         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
69365
69366         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
69367         bits/fcntl-linux.h.
69368
69369         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
69370         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
69371
69372         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
69373         to __O_LARGEFILE.
69374         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
69375         to __O_LARGEFILE.
69376
69377 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
69378             Joseph Myers  <joseph@codesourcery.com>
69379
69380         * config.make.in (NM): New variable.
69381
69382 2012-10-21  Andreas Jaeger  <aj@suse.de>
69383
69384         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
69385         definitions and declarations that are provided by
69386         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
69387
69388 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
69389
69390         [BZ #14683]
69391         * elf/Makefile (tests-static): Add tst-leaks1-static.
69392         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
69393         ($(objpfx)tst-leaks1-static): New rule.
69394         ($(objpfx)tst-leaks1-static-mem): Likewise.
69395         (tst-leaks1-static-ENV): New macro.
69396         * elf/dl-open.c (dl_open_worker): Check the main application
69397         only if SHARED is defined.
69398         * elf/tst-leaks1-static.c: New file.
69399
69400 2012-10-20  Andreas Jaeger  <aj@suse.de>
69401
69402         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
69403         generic values for Linux.
69404         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
69405         and declarations that are provided by <bits/fcntl-linux.h> and
69406         include <bits/fcntl-linux.h>.
69407         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
69408         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
69409
69410 2012-10-20  Roland McGrath  <roland@hack.frob.com>
69411
69412         * io/fcntl.h: Move include of <bits/types.h> to the top and
69413         include it unconditionally.
69414
69415 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
69416
69417         * wcsmbs/Makefile (tests-ifunc): New variable.
69418         (tests): Add $(tests-ifunc).
69419         * wcsmbs/test-wcschr-ifunc.c: New file.
69420         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
69421         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
69422         * wcsmbs/test-wcslen-ifunc.c: Likewise.
69423         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
69424         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
69425
69426         * string/Makefile (tests-ifunc): New variable.
69427         (tests): Add $(tests-ifunc).
69428         * string/test-memccpy.c (TEST_NAME): New macro.
69429         * string/test-memchr.c (TEST_NAME): Likewise.
69430         * string/test-memcmp.c (TEST_NAME): Likewise.
69431         * string/test-memcpy.c (TEST_NAME): Likewise.
69432         * string/test-memmem.c (TEST_NAME): Likewise.
69433         * string/test-memmove.c (TEST_NAME): Likewise.
69434         * string/test-memset.c (TEST_NAME): Likewise.
69435         * string/test-rawmemchr.c (TEST_NAME): Likewise.
69436         * string/test-stpcpy.c (TEST_NAME): Likewise.
69437         * string/test-stpncpy.c (TEST_NAME): Likewise.
69438         * string/test-strcasecmp.c (TEST_NAME): Likewise.
69439         * string/test-strcasestr.c (TEST_NAME): Likewise.
69440         * string/test-strcat.c (TEST_NAME): Likewise.
69441         * string/test-strchr.c (TEST_NAME): Likewise.
69442         * string/test-strcmp.c(TEST_NAME): Likewise.
69443         * string/test-strcpy.c (TEST_NAME): Likewise.
69444         * string/test-strcspn.c (TEST_NAME): Likewise.
69445         * string/test-strlen.c (TEST_NAME): Likewise.
69446         * string/test-strncasecmp.c (TEST_NAME): Likewise.
69447         * string/test-strncmp.c (TEST_NAME): Likewise.
69448         * string/test-strncpy.c (TEST_NAME): Likewise.
69449         * string/test-strnlen.c (TEST_NAME): Likewise.
69450         * string/test-strpbrk.c (TEST_NAME): Likewise.
69451         * string/test-strrchr.c (TEST_NAME): Likewise.
69452         * string/test-strspn.c (TEST_NAME): Likewise.
69453         * string/test-strstr.c (TEST_NAME): Likewise.
69454         * string/test-bcopy-ifunc.c: New file.
69455         * string/test-bzero-ifunc.c: Likewise.
69456         * string/test-memccpy-ifunc.c: Likewise.
69457         * string/test-memchr-ifunc.c: Likewise.
69458         * string/test-memcmp-ifunc.c: Likewise.
69459         * string/test-memcpy-ifunc.c: Likewise.
69460         * string/test-memmem-ifunc.c: Likewise.
69461         * string/test-memmove-ifunc.c: Likewise.
69462         * string/test-mempcpy-ifunc.c: Likewise.
69463         * string/test-memset-ifunc.c: Likewise.
69464         * string/test-rawmemchr-ifunc.c: Likewise.
69465         * string/test-stpcpy-ifunc.c: Likewise.
69466         * string/test-stpncpy-ifunc.c: Likewise.
69467         * string/test-strcasecmp-ifunc.c: Likewise.
69468         * string/test-strcasestr-ifunc.c: Likewise.
69469         * string/test-strcat-ifunc.c: Likewise.
69470         * string/test-strchr-ifunc.c: Likewise.
69471         * string/test-strchrnul-ifunc.c: Likewise.
69472         * string/test-strcmp-ifunc.c: Likewise.
69473         * string/test-strcpy-ifunc.c: Likewise.
69474         * string/test-strcspn-ifunc.c: Likewise.
69475         * string/test-strlen-ifunc.c: Likewise.
69476         * string/test-strncasecmp-ifunc.c: Likewise.
69477         * string/test-strncat-ifunc.c: Likewise.
69478         * string/test-strncmp-ifunc.c: Likewise.
69479         * string/test-strncpy-ifunc.c: Likewise.
69480         * string/test-strnlen-ifunc.c: Likewise.
69481         * string/test-strpbrk-ifunc.c: Likewise.
69482         * string/test-strrchr-ifunc.c: Likewise.
69483         * string/test-strspn-ifunc.c: Likewise.
69484         * string/test-strstr-ifunc.c: Likewise.
69485
69486         * debug/Makefile (tests-ifunc): New variable.
69487         (tests): Add $(tests-ifunc).
69488         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
69489         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
69490         * debug/test-stpcpy_chk-ifunc.c: New file.
69491         * debug/test-strcpy_chk-ifunc.c: Likewise.
69492
69493 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
69494
69495         [BZ #13601]
69496         * elf/dl-load.c (open_verify): Retry read if the entire ELF
69497         header is not read in.
69498
69499 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
69500
69501         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
69502         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
69503         directly.  Pass built executable to script as
69504         $(built-program-cmd).
69505         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
69506         $testprogram without using LD_LIBRARY_PATH and $ldso.
69507
69508         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
69509         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
69510         $(rtld-installed-name).
69511         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
69512         (rtld_installed_name): Likewise.
69513         (library_path): Likewise.
69514         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
69515         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
69516         $(run-program-prefix) to tst-tables.sh.
69517         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
69518         it to run tst-table-from and tst-table-to.
69519         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
69520         Pass it to tst-table.sh.
69521         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
69522         $(run-program-prefix) to tst-gettext.sh.
69523         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
69524         tst-translit.sh.
69525         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
69526         tst-gettext2.sh.
69527         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
69528         to run tst-gettext.
69529         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
69530         to run tst-gettext2.
69531         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
69532         to run tst-translit.
69533         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
69534         $(run-program-prefix) to tst-mtrace.sh.
69535         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
69536         to run tst-mtrace.
69537         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
69538         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
69539         $(rtld-installed-name).
69540         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
69541         (rtld_installed_name): Likewise.
69542         (run_program_prefix): New variable.  Use it to run wordexp-test.
69543
69544         * Makeconfig (ARCH): Remove all definitions.
69545         (machine): Likewise.
69546         [ARCH]: Remove conditional code.
69547         [!objdir]: Give error.
69548         [!objdir] (objpfx): Remove.
69549         [!objdir] (common-objpfx): Likewise.
69550         [!objdir] (common-objdir): Likewise.
69551         * configure.in (config_makefile): Remove.  Hardcode Makefile in
69552         AC_CONFIG_FILES call.
69553         * configure: Regenerated.
69554
69555         [BZ #13888]
69556         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
69557         or TMPDIR.
69558         (testout): Likewise.
69559
69560         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
69561         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
69562         $(rtld-installed-name).
69563         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
69564         (rtld_installed_name): Likewise.
69565         (runit): Remove function.
69566         (run_getconf): New variable,  Use it for running getconf binary.
69567
69568 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
69569
69570         [BZ #14716]
69571         * string/test-memmem.c (check_result): New function.
69572         (do_one_test): Use it.
69573         (check1): New function.
69574         (test_main): Use it.
69575
69576 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
69577
69578         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
69579
69580 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
69581
69582         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
69583         (_G_LSEEK64): Likewise.
69584         (_G_MMAP64): Likewise.
69585         (_G_FSTAT64): Likewise.
69586         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
69587         (_G_LSEEK64): Likewise.
69588         (_G_MMAP64): Likewise.
69589         (_G_FSTAT64): Likewise.
69590         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
69591         unconditional.  Call __mmap64 directly.
69592         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
69593         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
69594         __lseek64 directly.
69595         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
69596         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
69597         __mmap64 directly.
69598         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
69599         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
69600         __lseek64 directly.
69601         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
69602         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
69603         __lseek64 directly.
69604         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
69605         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
69606         __lseek64 directly.
69607         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
69608         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
69609         __fxstat64 directly.
69610         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
69611         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
69612         unconditional.
69613         (freopen64) [!_G_OPEN64]: Remove conditional code.
69614         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
69615         unconditional.
69616         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
69617         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
69618         unconditional.
69619         (ftello64) [!_G_LSEEK64]: Remove conditional code.
69620         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
69621         unconditional.
69622         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
69623         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
69624         unconditional.
69625         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
69626         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
69627         unconditional.
69628         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
69629         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
69630         unconditional.
69631         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
69632         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
69633         unconditional.
69634         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
69635
69636 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
69637
69638         [BZ #12140]
69639         * manual/memory.texi (Malloc Tunable Parameters): Add note
69640         about free list pointers overwriting some perturb bytes.
69641         Wording suggested by Roland McGrath.
69642
69643 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
69644
69645         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
69646         (lgamma_test): Likewise.
69647         (tgamma_test): Likewise.
69648
69649 2012-10-16  Florian Weimer  <fweimer@redhat.com>
69650
69651         [BZ #14700]
69652         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
69653         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
69654
69655 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
69656
69657         * NEWS: Mention BZ #14716.
69658         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
69659         when removing AVAILABLE1_USES_J macro.
69660
69661 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
69662
69663         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
69664         (__bswap_64): __uint64_t for unsigned 64-bit int.
69665
69666 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
69667
69668         * include/string.h (memmem): Declare libc hidden alias.
69669         * string/memmem.c (memmem): Define libc hidden alias.
69670         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
69671         __read, __close instead of open, read, close.
69672
69673 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
69674
69675         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
69676         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
69677         global and hidden.
69678         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
69679         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
69680         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
69681         Likewise.
69682         (__rawmemchr_sse2): Likewise.
69683         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
69684         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
69685         (__strchr_sse2): Likewise.
69686         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
69687         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
69688         (__strcasecmp_sse2): Likewise.
69689         (__strncasecmp_sse2): Likewise.
69690         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
69691         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
69692         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
69693         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
69694         (__strrchr_sse2): Likewise.
69695         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
69696         ifunc-impl-list.c.
69697         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
69698         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
69699         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
69700         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
69701         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
69702         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
69703         * sysdeps/x86_64/multiarch/memset.S: Likewise.
69704         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
69705         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
69706         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
69707         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
69708         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
69709         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
69710         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
69711         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
69712         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
69713         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
69714         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
69715         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
69716         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
69717         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
69718         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
69719         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
69720         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
69721         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
69722         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
69723         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
69724         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
69725         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
69726         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
69727
69728         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
69729         global and hidden.
69730         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
69731         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
69732         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
69733         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
69734         Likewise.
69735         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
69736         Likewise.
69737         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
69738         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
69739         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
69740         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
69741         ifunc-impl-list.c.
69742         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
69743         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
69744         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
69745         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
69746         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
69747         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
69748         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
69749         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
69750         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
69751         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
69752         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
69753         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
69754         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
69755         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
69756         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
69757         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
69758         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
69759         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
69760         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
69761         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
69762         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
69763         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
69764         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
69765         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
69766         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
69767         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
69768         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
69769         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
69770         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
69771         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
69772         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
69773         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
69774         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
69775         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
69776         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
69777         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
69778         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
69779         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
69780         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
69781         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
69782         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
69783
69784         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
69785         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
69786         * include/ifunc-impl-list.h: New file.
69787         * misc/ifunc-impl-list.c: Likewise.
69788         * misc/Makefile (routines): Add ifunc-impl-list.
69789         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
69790         * string/test-string.h: Include <ifunc-impl-list.h>.
69791         (func_list, func_count, impl_count, impl_array) [TEST_IFUNC &&
69792         TEST_NAME]: New variables.
69793         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
69794         are defined.
69795         (test_init): Call __libc_ifunc_impl_list to initialize
69796         func_list if TEST_IFUNC and TEST_NAME are defined.
69797
69798         * string/Makefile (strop-tests): Add bcopy and bzero.
69799         * string/test-bcopy.c: New file.
69800         * string/test-bzero.c: Likewise.
69801         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
69802         defined.
69803         * string/test-memset.c: Support bzero test if TEST_BZERO is
69804         defined.
69805         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
69806         __libc_memmove.
69807         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
69808         __libc_memset.
69809         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
69810         of memset.
69811
69812 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
69813
69814         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
69815         * configure: Regenerated.
69816
69817         * Makeconfig (+link-static-before-libc): Don't include
69818         $(link-static-libc).
69819
69820         * libio/libio.h (_IO_pos_t): Remove.
69821
69822 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
69823
69824         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
69825         McGrath.
69826
69827 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
69828
69829         * crypt/crypt-entry.c: Include fips-private.h.
69830         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
69831         * crypt/md5c-test.c (main): Tolerate disabled MD5.
69832         * sysdeps/unix/sysv/linux/fips-private.h: New file.
69833         * sysdeps/generic/fips-private.h: New file, dummy fallback.
69834
69835 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
69836
69837         * crypt/crypt-private.h: Include stdbool.h.
69838         (_ufc_setup_salt_r): Return bool.
69839         * crypt/crypt-entry.c: Include errno.h.
69840         (__crypt_r): Return NULL with EINVAL for bad salt.
69841         * crypt/crypt_util.c (bad_for_salt): New.
69842         (_ufc_setup_salt_r): Check that salt is long enough and within
69843         the specified alphabet.
69844         * crypt/badsalttest.c: New file.
69845         * crypt/Makefile (tests): Add it.
69846         ($(objpfx)badsalttest): New.
69847
69848 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
69849
69850         * NEWS: Add entry for BZ #14602.
69851
69852 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
69853
69854         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
69855         type-generic.
69856         * math/libm-test.inc: Update comment listing what functions and
69857         macros are tested.
69858         (isgreater_test): New function.
69859         (isgreaterequal_test): Likewise.
69860         (isless_test): Likewise.
69861         (islessequal_test): Likewise.
69862         (islessgreater_test): Likewise.
69863         (isunordered_test): Likewise.
69864         (main): Call the new functions.
69865
69866 2012-10-09  Roland McGrath  <roland@hack.frob.com>
69867
69868         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
69869         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
69870         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
69871         * sysdeps/i386/configure: Regenerated.
69872         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
69873         * sysdeps/mach/configure: Regenerated.
69874         * sysdeps/mach/hurd/configure: Regenerated.
69875         * sysdeps/powerpc/configure: Regenerated.
69876         * sysdeps/powerpc/powerpc32/configure: Regenerated.
69877         * sysdeps/powerpc/powerpc64/configure: Regenerated.
69878         * sysdeps/s390/s390-32/configure: Regenerated.
69879         * sysdeps/s390/s390-64/configure: Regenerated.
69880         * sysdeps/sh/configure: Regenerated.
69881         * sysdeps/sparc/configure: Regenerated.
69882         * sysdeps/unix/sysv/linux/configure: Regenerated.
69883         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
69884         * sysdeps/x86_64/configure: Regenerated.
69885
69886         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
69887         defined.  Don't check if MAP is NULL.
69888
69889 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
69890
69891         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
69892         (_G_stat64): Likewise.
69893         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
69894         (_G_stat64): Likewise.
69895         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
69896         instead of struct _G_stat64.
69897         * libio/fileops.c (mmap_remap_check): Likewise.
69898         (decide_maybe_mmap): Likewise.
69899         (_IO_new_file_seekoff): Likewise.
69900         (_IO_file_stat): Likewise.
69901         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
69902         _G_off64_t.
69903         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
69904         instead of struct _G_stat64.
69905         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
69906
69907 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
69908
69909         [BZ #14602]
69910         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
69911         Replace with ...
69912         (CHECK_EOL): New macro.
69913         (two_way_short_needle): Check beginning of haystack for EOL.  Use
69914         CHECK_EOL.
69915         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
69916         Replace with CHECK_EOL.
69917         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
69918         Replace with CHECK_EOL.
69919
69920 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
69921
69922         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
69923         type-generic.
69924         * math/libm-test.inc: Update comment listing what functions and
69925         macros are tested.
69926         (finite_test): New function.
69927         (isinf_test): Likewise.
69928         (isnan_test): Likewise.
69929         (fpclassify_test): Test subnormal input.
69930         (isfinite_test): Likewise.
69931         (isnormal_test): Likewise.
69932         (main): Call the new functions.
69933
69934 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
69935
69936         [BZ #14660]
69937         * Makerules (%.dynsym): Force C locale when running
69938         $(OBJDUMP) --dynamic-syms.
69939
69940 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
69941
69942         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
69943         <stdint.h>.
69944
69945 2012-10-06  David S. Miller  <davem@davemloft.net>
69946
69947         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
69948         upper 32-bits of the length value in %o2 since we use branch-on-register
69949         tests which consider the entire 64-bit register.
69950
69951 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
69952
69953         * string/test-strstr.c (check2): Add a test for page boundary.
69954
69955 2012-10-05  David S. Miller  <davem@davemloft.net>
69956
69957         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
69958         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
69959         file.
69960         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
69961         sysdep_routines.
69962         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
69963         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
69964         and bzero when HWCAP_SPARC_CRYPTO is present.
69965
69966 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
69967
69968         [BZ #14602]
69969         * string/test-strstr.c (check2): New function.
69970         (test_main): Call check2.
69971
69972         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
69973         and bug-strchr1.
69974         * string/bug-strcasestr1.c (do_test): Moved to ...
69975         * string/test-strcasestr.c (check1): Here.  New function.
69976         (do_one_test): Break out result checking code into ...
69977         (check_result): This.  New function.
69978         (do_one_test): Call check_result.
69979         (test_main): Call check1.
69980         * string/bug-strchr1.c (do_test): Moved to ...
69981         * string/test-strchr.c (check1): Here.  New function.
69982         (do_one_test): Break out result checking code into ...
69983         (check_result): This.  New function.
69984         (do_one_test): Call check_result.
69985         (test_main): Call check1.
69986         * string/bug-strstr1.c (main): Moved to ...
69987         * string/test-strstr.c (check1): Here.  New function.
69988         (do_one_test): Break out result checking code into ...
69989         (check_result): This.  New function.
69990         (do_one_test): Call check_result.
69991         (test_main): Call check1.
69992         * string/bug-strcasestr1.c: Removed.
69993         * string/bug-strchr1.c: Likewise.
69994         * string/bug-strstr1.c: Likewise.
69995
69996         * elf/Makefile (dl-routines): Add hwcaps.
69997         * elf/dl-support.c (_dl_important_hwcaps): Removed.
69998         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
69999         (_dl_important_hwcaps): Moved to ...
70000         * elf/dl-hwcaps.c: Here.  New file.
70001         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
70002
70003         [BZ #14557]
70004         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
70005         if IS_IN_rtld isn't defined.
70006
70007         * elf/dl-support.c (_dl_sysinfo_map): New.
70008         Include "get-dynamic-info.h" and "setup-vdso.h".
70009         (_dl_non_dynamic_init): Call setup_vdso.
70010         * elf/dynamic-link.h: Don't include <assert.h>.
70011         (elf_get_dynamic_info): Moved to ...
70012         * elf/get-dynamic-info.h: Here.  New file.
70013         * elf/dynamic-link.h: Include "get-dynamic-info.h".
70014         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
70015         * elf/setup-vdso.h: Here.  New file.
70016         * elf/rtld.c: Include "setup-vdso.h".
70017         (dl_main): Call setup_vdso.
70018
70019 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
70020
70021         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
70022         creal in comment listing functions tested.  List finite, isinf,
70023         isnan, isless, islessequal, isgreater, isgreaterequal,
70024         islessgreater, isunordered, lgamma_r and pow10 as functions and
70025         macros not tested.  Mention which functions not tested are aliases
70026         for other functions.  Fix typo.  Note that signs of NaNs are not
70027         tested.
70028
70029         * scripts/config.guess: Update from config.git.
70030         * scripts/config.sub: Likewise.
70031
70032 2012-10-04  Roland McGrath  <roland@hack.frob.com>
70033
70034         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
70035         * misc/madvise.c (madvise): Renamed to __madvise.
70036         Make madvise a weak alias.
70037         * include/sys/mman.h: Declare __madvise.
70038         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
70039         * sysdeps/unix/syscalls.list
70040         (madvise): Make __madvise the strong name, and madvise a weak alias.
70041         * sysdeps/unix/sysv/linux/syscalls.list
70042         (madvise, mmap): Remove redundant entries.
70043         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
70044         * malloc/malloc.c (mtrim): Likewise.
70045         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
70046
70047 2012-10-03  Roland McGrath  <roland@hack.frob.com>
70048
70049         * sysdeps/mach/hurd/dl-cache.c: File removed.
70050         * config.h.in (USE_LDCONFIG): New #undef.
70051         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
70052         * configure: Regenerated.
70053         * elf/Makefile (dl-routines): Add dl-cache only under
70054         [$(use-ldconfig) = yes].
70055         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
70056         cache on [USE_LDCONFIG].
70057         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
70058         [USE_LDCONFIG].
70059         * elf/rtld.c (dl_main): Likewise.
70060
70061 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
70062
70063         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
70064         _SC_LEVEL4_CACHE_LINESIZE.
70065
70066 2012-10-03  Roland McGrath  <roland@hack.frob.com>
70067
70068         * sysdeps/unix/bsd/confstr.h: File removed.
70069
70070 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
70071
70072         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
70073         sys/sdt-config.h.
70074
70075 2012-10-02  Roland McGrath  <roland@hack.frob.com>
70076
70077         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
70078         Make 'mapoff' field ElfW(Off) rather than off_t.
70079
70080 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
70081
70082         * nscd/Makefile: Remove nscd-cflags and all its users.
70083         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
70084         (CFLAGS-nonlib): Add compiler flags for nscd modules.
70085
70086         [BZ #10631]
70087         * malloc.c (malloc_printerr): Clarify error message.
70088
70089 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
70090
70091         [BZ #14648]
70092         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
70093         Set bit_FMA_Usable if FMA is supported.
70094         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
70095         macro.
70096         (bit_FMA4_Usable): Updated.
70097         (index_FMA_Usable): New macro.
70098         (CPUID_FMA): Likewise.
70099         (HAS_FMA): Defined with bit_FMA_Usable.
70100
70101 2012-10-01  Roland McGrath  <roland@hack.frob.com>
70102
70103         * bits/types.h (__swblk_t): Type removed.
70104         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
70105         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
70106         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
70107         (__SWBLK_T_TYPE): Likewise.
70108         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
70109         (__SWBLK_T_TYPE): Likewise.
70110         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
70111         (__SWBLK_T_TYPE): Likewise.
70112         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
70113         (__SWBLK_T_TYPE): Likewise.
70114
70115 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
70116             Honza Horak <hhorak@redhat.com>
70117
70118         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
70119         (xdr_mapname): Use YPMAXMAP as maxsize.
70120         (xdr_peername): Use YPMAXPEER as maxsize.
70121         (xdr_keydat): Use YPAXRECORD as maxsize.
70122         (xdr_valdat): Use YPMAXRECORD as maxsize.
70123
70124 2012-10-01  Roland McGrath  <roland@hack.frob.com>
70125
70126         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
70127
70128         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
70129         * csu/init-first.c: ... here.
70130         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
70131         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
70132         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
70133         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
70134         * sysdeps/i386/init-first.c: File removed.
70135         * sysdeps/sh/init-first.c: File removed.
70136
70137 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
70138
70139         [BZ #14645]
70140         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
70141         if x * y might underflow to zero and z is zero.
70142         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
70143         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
70144         * math/libm-test.inc (min_subnorm_value): New variable.
70145         (fma_test): Add more tests.
70146         (fma_test_towardzero): Likewise.
70147         (fma_test_downward): Likewise.
70148         (fma_test_upward): Likewise.
70149         (initialize): Set min_subnorm_value.
70150
70151 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
70152
70153         [BZ #14638]
70154         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
70155         0 + 0.
70156         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
70157         mode for addition resulting in exact zero.
70158         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
70159         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
70160         exact 0 + 0.
70161         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
70162         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
70163         * math/libm-test.inc (fma_test): Add more tests.
70164         (fma_test_towardzero): New function.
70165         (fma_test_downward): Likewise.
70166         (fma_test_upward): Likewise.
70167         (main): Call the new functions.
70168
70169 2012-09-28  David S. Miller  <davem@davemloft.net>
70170
70171         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
70172
70173 2012-09-28  Roland McGrath  <roland@hack.frob.com>
70174
70175         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
70176         instead of SIGALRM.
70177
70178         * sysdeps/gnu/_G_config.h: Moved to ...
70179         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
70180         * sysdeps/mach/hurd/_G_config.h: Moved to ...
70181         * sysdeps/generic/_G_config.h: ... here.
70182
70183         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
70184
70185         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
70186
70187         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
70188         Conditionalize target on [libnss_test1.so-version].
70189
70190         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
70191
70192         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
70193         (elfobjdir): Move out of conditionals.
70194
70195         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
70196         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
70197         (__nss_lookup_function): Conditionalize label remove_from_tree on
70198         [!DO_STATIC_NSS || SHARED], matching its only use.
70199
70200 2012-09-28  David S. Miller  <davem@davemloft.net>
70201
70202         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
70203         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
70204         file.
70205         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
70206         sysdep_routines.
70207         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
70208         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
70209         when HWCAP_SPARC_CRYPTO is present.
70210
70211 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
70212
70213         * io/tst-mknodat.c: Create a FIFO instead of a socket.
70214
70215 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
70216
70217         [BZ #6530]
70218         * stdio-common/vfprintf.c (process_string_arg): Revert
70219         2000-07-22 change.
70220
70221 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
70222
70223         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
70224         for testcase.
70225         * stdio-common/tst-sprintf.c: Include <locale.h>
70226         (main): Test sprintf's handling of incomplete multibyte
70227         characters.
70228
70229 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
70230
70231         * elf/dl-runtime.c (VERSYMIDX): Removed.
70232         * elf/dl-version.c (VERSYMIDX): Likewise.
70233         * elf/do-rel.h (VERSYMIDX): Likewise.
70234         (VALIDX): Likewise.
70235         * elf/dynamic-link.h (VERSYMIDX): Likewise.
70236         * elf/rtld.c (VALIDX): Likewise.
70237         (ADDRIDX): Likewise.
70238         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
70239         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
70240         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
70241         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
70242         (VALIDX): Likewise.
70243         (ADDRIDX): Likewise.
70244
70245 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
70246
70247         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
70248
70249 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
70250
70251         [BZ #11438]
70252         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
70253         to global scope.
70254         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
70255         addresses are in the same scope as 192.0.2/24.
70256         * posix/gai.conf: Document new scope table defaults.
70257
70258 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
70259
70260         [BZ #5298]
70261         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
70262         for ftell.  Compute offsets from write pointers instead.
70263         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
70264
70265 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
70266
70267         [BZ #14543]
70268         * libio/Makefile (tests): New test case tst-fseek.
70269         * libio/tst-fseek.c: New test case to verify that fseek/ftell
70270         combination works in wide mode.
70271         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
70272         state when the external buffer state changes.
70273
70274 2012-09-27  David S. Miller  <davem@davemloft.net>
70275
70276         [BZ #14376]
70277         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
70278         pass reloc->r_addend in as the 'high' argument to
70279         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
70280
70281         * sysdeps/sparc/fpu/libm-test-ulps: Update.
70282
70283 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
70284
70285         * rt/tst-aio2.c: Include <pthread.h>.
70286         * rt/tst-aio3.c: Likewise.
70287
70288 2012-09-27  Steve Ellcey  <sellcey@mips.com>
70289
70290         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
70291
70292 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
70293
70294         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
70295         contents on [SHARED].
70296
70297 2012-09-26  Marek Polacek  <polacek@redhat.com>
70298
70299         [BZ #14530]
70300         [BZ #13741]
70301         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
70302         for C++ and GCC <4.3 as well as for non GCC compilers.
70303
70304 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
70305
70306         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
70307
70308 2012-09-25  Roland McGrath  <roland@hack.frob.com>
70309
70310         * Makefile.in (all, install): Declare with .PHONY.
70311         Reported by Michael Hope <michael.hope@linaro.org>.
70312
70313 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
70314
70315         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
70316         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
70317         system header.
70318         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
70319         Likewise.
70320         (sydep_routines): Add the new and the internal functions.
70321         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
70322         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
70323         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
70324         (GLIBC_2.17): Add the new function.
70325         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
70326         (GLIBC_2.17): Likewise.
70327         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
70328         (GLIBC_2.17): Likewise.
70329         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
70330         (GLIBC_2.17): Likewise.
70331         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
70332
70333 2012-09-25  Alan Modra  <amodra@gmail.com>
70334
70335         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
70336         Add release barrier before setting once_control to say
70337         initialisation is done.  Add hints on lwarx.  Use macro in
70338         place of isync.
70339         (clear_once_control): Add release barrier.
70340
70341 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
70342
70343         [BZ #13629]
70344         * math/s_clog.c (__clog): Handle more values close to |z| = 1
70345         specially.
70346         * math/s_clog10.c (__clog10): Likewise.
70347         * math/s_clog10f.c (__clog10f): Likewise.
70348         * math/s_clog10l.c (__clog10l): Likewise.
70349         * math/s_clogf.c (__clogf): Likewise.
70350         * math/s_clogl.c (__clogl): Likewise.
70351         * math/Makefile (libm-calls): Add x2y2m1.
70352         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
70353         (__x2y2m1): Likewise.
70354         (__x2y2m1l): Likewise.
70355         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
70356         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
70357         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
70358         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
70359         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
70360         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
70361         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
70362         * sysdeps/i386/fpu/libm-test-ulps: Update.
70363         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
70364
70365         [BZ #14621]
70366         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
70367         int as type of variable DEPTH.
70368         (glob): Use size_t instead of int as type of variables NEWCOUNT
70369         and OLD_PATHC.
70370
70371 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70372
70373         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
70374         Add s_sincosf-sse2.
70375         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
70376         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
70377         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
70378         macros for using routine as __sincosf_ia32.
70379         Use macro for function declaration and weak_alias.
70380         * sysdeps/i386/fpu/libm-test-ulps: Update.
70381
70382         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
70383         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
70384
70385         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
70386         subnormal argument.
70387         * math/s_cexpf.c (__cexpf): Likewise.
70388         * math/s_csinf.c (__csinf): Likewise.
70389         * math/s_csinhf.c (__csinhf): Likewise.
70390         * math/s_ctanf.c (__ctanf): Likewise.
70391         * math/s_ctanhf.c (__ctanhf): Likewise.
70392         * math/s_ccosh.c (__ccoshf): Likewise.
70393         * math/s_cexp.c (__cexpl): Likewise.
70394         * math/s_csin.c (__csin): Likewise.
70395         * math/s_csinh.c (__csinh): Likewise.
70396         * math/s_ctan.c (__ctan): Likewise.
70397         * math/s_ctanh.c (ctanh): Likewise.
70398         * math/s_ccoshl.c (__ccoshl): Likewise.
70399         * math/s_cexpl.c (__cexpl): Likewise.
70400         * math/s_csinl.c (__csinl): Likewise.
70401         * math/s_csinhl.c (__csinhl): Likewise.
70402         * math/s_ctanl.c (__ctanl): Likewise.
70403         * math/s_ctanhl.c (__ctanhl): Likewise.
70404
70405 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
70406
70407         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
70408         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
70409         (_IO_off_t): Define to __off_t, not _G_off_t.
70410         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
70411         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
70412         (_IO_wint_t): Define to wint_t, not _G_wint_t.
70413         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
70414         type of __dummy and __dummy2 fields.
70415         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
70416         (_G_ssize_t): Likewise.
70417         (_G_off_t): Likewise.
70418         (_G_pid_t): Likewise.
70419         (_G_uid_t): Likewise.
70420         (_G_wchar_t): Likewise.
70421         (_G_wint_t): Likewise.
70422         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
70423         (_G_ssize_t): Likewise.
70424         (_G_off_t): Likewise.
70425         (_G_pid_t): Likewise.
70426         (_G_uid_t): Likewise.
70427         (_G_wchar_t): Likewise.
70428         (_G_wint_t): Likewise.
70429         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
70430         (_G_ssize_t): Likewise.
70431         (_G_off_t): Likewise.
70432         (_G_pid_t): Likewise.
70433         (_G_uid_t): Likewise.
70434         (_G_wchar_t): Likewise.
70435         (_G_wint_t): Likewise.
70436
70437 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
70438
70439         * malloc/arena.c: Include malloc-sysdep.h.
70440         (shrink_heap): Use check_may_shrink_heap to decide if madvise
70441         is sufficient to shrink the heap or an unmap is needed.
70442         * sysdeps/generic/malloc-sysdep.h: New file.  Define
70443         new function check_may_shrink_heap.
70444         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
70445         new function check_may_shrink_heap.
70446
70447 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
70448
70449         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
70450         comments.
70451
70452 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
70453
70454         * catgets/test-gencat.sh: Add "set -e".
70455         * elf/tst-pathopt.sh: Likewise.
70456         * grp/tst_fgetgrent.sh: Likewise.
70457         * iconvdata/run-iconv-test.sh: Likewise.
70458         * intl/tst-gettext.sh: Likewise.
70459         * intl/tst-gettext2.sh: Likewise.
70460         * intl/tst-gettext4.sh: Likewise.
70461         * intl/tst-gettext6.sh: Likewise.
70462         * intl/tst-translit.sh: Likewise.
70463         * io/ftwtest-sh: Likewise.
70464         * libio/test-freopen.sh: Likewise.
70465         * malloc/tst-mtrace.sh: Likewise.
70466         * posix/globtest.sh: Likewise.
70467         * posix/tst-getconf.sh: Likewise.
70468         * posix/wordexp-tst.sh: Likewise.
70469         * stdio-common/tst-printf.sh: Likewise.
70470         * stdio-common/tst-unbputc.sh: Likewise.
70471         * stdlib/tst-fmtmsg.sh: Likewise.
70472         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
70473         * catgets/Makefile: Do not specify -e option when running
70474         testsuite shell scripts.
70475         * elf/Makefile: Likewise.
70476         * grp/Makefile: Likewise.
70477         * iconvdata/Makefile: Likewise.
70478         * intl/Makefile: Likewise.
70479         * io/Makefile: Likewise.
70480         * libio/Makefile: Likewise.
70481         * malloc/Makefile: Likewise.
70482         * posix/Makefile: Likewise.
70483         * stdio-common/Makefile: Likewise.
70484         * stdlib/Makefile: Likewise.
70485         * sysdeps/x86_64/Makefile: Likewise.
70486
70487         * io/ftwtest-sh: Add copyright header.
70488         * posix/globtest.sh: Likewise.
70489         * posix/tst-getconf.sh: Likewise.
70490         * posix/wordexp-tst.sh: Likewise.
70491         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
70492
70493 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
70494
70495         [BZ #13679]
70496         * Makeconfig (+link): Defined as $(+link-static) if
70497         $(build-shared) isn't yes.
70498         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
70499         isn't yes.
70500         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
70501
70502         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
70503
70504         [BZ #14562]
70505         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
70506         new chunk size with MALLOC_ALIGN_MASK.
70507
70508 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
70509
70510         [BZ #5044]
70511         * stdio-common/printf_fphex.c: Include <stdbool.h> and
70512         <rounding-mode.h>.
70513         (__printf_fphex): Determine rounding using get_rounding_mode and
70514         round_away.
70515         * stdio-common/tst-printf-round.c (struct hex_test): New
70516         structure.
70517         (hex_tests): New variable.
70518         (test_hex_in_one_mode): New function.
70519         (do_test): Also run tests for hex float output.
70520
70521 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
70522
70523         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
70524         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
70525         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
70526         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
70527         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
70528         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
70529         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
70530         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
70531
70532 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
70533
70534         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
70535         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
70536         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
70537         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
70538
70539 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
70540
70541         [BZ #14579]
70542         * elf/rtld.c (dl_main): Limit the check for self loading to normal
70543         mode only.
70544         * elf/tst-rtld-load-self.sh: New test.
70545         * elf/Makefile: Run it.
70546
70547 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
70548
70549         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
70550         (tst-writev-ENV): Remove.
70551         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
70552
70553 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
70554
70555         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
70556
70557 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
70558
70559         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
70560         unconditional.
70561         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
70562         Likewise.
70563         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
70564         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
70565         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
70566         Likewise.
70567
70568 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
70569
70570         [BZ #14587]
70571         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
70572         * config.make.in (have-cpp-asm-debuginfo): Removed.
70573         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
70574         * configure: Regenerated.
70575
70576 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
70577
70578         [BZ #5044]
70579         * stdio-common/printf_fp.c: Include <stdbool.h> and
70580         <rounding-mode.h>.
70581         (___printf_fp): Determine rounding using get_rounding_mode and
70582         round_away.
70583         * stdio-common/tst-printf-round.c: New file.
70584         * stdio-common/Makefile (tests): Add tst-printf-round.
70585         (link-libm): New variable.
70586         ($(objpfx)tst-printf-round): Depend in $(link-libm).
70587
70588 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
70589
70590         [BZ #14576]
70591         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
70592         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
70593         Likewise.
70594         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
70595         Likewise.
70596
70597 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
70598
70599         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
70600         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
70601         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
70602         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
70603
70604 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
70605
70606         [BZ #14518]
70607         * include/rounding-mode.h: New file.
70608         * sysdeps/generic/get-rounding-mode.h: Likewise.
70609         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
70610         * stdlib/strtod_l.c: Include <rounding-mode.h>.
70611         (MAX_VALUE): New macro.
70612         (MIN_VALUE): Likewise.
70613         (overflow_value): New function.
70614         (underflow_value): Likewise.
70615         (round_and_return): Use overflow_value and underflow_value to
70616         determine return values in overflow and underflow cases.  Use
70617         round_away to determine rounding depending on rounding mode.
70618         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
70619         determine return values in overflow and underflow cases.
70620         * stdlib/tst-strtod-round.c: Include <fenv.h>.
70621         (struct test_results): New structure.
70622         (struct test): Use struct test_results to store expected results
70623         for all rounding modes.
70624         (TEST): Include expected results for all rounding modes.
70625         (test_in_one_mode): New function.
70626         (do_test): Use test_in_one_mode to compute and check results.
70627         Check results for all rounding modes.
70628         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
70629         $(link-libm).
70630
70631 2012-12-09  Allan McRae  <allan@archlinux.org>
70632
70633         * sysdeps/i386/fpu/libm-test-ulps: Update
70634
70635 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
70636
70637         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
70638         (_G_int32_t): Likewise.
70639         (_G_uint16_t): Likewise.
70640         (_G_uint32_t): Likewise.
70641         (_G_HAVE_BOOL): Likewise.
70642         (_G_HAVE_ATEXIT): Likewise.
70643         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
70644         (_G_HAVE_IO_FILE_OPEN): Likewise.
70645         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
70646         (_G_int32_t): Likewise.
70647         (_G_uint16_t): Likewise.
70648         (_G_uint32_t): Likewise.
70649         (_G_HAVE_BOOL): Likewise.
70650         (_G_HAVE_ATEXIT): Likewise.
70651         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
70652         (_G_HAVE_IO_FILE_OPEN): Likewise.
70653         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
70654         (_G_int32_t): Likewise.
70655         (_G_uint16_t): Likewise.
70656         (_G_uint32_t): Likewise.
70657         (_G_HAVE_BOOL): Likewise.
70658         (_G_HAVE_ATEXIT): Likewise.
70659         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
70660         (_G_HAVE_IO_FILE_OPEN): Likewise.
70661
70662 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
70663
70664         * csu/libc-tls.c: Update copyright years.
70665
70666 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
70667
70668         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
70669         [!_G_USING_THUNKS]: Remove conditional code.
70670         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
70671         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
70672
70673         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
70674         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
70675         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
70676         (_G_VTABLE_LABEL_PREFIX): Likewise.
70677         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
70678         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
70679         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
70680         (_G_VTABLE_LABEL_PREFIX): Likewise.
70681         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
70682         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
70683         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
70684         (_G_VTABLE_LABEL_PREFIX): Likewise.
70685         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
70686
70687 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
70688
70689         * libio/Makefile: Include ../Makeconfig before tests.
70690         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
70691         only if $(build-shared) is yes.
70692
70693         * iconv/gconv_db.c: Update copyright years.
70694
70695 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70696
70697         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
70698         unwind info if defined PIC. Fix special cases description.
70699         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
70700
70701         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
70702         DP_HI_MASK entry.
70703         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
70704
70705 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
70706
70707         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
70708
70709         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
70710         is NULL.
70711
70712         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
70713         (LDLIBS-tst-chk4): This.
70714         (LDFLAGS-tst-chk5): Renamed to ...
70715         (LDLIBS-tst-chk5): This.
70716         (LDFLAGS-tst-chk6): Renamed to ...
70717         (LDLIBS-tst-chk6): This.
70718         (LDFLAGS-tst-lfschk4): Renamed to ...
70719         (LDLIBS-tst-lfschk4): This.
70720         (LDFLAGS-tst-lfschk5): Renamed to ...
70721         (LDLIBS-tst-lfschk5): This.
70722         (LDFLAGS-tst-lfschk6): Renamed to ...
70723         (LDLIBS-tst-lfschk6): This.
70724
70725         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
70726         on $(common-objpfx)soversions.mk.
70727
70728 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
70729
70730         [BZ #10014]
70731         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
70732         example host name.
70733
70734 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
70735
70736         * malloc/arena.c (arena_get_retry): New function that gets
70737         another arena for the caller to try its request on.
70738         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
70739         current arena cannot fulfill the request.
70740         (__libc_memalign): Likewise.
70741         (__libc_memalign): Likewise.
70742         (__libc_pvalloc): Likewise.
70743         (__libc_calloc): Likewise.
70744
70745 2012-09-05  John Tobey  <john.tobey@gmail.com>
70746
70747         [BZ #13542]
70748         * manual/arith.texi (Operations on Complex): Fix description
70749         of carg branch cut.
70750
70751 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
70752
70753         [BZ #10014]
70754         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
70755         host name.
70756
70757         [BZ #10038]
70758         * manual/memory.texi (Memory): Make order of menu items match
70759         order of sections.
70760
70761 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
70762
70763         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
70764         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
70765         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
70766
70767 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
70768
70769         * csu/libc-tls.c (static_dtv): Renamed to ...
70770         (_dl_static_dtv): This.  Make it global.
70771         (_dl_initial_dtv): Removed.
70772         (__libc_setup_tls): Updated.
70773         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
70774         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
70775         DL_INITIAL_DTV.
70776
70777 2012-09-06  Petr Machata  <pmachata@redhat.com>
70778
70779         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
70780         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
70781         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
70782         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
70783
70784 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
70785
70786         [BZ #14545]
70787         * csu/libc-tls.c (_dl_initial_dtv): New variable.
70788         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
70789         freeing dtv[-1].
70790
70791 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
70792
70793         [BZ #14544]
70794         * Makeconfig (link-static-before-libc): Replace $(+prector)
70795         with $(+prectorT).
70796         (link-static-after-libc): Replace $(+postctor) with
70797         $(+postctorT).
70798         (link-bounded): Replace $(+prector)/$(+postctor) with
70799         $(+prectorT)/$(+postctorT).
70800         (+prectorT): New macro.
70801         (+postctorT): Likewise.
70802
70803 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
70804
70805         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
70806         (round_str): Handle values above the maximum for IBM long double
70807         as inexact.
70808         * stdlib/tst-strtod-round.c (tests): Regenerated.
70809
70810 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
70811
70812         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
70813         assembler flag.
70814         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
70815         zarch_nohighgprs around the zarch optimized routines.
70816         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
70817         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
70818         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
70819         for zarch.
70820
70821 2012-09-05  David S. Miller  <davem@davemloft.net>
70822
70823         * sysdeps/sparc/fpu/libm-test-ulps: Update.
70824
70825         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE)
70826         (HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
70827         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
70828         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
70829         entries.
70830
70831 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
70832
70833         * malloc/arena.c: Fold copyright years.
70834         * malloc/mcheck.c, malloc/memusage.c: Likewise.
70835
70836 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
70837
70838         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
70839
70840 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
70841
70842         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
70843
70844 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
70845
70846         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
70847         change internal state upon failure.
70848
70849 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
70850
70851         * malloc/mcheck.c (mcheck_check_all): Fix typo.
70852         * malloc/memusage.c (mmap): Likewise.
70853         (mmap64, mremap): Likewise.  Adjust name in comment.
70854
70855 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
70856
70857         * libio/fileops.c: Fix typos in comments.
70858         * libio/oldfileops.c: Likewise.
70859         * libio/wfileops.c: Likewise.
70860
70861 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
70862
70863         [BZ #1349]
70864         * malloc/Makefile (tests): Add tst-malloc-usable test case.
70865         (tst-malloc-usable-ENV): Set environment for test case.
70866         * malloc/hooks.c (malloc_check_get_size): New function to get
70867         requested size.
70868         * malloc/malloc.c (musable): Use malloc_check_get_size.
70869         * malloc/tst-malloc-usable.c: New test case.
70870
70871 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
70872
70873         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
70874
70875 2012-09-05  Allan McRae  <allan@archlinux.org>
70876
70877         [BZ #13966]
70878         * configure.in (CXX_SYSINCLUDES): Use compiler output to
70879         determine header location.
70880         * configure: Regenerated.
70881
70882 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
70883
70884         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
70885         float format.
70886         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
70887         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
70888         format.
70889         (test): Regenerate.
70890
70891 2012-09-04  David S. Miller  <davem@davemloft.net>
70892
70893         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
70894         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
70895         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
70896
70897 2012-09-04  Florian Weimer  <fweimer@redhat.com>
70898
70899         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
70900         failures.
70901
70902         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
70903
70904 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
70905
70906         [BZ #9914]
70907         * libio/iogetdelim.c: Include <limits.h>.
70908         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
70909         + len + 1 would overflow.
70910
70911 2012-09-03  Andreas Jaeger  <aj@suse.de>
70912
70913         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
70914         * sysdeps/i386/fpu/libm-test-ulps: Update.
70915
70916 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70917
70918         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
70919         Add s_sinf-sse2, s_conf-sse2.
70920
70921         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
70922         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
70923         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
70924         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
70925
70926         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
70927         for using routine as __sinf_ia32.
70928         Use macro for function declaration and weak_alias.
70929         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
70930         for using routine as __cosf_ia32.
70931         Use macro for function declaration and weak_alias.
70932
70933         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
70934         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
70935
70936         * sysdeps/x86_64/fpu/s_sinf.S: New file.
70937         * sysdeps/x86_64/fpu/s_cosf.S: New file.
70938         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
70939
70940         * math/libm-test.inc (cos_test): Add more test cases.
70941         (sin_test): Likewise.
70942         (sincos_test): Likewise.
70943
70944 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
70945
70946         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
70947         (IFUNC_RESOLVE): Make pointers to the specialized implementations
70948         hidden.
70949         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
70950
70951 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
70952
70953         [BZ #14538]
70954         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
70955         first element of the GOT.
70956         (elf_machine_load_address): Return the difference between
70957         the runtime address of _DYNAMIC and elf_machine_dynamic ().
70958
70959 2012-09-01  Allan McRae  <allan@archlinux.org>
70960
70961         [BZ #13412]
70962         * configure.in (AWK): Require gawk version 3.0 or later.
70963         * configure: Regenerated.
70964
70965 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
70966
70967         * sysdeps/unix/sysv/linux/kernel-features.h
70968         (__ASSUME_POSIX_CPU_TIMERS): Remove.
70969         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
70970         [__NR_clock_getres]: Make code unconditional.
70971         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
70972         (clock_getcpuclockid): Remove code left unreachable by removal of
70973         conditionals.
70974         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
70975         code unconditional.
70976         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
70977         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
70978         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
70979         Make code unconditional.
70980         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
70981         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
70982         * sysdeps/unix/sysv/linux/clock_settime.c
70983         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
70984         conditional code.
70985         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
70986         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
70987
70988 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
70989
70990         [BZ #14476]
70991         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
70992         scripts/test-installation.pl.
70993
70994         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
70995         and $ld_so_version if it is set.
70996
70997 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
70998
70999         [BZ #14516]
71000         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
71001         failure if reading from procfs failed.
71002         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
71003
71004 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
71005
71006         * sysdeps/unix/sysv/linux/kernel-features.h
71007         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
71008         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
71009         Remove conditional code.
71010         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
71011         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
71012         Remove conditional code.
71013         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
71014         * sysdeps/unix/sysv/linux/i386/fxstat.c
71015         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
71016         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
71017         * sysdeps/unix/sysv/linux/i386/fxstatat.c
71018         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
71019         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
71020         * sysdeps/unix/sysv/linux/i386/lxstat.c
71021         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
71022         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
71023         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
71024         Remove conditional code.
71025         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
71026         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
71027         Remove conditional code.
71028         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
71029         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
71030         <kernel-features.h>.
71031         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
71032         Remove.
71033         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
71034         Remove conditional code.
71035         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
71036         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
71037         Remove conditional.
71038
71039 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
71040
71041         [BZ #5400]
71042         * NEWS: Add fixed bug number.
71043
71044 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
71045
71046         [BZ #14519]
71047         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
71048         underflowing exponent in case of negative sign.
71049         * stdlib/tst-strtod-round-data: Add more tests.
71050         * stdlib/tst-strtod-round.c (tests): Regenerated.
71051
71052         [BZ #3479]
71053         * stdlib/strtod_l.c (NDIG): Remove.
71054         (HEXNDIG): Likewise.
71055         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
71056         smallest representable value.
71057         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
71058         lie within an exact representation of 1/2 ulp of the result.
71059         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
71060         unconditionally.
71061         (TENS_P9_IDX): Define unconditionally.
71062         (TENS_P9_SIZE): Likewise.
71063         (TENS_P10_IDX): Likewise.
71064         (TENS_P10_SIZE): Likewise.
71065         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
71066         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
71067         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
71068         entries for 10^2^13 and 10^2^14.
71069         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
71070         (TENS_P13_IDX): Define.
71071         (TENS_P13_SIZE): Likewise.
71072         (TENS_P14_IDX): Likewise.
71073         (TENS_P14_SIZE): Likewise.
71074         (_fpioconst_pow10): Change array size to
71075         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
71076         unconditional.
71077         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
71078         1024]: Add entries for 10^2^13 and 10^2^14.
71079         [LAST_POW10 > _LAST_POW10]: Remove #error.
71080         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
71081         (_fpioconst_pow10): Change array size to
71082         FPIOCONST_POW10_ARRAY_SIZE.
71083         * stdlib/gen-fpioconst.c: New file.
71084         * stdlib/gen-tst-strtod-round.c: Likewise.
71085         * stdlib/tst-strtod-round-data: Likewise.
71086         * stdlib/tst-strtod-round.c: Likewise.
71087         * stdlib/Makefile (tests): Add tst-strtod-round.
71088
71089         [BZ #14459]
71090         * stdlib/strtod_l.c: Include <stdint.h>.
71091         (NDEBUG): Do not define.
71092         (round_and_return): Change EXPONENT parameter to type intmax_t.
71093         Rearrange calculations to avoid internal overflow possibilities.
71094         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
71095         Rearrange calculations to avoid internal overflow possibilities.
71096         Assert that number fits inside MPNSIZE limbs.
71097         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
71098         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
71099         calculations and add assertions to avoid internal overflow
71100         possibilities.  Add casts to avoid signed/unsigned operations.
71101         * stdlib/tst-strtod-overflow.c: New file.
71102         * stdlib/Makefile (tests): Add tst-strtod-overflow.
71103
71104 2012-08-25  Marek Polacek  <polacek@redhat.com>
71105
71106         * time/time.h: Fix some typos in comments.
71107
71108 2012-08-23  Roland McGrath  <roland@hack.frob.com>
71109
71110         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
71111         * posix/tst-rfc3484-2.c: Likewise.
71112         * posix/tst-rfc3484-3.c: Likewise.
71113
71114 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
71115
71116         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
71117         (EF_ARM_ABI_FLOAT_HARD): Likewise.
71118
71119 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
71120
71121         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
71122         #include of fxstatat64.c.
71123
71124 2012-08-22  Roland McGrath  <roland@hack.frob.com>
71125
71126         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
71127         * shadow/getspent_r.c: Likewise.
71128         * shadow/getspnam.c: Likewise.
71129         * shadow/getspnam_r.c: Likewise.
71130         * gshadow/getsgent.c: Likewise.
71131         * gshadow/getsgent_r.c: Likewise.
71132         * gshadow/getsgnam.c: Likewise.
71133         * gshadow/getsgnam_r.c: Likewise.
71134         * inet/getnetbyad.c: Likewise.
71135         * inet/getnetbyad_r.c: Likewise.
71136         * inet/getnetbynm.c: Likewise.
71137         * inet/getnetbynm_r.c: Likewise.
71138         * inet/getnetent.c: Likewise.
71139         * inet/getnetent_r.c: Likewise.
71140         * inet/getproto.c: Likewise.
71141         * inet/getproto_r.c: Likewise.
71142         * inet/getprtent.c: Likewise.
71143         * inet/getprtent_r.c: Likewise.
71144         * inet/getprtname.c: Likewise.
71145         * inet/getprtname_r.c: Likewise.
71146         * inet/getrpcbyname.c: Likewise.
71147         * inet/getrpcbyname_r.c: Likewise.
71148         * inet/getrpcbynumber.c: Likewise.
71149         * inet/getrpcbynumber_r.c: Likewise.
71150         * inet/getrpcent.c: Likewise.
71151         * inet/getrpcent_r.c: Likewise.
71152         * inet/getaliasent.c: Likewise.
71153         * inet/getaliasent_r.c: Likewise.
71154         * inet/getaliasname.c: Likewise.
71155         * inet/getaliasname_r.c: Likewise.
71156         * nscd/getgrgid_r.c: Likewise.
71157         * nscd/getgrnam_r.c: Likewise.
71158         * nscd/gethstbyad_r.c: Likewise.
71159         * nscd/gethstbynm3_r.c: Likewise.
71160         * nscd/getpwnam_r.c: Likewise.
71161         * nscd/getpwuid_r.c: Likewise.
71162         * nscd/getsrvbynm_r.c: Likewise.
71163         * nscd/getsrvbypt_r.c: Likewise.
71164         * nscd/gai.c: Likewise.
71165
71166         * configure.in (build_nscd): New substituted variable, set
71167         by --disable-build-nscd and defaults to $use_nscd.
71168         * configure: Regenerated.
71169         * config.make.in (build-nscd): New substituted variable.
71170         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
71171         Change conditional to require [$(build-nscd) = yes] as well.
71172         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
71173
71174         [BZ #13696]
71175         * configure.in (use_nscd): New substituted variable, set by
71176         --disable-nscd.  If enabled, define USE_NSCD.
71177         * configure: Regenerated.
71178         * config.h.in: Add USE_NSCD.
71179         * config.make.in (use-nscd): New substituted variable.
71180         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
71181         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
71182         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
71183         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
71184         (CFLAGS-getgrnam_r.c): Likewise.
71185         (CFLAGS-initgroups.c): Likewise.
71186         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
71187         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
71188         Variables removed.
71189         * inet/getnetgrent_r.c
71190         (nscd_setnetgrent): New function, broken out of ...
71191         (setnetgrent): ... here.  Call it.
71192         (innetgr): Conditionalize nscd bits on [USE_NSCD].
71193         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
71194         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
71195         * nscd/Makefile (routines, aux): Move definitions after include of
71196         Makeconfig.  Conditionalize on [$(use-nscd) != no].
71197         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
71198         Conditionalize on [USE_NSCD].
71199         (is_nscd, nscd_init_cb): Likewise.
71200         (nss_load_library): Conditionalize init callback on [USE_NSCD].
71201         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
71202         * nss/nss_db/db-init.c: Likewise.
71203         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
71204         [USE_NSCD].
71205         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
71206         (make_request): Use it.
71207         (cache_valid_p): New function.
71208         (__check_pf): Use it.
71209         * NEWS: Add item for --disable-nscd.
71210
71211 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
71212
71213         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
71214         to support sed >= 4.2.1-20-ga9bf076.
71215         * configure: Regenerated.
71216
71217 2012-08-22  Roland McGrath  <roland@hack.frob.com>
71218
71219         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
71220         Conditionalize whole body on [IREL].
71221
71222 2012-08-22  Jeff Law <law@redhat.com>
71223
71224         [BZ #14505]
71225         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
71226         if the family is PF_UNSPEC.
71227
71228 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
71229
71230         * Makerules (lib-version): Rename from V.
71231         (install-lib-nosubdir): Change V to lib-version.
71232
71233 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
71234
71235         [BZ #14252]
71236         * powerpc32/power6/wcschr.c: New file.
71237         * powerpc32/power6/wcscpy.c: New file.
71238         * powerpc32/power6/wcsrchr.c: New file.
71239         * powerpc64/power6/wcschr.c: New file.
71240         * powerpc64/power6/wcscpy.c: New file.
71241         * powerpc64/power6/wcsrchr.c: New file.
71242
71243 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
71244
71245         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
71246         (two_way_short_needle): Use it.
71247         * string/strstr.c (AVAILABLE1_USES_J): Define.
71248         * string/strcasestr.c: Likewise.
71249
71250         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
71251         array references.
71252         * string/strcasestr.c (TOLOWER): Make side-effect safe.
71253
71254         [BZ #11607]
71255         * NEWS: Add an entry.
71256         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
71257         define their defaults.
71258         (two_way_short_needle): Detect end-of-string on-the-fly.
71259         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
71260         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
71261         * string/bug-strcasestr1.c: New test.
71262         * string/Makefile: Run it.
71263
71264 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
71265
71266         [BZ #11607]
71267         * string/str-two-way.h (two_way_short_needle): Optimize matching of
71268         the first character.
71269
71270 2012-08-21  Roland McGrath  <roland@hack.frob.com>
71271
71272         * csu/elf-init.c (__libc_csu_irel): Function removed.
71273         * csu/libc-start.c (apply_irel): New function.
71274         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
71275
71276 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
71277
71278         * sysdeps/unix/sysv/linux/kernel-features.h
71279         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
71280         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
71281         <kernel-features.h>.
71282         [__NR_fadvise64_64]: Make code unconditional.
71283         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
71284         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
71285         !__NR_fadvise64_64)]: Likewise.
71286         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
71287         !__NR_fadvise64_64))]: Likewise.
71288         [__NR_fadvise64]: Make code unconditional.
71289         [!__NR_fadvise64]: Remove conditional code.
71290         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
71291         <kernel-features.h>.
71292         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
71293         unconditional.
71294         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
71295         conditional code.
71296         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
71297         not include <kernel-features.h>.
71298         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
71299         unconditional.
71300         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
71301         conditional code.
71302         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
71303         include <kernel-features.h>.
71304         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
71305         unconditional.
71306         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
71307         conditional code.
71308
71309 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
71310
71311         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
71312         slight instruction rearrangements per scrollpipe analysis.
71313         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
71314
71315 2012-08-20  Roland McGrath  <roland@hack.frob.com>
71316
71317         * manual/syslog.texi (syslog; vsyslog, closelog):
71318         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
71319         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
71320
71321         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
71322         DSOCAPS to match condition on defining it.
71323
71324 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
71325
71326         * sysdeps/unix/sysv/linux/kernel-features.h
71327         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
71328         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
71329         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
71330         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
71331         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
71332         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
71333         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
71334         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
71335         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
71336         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
71337
71338         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
71339         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
71340
71341         * sysdeps/unix/sysv/linux/kernel-features.h
71342         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
71343         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
71344         unconditional.
71345         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
71346         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
71347         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
71348         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
71349         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
71350         Make code unconditional.
71351         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
71352         (__mmap64) [!__NR_mmap2]: Likewise.
71353         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
71354         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
71355         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
71356         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
71357         [__NR_mmap2]: Make code unconditional.
71358         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
71359         (__mmap64) [!__NR_mmap2]: Likewise.
71360
71361 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
71362
71363         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
71364
71365 2012-08-18  Andreas Jaeger  <aj@suse.de>
71366
71367         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
71368
71369 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
71370
71371         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
71372         * include/unistd.h (__have_sock_cloexec): Likewise.
71373         (__have_pipe2): Likewise.
71374         (__have_dup3): Likewise.
71375
71376 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
71377
71378         [BZ #9685]
71379         * include/unistd.h (__have_pipe2): Change define into an extern int.
71380         (__have_dup3): Likewise.
71381         * socket/have_sock_cloexec.c: Include fcntl.h.
71382         (__have_pipe2): New variable.
71383         (__have_dup3): Likewise.
71384
71385 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
71386
71387         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
71388
71389 2012-08-17  Marek Polacek  <polacek@redhat.com>
71390
71391         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
71392         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
71393
71394 2012-08-17  Roland McGrath  <roland@hack.frob.com>
71395
71396         * configure.in: Add AC_SUBST for sysheaders.
71397         * configure: Regenerated.
71398         * config.make.in (sysheaders): New substituted variable.
71399
71400         * sysdeps/unix/mkfifo.c: Moved ...
71401         * sysdeps/posix/mkfifo.c: ... here.
71402         * sysdeps/unix/mkfifoat.c: Moved ...
71403         * sysdeps/posix/mkfifoat.c: ... here.
71404
71405         * sysdeps/unix/utime.c: Moved ...
71406         * sysdeps/posix/utime.c: ... here.
71407
71408         * sysdeps/unix/time.c: Moved ...
71409         * sysdeps/posix/time.c: ... here.
71410         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
71411         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
71412
71413         * sysdeps/unix/nice.c: Moved ...
71414         * sysdeps/posix/nice.c: ... here.
71415
71416         * sysdeps/unix/alarm.c: Moved ...
71417         * sysdeps/posix/alarm.c: ... here.
71418
71419         * intl/Makefile ($(codeset_mo)): Depend on the input file.
71420
71421 2012-08-17  Jeff Law <law@redhat.com>
71422
71423         * intl/Makefile (codeset_mo): New variable.
71424         ($(codeset_mo)): New target.
71425         (tst-codeset.out): Depend on that.  Remove explicit rule.
71426         (tst-gettext3.out, tst-gettext5.out): Likewise.
71427         (LOCPATH-ENV, tst-codeset-ENV): New variables.
71428         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
71429         * intl/tst-codeset.sh: Remove.
71430         * intl/tst-gettext3.sh: Likewise.
71431         * intl/tst-gettext5.sh: Likewise.
71432
71433 2012-08-17  Roland McGrath  <roland@hack.frob.com>
71434
71435         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
71436         * sysdeps/unix/syscalls.list: ... here.
71437
71438         * sysdeps/posix/getaddrinfo.c
71439         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
71440         (gaiconf_init, gaiconf_reload): Use them.
71441         [!_STATBUF_ST_NSEC]
71442         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
71443         Define using time_t rather than struct timespec.
71444
71445         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
71446         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
71447         Macros removed.
71448         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
71449         [!NO_THREADS].
71450         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
71451         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
71452         Likewise.
71453
71454         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
71455         __libc_cleanup_push argument.
71456
71457         * bits/param.h: New file.
71458         * misc/sys/param.h: New file.
71459         * include/sys/param.h: New file.
71460         * misc/Makefile (headers): Add bits/param.h.
71461         * sysdeps/generic/sys/param.h: File removed.
71462         * sysdeps/unix/sysv/linux/bits/param.h: New file.
71463         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
71464         * sysdeps/mach/hurd/bits/param.h: New file.
71465         * sysdeps/mach/hurd/sys/param.h: File removed.
71466
71467         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
71468         last change.
71469
71470         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
71471         [_IO_MTSAFE_IO].
71472         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
71473         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
71474         New macros.
71475
71476         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
71477         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
71478         rather than -D_IO_MTSAFE_IO conditionally.
71479         * stdio-common/Makefile (CPPFLAGS): Likewise.
71480         * wcsmbs/Makefile (CPPFLAGS): Likewise.
71481         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
71482         Use $(libio-mtsafe).
71483         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
71484         of -D_IO_MTSAFE_IO.
71485         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
71486         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
71487         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
71488         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
71489         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
71490         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
71491         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
71492         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
71493         (CFLAGS-fread_u_chk.c): Likewise.
71494         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
71495         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
71496         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
71497         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
71498         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
71499         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
71500         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
71501         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
71502         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
71503
71504         * libio/Makefile: Test [$(libc-reentrant) = yes]
71505         instead of [$(filter %REENTRANT, $(defines)) nonempty].
71506
71507         * Makeconfig
71508         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
71509         * sysdeps/pthread/configure: File removed.
71510         * sysdeps/pthread/Makeconfig: New file.
71511         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
71512         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
71513
71514 2012-08-16  Gary Benson  <gbenson@redhat.com>
71515
71516         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
71517         unmapping the first object in a namespace.
71518
71519 2012-08-16  Roland McGrath  <roland@hack.frob.com>
71520
71521         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
71522         (__internal_setnetgrent): ... this.  Add internal_function to
71523         definition.  Add libc_hidden_def.
71524         (setnetgrent): Update caller.
71525         (internal_endnetgrent): Renamed to ...
71526         (__internal_endnetgrent): ... this.  Add internal_function to
71527         definition.  Add libc_hidden_def.
71528         (endnetgrent): Update caller.
71529         (internal_getnetgrent_r): Renamed to ...
71530         (__internal_getnetgrent_r): ... this.  Add internal_function to
71531         definition.  Add libc_hidden_def.
71532         (__getnetgrent_r): Update caller.
71533         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
71534
71535 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
71536
71537         * stdlib/longlong.h: Update from GCC.
71538
71539 2012-08-16  Roland McGrath  <roland@hack.frob.com>
71540
71541         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
71542         on _QL, which is set by umul_ppmm but never used.
71543         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
71544         variables, which are set by GMP macros but never used.
71545         * stdio-common/_itowa.c (_itowa): Likewise.
71546         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
71547         * stdlib/mod_1.c (mpn_mod_1): Likewise.
71548
71549 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
71550
71551         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
71552         struct La_sh_regs is not constant.
71553         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
71554         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
71555         and struct La_sparc64_regs are not constant.
71556
71557 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
71558
71559         * sysdeps/unix/sysv/linux/kernel-features.h
71560         (__ASSUME_POSIX_TIMERS): Remove.
71561         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
71562         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
71563         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
71564         Make code unconditional.
71565         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
71566         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
71567         Make code unconditional.
71568         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
71569         * sysdeps/unix/sysv/linux/clock_nanosleep.c
71570         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
71571         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
71572         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
71573         Make code unconditional.
71574         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
71575         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
71576         (__libc_missing_posix_timers): Remove.
71577
71578 2012-08-15  Roland McGrath  <roland@hack.frob.com>
71579
71580         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
71581         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
71582
71583         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
71584
71585         * elf/dl-sym.c: Include <stdlib.h>.
71586
71587         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
71588         constants, which avoids warnings in 32-bit builds.
71589
71590         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
71591         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
71592
71593         * misc/lseek.c: File moved to ...
71594         * io/lseek.c: ... here.
71595
71596         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
71597
71598         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
71599         shifting LEN more than 31 bits at once.
71600
71601 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71602
71603         [BZ #14195]
71604         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
71605         segmentation fault for a case of two empty input strings.
71606         * string/test-strncasecmp.c (check1): Renamed to...
71607         (bz12205): ...this.
71608         (bz14195): Add new testcase for two empty input strings and N > 0.
71609         (test_main): Call new testcase, adapt for renamed function.
71610
71611 2012-08-15  Andreas Jaeger  <aj@suse.de>
71612
71613         [BZ #14090]
71614         * crypt/md5test2.c: New test, based on test supplied by Serge
71615         Belyshev <belyshev@depni.sinp.msu.ru>.
71616         * crypt/Makefile (xtests): Add md5test-giant..
71617         * crypt/Makefile ($(objpfx)md5test-giant): Add.
71618
71619 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
71620
71621         [BZ #14090]
71622         * crypt/md5.c (md5_process_block): Don't assume the buffer
71623         length is less than 2**32.
71624         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
71625         length is less than 2**64.
71626
71627 2012-08-15  Roland McGrath  <roland@hack.frob.com>
71628
71629         * string/str-two-way.h: Include <sys/param.h>.
71630         (MAX): Macro removed.
71631
71632         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
71633         Move #define and #undef of memmove to just before and after
71634         including <string.h>.
71635
71636         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
71637         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
71638         and after including <string.h>.  Move declarations of
71639         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
71640         to before #include "string/memmove.c".
71641
71642         * include/dirent.h: Declare __getdirentries.
71643
71644         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
71645         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
71646
71647 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
71648
71649         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
71650         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
71651         * sysdeps/i386/configure: Regenerated.
71652         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
71653         STABS_CURRENT_FILE, and STABS_FUN.
71654         (END): Remove call to STABS_FUN_END.
71655         (STABS_CURRENT_FILE1): Delete.
71656         (STABS_CURRENT_FILE): Likewise.
71657         (STABS_FUN): Likewise.
71658         (STABS_FUN_END): Likewise.
71659         (STABS_FUN2): Likewise.
71660         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
71661         * sysdeps/x86_64/configure: Regenerated.
71662
71663 2012-08-14  Roland McGrath  <roland@hack.frob.com>
71664
71665         * elf/dl-open.c: Include <atomic.h>.
71666         * elf/dl-lookup.c: Likewise.
71667
71668 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
71669
71670         * sysdeps/unix/sysv/linux/kernel-features.h
71671         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
71672         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
71673         unconditionally.
71674         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
71675         unconditionally.
71676         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
71677         condition on __ASSUME_CLONE_THREAD_FLAGS.
71678
71679 2012-08-14  Andreas Jaeger  <aj@suse.de>
71680
71681         * sysdeps/i386/fpu/libm-test-ulps: Update.
71682
71683 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
71684
71685         * include/atomic.h (atomic_exchange_and_add): Split into ...
71686         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
71687         New atomic macros.
71688
71689 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
71690
71691         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
71692
71693 2012-08-13  Jeff Law <law@redhat.com>
71694
71695         * manual/stdio.texi (snprintf): Clarify handling of the trailing
71696         null byte in the output string.
71697
71698 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
71699
71700         * sysdeps/unix/sysv/linux/kernel-features.h
71701         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
71702         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
71703         (__ASSUME_ARG_MAX_STACK_BASED): Define.
71704         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
71705         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
71706         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
71707         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
71708
71709 2012-08-09  Jeff Law <law@redhat.com>
71710
71711         [BZ #13939]
71712         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
71713         When avoid_arena is set, don't retry in the that arena.  Pick the
71714         next one, whatever it might be.
71715         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
71716         (arena_lock): Pass in new parameter to arena_get2.
71717         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
71718         arena_get2.
71719         (__libc_malloc): Unify retrying after main arena failure with
71720         __libc_memalign version.
71721         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
71722
71723 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
71724
71725         [BZ #14166]
71726         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
71727         to __redirect_strstr.
71728         (__strstr_sse42): Use typeof __redirect_strstr.
71729         (__strstr_ia32): Likewise.
71730         (__libc_strstr): New prototype.
71731         (strstr): Renamed to ...
71732         (__libc_strstr): This.
71733         (strstr): New strong alias of __libc_strstr.
71734         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
71735         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
71736         __redirect_time.
71737         Include <time.h>.
71738         (__libc_time): New prototype.
71739         (time_ifunc): Replace time with __libc_time.
71740         (time): New strong alias and hidden definition of __libc_time.
71741         (__GI_time): Remove strong alias.
71742         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
71743         Include <stddef.h>.
71744         (memmove): Redefined to __redirect_memmove.
71745         (__memmove_sse2): Use typeof __redirect_memmove.
71746         (__memmove_ssse3): Likewise.
71747         (__memmove_ssse3_back): Likewise.
71748         (__libc_memmove): New prototype.
71749         (memmove): Renamed to ...
71750         (__libc_memmove): This.
71751         (memmove): New strong alias of __libc_memmove.
71752
71753 2012-08-08  Mark Salter  <msalter@redhat.com>
71754
71755         * elf/elf.h
71756         (R_MN10300_TLS_GD): Define.
71757         (R_MN10300_TLS_LD): Likewise.
71758         (R_MN10300_TLS_LDO): Likewise.
71759         (R_MN10300_TLS_GOTIE): Likewise.
71760         (R_MN10300_TLS_IE): Likewise.
71761         (R_MN10300_TLS_LE): Likewise.
71762         (R_MN10300_TLS_DTPMOD): Likewise.
71763         (R_MN10300_TLS_DTPOFF): Likewise.
71764         (R_MN10300_TLS_TPOFF): Likewise.
71765         (R_MN10300_SYM_DIFF): Likewise.
71766         (R_MN10300_ALIGN): Likewise.
71767         (R_MN10300_NUM): Update.
71768
71769 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
71770
71771         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
71772         Remove.
71773
71774 2012-08-08  Roland McGrath  <roland@hack.frob.com>
71775
71776         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
71777
71778         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
71779         sysdeps/unix -> sysdeps/posix move.
71780         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
71781
71782 2012-08-07      Allan McRae     <allan@archlinux.org>
71783
71784         [BZ #14303]
71785         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
71786         (SUNOS_CPP): Likewise.
71787         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
71788         not found.
71789         (open_input): Call CPP using execvp.
71790
71791 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
71792
71793         * sysdeps/unix/sysv/linux/kernel-features.h
71794         (__ASSUME_PROT_GROWSUPDOWN): Remove.
71795         (__ASSUME_NO_CLONE_DETACHED): Likewise.
71796         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
71797         (__ASSUME_WAITID_SYSCALL): Likewise.
71798         * sysdeps/unix/sysv/linux/dl-execstack.c
71799         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
71800         code unconditional.
71801         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
71802         conditional code.
71803         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
71804         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
71805         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
71806         code.
71807         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
71808         unconditional.
71809         [__ASSUME_WAITID_SYSCALL]: Likewise.
71810         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
71811
71812 2012-08-07  Roland McGrath  <roland@hack.frob.com>
71813
71814         * sysdeps/unix/closedir.c: Renamed to ...
71815         * sysdeps/posix/closedir.c: ... here.
71816         * sysdeps/unix/dirfd.c: Renamed to ...
71817         * sysdeps/posix/dirfd.c: ... here.
71818         * sysdeps/unix/dirstream.h: Renamed to ...
71819         * sysdeps/posix/dirstream.h: ... here.
71820         * sysdeps/unix/fdopendir.c: Renamed to ...
71821         * sysdeps/posix/fdopendir.c: ... here.
71822         * sysdeps/unix/opendir.c: Renamed to ...
71823         * sysdeps/posix/opendir.c: ... here.
71824         * sysdeps/unix/readdir.c: Renamed to ...
71825         * sysdeps/posix/readdir.c: ... here.
71826         * sysdeps/unix/readdir_r.c: Renamed to ...
71827         * sysdeps/posix/readdir_r.c: ... here.
71828         * sysdeps/unix/rewinddir.c: Renamed to ...
71829         * sysdeps/posix/rewinddir.c: ... here.
71830         * sysdeps/unix/seekdir.c: Renamed to ...
71831         * sysdeps/posix/seekdir.c: ... here.
71832         * sysdeps/unix/telldir.c: Renamed to ...
71833         * sysdeps/posix/telldir.c: ... here.
71834         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
71835         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
71836         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
71837         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
71838
71839         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
71840         * bits/fcntl.h: ... here.
71841
71842         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
71843         not 0.
71844         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
71845         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
71846         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
71847         (struct flock): Move l_start, l_len to the beginning.
71848         Use __pid_t for l_pid.
71849         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
71850         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
71851         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
71852         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
71853         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
71854         [__USE_LARGEFILE64] (struct flock64): New type.
71855         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
71856
71857         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
71858         * bits/dirent.h: ... here.
71859
71860         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
71861         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
71862
71863 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
71864
71865         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
71866         Change from 2.6.0 to 2.6.16.
71867         * sysdeps/unix/sysv/linux/configure: Regenerated.
71868         * sysdeps/unix/sysv/linux/kernel-features.h
71869         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
71870         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
71871         version.
71872         (__ASSUME_UTIMES): Likewise.
71873         (__ASSUME_CLONE_STOPPED): Remove.
71874         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
71875         architectures, not kernel version.
71876         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
71877         (__ASSUME_NO_CLONE_DETACHED): Likewise.
71878         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
71879         (__ASSUME_WAITID_SYSCALL): Likewise.
71880         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
71881         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
71882         * README: State 2.6.16 as minimum Linux kernel version.  Do not
71883         refer to older versions.
71884
71885 2012-08-06  Roland McGrath  <roland@hack.frob.com>
71886
71887         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
71888         Define alphasort64 as an alias.
71889         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
71890         Define versionsort64 as an alias.
71891         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
71892         Define scandir64 as an alias.
71893         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
71894         Define scandirat64 as an alias.
71895         * dirent/alphasort64.c (alphasort64):
71896         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
71897         * dirent/versionsort64.c: Likewise.
71898         * dirent/scandir64.c: Likewise.
71899         * dirent/scandirat64.c: Likewise.
71900         * sysdeps/wordsize-64/alphasort.c: File removed.
71901         * sysdeps/wordsize-64/alphasort64.c: File removed.
71902         * sysdeps/wordsize-64/scandir.c: File removed.
71903         * sysdeps/wordsize-64/scandir64.c: File removed.
71904         * sysdeps/wordsize-64/scandirat.c: File removed.
71905         * sysdeps/wordsize-64/scandirat64.c: File removed.
71906         * sysdeps/wordsize-64/versionsort.c: File removed.
71907         * sysdeps/wordsize-64/versionsort64.c: File removed.
71908         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
71909         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
71910         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
71911         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
71912         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
71913         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
71914         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
71915         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
71916
71917         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
71918         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
71919         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
71920         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
71921         [defined __arch64__ || defined __sparcv9]
71922         (__INO_T_MATCHES_INO64_T): New macro.
71923         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
71924         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
71925         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
71926         * sysdeps/unix/sysv/linux/bits/dirent.h
71927         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
71928         (_DIRENT_MATCHES_DIRENT64): New macro.
71929
71930         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
71931         Define lockf64 as an alias.
71932         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
71933         Define fseeko64 as an alias.
71934         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
71935         Define ftello64 as an alias.
71936         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
71937         Define _IO_fgetpos64 and fgetpos64 as aliases.
71938         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
71939         Define _IO_fsetpos64 and fsetpos64 as aliases.
71940         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
71941         Conditionalize body on this.
71942         * libio/fseeko64.c: Likewise.
71943         * libio/ftello64.c: Likewise.
71944         * libio/iofgetpos64.c: Likewise.
71945         * libio/iofsetpos64.c: Likewise.
71946         * sysdeps/wordsize-64/lockf.c: File removed.
71947         * sysdeps/wordsize-64/lockf64.c: File removed.
71948         * sysdeps/wordsize-64/fseeko.c: File removed.
71949         * sysdeps/wordsize-64/fseeko64.c: File removed.
71950         * sysdeps/wordsize-64/ftello.c: File removed.
71951         * sysdeps/wordsize-64/ftello64.c: File removed.
71952         * sysdeps/wordsize-64/iofgetpos.c: File removed.
71953         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
71954         * sysdeps/wordsize-64/iofsetpos.c: File removed.
71955         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
71956         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
71957         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
71958         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
71959         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
71960         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
71961         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
71962         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
71963         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
71964         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
71965         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
71966
71967         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
71968         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
71969         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
71970         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
71971         [defined __arch64__ || defined __sparcv9]
71972         (__OFF_T_MATCHES_OFF64_T): New macro.
71973         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
71974         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
71975         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
71976         (__OFF_T_MATCHES_OFF64_T): New macro.
71977
71978 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
71979
71980         * stdlib/secure-getenv.c (__secure_getenv): Replace
71981         GLIBC_2_16 with GLIBC_2_17.
71982
71983 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
71984
71985         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
71986         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
71987
71988 2012-08-03  David S. Miller  <davem@davemloft.net>
71989
71990         * sysdeps/sparc/fpu/libm-test-ulps: Update.
71991
71992 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
71993
71994         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
71995         Remove.
71996         (__ASSUME_CORRECT_SI_PID): Likewise.
71997         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
71998         (__ASSUME_TMPFS_NAME): Likewise.
71999         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
72000         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
72001         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
72002         (HAVE_AUX_SECURE): Make definition unconditional.
72003         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
72004         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
72005
72006 2012-08-03  Roland McGrath  <roland@hack.frob.com>
72007
72008         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
72009         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
72010         * sysdeps/mach/hurd/eloop-threshold.h: New file.
72011         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
72012         __eloop_threshold instead of SYMLOOP_MAX.
72013
72014         * sysdeps/generic/eloop-threshold.h: New file.
72015         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
72016         of MAXSYMLINKS.
72017         * elf/chroot_canon.c (chroot_canon): Likewise.
72018
72019 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
72020
72021         [BZ #13717]
72022         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
72023         Change to 2.6.0 everywhere.
72024         * sysdeps/unix/sysv/linux/configure: Regenerated.
72025         * sysdeps/unix/sysv/linux/kernel-features.h
72026         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
72027         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
72028         kernel versions.
72029         (__ASSUME_POSIX_TIMERS): Define unconditionally.
72030         (__ASSUME_FUTEX_REQUEUE): Remove.
72031         (__ASSUME_STATFS64): Define unconditionally.
72032         (__ASSUME_AT_SECURE): Likewise.
72033         (__ASSUME_CORRECT_SI_PID): Likewise.
72034         (__ASSUME_TGKILL): Define without depending on kernel version for
72035         i386.
72036         (__ASSUME_UTIMES): Likewise.
72037         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
72038         kernel version.
72039         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
72040         (__ASSUME_TMPFS_NAME): Likewise.
72041         * README: Update reference to Linux kernel versions.
72042
72043 2012-08-02  Marek Polacek  <polacek@redhat.com>
72044
72045         [BZ #14150]
72046         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
72047         libc_cv_asm_type_prefix with %.
72048         * configure: Regenerated.
72049         * include/libc-symbols.h: Remove comment about
72050         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
72051         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
72052         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
72053         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
72054         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
72055         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
72056         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
72057         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
72058         * elf/tst-unique2mod1.c: Likewise.
72059         * elf/tst-unique1mod2.c: Likewise.
72060         * elf/tst-unique1mod1.c: Likewise.
72061         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
72062         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
72063         Replace ASM_TYPE_DIRECTIVE with .type.
72064         * sysdeps/s390/s390-64/sysdep.h: Likewise.
72065         * sysdeps/i386/sysdep.h: Likewise.
72066         * sysdeps/x86_64/sysdep.h: Likewise.
72067         * sysdeps/sh/sysdep.h: Likewise.
72068         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
72069         Do not define ASM_TYPE_DIRECTIVE.
72070         * sysdeps/powerpc/sysdep.h: Likewise.
72071         * sysdeps/powerpc/powerpc32/sysdep.h:
72072         Replace ASM_TYPE_DIRECTIVE with .type.
72073         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
72074         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
72075         * sysdeps/i386/fpu/e_powf.S: Likewise.
72076         * sysdeps/i386/fpu/e_expl.S: Likewise.
72077         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
72078         * sysdeps/i386/fpu/e_acosh.S: Likewise.
72079         * sysdeps/i386/fpu/e_pow.S: Likewise.
72080         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
72081         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
72082         * sysdeps/i386/fpu/s_expm1.S: Likewise.
72083         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
72084         * sysdeps/i386/fpu/e_log2.S: Likewise.
72085         * sysdeps/i386/fpu/e_log2l.S: Likewise.
72086         * sysdeps/i386/fpu/e_scalb.S: Likewise.
72087         * sysdeps/i386/fpu/e_powl.S: Likewise.
72088         * sysdeps/i386/fpu/e_log10f.S: Likewise.
72089         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
72090         * sysdeps/i386/fpu/e_logl.S: Likewise.
72091         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
72092         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
72093         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
72094         * sysdeps/i386/fpu/e_log2f.S: Likewise.
72095         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
72096         * sysdeps/i386/fpu/e_log.S: Likewise.
72097         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
72098         * sysdeps/i386/fpu/e_logf.S: Likewise.
72099         * sysdeps/i386/fpu/e_log10l.S: Likewise.
72100         * sysdeps/i386/fpu/e_atanh.S: Likewise.
72101         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
72102         * sysdeps/i386/fpu/e_log10.S: Likewise.
72103         * sysdeps/i386/fpu/s_frexp.S: Likewise.
72104         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
72105         * sysdeps/i386/fpu/s_asinh.S: Likewise.
72106         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
72107         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
72108         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
72109         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
72110         * sysdeps/i386/i686/strtok.S: Likewise.
72111         * sysdeps/i386/i386-mcount.S: Likewise.
72112         * sysdeps/i386/strtok.S: Likewise.
72113         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
72114         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
72115         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
72116         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
72117         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
72118         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
72119         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
72120         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
72121         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
72122         * sysdeps/x86_64/_mcount.S: Likewise.
72123         * sysdeps/x86_64/strtok.S: Likewise.
72124         * sysdeps/sh/_mcount.S: Likewise.
72125
72126 2012-08-01  Roland McGrath  <roland@hack.frob.com>
72127
72128         * libio/iofopen.c: Include <fcntl.h>.
72129         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
72130         (_IO_fopen64, fopen64): Define as aliases.
72131         * libio/iofopen64.c: Include <fcntl.h>.
72132         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
72133         Conditionalize body on this.
72134         * sysdeps/wordsize-64/iofopen.c: File removed.
72135         * sysdeps/wordsize-64/iofopen64.c: File removed.
72136
72137 2012-08-01  Marek Polacek  <polacek@redhat.com>
72138
72139         * libc/Makeconfig: Use elf in place of binfmt-subdir.
72140         Use dlfcn directly instead of a variable.
72141         (binfmt-subdir): Do not define.
72142         (dlfcn): Likewise.
72143
72144 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
72145
72146         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
72147         Remove all definitions.
72148         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
72149         <kernel-features.h>.
72150         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
72151         (miss_F_GETOWN_EX): Remove all definitions.
72152         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
72153         macro definition.
72154         [!__ASSUME_FCNTL64]: Remove conditional code.
72155         [__ASSUME_FCNTL64]: Make code unconditional.
72156         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
72157         <kernel-features.h>.
72158         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
72159         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
72160         (lockf64) [__NR_fcntl64]: Make code unconditional.
72161         (lockf64) [__ASSUME_FCNTL64]: Likewise.
72162
72163         * sysdeps/unix/sysv/linux/kernel-features.h
72164         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
72165         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
72166         Make code unconditional.
72167         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
72168         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
72169         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
72170         [__NR_vfork]: Make code unconditional.
72171         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
72172         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
72173         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
72174         [__NR_vfork]: Make code unconditional.
72175         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
72176         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
72177
72178 2012-08-01  Roland McGrath  <roland@hack.frob.com>
72179
72180         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
72181         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
72182
72183         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
72184         Define mkstemp64 as an alias.
72185         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
72186         Define mkstemps64 as an alias.
72187         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
72188         Define mkostemp64 as an alias.
72189         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
72190         Define mkostemps64 as an alias.
72191         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
72192         Conditionalize body on this.
72193         * misc/mkostemp64.c: Likewise.
72194         * misc/mkostemps64.c: Likewise.
72195         * misc/mkstemps64.c: Likewise.
72196         * sysdeps/wordsize-64/mkstemp64.c: File removed.
72197         * sysdeps/wordsize-64/mkostemp64.c: File removed.
72198         * sysdeps/wordsize-64/mkostemp.c: File removed.
72199         * sysdeps/wordsize-64/mkstemp.c: File removed.
72200         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
72201         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
72202         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
72203         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
72204
72205         [BZ #14138]
72206         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
72207         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
72208         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
72209         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
72210
72211         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
72212         compat_symbol macros from <shlib-compat.h> rather than the underlying
72213         default_symbol_version and symbol_version macros, so that DEFAULT
72214         lines in shlib-versions are respected.
72215         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
72216
72217 2012-08-01  Florian Weimer  <fweimer@redhat.com>
72218
72219         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
72220         Declare with warn_unused_result.
72221         (setgid, setregid, setegid, setresgid): Likewise.
72222         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
72223         Likewise.
72224         * WUR-REPORT: Remove set*id functions.
72225
72226 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
72227
72228         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
72229
72230 2012-07-31  Roland McGrath  <roland@hack.frob.com>
72231
72232         [BZ #10191]
72233         * include/sys/socket.h (__libc_accept, __libc_accept4):
72234         Add attribute_hidden.
72235         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
72236
72237         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
72238         use of PTR_MANGLE.
72239         * inet/getnetgrent_r.c (setup): Likewise.
72240
72241         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
72242
72243 2012-07-31  David S. Miller  <davem@davemloft.net>
72244
72245         * sysdeps/sparc/fpu/libm-test-ulps: Update.
72246
72247 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
72248
72249         [BZ #13629]
72250         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
72251         value between 1.0 and 2.0 and smaller part has absolute value less
72252         than 1.0.
72253         * math/s_clog10.c (__clog10): Likewise.
72254         * math/s_clog10f.c (__clog10f): Likewise.
72255         * math/s_clog10l.c (__clog10l): Likewise.
72256         * math/s_clogf.c (__clogf): Likewise.
72257         * math/s_clogl.c (__clogl): Likewise.
72258         * math/libm-test.inc (clog_test): Add more tests.
72259         (clog10_test): Likewise.
72260         * sysdeps/i386/fpu/libm-test-ulps: Update.
72261         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
72262
72263 2012-07-31  Florian Weimer  <fweimer@redhat.com>
72264
72265         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
72266         Exit with zero in case no suitable GID is found, and write a
72267         message to standard error.
72268
72269 2012-07-30  Roland McGrath  <roland@hack.frob.com>
72270
72271         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
72272         rather than to 1.
72273         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
72274         (MAXPATHLEN): Removed.
72275         (NOGROUP, NODEV): New macros.
72276         (setbit, clrbit, isset, isclr): New macros.
72277         (howmany, roundup, powerof2): New macros.
72278         (DEV_BSIZE): New macro.
72279
72280         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
72281         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
72282
72283         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
72284         definition on [!__NO_LONG_DOUBLE_MATH].
72285
72286         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
72287         PTR_MANGLE and PTR_DEMANGLE.
72288
72289         * socket/accept4.c (accept4): Rename to __libc_accept4.
72290         Define accept4 as a weak alias.
72291
72292         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
72293         on [_DIRENT_HAVE_D_TYPE].
72294         * io/ftw.c (ftw_dir): Likewise.
72295
72296         * io/xmknod.c (__xmknod): Don't check PATH for being null.
72297
72298         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
72299
72300         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
72301         Use the BSD numbers rather than the arbitrary ones we had.
72302         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
72303         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
72304         (SIGXCPU, SIGXFSZ): New macros.
72305         (_NSIG): Now 32.
72306
72307         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
72308         initializer on [_LIBC_REENTRANT].
72309
72310         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
72311         definitions inside [_POSIX_MAPPED_FILES].
72312
72313         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
72314
72315         * dirent/opendir.c: Include <fcntl.h>.
72316
72317         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
72318         (__libc_getspecific): Likewise.
72319         (__libc_key_create): Likewise.
72320
72321         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
72322         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
72323         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
72324         (tmpfile64): Define as alias.
72325         * sysdeps/wordsize-64/tmpfile.c: File removed.
72326         * sysdeps/wordsize-64/tmpfile64.c: File removed.
72327         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
72328         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
72329
72330         * stdio-common/vfscanf.c: Include <stdbool.h>.
72331         * nss/makedb.c: Likewise.
72332         * stdio-common/_i18n_number.h: Likewise.
72333         * argp/argp-help.c: Likewise.
72334         * posix/wordexp.c: Likewise.
72335         * sysdeps/posix/spawni.c: Likewise.
72336         * nss/nss_files/files-initgroups.c: Likewise.
72337         * stdio-common/reg-modifier.c: Include <stdlib.h>.
72338         * nss/nss_files/files-initgroups.c: Likewise.
72339         * nss/nss_db/db-netgrp.c: Likewise.
72340         * nss/nss_db/db-initgroups.c: Likewise.
72341         * io/fchmodat.c: Include <sys/stat.h>.
72342
72343         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
72344         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
72345
72346         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
72347         [HAVE_MMAP].
72348
72349         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
72350         Add multiple inclusion protection.
72351
72352 2012-07-27  David S. Miller  <davem@davemloft.net>
72353
72354         * sysdeps/sparc/fpu/libm-test-ulps: Update.
72355
72356 2012-07-27  Gary Benson  <gbenson@redhat.com>
72357
72358         [BZ #14298]
72359         * elf/rtld.c: Include <stap-probe.h>.
72360         (dl_main): Added static probes "init_start" and "init_complete".
72361         * elf/dl-load.c: Include <stap-probe.h>.
72362         (lose): Take new parameter "nsid".
72363         Added static probe "map_failed".
72364         (_dl_map_object_from_fd): Pass namespace id to lose.
72365         Added static probe "map_start".
72366         (open_verify): Pass namespace id to lose.
72367         * elf/dl-open.c: Include <stap-probe.h>.
72368         (dl_open_worker) Added static probes "map_complete", "reloc_start"
72369         and "reloc_complete".
72370         * elf/dl-close.c: Include <stap-probe.h>.
72371         (_dl_close_worker): Added static probes "unmap_start" and
72372         "unmap_complete".
72373         * elf/rtld-debugger-interface.txt: New file documenting the above.
72374
72375 2012-07-26  Roland McGrath  <roland@hack.frob.com>
72376
72377         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
72378         rather than a string variable.
72379         * sunrpc/rpc_main.c (h_output): Likewise.
72380         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
72381
72382 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
72383
72384         * inet/check_native.c: New file.
72385
72386 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
72387
72388         [BZ #13629]
72389         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
72390         if larger part has absolute value 1.0.
72391         * math/s_clog10.c (__clog10): Likewise.
72392         * math/s_clog10f.c (__clog10f): Likewise.
72393         * math/s_clog10l.c (__clog10l): Likewise.
72394         * math/s_clogf.c (__clogf): Likewise.
72395         * math/s_clogl.c (__clogl): Likewise.
72396         * math/libm-test.inc (clog_test): Add more tests.
72397         (clog10_test): Likewise.
72398         * sysdeps/i386/fpu/libm-test-ulps: Update.
72399         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
72400
72401         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
72402         (pltexit): Likewise.
72403         (La_regs): Likewise.
72404         (La_retval): Likewise.
72405         (int_retval): Likewise.
72406         Update #error for removed macros to refer only to definitions in
72407         tst-audit.h.
72408         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
72409         macro.
72410         (pltexit): Likewise.
72411         (La_regs): Likewise.
72412         (La_retval): Likewise.
72413         (int_retval): Likewise.
72414         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
72415         macro.
72416         (pltexit): Likewise.
72417         (La_regs): Likewise.
72418         (La_retval): Likewise.
72419         (int_retval): Likewise.
72420         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
72421         macro.
72422         (pltexit): Likewise.
72423         (La_regs): Likewise.
72424         (La_retval): Likewise.
72425         (int_retval): Likewise.
72426         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
72427         macro.
72428         (pltexit): Likewise.
72429         (La_regs): Likewise.
72430         (La_retval): Likewise.
72431         (int_retval): Likewise.
72432         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
72433         macro.
72434         (pltexit): Likewise.
72435         (La_regs): Likewise.
72436         (La_retval): Likewise.
72437         (int_retval): Likewise.
72438         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
72439         macro.
72440         (pltexit): Likewise.
72441         (La_regs): Likewise.
72442         (La_retval): Likewise.
72443         (int_retval): Likewise.
72444         * sysdeps/generic/tst-audit.h: Update comment to refer only to
72445         macro definitions in tst-audit.h.
72446         * sysdeps/i386/tst-audit.h: New file.
72447         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
72448         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
72449         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
72450         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
72451         * sysdeps/sh/tst-audit.h: Likewise.
72452         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
72453         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
72454         * sysdeps/x86_64/tst-audit.h: Likewise.
72455
72456 2012-07-26  Andreas Jaeger  <aj@suse.de>
72457
72458         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
72459         ptrace.
72460
72461         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
72462         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
72463         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
72464         PTRACE_O_MASK.
72465         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
72466         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
72467         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
72468
72469         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
72470         value.
72471
72472         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
72473         _sigsys.
72474         (si_call_addr, si_syscall, si_arch): Define new macro.
72475         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
72476         _sigsys.
72477         (si_call_addr, si_syscall, si_arch): Define new marcro.
72478         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
72479         _sigsys.
72480         (si_call_addr, si_syscall, si_arch): Define new macro.
72481         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
72482         _sigsys.
72483         (si_call_addr, si_syscall, si_arch): Define new macro.
72484
72485 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
72486
72487         [BZ #13717]
72488         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
72489         Change to 2.4.21 where previously 2.4.1.
72490         * sysdeps/unix/sysv/linux/configure: Regenerated.
72491         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
72492         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
72493         Linux kernel version.
72494         (__ASSUME_STD_AUXV): Remove.
72495         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
72496         kernel version.
72497         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
72498         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
72499         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
72500         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
72501         (__ASSUME_NETLINK_SUPPORT): Likewise.
72502         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
72503         (__no_netlink_support): Remove conditional definition.
72504         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
72505         Remove.
72506         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
72507         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
72508         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
72509         (if_nameindex_ioctl): Remove.
72510         (if_nameindex_netlink): Do not handle __no_netlink_support.
72511         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
72512         code.
72513         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
72514         Remove conditional code.
72515         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
72516         code.
72517         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
72518         unconditional.
72519         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
72520         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
72521         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
72522         Remove.
72523         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
72524         [!__ASSUME_STD_AUXV]: Remove conditional code.
72525         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
72526         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
72527         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
72528         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
72529         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
72530         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
72531         code.
72532         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
72533         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
72534         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
72535         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
72536         conditional code.
72537         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
72538         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
72539         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
72540         code.
72541         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
72542         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
72543         conditional code.
72544         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
72545         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
72546         code unconditional.
72547         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
72548         conditional code.
72549         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
72550         unconditional.
72551         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
72552         conditional code.
72553         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
72554         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
72555         unconditional.
72556         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
72557         conditional code.
72558         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
72559         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
72560         code unconditional.
72561         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
72562         conditional code.
72563         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
72564         unconditional.
72565         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
72566         conditional code.
72567         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
72568         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
72569         code unconditional.
72570         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
72571         conditional code.
72572         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
72573         unconditional.
72574         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
72575         conditional code.
72576
72577 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
72578
72579         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
72580         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
72581         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
72582         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
72583         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
72584         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
72585         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
72586         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
72587         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
72588         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
72589         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
72590         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
72591         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
72592         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
72593         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
72594         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
72595         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
72596         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
72597         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
72598         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
72599         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
72600         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
72601         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
72602
72603 2012-07-25  Florian Weimer  <fweimer@redhat.com>
72604
72605         * Versions.def: Add GLIBC_2.17.
72606         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
72607         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
72608         Introduce __libc_secure_getenv.
72609         * stdlib/Versions (2.17): Add secure_getenv
72610         (GLIBC_PRIVATE): Add __libc_secure_getenv.
72611         * stdlib/secure-getenv.c: Rename __secure_getenv to
72612         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
72613         symbol __secure_getenv for GLIBC_2.0.
72614         * stdlib/tst-secure-getenv.c: New.
72615         * stdlib/Makefile (tests): Add testcase.
72616         * manual/startup.texi (Environment Access): Document
72617         secure_getenv.
72618         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
72619         __libc_secure_getenv.
72620         * inet/ruserpass.c (ruserpass): Likewise.
72621         * malloc/mtrace.c (mtrace): Likewise.
72622         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
72623         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
72624         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
72625         * sysdeps/posix/tempname.c: Likewise.  Evaluate
72626         HAVE_SECURE_GETENV.
72627         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
72628         __secure_getenv to __libc_secure_getenv.
72629         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
72630         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
72631         Likewise.
72632         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
72633         Likewise.
72634         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
72635         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
72636         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
72637         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
72638         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
72639         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
72640         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
72641
72642 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
72643
72644         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
72645         (struct La_i86_retval): Likewise.
72646         (struct La_x86_64_regs): Likewise.
72647         (struct La_x86_64_retval): Likewise.
72648         (struct La_x32_regs): Likewise.
72649         (struct La_x32_retval): Likewise.
72650         (struct La_ppc32_regs): Likewise.
72651         (struct La_ppc32_retval): Likewise.
72652         (struct La_ppc64_regs): Likewise.
72653         (struct La_ppc64_retval): Likewise.
72654         (struct La_sh_regs): Likewise.
72655         (struct La_sh_retval): Likewise.
72656         (struct La_s390_32_regs): Likewise.
72657         (struct La_s390_32_retval): Likewise.
72658         (struct La_s390_64_regs): Likewise.
72659         (struct La_s390_64_retval): Likewise.
72660         (struct La_sparc32_regs): Likewise.
72661         (struct La_sparc32_retval): Likewise.
72662         (struct La_sparc64_regs): Likewise.
72663         (struct La_sparc64_retval): Likewise.
72664         (struct audit_ifaces): Remove architecture-specific pltenter and
72665         pltexit members.
72666         * sysdeps/i386/ldsodefs.h: New file.
72667         * sysdeps/powerpc/ldsodefs.h: Likewise.
72668         * sysdeps/s390/ldsodefs.h: Likewise.
72669         * sysdeps/sh/ldsodefs.h: Likewise.
72670         * sysdeps/sparc/ldsodefs.h: Likewise.
72671         * sysdeps/x86_64/ldsodefs.h: Likewise.
72672
72673 2012-07-25  Marek Polacek  <polacek@redhat.com>
72674
72675         [BZ #6808]
72676         * math/libm-test.inc (yn_test): Add another test.
72677         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
72678         to ERANGE when the result is +-Inf.
72679         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
72680         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
72681         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
72682         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
72683
72684 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
72685
72686         * conform/data/time.h-data (NULL): Use macro-constant.  Require
72687         equal to 0.
72688         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
72689         clock_t.
72690         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
72691
72692 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
72693
72694         * configure.in <sysdeps resolving>: Correct printing
72695         Implies_before.
72696         * configure: Regenerate.
72697
72698 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
72699
72700         * math/w_ilogb.c: Include <limits.h>.
72701         * math/w_ilogbl.c: Likewise.
72702
72703 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
72704
72705         * manual/lang.texi (__va_copy): Document primarily as ISO C99
72706         va_copy.  Document allowing for unavailable va_copy only as
72707         pre-C99 compatibility.
72708         * manual/string.texi (Copying and Concatenation): Use va_copy
72709         instead of __va_copy in concat example.
72710
72711 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
72712
72713         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
72714         (__sendto): Use create_address_port.  Initialize APORT and deallocate
72715         it if not null.
72716
72717         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
72718         with O_NOLINK passed to __file_name_lookup.
72719
72720         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
72721         with O_NOLINK passed to __file_name_lookup.
72722
72723         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
72724         negative N or less than NGIDS.
72725
72726         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
72727         type to string_t.  Set ERANGE as errno and return it if NAME is not big
72728         enough.  Use memcpy instead of strncpy.
72729
72730 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
72731
72732         * elf/Makefile (check-data): Remove.
72733         (localplt.data): New vpath directive.
72734         ($(objpfx)check-localplt.out): Use localplt.data from vpath
72735         instead of $(check-data).
72736         * scripts/data/localplt-generic.data: Move to ...
72737         * sysdeps/generic/localplt.data: ... here.
72738         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
72739         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
72740         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
72741         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
72742         ... here.
72743         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
72744         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
72745         ... here.
72746         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
72747         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
72748         ... here.
72749         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
72750         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
72751         ... here.
72752         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
72753         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
72754         ... here.
72755         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
72756         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
72757         ... here.
72758
72759 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
72760
72761         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
72762         PPC32 and PPC64 files.
72763         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
72764         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
72765
72766 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
72767
72768         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
72769         __makecontext_ret to ...
72770         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
72771         ... here and call exit if uc_link is NULL.  New file.
72772         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
72773         __makecontext_ret.S.
72774         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
72775         __makecontext_ret to ...
72776         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
72777         ... here and call exit if uc_link is NULL.  New file.
72778         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
72779         __makecontext_ret.S.
72780
72781 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
72782
72783         * elf/elf.h (R_390_IRELATIVE): New definition.
72784         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
72785         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
72786         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
72787         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
72788         (elf_machine_lazy_rel): Likewise.
72789         * sysdeps/s390/dl-irel.h: New file.
72790         * sysdeps/s390/s390-64/memcpy.S: New asm code.
72791         * sysdeps/s390/s390-64/memset.S: New asm code.
72792         * sysdeps/s390/s390-64/memcmp.S: New asm code.
72793         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
72794         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
72795         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
72796         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
72797         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
72798         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
72799         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
72800         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
72801         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
72802         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
72803         * sysdeps/s390/s390-32/memcpy.S: New asm code.
72804         * sysdeps/s390/s390-32/memset.S: New asm code.
72805         * sysdeps/s390/s390-32/memcmp.S: New asm code.
72806
72807 2012-07-17  Marek Polacek  <polacek@redhat.com>
72808
72809         [BZ #14349]
72810         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
72811         * sysdeps/s390/s390-64/configure.in: Likewise.
72812         * sysdeps/sparc/configure.in: Likewise.
72813         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
72814         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
72815         * sysdeps/i386/configure.in: Likewise.
72816         * sysdeps/x86_64/configure.in: Likewise.
72817         * sysdeps/sh/configure.in: Likewise.
72818         * sysdeps/s390/s390-32/configure: Regenerated.
72819         * sysdeps/s390/s390-64/configure: Likewise.
72820         * sysdeps/x86_64/configure: Likewise.
72821         * sysdeps/sh/configure: Likewise.
72822         * sysdeps/powerpc/powerpc64/configure: Likewise.
72823         * sysdeps/powerpc/powerpc32/configure: Likewise.
72824         * sysdeps/sparc/configure: Likewise.
72825         * sysdeps/i386/configure: Likewise.
72826
72827         * elf/dl-open.c: Comment fixes.
72828
72829 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
72830
72831         * Makefile [CXX] (check-data): Remove.
72832         [CXX] (c++-types.data): New vpath directive.
72833         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
72834         vpath.  Do not allow for C++ type data being missing.
72835         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
72836         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
72837         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
72838         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
72839         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
72840         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
72841         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
72842         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
72843         ... here.
72844         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
72845         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
72846         ... here.
72847         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
72848         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
72849         ... here.
72850         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
72851         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
72852         ... here.
72853         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
72854         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
72855         ... here.
72856         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
72857         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
72858         ... here.
72859         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
72860         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
72861         ... here.
72862         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
72863         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
72864
72865         * elf/tls-macros.h (TLS_LE): Move architecture-specific
72866         definitions to architecture-specific files.
72867         (TLS_IE): Likewise.
72868         (TLS_LD): Likewise.
72869         (TLS_GD): Likewise.
72870         * sysdeps/i386/tls-macros.h: New file.
72871         * sysdeps/powerpc/tls-macros.h: Likewise.
72872         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
72873         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
72874         * sysdeps/sh/tls-macros.h: Likewise.
72875         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
72876         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
72877         * sysdeps/x86_64/tls-macros.h: Likewise.
72878
72879 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
72880
72881         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
72882         zero value for regular exit case.
72883
72884         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
72885         (__start_context): Preserve zero value for regular exit case.
72886
72887 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
72888             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
72889
72890         * manual/setjmp.texi (setcontext): Clarify normal process
72891         termination when uc_link is the null pointer.
72892         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
72893         exit call.
72894
72895 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
72896
72897         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
72898         preprocessor.  Test for each exception mask separately.
72899
72900 2012-07-16  Andreas Jaeger  <aj@suse.de>
72901
72902         * po/ru.po: Update from translation team.
72903
72904 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
72905
72906         * conform/data/string.h-data (NULL): Use macro-constant.  Require
72907         equal to 0.
72908         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
72909         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
72910         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
72911         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
72912         [ISO || ISO99 || ISO11] (*_t): Do not allow.
72913
72914 2012-07-13  Andreas Jaeger  <aj@suse.de>
72915
72916         * po/fr.po: Update from translation team.
72917
72918 2012-07-12  Marek Polacek  <polacek@redhat.com>
72919
72920         [BZ #14173]
72921         * math/libm-test.inc (yn_test): Add test for BZ #14173.
72922         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
72923         loop condition.
72924
72925 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
72926
72927         [BZ #13717]
72928         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
72929         Change to 2.4.1 where previously 2.4.0.
72930         * sysdeps/unix/sysv/linux/configure: Regenerated.
72931         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
72932         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
72933         version.
72934         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
72935         (__ASSUME_AT_CLKTCK): Remove.
72936         (__ASSUME_AT_PAGESIZE): Likewise.
72937         (__ASSUME_AT_XID): Likewise.
72938         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
72939         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
72940         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
72941         unconditionally.
72942         (HAVE_AUX_PAGESIZE): Likewise.
72943         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
72944         [__ASSUME_AT_CLKTCK]: Make code unconditional.
72945         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
72946
72947 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
72948
72949         [BZ #14307]
72950         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
72951         the temporary buffer used to invoke __gethostbyname2_r,
72952         __gethostbyaddr_r and gethostbyname4_r to make room for struct
72953         host_data / struct gaih_addrtuple.
72954         * resolv/nss_dns/dns-host.c (global scope): Move definition of
72955         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
72956         header file nss/nsswitch.h.
72957         * nss/nsswitch.h (global scope): Add definition of implementation
72958         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
72959         resolv/nss_dns/dns-host.c).
72960
72961 2012-07-11  Andreas Jaeger  <aj@suse.de>
72962
72963         * po/fr.po: Update from translation team.
72964
72965         * po/sv.po: Update from translation team
72966         * po/fr.po: Another update from translation team.
72967
72968 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
72969
72970         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
72971         for subnormals or multiply small sinh result by itself.
72972         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
72973         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
72974
72975 2012-07-11  David S. Miller  <davem@davemloft.net>
72976
72977         * sysdeps/sparc/fpu/libm-test-ulps: Update.
72978
72979 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
72980
72981         [BZ #14347]
72982         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
72983         (INTERNAL_MARK): Shift it here.
72984
72985 2012-07-10  Marek Polacek  <polacek@redhat.com>
72986
72987         [BZ #14151]
72988         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
72989         libc_cv_asm_global_directive with .globl.
72990         * configure: Regenerated.
72991         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
72992         with .globl.
72993         * sysdeps/i386/configure: Regenerated.
72994         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
72995         with .globl.
72996         * sysdeps/x86_64/configure: Regenerated.
72997         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
72998         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
72999         * elf/tst-unique2mod2.c: Likewise.
73000         * elf/tst-unique2mod1.c: Likewise.
73001         * elf/tst-unique1mod2.c: Likewise.
73002         * elf/tst-unique1mod1.c: Likewise.
73003         * sysdeps/s390/s390-32/sysdep.h: Likewise.
73004         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
73005         * sysdeps/s390/s390-64/sysdep.h: Likewise.
73006         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
73007         * sysdeps/mach/sysdep.h: Likewise.
73008         * sysdeps/i386/sysdep.h: Likewise.
73009         * sysdeps/i386/i386-mcount.S: Likewise.
73010         * sysdeps/x86_64/_mcount.S: Likewise.
73011         * sysdeps/x86_64/sysdep.h: Likewise.
73012         * sysdeps/sh/_mcount.S: Likewise.
73013         * sysdeps/sh/sysdep.h: Likewise.
73014         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
73015         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
73016         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
73017         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
73018         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
73019         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
73020         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
73021         * locale/localeinfo.h: Likewise.
73022         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
73023         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
73024
73025 2012-07-09  Roland McGrath  <roland@hack.frob.com>
73026
73027         [BZ #14336]
73028         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
73029         system".
73030         * manual/message.texi (The Uniforum approach): Likewise.
73031         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
73032         (glibc iconv Implementation): Likewise.
73033
73034 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
73035
73036         [BZ #14337]
73037         * math/s_clog.c (__clog): Avoid scaling a value down where that
73038         could result in underflow.
73039         * math/s_clog10.c (__clog10): Likewise.
73040         * math/s_clog10f.c (__clog10f): Likewise.
73041         * math/s_clog10l.c (__clog10l): Likewise.
73042         * math/s_clogf.c (__clogf): Likewise.
73043         * math/s_clogl.c (__clogl): Likewise.
73044         * math/libm-test.inc (clog_test): Add more tests.
73045         (clog10_test): Likewise.
73046         * sysdeps/i386/fpu/libm-test-ulps: Update.
73047         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
73048
73049 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
73050
73051         [BZ #14283]
73052         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
73053         by 7 not 8 to examine high bit of fractional part.
73054
73055         [BZ #14042]
73056         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
73057         for call to __mcount_internal.
73058         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
73059         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
73060         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
73061
73062 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
73063
73064         [BZ #14154]
73065         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
73066         approximation for values within 0x1p-13f of an odd multiple of
73067         pi/4.
73068         * math/libm-test.inc (tan_test): Do not allow spurious underflow
73069         exception.  Add more tests.
73070         * sysdeps/i386/fpu/libm-test-ulps: Update.
73071
73072         [BZ #6778]
73073         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
73074         inputs and return -1 for them.  Do not check for +Inf in case not
73075         reachable for +Inf.
73076         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
73077         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
73078         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
73079         and return -1 for them.  Do not check for +Inf in case not
73080         reachable for +Inf.
73081         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
73082         define.
73083         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
73084         and return -1 for them.  Do not check for +Inf in case not
73085         reachable for +Inf.
73086         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
73087         spurious underflow.
73088         * sysdeps/i386/fpu/libm-test-ulps: Update.
73089         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
73090
73091 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
73092
73093         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
73094
73095 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
73096
73097         [BZ #14157]
73098         [BZ #14331]
73099         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
73100         could result in spurious underflow.  Scale down values above
73101         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
73102         * math/s_csqrtf.c (__csqrtf): Likewise.
73103         * math/s_csqrtl.c (__csqrtl): Likewise.
73104         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
73105         spurious underflow.
73106         * sysdeps/i386/fpu/libm-test-ulps: Update.
73107         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
73108
73109 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
73110
73111         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
73112         xopen-msg.sed.
73113         * catgets/xopen-msg.awk: New file.
73114         * catgets/xopen-msg.sed: Removed.
73115
73116         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
73117         po2text.sed.
73118         * intl/po2test.awk: New file.
73119         * intl/po2test.sed: Removed.
73120
73121 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
73122
73123         [BZ #14328]
73124         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
73125         or multiply small sinh result by itself.
73126         * math/s_ctanf.c (__ctanf): Likewise.
73127         * math/s_ctanh.c (__ctanh): Likewise.
73128         * math/s_ctanhf.c (__ctanhf): Likewise.
73129         * math/s_ctanhl.c (__ctanhl): Likewise.
73130         * math/s_ctanl.c (__ctanl): Likewise.
73131         * math/libm-test.inc (ctan_test_tonearest): New function.
73132         (ctan_test_towardzero): Likewise.
73133         (ctan_test_downward): Likewise.
73134         (ctan_test_upward): Likewise.
73135         (ctanh_test_tonearest): Likewise.
73136         (ctanh_test_towardzero): Likewise.
73137         (ctanh_test_downward): Likewise.
73138         (ctanh_test_upward): Likewise.
73139         (main): Call these new functions.
73140         * sysdeps/i386/fpu/libm-test-ulps: Update.
73141         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
73142
73143 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
73144
73145         * .gitignore: Delete /ports entry.
73146
73147 2012-07-03  Andreas Jaeger  <aj@suse.de>
73148
73149         * po/bg.po: Update from translation team.
73150         * po/cs.po: Likewise.
73151         * po/de.po: Likewise.
73152         * po/hr.po: Likewise.
73153         * po/nl.pl: Likewise.
73154         * po/pl.po: Likewise.
73155         * po/vi.po: Likewise.
73156
73157 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
73158
73159         * Makeconfig [!+link] (+link-before-libc): New variable.
73160         [!+link] (+link-after-libc): Likewise.
73161         [!+link] (+link-tests): Likewise.
73162         [!+link] (+link): Define in terms of $(+link-before-libc) and
73163         $(+link-after-libc).
73164         [!+link-static] (+link-static-before-libc): New variable.
73165         [!+link-static] (+link-static-after-libc): Likewise.
73166         [!+link-static] (+link-static-tests): Likewise.
73167         [!+link-static] (+link-static): Define in terms of
73168         $(+link-static-before-libc) and $(+link-static-after-libc).
73169         [build-shared] (link-libc-before-gnulib): New variable.
73170         [build-shared] (link-libc-tests): Likewise.
73171         [build-shared] (link-libc): Define in terms of
73172         $(link-libc-before-gnulib).
73173         [!build-shared] (link-libc-tests): New variable.
73174         (link-libc-static-tests): New variable.
73175         [!gnulib] (gnulib-arch): New variable.
73176         [!gnulib] (gnulib-tests): Likewise.
73177         [!gnulib] (static-gnulib-arch): Likewise.
73178         [!gnulib] (static-gnulib-tests): Likewise.
73179         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
73180         Define with "=" instead of ":=".
73181         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
73182         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
73183         * Rules (binaries-all-notests): New variable.
73184         (binaries-all-tests): Likewise.
73185         (binaries-static-notests): Likewise.
73186         (binaries-static-tests): Likewise.
73187         (binaries-all): Define using $(binaries-all-notests) and
73188         $(binaries-all-tests).
73189         (binaries-static): Define using $(binaries-static-notests) and
73190         $(binaries-static-tests).
73191         (binaries-shared-tests): New variable.
73192         (binaries-shared-notests): Likewise.
73193         (binaries-shared): Remove variable.
73194         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
73195         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
73196         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
73197         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
73198         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
73199         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
73200         * elf/Makefile (sln-modules): New variable.
73201         (extra-objs): Add $(sln-modules:=.o).
73202         (ldconfig-modules): Add static-stubs.
73203         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
73204         * elf/static-stubs.c: New file.
73205
73206         [BZ #14283]
73207         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
73208         by 7 not 8 to examine high bit of fractional part.  Use volatile
73209         variables when splitting into final array of floats if
73210         __FLT_EVAL_METHOD__ != 0.
73211         * math/libm-test.inc (cos_test): Add another test.
73212         (sin_test): Likewise.
73213         * sysdeps/i386/fpu/libm-test-ulps: Update.
73214
73215         [BZ #14273]
73216         * math/libm-test.inc (cosh_test): Add more tests.
73217
73218         * version.h (RELEASE): Set to "development".
73219         (VERSION): Set to "2.16.90".
73220
73221 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
73222
73223         * NEWS: Update copyright. Remove last-updated date.
73224         Mention math library bug fixes and timezone data changes.
73225         * README: Mention GNU/Hurd, x32, and HPPA support status.
73226
73227 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
73228
73229         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
73230
73231 2012-06-27  Andreas Jaeger  <aj@suse.de>
73232
73233         * manual/contrib.texi (Contributors): Add Samuel Thibault.
73234
73235 2012-06-25  Andreas Jaeger  <aj@suse.de>
73236
73237         * sysdeps/s390/fpu/libm-test-ulps: Update.
73238
73239 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
73240             Thomas Schwinge  <thomas@codesourcery.com>
73241
73242         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
73243         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
73244         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
73245         fanotify_mark.
73246
73247 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
73248
73249         * sysdeps/mach/start.c: Remove file.
73250         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
73251         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
73252         * sysdeps/sh/init-first.c: Likewise.
73253
73254         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
73255         registers for frame unwinding purposes, add CFI directives.
73256         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
73257         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise.
73258         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
73259         Likewise.
73260
73261         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
73262         __fortify_fail returning.
73263         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
73264
73265         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
73266         sysdeps/sh/____longjmp_chk.S.
73267         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
73268         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
73269         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
73270         (gen-as-const-headers): Append sigaltstack-offsets.sym.
73271
73272         * sysdeps/sh/abort-instr.h: New file.
73273         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
73274         process in case exit returns.
73275
73276         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
73277         initialize the GOT register before use.
73278
73279         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
73280         calculation of ARGC > 4.
73281
73282         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
73283         meaningful names to some local labels.
73284
73285 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
73286             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
73287
73288         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
73289         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
73290         (__arch_compare_and_exchange_val_16_acq): Likewise.
73291         (__arch_compare_and_exchange_val_32_acq): Likewise.
73292         (atomic_exchange_and_add): Fix gUSA sequence.
73293         (atomic_add): Likewise.
73294         (atomic_add_negative): Likewise.
73295         (atomic_add_zero): Likewise.
73296         (atomic_bit_test_set): Likewise.
73297
73298 2012-06-22  Andreas Schwab  <schwab@redhat.com>
73299
73300         [BZ #13579]
73301         * include/link.h (struct link_map): Add l_free_initfini.
73302         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
73303         l_initfini.
73304         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
73305         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
73306         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
73307         set.
73308
73309 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
73310
73311         * configure.in: Use AC_LANG_SOURCE.
73312         * configure: Regenerate.
73313
73314 2012-06-22  Roland McGrath  <roland@hack.frob.com>
73315
73316         * configure.in (libc_cv_localstatedir): New substituted variable.
73317         * configure: Regenerated.
73318         * config.make.in (localstatedir): New variable, substituted from
73319         libc_cv_localstatedir.
73320         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
73321         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
73322         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
73323         * sysdeps/gnu/configure: Regenerated.
73324
73325 2012-06-21  Jeff Law  <law@redhat.com>
73326
73327         [BZ #14277]
73328         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
73329         free.  Simplify list management for _LIBC case.
73330
73331 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
73332
73333         [BZ #14273]
73334         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
73335         Clear sign bit of 64-bit integer value before comparing against
73336         overflow value.
73337
73338         * sysdeps/mach/configure: Regenerated.
73339
73340 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
73341
73342         [BZ #14278]
73343         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
73344
73345 2012-06-21  Jeff Law  <law@redhat.com>
73346
73347         [BZ #13882]
73348         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
73349         uint16_t for elements in the "seen" array to avoid char overflows.
73350         * elf/dl-fini.c (_dl_sort_fini): Likewise.
73351         * elf/dl-open.c (dl_open_worker): Likewise.
73352
73353 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
73354
73355         * scripts/list-sources.sh: Scan PORTS for translations.
73356         * po/libc.pot: Regenerated.
73357
73358 2012-06-21  Andreas Jaeger  <aj@suse.de>
73359
73360         [BZ #12194]
73361         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
73362         warning.
73363         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
73364         * bits/byteswap-16.h (__bswap_16): Likewise.
73365         * bits/byteswap.h (__bswap_constant_16): Likewise.
73366
73367 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
73368
73369         [BZ #14117]
73370         * sysdeps/i386/fpu_control.h: Removed.
73371         * sysdeps/x86_64/fpu_control.h: Moved to ...
73372         * sysdeps/x86/fpu_control.h: Here.
73373
73374         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
73375         (_FPU_SETCW): Likewise.
73376
73377 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
73378
73379         [BZ #14117]
73380         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
73381         * sysdeps/x86/fpu/bits/mathinline.h: This.
73382         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
73383
73384         [BZ #14050]
73385         [BZ #14117]
73386         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
73387         functions if __x86_64__ is defined.
73388
73389 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
73390
73391         * string/endian.h: Add !__ASSEMBLER__ condition for including
73392         conversion interfaces.
73393
73394 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
73395
73396         [BZ #14241]
73397         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
73398         of ABS(x) in calculating zero to negative powers other than odd
73399         integers.
73400         * math/libm-test.inc (pow_test): Add more tests.
73401
73402 2012-06-15  Andreas Jaeger  <aj@suse.de>
73403
73404         * manual/contrib.texi (Contributors): Update entry of Liubov
73405         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
73406         Machado Filho.
73407
73408 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
73409
73410         * string/string.h: Add __wur to GNU version of strerror_r.
73411
73412 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
73413
73414         [BZ #14229]
73415         * string/Makefile (tests): Add tst-strtok_r.
73416         * string/tst-strtok_r.c: New file.
73417         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
73418         RAX_LP/RDX_LP on SAVE_PTR.
73419
73420 2012-06-14  Roland McGrath  <roland@hack.frob.com>
73421
73422         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
73423
73424 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
73425
73426         * libm_test.inc (csqrt_test): Allow more spurious underflow
73427         exceptions.
73428         (j0_test): Likewise.
73429         (j1_test): Likewise.
73430         (y0_test): Likewise.
73431         (y1_test): Likewise.
73432
73433 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
73434
73435         * po/Makefile (libc.pot): Use UTF-8 charset.
73436
73437 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
73438
73439         [BZ #14210]
73440         Suppress sign-conversion warning from FD_SET.
73441         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
73442         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
73443         not unsigned long int.
73444         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
73445
73446 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
73447
73448         [BZ #14050]
73449         [BZ #14117]
73450         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
73451         __extern_always_inline instead of __extern_inline.
73452         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
73453         (__signbit): Likewise.
73454         (__signbitl): Support C++ namespace.
73455         (lrintf): New inline function.
73456         (lrint): Likewise.
73457         (llrintf): Likewise.
73458         (llrint): Likewise.
73459         (fmaxf): Likewise.
73460         (fmax): Likewise.
73461         (fminf): Likewise.
73462         (fmin): Likewise.
73463         (rint): Likewise.
73464         (rintf): Likewise.
73465         (ceil): Likewise.
73466         (ceilf): Likewise.
73467         (floor): Likewise.
73468         (floorf): Likewise.
73469         (nearbyint): Likewise.
73470         (nearbyintf): Likewise.
73471
73472 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
73473
73474         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
73475         non-default versions.
73476
73477 2012-06-11  Roland McGrath  <roland@hack.frob.com>
73478
73479         [BZ #14218]
73480         * manual/argp.texi (Argp): Reword argp_parse description slightly.
73481
73482 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
73483
73484         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
73485         (FE_UPWARD, FE_DOWNWARD): Don't define.
73486         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
73487         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
73488
73489         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
73490         reading it.
73491         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
73492         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
73493
73494 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
73495
73496         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
73497         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
73498         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
73499         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
73500
73501 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
73502
73503         [BZ #14117]
73504         * sysdeps/i386/fpu/bits/fenv.h: Removed.
73505         * sysdeps/i386/fpu/Implies: New file.
73506         * sysdeps/x86_64/fpu/Implies: Likewise.
73507         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
73508         * sysdeps/x86/fpu/bits/fenv.h: This.
73509
73510         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
73511         __SSE_MATH__.
73512
73513 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
73514
73515         [BZ #14134]
73516         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
73517         character 0xffff that matches the last element of the
73518         conversion table.
73519
73520 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
73521
73522         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
73523         fmodl commit.
73524
73525 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
73526
73527         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
73528         values higher than 25.6283.
73529
73530 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
73531
73532         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
73533         subnormal exponent extraction and add some __builtin_expect.
73534         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
73535         Fix for subnormal mantissa calculation.
73536
73537 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
73538
73539         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
73540         cpu2 is -1 and errno is not ENOSYS.
73541
73542 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
73543
73544         [BZ #14117]
73545         * sysdeps/i386/i486/bits/string.h: Renamed to ...
73546         * sysdeps/x86/bits/string.h: This.
73547         * sysdeps/x86_64/bits/string.h: Removed.
73548
73549         * sysdeps/i386/i486/bits/string.h: Define inline functions only
73550         if not compiling for x86-64, but compiling for >= i486.
73551
73552         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
73553         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
73554
73555         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
73556         New macro from Linux kernel 3.4.0.
73557         (FP_XSTATE_MAGIC2): Likewise.
73558         (FP_XSTATE_MAGIC2_SIZE): Likewise.
73559         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
73560         (struct _fpx_sw_bytes): New struct.
73561         (struct _xsave_hdr): Likewise.
73562         (struct _ymmh_state): Likewise.
73563         (struct _xstate): Likewise.
73564
73565         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
73566         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
73567         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
73568         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
73569         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
73570         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
73571
73572         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
73573         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
73574         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
73575         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
73576         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
73577         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
73578
73579 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
73580
73581         [BZ #13743]
73582         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
73583         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
73584         (sysdep_headers): Include sys/platform/ppc.h.
73585         * sysdeps/powerpc/test-gettimebase.c: Test for
73586         __ppc_get_timebase() to catch future ISA opcode/insn changes.
73587         * manual/Makefile (appendices): Include platform.texi.
73588         * manual/contrib.texi (Contributors): Update @node pointers.
73589         * manual/maint.texi (Maintenance): Likewise.
73590         (Platform): New node.
73591         * manual/platform.texi: New file.  Document the new features.
73592
73593 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
73594             Jakub Jelinek  <jakub@redhat.com>
73595
73596         [BZ #14188]
73597         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
73598         where __builtin_expect is unavailable.
73599
73600 2012-06-03  David S. Miller  <davem@davemloft.net>
73601
73602         * stdlib/longlong.h: Updated from GCC.
73603
73604 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
73605
73606         [BZ #14042]
73607         * sysdeps/powerpc/powerpc32/mcount.c: New file.
73608         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
73609         __mcount_internal.
73610         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
73611         (GLIBC_2.16): Likewise.
73612
73613 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
73614
73615         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
73616
73617 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
73618
73619         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
73620         (default-abi): New variable.
73621         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
73622         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
73623         variable.
73624         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
73625         Likewise.
73626         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
73627         Likewise.
73628         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
73629         Likewise.
73630
73631         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
73632         definition.  Document in comment.
73633
73634 2012-06-01  David S. Miller  <davem@davemloft.net>
73635
73636         * stdlib/longlong.h: Updated from GCC.
73637
73638 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
73639
73640         [BZ #14117]
73641         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
73642         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
73643         sys/debugreg.h sys/io.h here.
73644         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
73645         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
73646         sys/io.h.
73647         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
73648         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
73649         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
73650         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
73651         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
73652         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
73653
73654         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
73655         Define only if __x86_64__ is defined.
73656
73657 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
73658
73659         [BZ #14048]
73660         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
73661         Use int64_t for variable i.
73662         * math/libm-test.inc (fmod_test): Add more tests.
73663
73664         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
73665         z computation is not scheduled after fetestexcept.
73666         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
73667         Use math_force_eval instead of asm to ensure calculation scheduled
73668         before exception test.
73669         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
73670         Ensure a1 + u.d computation is not scheduled after fetestexcept.
73671
73672 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
73673
73674         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
73675         computation is not scheduled after fetestexcept.
73676
73677 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
73678
73679         [BZ #14117]
73680         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
73681         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
73682
73683 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
73684
73685         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
73686         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
73687
73688 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
73689
73690         [BZ #14117]
73691         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
73692         <bits/wordsize.h>.
73693         (__WCHAR_MIN): Support __WORDSIZE == 64.
73694         (__WCHAR_MAX): Likewise.
73695
73696         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
73697         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
73698
73699         [BZ #14183]
73700         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
73701         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
73702
73703         [BZ #14117]
73704         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
73705         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
73706
73707         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
73708         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
73709
73710         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
73711         Defined to 1 if __x86_64__ isn't defined.
73712         (_STAT_VER_LINUX_OLD): New.
73713         (st_atime): Remove duplicate.
73714         (st_mtime): Likewise.
73715         (st_ctime): Likewise.
73716
73717 2012-05-31  David S. Miller  <davem@davemloft.net>
73718
73719         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
73720         entries.
73721
73722 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
73723
73724         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
73725         gen-libm-test.pl.
73726
73727         [BZ #14132]
73728         * elf/dl-reloc.c: Include <_itoa.h>.
73729         (_dl_reloc_bad_type): Remove use of INTUSE.
73730         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
73731         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
73732         * stdio-common/psiginfo.c (psiginfo): Likewise.
73733         * stdio-common/psignal.c (psignal): Likewise.
73734         * string/strsignal.c (strsignal): Likewise.
73735         * include/signal.h (_sys_siglist): Declare hidden proto.
73736         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
73737         INTVARDEF with libc_hidden_data_def.
73738         * stdio-common/itoa-udigits.c: Likewise.
73739         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
73740         (_itoa_lower_digits_internal): Remove declaration.
73741         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
73742         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
73743         (_sys_sigabbrev_internal): Remove aliases.
73744         (_sys_siglist): Define hidden alias.
73745
73746 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
73747
73748         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
73749         bits/sysctl.h.
73750
73751 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
73752
73753         [BZ #14117]
73754         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
73755         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
73756
73757         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
73758         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
73759         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
73760         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
73761         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
73762         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
73763
73764         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
73765         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
73766         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
73767
73768         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
73769         with __addr.
73770         (insw): Likewise.
73771         (insl): Likewise.
73772         (outsb): Likewise.
73773         (outsw): Likewise.
73774         (outsl): Likewise.
73775
73776         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
73777         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
73778         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
73779
73780         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
73781         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
73782         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
73783         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
73784         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
73785         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
73786
73787         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
73788         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
73789
73790         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
73791         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
73792
73793         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
73794         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
73795         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
73796
73797         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
73798         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
73799         to ...
73800         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
73801
73802         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
73803         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
73804         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
73805
73806         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
73807         for x86-64.
73808         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
73809
73810 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
73811
73812         * math/math.h (M_El): Use two more decimal places.
73813         (M_LOG2El): Likewise.
73814         (M_LOG10El): Likewise.
73815         (M_LN2l): Likewise.
73816         (M_LN10l): Likewise.
73817         (M_PIl): Likewise.
73818         (M_PI_2l): Likewise.
73819         (M_PI_4l): Likewise.
73820         (M_1_PIl): Likewise.
73821         (M_2_PIl): Likewise.
73822         (M_2_SQRTPIl): Likewise.
73823         (M_SQRT2l): Likewise.
73824         (M_SQRT1_2l): Likewise.
73825
73826 2012-05-31  David S. Miller  <davem@davemloft.net>
73827
73828         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
73829         values between float registers.
73830         * sysdeps/sparc/sparc64/memset.S: Likewise.
73831         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
73832
73833 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
73834
73835         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
73836         -D_FORTIFY_SOURCE=1.
73837         (CPPFLAGS-tst-longjmp_chk.c): Define.
73838         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
73839         (CPPFLAGS-tst-longjmp_chk2.c): Define.
73840         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
73841         CFLAGS-tst-wchar-h.c.
73842
73843 2012-05-31  Marek Polacek  <polacek@redhat.com>
73844
73845         [BZ #14132]
73846         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
73847         __endmntent_internal): Remove declaration.
73848         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
73849         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
73850         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
73851
73852 2012-05-30  David S. Miller  <davem@davemloft.net>
73853
73854         * sysdeps/sparc/sparc32/soft-fp/q_util.c
73855         (___Q_simulate_exceptions): Use real FP ops rather than writing
73856         into the %fsr.
73857         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
73858         Likewise.
73859
73860 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
73861
73862         [BZ #14117]
73863         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
73864         * sysdeps/x86/bits/xtitypes.h: This.
73865
73866         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
73867         * sysdeps/x86/bits/wordsize.h: This.
73868
73869         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
73870         * sysdeps/x86/bits/huge_vall.h: This.
73871
73872         * sysdeps/i386/bits/select.h: Removed.
73873         * sysdeps/x86_64/bits/select.h: Renamed to ...
73874         * sysdeps/x86/bits/select.h: This.
73875
73876         * sysdeps/i386/bits/setjmp.h: Removed.
73877         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
73878         * sysdeps/x86/bits/setjmp.h: This.
73879
73880         * sysdeps/i386/bits/mathdef.h: Removed.
73881         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
73882         * sysdeps/x86/bits/mathdef.h: This.
73883
73884 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
73885
73886         [BZ #14132]
73887         * include/sys/socket.h (__connect_internal)
73888         (__libc_sa_len_internal): Remove declaration.
73889         (__connect, __libc_sa_len): Declare hidden_proto.
73890         (SA_LEN): Remove use of INTUSE.
73891         * socket/connect.c: Add libc_hidden_def.
73892         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
73893         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
73894         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
73895         alias.
73896         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
73897         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
73898         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
73899         of adding _internal alias.
73900
73901 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
73902
73903         [BZ #14117]
73904         * sysdeps/i386/bits/link.h: Removed.
73905         * sysdeps/i386/bits/linkmap.h: Likewise.
73906         * sysdeps/x86_64/bits/link.h: Renamed to ...
73907         * sysdeps/x86/bits/link.h: This.
73908         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
73909         * sysdeps/x86/bits/linkmap.h: This.
73910
73911         * sysdeps/i386/bits/endian.h: Removed.
73912         * sysdeps/x86_64/bits/endian.h: Renamed to ...
73913         * sysdeps/x86/bits/endian.h: This.
73914
73915         * sysdeps/i386/bits/byteswap.h: Removed.
73916         * sysdeps/i386/bits/byteswap-16.h: Likewise.
73917         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
73918         * sysdeps/x86/bits/byteswap.h: This.
73919         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
73920         * sysdeps/x86/bits/byteswap-16.h: This.
73921         * sysdeps/i386/Implies: Add x86.
73922         * sysdeps/x86_64/Implies: Likewise.
73923
73924 2012-05-30  David S. Miller  <davem@davemloft.net>
73925
73926         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
73927         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
73928         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
73929         (FP_TRAPPING_EXCEPTIONS): Define.
73930         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
73931         (FP_TRAPPING_EXCEPTIONS): Define.
73932         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
73933         subnormals only when inexact has been signalled or underflow
73934         exceptions are enabled.
73935         (_FP_PACK_CANONICAL): Likewise.
73936
73937 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
73938
73939         [BZ #14183]
73940         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
73941         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
73942
73943 2012-05-30  Richard Henderson  <rth@twiddle.net>
73944
73945         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
73946         with #ifndef NOT_IN_libc.
73947
73948         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
73949         marked to avoid plt entry.
73950
73951 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
73952
73953         [BZ #14112]
73954         * Makeconfig (default-abi): New macro.
73955         (abi-includes): Likewise.
73956         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
73957         $(abi-$(default-abi)-lib-soname) for soname if defined.
73958         ($(common-objpfx)gnu/lib-names.stmp): Generate from
73959         abi-variants.
73960         * Makefile (installed-stubs): Likewise.
73961         * include/stubs-biarch.h: Removed.
73962         * scripts/lib-names.awk: Only handle one library at a time.
73963         * scripts/soversions.awk: Remove WORDSIZE support.
73964         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
73965         entries.
73966         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
73967         Removed.
73968         (syscall-list-default-condition): Likewise.
73969         (syscall-list-default-condition): Likewise.
73970         (syscall-list-includes): Likewise.
73971         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
73972         syscall-list-* with abi-*.  Handle undefined abi-variants.
73973         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
73974         * sysdeps/unix/sysv/linux/i386/Implies: New file.
73975         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
73976         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
73977         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
73978         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
73979         Removed.
73980         (syscall-list-32-options): Likewise.
73981         (syscall-list-32-condition): Likewise.
73982         (syscall-list-64-options): Likewise.
73983         (syscall-list-64-condition): Likewise.
73984         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
73985         macro.
73986         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
73987         Renamed to ...
73988         (abi-*): This.
73989         (abi-64-ld-soname): New macro.
73990         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
73991         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
73992         Renamed to ...
73993         (abi-*): This.
73994         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
73995         * sysdeps/x86_64/x32/shlib-versions: Likewise.
73996
73997 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
73998
73999         * sysdeps/unix/sysv/linux/kernel-features.h
74000         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
74001         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
74002         include <kernel-features.h>.
74003         [!__NR_ftruncate64]: Remove conditional code.
74004         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
74005         [__NR_ftruncate64]: Make code unconditional.
74006         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
74007         * sysdeps/unix/sysv/linux/truncate64.c: Do not
74008         include <kernel-features.h>.
74009         [!__NR_ftruncate64]: Remove conditional code.
74010         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
74011         [__NR_ftruncate64]: Make code unconditional.
74012         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
74013         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
74014         include <kernel-features.h>.
74015         [!__NR_ftruncate64]: Remove conditional code.
74016         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
74017         [__NR_ftruncate64]: Make code unconditional.
74018         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
74019         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
74020         include <kernel-features.h>.
74021         [!__NR_ftruncate64]: Remove conditional code.
74022         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
74023         [__NR_ftruncate64]: Make code unconditional.
74024         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
74025
74026         * configure.in (libc_cv_fpie): Weaken to a compile test using
74027         LIBC_TRY_CC_OPTION.
74028         * configure: Regenerated.
74029
74030 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
74031
74032         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
74033         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
74034         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
74035         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
74036         Refreshed.
74037         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
74038         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
74039         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
74040         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
74041         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
74042         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
74043         Refreshed.
74044
74045 2012-05-27  David S. Miller  <davem@davemloft.net>
74046
74047         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
74048         (___Q_zero): New.
74049         (__Q_simulate_exceptions): Return void.  Change to simulate
74050         exceptions by writing into the %fsr.
74051         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
74052         (__Qp_handle_exceptions): Likewise.
74053         (numbers): Delete.
74054         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
74055         __Qp_handle_exceptions.
74056         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
74057         __Qp_handle_exceptions.
74058         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
74059         as unused and give dummy FP_RND_NEAREST initializer.
74060         (FP_INHIBIT_RESULTS): Define.
74061         (___Q_simulate_exceptions): Update declaration.
74062         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
74063         formatting.
74064         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
74065         as unused and give dummy FP_RND_NEAREST initializer.
74066         (__Qp_handle_exceptions): Update declaration.
74067         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
74068         formatting.
74069
74070 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
74071
74072         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
74073         the temporary FPU control word.
74074         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
74075         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
74076         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
74077         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
74078         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
74079         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
74080         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
74081         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
74082         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
74083         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
74084         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
74085
74086 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
74087
74088         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
74089         fields.
74090
74091 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
74092
74093         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
74094         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
74095         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
74096         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
74097         Likewise.
74098         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
74099         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
74100         Likewise.
74101
74102 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
74103
74104         * po/h.po: Update from translation team.
74105
74106 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
74107
74108         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
74109
74110         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
74111         handling of denormals.
74112         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
74113         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
74114         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
74115         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
74116         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
74117         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
74118         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
74119         Likewise.
74120
74121 2012-05-26  Marek Polacek  <polacek@redhat.com>
74122
74123         [BZ #14152]
74124         * math/libm-test.inc (fma_test): Don't always expect underflow
74125         exception.
74126
74127 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
74128
74129         [BZ #12416]
74130         * elf/tst-execstack.c: Include stackinfo.h.
74131         (do_test): Adjust test case to ensure that pthread_getattr_np
74132         behaviour remains the same after marking stack executable.
74133
74134 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
74135
74136         * sysdeps/unix/sysv/linux/kernel-features.h
74137         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
74138         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
74139         kernel-features.h.
74140         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
74141         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
74142         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
74143         kernel-features.h.
74144         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
74145         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
74146
74147 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
74148
74149         * configure.in: Define the default includes to being none.
74150         * configure: Regenerated.
74151
74152 2012-05-25  Roland McGrath  <roland@hack.frob.com>
74153
74154         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
74155         * sysdeps/x86_64/setjmp.S: Likewise.
74156         * sysdeps/i386/bsd-setjmp.S: Likewise.
74157         * sysdeps/i386/bsd-_setjmp.S: Likewise.
74158         * sysdeps/i386/setjmp.S: Likewise.
74159         * sysdeps/i386/__longjmp.S: Likewise.
74160         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
74161         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
74162
74163         * include/stap-probe.h: New file.
74164         * configure.in: Handle --enable-systemtap.
74165         * configure: Regenerated.
74166         * config.h.in (USE_STAP_PROBE): New #undef.
74167         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
74168         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
74169         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
74170
74171 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
74172
74173         [BZ #13717]
74174         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
74175         to 2.4.0 where earlier.
74176         * sysdeps/unix/sysv/linux/configure: Regenerated.
74177         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
74178         <kernel-features.h>.
74179         [__ASSUME_32BITUIDS]: Make code unconditional.
74180         [!__ASSUME_32BITUIDS]: Remove conditional code.
74181         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
74182         <kernel-features.h>.
74183         [__ASSUME_32BITUIDS]: Make code unconditional.
74184         [!__ASSUME_32BITUIDS]: Remove conditional code.
74185         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
74186         [__ASSUME_32BITUIDS]: Make code unconditional.
74187         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
74188         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
74189         <kernel-features.h>.
74190         [__ASSUME_32BITUIDS]: Make code unconditional.
74191         [!__ASSUME_32BITUIDS]: Remove conditional code.
74192         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
74193         <kernel-features.h>.
74194         [__ASSUME_32BITUIDS]: Make code unconditional.
74195         [!__ASSUME_32BITUIDS]: Remove conditional code.
74196         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
74197         <kernel-features.h>.
74198         [__ASSUME_32BITUIDS]: Make code unconditional.
74199         [!__ASSUME_32BITUIDS]: Remove conditional code.
74200         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
74201         <kernel-features.h>.
74202         [__ASSUME_32BITUIDS]: Make code unconditional.
74203         [!__ASSUME_32BITUIDS]: Remove conditional code.
74204         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
74205         <kernel-features.h>.
74206         [__ASSUME_32BITUIDS]: Make code unconditional.
74207         [!__ASSUME_32BITUIDS]: Remove conditional code.
74208         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
74209         <kernel-features.h>.
74210         [__ASSUME_32BITUIDS]: Make code unconditional.
74211         [!__ASSUME_32BITUIDS]: Remove conditional code.
74212         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
74213         <kernel-features.h>.
74214         [__ASSUME_32BITUIDS]: Make code unconditional.
74215         [!__ASSUME_32BITUIDS]: Remove conditional code.
74216         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
74217         <kernel-features.h>.
74218         [__ASSUME_32BITUIDS]: Make code unconditional.
74219         [!__ASSUME_32BITUIDS]: Remove conditional code.
74220         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
74221         <kernel-features.h>.
74222         [__ASSUME_32BITUIDS]: Make code unconditional.
74223         [!__ASSUME_32BITUIDS]: Remove conditional code.
74224         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
74225         <kernel-features.h>.
74226         [__ASSUME_32BITUIDS]: Make code unconditional.
74227         [!__ASSUME_32BITUIDS]: Remove conditional code.
74228         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
74229         <kernel-features.h>.
74230         [__NR_setresgid] (__setresgid): Do not declare.
74231         [__ASSUME_32BITUIDS]: Make code unconditional.
74232         [!__ASSUME_32BITUIDS]: Remove conditional code.
74233         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
74234         <kernel-features.h>.
74235         [__NR_setresuid] (__setresuid): Do not declare.
74236         [__ASSUME_32BITUIDS]: Make code unconditional.
74237         [!__ASSUME_32BITUIDS]: Remove conditional code.
74238         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
74239         <kernel-features.h>.
74240         [__ASSUME_32BITUIDS]: Make code unconditional.
74241         [!__ASSUME_32BITUIDS]: Remove conditional code.
74242         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
74243         <kernel-features.h>.
74244         [__ASSUME_32BITUIDS]: Make code unconditional.
74245         [!__ASSUME_32BITUIDS]: Remove conditional code.
74246         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
74247         <kernel-features.h>.
74248         [__ASSUME_32BITUIDS]: Make code unconditional.
74249         [!__ASSUME_32BITUIDS]: Remove conditional code.
74250         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
74251         <kernel-features.h>.
74252         [__ASSUME_32BITUIDS]: Make code unconditional.
74253         [!__ASSUME_32BITUIDS]: Remove conditional code.
74254         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
74255         <kernel-features.h>.
74256         [__ASSUME_32BITUIDS]: Make code unconditional.
74257         [!__ASSUME_32BITUIDS]: Remove conditional code.
74258         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
74259         <kernel-features.h>.
74260         [__ASSUME_32BITUIDS]: Make code unconditional.
74261         [!__ASSUME_32BITUIDS]: Remove conditional code.
74262         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
74263         <kernel-features.h>.
74264         [__ASSUME_32BITUIDS]: Make code unconditional.
74265         [!__ASSUME_32BITUIDS]: Remove conditional code.
74266         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
74267         <kernel-features.h>.
74268         [__ASSUME_32BITUIDS]: Make code unconditional.
74269         [!__ASSUME_32BITUIDS]: Remove conditional code.
74270         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
74271         <kernel-features.h>.
74272         [__ASSUME_32BITUIDS]: Make code unconditional.
74273         [!__ASSUME_32BITUIDS]: Remove conditional code.
74274         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
74275         <kernel-features.h>.
74276         [__ASSUME_32BITUIDS]: Make code unconditional.
74277         [!__ASSUME_32BITUIDS]: Remove conditional code.
74278         * sysdeps/unix/sysv/linux/kernel-features.h
74279         (__ASSUME_SETRESUID_SYSCALL): Remove.
74280         (__ASSUME_SETRESGID_SYSCALL): Likewise.
74281         (__ASSUME_32BITUIDS): Likewise.
74282         (__ASSUME_LDT_WORKS): Likewise.
74283         (__ASSUME_O_DIRECTORY): Likewise.
74284         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
74285         architecture but not kernel version.
74286         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
74287         (__ASSUME_MMAP2_SYSCALL): Likewise.
74288         (__ASSUME_STAT64_SYSCALL): Likewise.
74289         (__ASSUME_IPC64): Likewise.
74290         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
74291         <kernel-features.h>.
74292         [__ASSUME_32BITUIDS]: Make code unconditional.
74293         [!__ASSUME_32BITUIDS]: Remove conditional code.
74294         * sysdeps/unix/sysv/linux/opendir.c: Do not include
74295         <kernel-features.h>.
74296         [__ASSUME_O_DIRECTORY]: Make code unconditional.
74297         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
74298         132096]: Remove conditional code.
74299         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
74300         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
74301         <kernel-features.h>.
74302         [__ASSUME_32BITUIDS]: Make code unconditional.
74303         [!__ASSUME_32BITUIDS]: Remove conditional code.
74304         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
74305         <kernel-features.h>.
74306         [__ASSUME_32BITUIDS]: Make code unconditional.
74307         [!__ASSUME_32BITUIDS]: Remove conditional code.
74308         * sysdeps/unix/sysv/linux/setegid.c: Do not include
74309         <kernel-features.h>.
74310         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
74311         unconditional.
74312         (__setresgid): Do not declare.
74313         [__ASSUME_32BITUIDS]: Make code unconditional.
74314         [!__ASSUME_32BITUIDS]: Remove conditional code.
74315         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
74316         <kernel-features.h>.
74317         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
74318         unconditional.
74319         (__setresuid): Do not declare.
74320         [__ASSUME_32BITUIDS]: Make code unconditional.
74321         [!__ASSUME_32BITUIDS]: Remove conditional code.
74322         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
74323         <kernel-features.h>.
74324         [__ASSUME_32BITUIDS]: Make code unconditional.
74325         [!__ASSUME_32BITUIDS]: Remove conditional code.
74326         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
74327         <kernel-features.h>.
74328         [__ASSUME_32BITUIDS]: Make code unconditional.
74329         [!__ASSUME_32BITUIDS]: Remove conditional code.
74330
74331 2012-05-25  Richard Henderson  <rth@twiddle.net>
74332
74333         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
74334         dl_hwcap to ifunc resolver.
74335         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
74336         elf_ifunc_invoke.
74337         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
74338         dl_hwcap to ifunc resolver.
74339         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
74340
74341 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
74342
74343         [BZ #14153]
74344         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
74345         for |x| <= 2**-26, not 2**-57.
74346         * math/libm-test.inc (acos_test): Do not allow spurious underflow
74347         exception.
74348
74349 2012-05-24  Jeff Law  <law@redhat.com>
74350
74351         * stdio-common/Makefile (tests): Add bug25.
74352         * stdio-common/bug25.c: New test.
74353
74354 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
74355
74356         [BZ #13576]
74357         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
74358         multiple of MALLOC_ALIGNMENT in size.
74359         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
74360
74361 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
74362
74363         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
74364         Require >= 256.
74365         (FILENAME_MAX): Use macro-int-constant.
74366         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
74367         (_IOFBF): Use macro-int-constant.
74368         (_IOLBF): Likewise.
74369         (_IONBF): Likewise.
74370         (SEEK_CUR): Likewise.
74371         (SEEK_END): Likewise.
74372         (SEEK_SET): Likewise.
74373         (TMP_MAX): Likewise.
74374         (EOF): Use macro-int-constant.  Require < 0.
74375         (NULL): Use macro-constant.  Require == 0.
74376         (stdin): Require type to be FILE *.
74377         (stdout): Likewise.
74378         (stderr): Likewise.
74379         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
74380         macro-int-constant.
74381         (EXIT_SUCCESS): Likewise.
74382         (NULL): Use macro-constant.  Require == 0.
74383         (RAND_MAX): Use macro-int-constant.
74384         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
74385         [C99-based standards] (strtof): Require function.
74386         [C99-based standards] (strtold): Likewise.
74387         [C99-based standards] (strtoll): Likewise.
74388         [C99-based standards] (strtoull): Likewise.
74389         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
74390         [ISO || ISO99 || ISO11] (limits.h): Likewise.
74391         [ISO || ISO99 || ISO11] (math.h): Likewise.
74392         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
74393         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
74394         [ISO || ISO99 || ISO11] (*_t): Do not allow.
74395
74396 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
74397
74398         [BZ #14132]
74399         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
74400         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
74401         * intl/dgettext.c (DCGETTEXT): Likewise.
74402         * intl/gettext.c (DCGETTEXT): Likewise.
74403         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
74404         * posix/regex_internal.h (gettext): Likewise.
74405         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
74406         Remove declaration.
74407         * include/argz.h (__argz_count_internal)
74408         (__argz_stringify_internal): Remove declaration.
74409         (__argz_count, __argz_stringify): Declare hidden proto.
74410         * intl/dcgettext.c: Remove use of INTDEF.
74411         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
74412         * string/argz-stringify.c: Likewise.
74413         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
74414         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
74415         Declare hidden proto.
74416         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
74417         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
74418         Declare hidden proto.
74419         * include/stdio.h (__asprintf_internal): Don't declare.
74420         (__asprintf): Don't define as macro.  Declare hidden proto.
74421         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
74422         (__fsetlocking): Declare hidden proto.
74423         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
74424         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
74425         hidden proto.
74426         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
74427         (_IO_setlinebuf): Remove use of INTUSE.
74428         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
74429         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
74430         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
74431         Remove declaration.
74432         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
74433         (_IO_do_flush): Remove use of INTUSE.
74434         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
74435         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
74436         (_IO_adjust_column, _IO_least_wmarker)
74437         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
74438         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
74439         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
74440         (_IO_default_doallocate, _IO_wdefault_doallocate)
74441         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
74442         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
74443         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
74444         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
74445         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
74446         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
74447         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
74448         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
74449         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
74450         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
74451         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
74452         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
74453         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
74454         proto.
74455         (_IO_flush_all_internal, _IO_adjust_column_internal)
74456         (_IO_default_uflow_internal, _IO_default_finish_internal)
74457         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
74458         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
74459         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
74460         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
74461         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
74462         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
74463         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
74464         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
74465         (_IO_file_close_internal, _IO_file_close_it_internal)
74466         (_IO_file_underflow_internal, _IO_file_overflow_internal)
74467         (_IO_file_init_internal, _IO_file_attach_internal)
74468         (_IO_file_fopen_internal, _IO_file_read_internal)
74469         (_IO_file_sync_internal, _IO_file_seek_internal)
74470         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
74471         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
74472         (_IO_str_underflow_internal, _IO_str_overflow_internal)
74473         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
74474         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
74475         (_IO_list_all_internal, _IO_link_in_internal)
74476         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
74477         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
74478         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
74479         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
74480         (_IO_do_write_internal, _IO_padn_internal)
74481         (_IO_getline_info_internal, _IO_getline_internal)
74482         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
74483         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
74484         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
74485         (_IO_vfscanf_internal, _IO_vfprintf_internal)
74486         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
74487         (_IO_init_internal, _IO_un_link_internal): Don't declare.
74488         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
74489         with libc_hidden_ver, remove use of INTUSE.
74490         * libio/genops.c: Likewise.
74491         * libio/freopen.c: Likewise.
74492         * libio/freopen64.c: Likewise.
74493         * libio/iofclose.c: Likewise.
74494         * libio/iofdopen.c: Likewise.
74495         * libio/iofflush.c: Likewise.
74496         * libio/iofflush_u.c: Likewise.
74497         * libio/iofgets.c: Likewise.
74498         * libio/iofgets_u.c: Likewise.
74499         * libio/iofopen.c: Likewise.
74500         * libio/iofopncook.c: Likewise.
74501         * libio/iofread.c: Likewise.
74502         * libio/iofread_u.c: Likewise.
74503         * libio/ioftell.c: Likewise.
74504         * libio/iofwrite.c: Likewise.
74505         * libio/iogetline.c: Likewise.
74506         * libio/iogets.c: Likewise.
74507         * libio/iogetwline.c: Likewise.
74508         * libio/iopadn.c: Likewise.
74509         * libio/iopopen.c: Likewise.
74510         * libio/ioseekoff.c: Likewise.
74511         * libio/ioseekpos.c: Likewise.
74512         * libio/iosetbuffer.c: Likewise.
74513         * libio/iosetvbuf.c: Likewise.
74514         * libio/ioungetc.c: Likewise.
74515         * libio/ioungetwc.c: Likewise.
74516         * libio/iovdprintf.c: Likewise.
74517         * libio/iovsprintf.c: Likewise.
74518         * libio/iovsscanf.c: Likewise.
74519         * libio/memstream.c: Likewise.
74520         * libio/obprintf.c: Likewise.
74521         * libio/oldfileops.c: Likewise.
74522         * libio/oldiofclose.c: Likewise.
74523         * libio/oldiofdopen.c: Likewise.
74524         * libio/oldiofopen.c: Likewise.
74525         * libio/oldiopopen.c: Likewise.
74526         * libio/oldstdfiles.c: Likewise.
74527         * libio/putc.c: Likewise.
74528         * libio/setbuf.c: Likewise.
74529         * libio/setlinebuf.c: Likewise.
74530         * libio/stdfiles.c: Likewise.
74531         * libio/strops.c: Likewise.
74532         * libio/vasprintf.c: Likewise.
74533         * libio/vscanf.c: Likewise.
74534         * libio/vsnprintf.c: Likewise.
74535         * libio/vswprintf.c: Likewise.
74536         * libio/wfiledoalloc.c: Likewise.
74537         * libio/wfileops.c: Likewise.
74538         * libio/wgenops.c: Likewise.
74539         * libio/wmemstream.c: Likewise.
74540         * libio/wstrops.c: Likewise.
74541         * libio/__fpurge.c: Likewise.
74542         * libio/__fsetlocking.c: Likewise.
74543         * assert/assert.c: Likewise.
74544         * debug/fgets_chk.c: Likewise.
74545         * debug/fgets_u_chk.c: Likewise.
74546         * debug/fread_chk.c: Likewise.
74547         * debug/fread_u_chk.c: Likewise.
74548         * debug/gets_chk.c: Likewise.
74549         * debug/obprintf_chk.c: Likewise.
74550         * debug/vasprintf_chk.c: Likewise.
74551         * debug/vdprintf_chk.c: Likewise.
74552         * debug/vsnprintf_chk.c: Likewise.
74553         * debug/vsprintf_chk.c: Likewise.
74554         * malloc/mtrace.c: Likewise.
74555         * misc/error.c: Likewise.
74556         * misc/syslog.c: Likewise.
74557         * stdio-common/asprintf.c: Likewise.
74558         * stdio-common/fxprintf.c: Likewise.
74559         * stdio-common/getw.c: Likewise.
74560         * stdio-common/isoc99_fscanf.c: Likewise.
74561         * stdio-common/isoc99_scanf.c: Likewise.
74562         * stdio-common/isoc99_vfscanf.c: Likewise.
74563         * stdio-common/isoc99_vscanf.c: Likewise.
74564         * stdio-common/isoc99_vsscanf.c: Likewise.
74565         * stdio-common/printf-prs.c: Likewise.
74566         * stdio-common/printf_fp.c: Likewise.
74567         * stdio-common/printf_fphex.c: Likewise.
74568         * stdio-common/printf_size.c: Likewise.
74569         * stdio-common/putw.c: Likewise.
74570         * stdio-common/scanf.c: Likewise.
74571         * stdio-common/sprintf.c: Likewise.
74572         * stdio-common/tmpfile.c: Likewise.
74573         * stdio-common/vfprintf.c: Likewise.
74574         * stdio-common/vfscanf.c: Likewise.
74575         * stdlib/strfmon_l.c: Likewise.
74576         * sunrpc/openchild.c: Likewise.
74577         * sunrpc/xdr_stdio.c: Likewise.
74578         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
74579         * sysdeps/mach/hurd/tmpfile.c: Likewise.
74580
74581 2012-05-24  Roland McGrath  <roland@hack.frob.com>
74582
74583         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
74584
74585         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
74586         in the third column, to generate for the shared library an IFUNC
74587         that uses _dl_vdso_vsym.
74588         * Makerules (COMPILE.c, compile-stdin.c): New variables.
74589         * Makeconfig (object-suffixes-noshared): New variable.
74590
74591         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
74592         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
74593         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
74594         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
74595
74596         [BZ #14132]
74597         * include/sys/time.h (__gettimeofday): Remove macro.
74598         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
74599         * time/gettimeofday.c (__gettimeofday): Remove #undef.
74600         Remove INTDEF.
74601         (__gettimeofday): Add libc_hidden_def.
74602         (gettimeofday): Add libc_hidden_weak.
74603         * sysdeps/mach/gettimeofday.c: Likewise.
74604         * sysdeps/posix/gettimeofday.c: Likewise.
74605         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
74606         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
74607         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
74608         (__gettimeofday_internal): Remove strong_alias.
74609         (__gettimeofday): Add libc_hidden_def.
74610         (gettimeofday): Add libc_hidden_weak.
74611         * sysdeps/unix/syscalls.list (gettimeofday):
74612         Remove __gettimeofday_internal alias.
74613
74614 2012-05-24  Daniel Jacobowitz  <drow@false.org>
74615             H.J. Lu  <hongjiu.lu@intel.com>
74616
74617         [BZ #12495]
74618         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
74619         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
74620         (largebin_index_32_big): New.
74621         (largebin_index): Use it for 16-byte alignment.
74622         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
74623         correction with front_misalign.
74624
74625 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
74626
74627         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
74628         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
74629         Likewise.
74630         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
74631         Likewise.
74632         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
74633         Likewise.
74634         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
74635         Likewise.
74636         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
74637         Likewise.
74638         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
74639         Likewise.
74640         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
74641         Likewise.
74642         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
74643         Likewise.
74644         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
74645         Likewise.
74646         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
74647         Likewise.
74648         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
74649         Likewise.
74650         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
74651         Likewise.
74652
74653         * scripts/data/c++-types-x32-linux-gnu.data: New file.
74654         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
74655
74656 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
74657
74658         [BZ #10846]
74659         [BZ #14036]
74660         * math/libm-test.inc (exp_test): Add test from bug 14036.
74661         (pow_test): Add test from bug 10846.
74662
74663         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
74664         and other flags.
74665         (special_function): Do not include flags in test name.
74666         (parse_args): Likewise.
74667         * sysdeps/i386/fpu/libm-test-ulps: Update.
74668         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
74669         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
74670         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
74671         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74672
74673         * math/gen-libm-test.pl (%beautify): Add entries for underflow
74674         exceptions.
74675         * math/libm-test.inc ("Philosophy"): Update comment about
74676         exception testing.
74677         (UNDERFLOW_EXCEPTION): New macro.
74678         (UNDERFLOW_EXCEPTION_OK): Likewise.
74679         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
74680         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
74681         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
74682         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
74683         (INVALID_EXCEPTION_OK): Update value.
74684         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
74685         (OVERFLOW_EXCEPTION_OK): Likewise.
74686         (IGNORE_ZERO_INF_SIGN): Likewise.
74687         (test_exceptions): Handle underflow exceptions.
74688         (acos_test): Update for underflow exception expectations.
74689         (cexp_test): Likewise.
74690         (clog_test): Likewise.
74691         (clog10_test): Likewise.
74692         (csqrt_test): Likewise.
74693         (ctan_test): Likewise.
74694         (ctanh_test): Likewise.
74695         (exp_test): Likewise.
74696         (exp10_test): Likewise.
74697         (exp2_test): Likewise.
74698         (expm1_test): Likewise.
74699         (fma_test): Likewise.
74700         (j0_test): Likewise.
74701         (jn_test): Likewise.
74702         (nexttoward_test): Likewise.
74703         (pow_test): Likewise.
74704         (scalbn_test): Likewise.
74705         (scalbln_test): Likewise.
74706         (tan_test): Likewise.
74707         (y1_test): Likewise.
74708         * sysdeps/i386/fpu/libm-test-ulps: Update.
74709         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74710
74711 2012-05-23  David S. Miller  <davem@davemloft.net>
74712
74713         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
74714         (__libc_sigaction): Remove unused local variables.
74715
74716 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
74717
74718         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
74719
74720 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
74721
74722         mktime: avoid signed integer overflow
74723         * time/mktime.c (__mktime_internal): Do not mishandle the case
74724         where diff == INT_MIN.
74725
74726         mktime: simplify computation of average
74727         * time/mktime.c (ranged_convert): Use new time_t_avg function
74728         instead of rolling our own (probably-slower) code.
74729
74730         mktime: do not assume signed right shift propagates sign bit
74731         * time/mktime.c (isdst_differ): New static function.
74732         (__mktime_internal): No need to normalize tm_isdst now.
74733         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
74734         tm_isdst values.
74735
74736         mktime: merge another wrapv change from gnulib
74737         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
74738         from some compilers.
74739
74740         mktime: remove incorrect attempt at unusual arithmetics
74741         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
74742         The code didn't really work on such machines anyway.
74743         (TYPE_MINIMUM): Assume two's complement.
74744         (twos_complement_arithmetic): Verify that long_int and time_t
74745         are two's complement (or unsigned, in the latter case).
74746
74747         mktime: check signed shifts on long_int and time_t, too
74748         * time/mktime.c (SHR): Check that shifts work as desired
74749         on the types long_int and time_t too, as SHR is used on
74750         such types.
74751
74752         mktime: do not assume 'long' is wide enough
74753         * time/mktime.c (verify): Move decl up.
74754         (long_int): New type.
74755         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
74756         to remove assumption in the code that 'long' is wide enough to
74757         store year values.  This assumption is not true on x32 and on
74758         some non-glibc platforms.
74759
74760         mktime: merge wrapv change from gnulib
74761         * time/mktime.c (WRAPV): New macro.
74762         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
74763         (guess_time_tm, __mktime_internal): Do not assume that signed
74764         integer overflow wraps around; modern compilers generate code
74765         where this assumption is no longer valid.
74766
74767 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
74768
74769         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
74770         Replace "jmp L(pseudo_end)" with "ret".
74771         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
74772         Likewise.
74773
74774 2012-05-23  Andreas Jaeger  <aj@suse.de>
74775
74776         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
74777         * sysdeps/unix/sysv/linux/poll.c: Remove file.
74778
74779 2012-05-23  Andreas Jaeger  <aj@suse.de>
74780             Maximilian Attems  <max@stro.at>
74781
74782         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
74783         New macros.
74784
74785 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
74786
74787         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
74788         code so that pseudo_end is just ret and the stack pointer is
74789         correct also for static library in error case.
74790
74791 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
74792
74793         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
74794         move to syscalls.list.
74795         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
74796         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
74797         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
74798         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
74799
74800         * manual/install.texi (Running make install): Do not mention Linux
74801         kernel version for which pt_chown is not needed.
74802         (Linux): Do not mention problems with nscd with 2.0 kernels.
74803         * INSTALL: Regenerated.
74804
74805 2012-05-23  Andreas Jaeger  <aj@suse.de>
74806
74807         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
74808         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
74809         macro.
74810         * sysdeps/unix/sysv/linux/s390/bits/mman.h
74811         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
74812         * sysdeps/unix/sysv/linux/sh/bits/mman.h
74813         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
74814         * sysdeps/unix/sysv/linux/i386/bits/mman.h
74815         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
74816         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
74817         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
74818         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
74819         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
74820         * sysdeps/unix/sysv/linux/bits/in.h
74821         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
74822
74823 2012-05-22  Roland McGrath  <roland@hack.frob.com>
74824
74825         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
74826         (PREPARE_VERSION): Just use assert instead, it will be elided
74827         under [NDEBUG] anyway.
74828
74829 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
74830
74831         * sysdeps/unix/sysv/linux/Makefile: Include
74832         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
74833         (sysdep_routines): Remove sysctl.
74834         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
74835         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
74836         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
74837         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
74838         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
74839
74840 2012-05-22  Andreas Jaeger  <aj@suse.de>
74841
74842         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
74843         that pseudo_end is just ret and the stack pointer is correct also
74844         for static library in error case.
74845
74846 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
74847
74848         [BZ #14122]
74849         * nss/nsswitch.c (defconfig_entries): New variable.
74850         (__nss_database_lookup): Don't leak defconfig entries.
74851         (nss_parse_service_list): Don't leak on error paths.
74852         (free_database_entries): New function.
74853         (free_defconfig): New function.
74854         (free_mem): Move common code to free_database_entries.
74855
74856 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
74857
74858         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
74859         Add arch_prctl.
74860         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
74861
74862         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
74863         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
74864         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
74865         New macro.
74866         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
74867         (INTERNAL_SYSCALL_TYPES): Likewise.
74868         (LOAD_ARGS_TYPES_[1-6]): Likewise.
74869         (LOAD_REGS_TYPES_[1-6]): Likewise.
74870         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
74871         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
74872
74873 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
74874
74875         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
74876         copysignl for GLIBC_2_0.
74877         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
74878         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
74879         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
74880         logbl for GLIBC_2_0.
74881         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
74882         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
74883
74884 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
74885
74886         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
74887         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
74888
74889         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
74890         Use "neg %eax".
74891
74892         * time/mktime.c: Update copyright years.
74893
74894 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
74895
74896         mktime: merge comment-quoting-style change from gnulib
74897         * time/mktime.c: Quote 'like this' in comments.
74898         The GNU coding standards suggest that we no longer quote `like this',
74899         as "`" and "'" are typically rendered asymmetrically nowadays.
74900         The typical gnulib style is to quote 'like this' when quoting
74901         code, and "like this" when quoting English.
74902
74903         * time/mktime.c (compile-command): Add "-I.".
74904
74905         mktime: merge mktime-internal.h change from gnulib
74906         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
74907
74908         mktime: merge time_r change from gnulib
74909         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
74910
74911         mktime: merge DEBUG change from gnulib
74912         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
74913         case system <time.h> has a #define.
74914
74915         mktime: merge <sys/types.h> change from gnulib
74916         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
74917         since <time.t> is now guaranteed to define time_t.
74918
74919         mktime: merge HAVE_CONFIG_H change from gnulib
74920         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
74921
74922 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
74923
74924         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
74925         Use "neg %eax".
74926
74927         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
74928         __rlim_t cast.
74929         (struct rusage): Use anonymous union to pad each field to
74930         __syscall_slong_t.
74931
74932 2012-05-21  David S. Miller  <davem@davemloft.net>
74933
74934         * Makefules (o-iterator): Remove .s cases.
74935         (compile-command.s): Delete.
74936         (COMPILE.s): Delete.
74937         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
74938
74939 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
74940
74941         * configure.in (libc_cv_predef_stack_protector): Only consider
74942         "foobar" and "__stack_chk_fail" lines in libc_undefs.
74943         * configure: Regenerated.
74944
74945 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
74946
74947         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
74948         New macro.  Use R*LP on int and pointer.
74949         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
74950         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
74951         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
74952         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
74953
74954         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
74955         [__WORDSIZE_TIME64_COMPAT32] instead of
74956         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
74957         (struct utmp): Likewise.
74958         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
74959         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
74960         Renamed to ...
74961         (__WORDSIZE_TIME64_COMPAT32): This.
74962         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
74963         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
74964         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
74965         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
74966         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
74967         (__WORDSIZE_TIME64_COMPAT32): New macro.
74968
74969 2012-05-21  Andreas Jaeger  <aj@suse.de>
74970
74971         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
74972         only if [SHARED]. Add prototype for __wcschr_ia32.
74973
74974 2012-05-21  Roland McGrath  <roland@hack.frob.com>
74975
74976         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
74977         of %rbp unmolested in the jmp_buf while mangling the low bits.
74978         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
74979         unmolested high bits of %rbp while demangling the low bits.
74980         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
74981
74982 2012-05-21  Andreas Jaeger  <aj@suse.de>
74983
74984         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
74985         * sunrpc/svc_simple.c: Use it for registerrpc.
74986         * sunrpc/xcrypt.c: Use it for passwd2des.
74987
74988         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
74989
74990 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
74991
74992         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
74993         Don't define if [__SYSCALL_WORDSIZE != 32].
74994         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
74995         New macro.
74996
74997 2012-05-21  Bruno Haible  <bruno@clisp.org>
74998             Andreas Jaeger  <aj@suse.de>
74999
75000         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
75001         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
75002         inptr and inend for must_buffer_ch.
75003         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
75004         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
75005         * stdio-common/Makefile (tests): Remove bug15.
75006         (bug15-ENV): Remove macro.
75007         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
75008         anymore.
75009
75010 2012-05-19  Andreas Jaeger  <aj@suse.de>
75011             Roland McGrath  <roland@hack.frob.com>
75012
75013         * manual/contrib.texi: Completely rewritten. It contains now an
75014         alphabetical list of contributors and their contributions.
75015
75016 2012-05-21  Richard Henderson  <rth@twiddle.net>
75017
75018         * misc/getauxval.c (__getauxval): Use unsigned long int.
75019         * misc/sys/auxv.h: Include <sys/cdefs.h>.
75020         (getauxval): Use unsigned long int.
75021
75022 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
75023
75024         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
75025
75026 2012-05-21  Roland McGrath  <roland@hack.frob.com>
75027
75028         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
75029         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
75030         __alignof__ (long double).
75031
75032 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
75033
75034         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
75035
75036 2012-05-20  Richard Henderson  <rth@twiddle.net>
75037
75038         * misc/getauxval.c: New file.
75039         * misc/sys/auxv.h: New file.
75040         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
75041         (routines): Add getauxval.
75042         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
75043         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
75044         * elf/dl-sysdep.c (_dl_auxv): Remove.
75045         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
75046         * elf/dl-support.c (_dl_auxv): New variable.
75047         (_dl_aux_init): Initialize it.
75048         * manual/startup.texi (Auxiliary Vector): New node.
75049         * sysdeps/generic/bits/hwcap.h: New file.
75050         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
75051         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
75052         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
75053         * sysdeps/sparc/sysdep.h: ... here.  Include it.
75054         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
75055         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
75056         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
75057         Update.
75058         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
75059         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
75060         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
75061         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
75062         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
75063         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
75064         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
75065         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
75066
75067 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
75068
75069         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
75070
75071 2012-05-19  David S. Miller  <davem@davemloft.net>
75072
75073         * sysdeps/sparc/fpu/libm-test-ulps: Update.
75074
75075 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
75076
75077         [BZ #14123]
75078         * math/s_ccosh.c: Include <float.h>
75079         (__ccosh): Avoid internal overflow calculating sinh and cosh
75080         values before multiplying by sin and cos values.
75081         * math/s_ccoshf.c: Likewise.
75082         * math/s_ccoshl.c: Likewise.
75083         * math/s_csin.c: Likewise.
75084         * math/s_csinf.c: Likewise.
75085         * math/s_csinl.c: Likewise.
75086         * math/s_csinh.c: Likewise.
75087         * math/s_csinhf.c: Likewise.
75088         * math/s_csinhl.c: Likewise.
75089         * math/libm-test.inc (ccos_test): Add more tests.
75090         (ccosh_test): Likewise.
75091         (csin_test): Likewise.
75092         (csinh_test): Likewise.
75093         * sysdeps/i386/fpu/libm-test-ulps: Update.
75094         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
75095
75096 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
75097
75098         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
75099         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
75100
75101         * sysdeps/x86_64/x32/_itoa.h: Add comment.
75102
75103 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
75104
75105         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
75106         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
75107         * sysdeps/powerpc/soft-fp/Versions: Likewise.
75108         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
75109         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
75110         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
75111         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
75112         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
75113         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
75114         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
75115         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
75116         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
75117         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
75118         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
75119         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
75120         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
75121         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
75122         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
75123         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
75124         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
75125         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
75126         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
75127         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
75128         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
75129         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
75130         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
75131         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
75132         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
75133         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
75134         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
75135         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
75136
75137 2012-05-18  Andreas Jaeger  <aj@suse.de>
75138
75139         * csu/.gitignore: Delete.
75140
75141 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
75142
75143         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
75144         (timex): Use __syscall_slong_t.
75145
75146 2012-05-18  Andreas Jaeger  <aj@suse.de>
75147             Carlos O'Donell  <carlos_odonell@mentor.com>
75148
75149         * manual/install.texi (Configuring and compiling): Update
75150         description about files modified in the source directory.
75151         * INSTALL: Regenerated.
75152
75153 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
75154
75155         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
75156         value.  Use "or" to set return value to -1.
75157         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
75158         negate return value.
75159
75160 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
75161
75162         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c)
75163         (CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
75164         failure if the compiler has Graphite support disabled.
75165         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
75166         Likewise.
75167         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c)
75168         (CFLAGS-memmove.c): Likewise.
75169         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
75170         Likewise.
75171
75172 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
75173
75174         * sysdeps/x86_64/x32/_itoa.h: New file.
75175
75176         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
75177         getdents system call only if kernel and user dirents have the
75178         same d_ino and d_off.
75179
75180         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
75181         LLONG_MAX != LONG_MAX.
75182         (_itoa_word): Use _ITOA_WORD_TYPE on value.
75183         (_fitoa_word): Likewise.
75184
75185         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
75186         years.
75187         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
75188         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
75189         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
75190
75191         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
75192         include <bits/wordsize.h>.  Check __x86_64__ instead of
75193         __WORDSIZE.
75194         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
75195         if __x86_64__ is defined.  Use anonymous union on fpstate.
75196
75197         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
75198         anonymous union.
75199
75200 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
75201
75202         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
75203         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
75204         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
75205         Refer to _rtld_local_ro instead of _rtld_global_ro.
75206         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
75207         Likewise.
75208         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
75209         Likewise.
75210         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
75211         Likewise.
75212         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
75213         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
75214         of _rtld_global, and rtld_progname instead of _dl_argv[0].
75215
75216         [BZ #10882]
75217         * sysdeps/powerpc/powerpc32/dl-machine.c
75218         (__elf_machine_runtime_setup) [PROF]: Don't reference
75219         _dl_prof_resolve.
75220
75221 2012-05-18  Andreas Jaeger  <aj@suse.de>
75222
75223         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
75224         function only available for GCCs before 3.4 since GCC 3.4
75225         introduced a builtin.
75226         (lrint): Likewise.
75227         (llrintf): Likewise.
75228         (llrint): Likewise.
75229         (fmaxf): Likewise.
75230         (fmax): Likewise.
75231         (fminf): Likewise.
75232         (fmin): Likewise.
75233         (rint): Likewise.
75234         (rintf): Likewise.
75235         (nearbyint): Likewise.
75236         (nearbyintf): Likewise.
75237         (ceil): Likewise.
75238         (ceilf): Likewise.
75239         (floor): Likewise.
75240         (floorf): Likewise.
75241
75242 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
75243
75244         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
75245         on both fields and cast pointer to __syscall_ulong_t.
75246
75247         * bits/types.h (__fsword_t): New type.
75248         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
75249         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
75250         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
75251         (__FSWORD_T_TYPE): Likewise.
75252         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
75253         (__FSWORD_T_TYPE): Likewise.
75254         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
75255         (__FSWORD_T_TYPE): Likewise.
75256         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
75257         (__FSWORD_T_TYPE): Likewise.
75258         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
75259         __SWORD_TYPE with __fsword_t.
75260         (statfs64): Likewise.
75261
75262 2012-05-17  David S. Miller  <davem@davemloft.net>
75263
75264         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
75265
75266 2012-05-17  Andreas Jaeger  <aj@suse.de>
75267
75268         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
75269         warning.
75270
75271 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
75272
75273         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
75274
75275 2012-05-17  Andreas Jaeger  <aj@suse.de>
75276
75277         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
75278         when it is used.
75279
75280 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
75281
75282         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
75283
75284 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
75285
75286         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
75287         * sysdeps/x86_64/tst-mallocalign1.c: New file.
75288
75289 2012-05-17  Andreas Jaeger  <aj@suse.de>
75290             Carlos O'Donell  <carlos_odonell@mentor.com>
75291
75292         [BZ #14059]
75293         * sysdeps/x86_64/multiarch/init-arch.h
75294         (bit_YMM_Usable): Rename to...
75295         (bit_AVX_Usable): ... this.
75296         (bit_FMA4_Usable): New macro.
75297         (bit_XMM_state): New macro.
75298         (bit_YMM_state): New macro.
75299         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
75300         [__ASSEMBLER__] (index_AVX_Usable): ... this.
75301         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
75302         (CPUID_OSXSAVE): New macro.
75303         (CPUID_AVX): New macro.
75304         (CPUID_FMA4): New macro.
75305         (index_YMM_Usable): Rename to...
75306         (index_AVX_Usable): ... this.
75307         (HAS_AVX): Use HAS_ARCH_FEATURE.
75308         (HAS_FMA4): Likewise.
75309         (HAS_YMM_USABLE): Remove.
75310         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
75311         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
75312         are present.
75313         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
75314         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
75315         * sysdeps/x86_64/multiarch/Makefile: Likewise.
75316         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
75317         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
75318
75319 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
75320
75321         * math/libm-test.c: Support platforms without multiple rounding modes.
75322         * math/bug-nextafter.c: Support platforms without FP exceptions.
75323         * math/bug-nexttoward.c: Likewise.
75324         * math/test-fenv.c: Likewise.
75325         * math/test-misc.c: Likewise.
75326         * stdlib/bug-getcontext.c: Likewise.
75327
75328 2012-05-17  Andreas Jaeger  <aj@suse.de>
75329
75330         * manual/examples/search.c (critter_cmp): Change signature to
75331         avoid warnings.
75332         * manual/string.texi (Collation Functions): Likewise.
75333
75334 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
75335
75336         * bits/types.h: Fold copyright years.
75337         * bits/typesizes.h: Likewise.
75338         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
75339         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
75340         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
75341         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
75342         * time/time.h: Likewise.
75343
75344 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
75345
75346         [BZ #208]
75347         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
75348         in instead of returning them.  Return void.
75349         (__libc_mallinfo): Accumulate over all arenas.
75350         (__malloc_stats): Adjust for change in int_mallinfo interface.
75351
75352 2012-05-16  Roland McGrath  <roland@hack.frob.com>
75353
75354         [BZ #10375]
75355         * configure.in (NM): Add AC_CHECK_TOOL for it.
75356         (libc_extra_cflags): New substituted variable.
75357         Check for -fstack-protector being used implicitly.
75358         * configure: Regenerated.
75359         * config.make.in (config-extra-cflags): New variable,
75360         gets @libc_extra_cflags@.
75361         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
75362
75363         [BZ #10375]
75364         * configure.in: Check for _FORTIFY_SOURCE being predefined.
75365         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
75366         * configure: Regenerated.
75367         * config.make.in (CPPUNDEFS): New substituted variable.
75368         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
75369         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
75370         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
75371
75372 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
75373
75374         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
75375         (mq_attr): Use __syscall_slong_t.
75376
75377 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
75378
75379         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
75380         Check __x86_64__ instead of __WORDSIZE.
75381         (_STAT_VER_LINUX): Likewise.
75382         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
75383         __syscall_ulong_t and __syscall_slong_t.
75384         (stat64): Likewise.
75385
75386 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
75387
75388         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
75389
75390 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
75391
75392         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
75393
75394 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
75395
75396         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
75397         __syscall_ulong_t.
75398
75399         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
75400         include <bits/wordsize.h>.  Check __x86_64__ instead of
75401         __WORDSIZE.
75402         (greg_t): Use "__extension__ long long int" if __x86_64__ is
75403         defined.
75404         (mcontext_t): Replace "unsigned long" with "unsigned long long".
75405
75406         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
75407         include <bits/wordsize.h>.  Check __x86_64__ instead of
75408         __WORDSIZE.
75409         (user_regs_struct): Use "__extension__ unsigned long long"
75410         instead of "unsigned long" if __x86_64__ is defined.
75411         (user): Likewise.  Pad after pointer field if __ILP32__ is
75412         defined.
75413
75414 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
75415
75416         * configure.in (makeinfo): Require version 4.5 or later.  Allow
75417         versions 5 to 9.
75418         * configure: Regenerated.
75419         * manual/install.texi (texinfo): Increase version requirement to
75420         4.5 or later.
75421         * INSTALL: Regenerated.
75422
75423         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
75424
75425 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
75426
75427         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
75428
75429         * sysdeps/x86_64/x32/ffs.c: New file.
75430
75431         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
75432         __syscall_ulong_t.
75433         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
75434         defined.  Use __syscall_ulong_t.
75435         (shminfo): Use __syscall_ulong_t.
75436         (shm_info): Likewise.
75437
75438         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
75439         __syscall_ulong_t.
75440
75441         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
75442         <bits/wordsize.h>.
75443         (msgqnum_t): Use __syscall_ulong_t.
75444         (msglen_t): Likewise.
75445         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
75446         __syscall_ulong_t.
75447
75448         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
75449         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
75450
75451         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
75452
75453         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
75454         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
75455
75456         * sysvipc/sys/msg.h (msgbuf): Replace long int with
75457         __syscall_slong_t.
75458
75459         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
75460         include <bits/wordsize.h>.  Check __x86_64__ instead of
75461         __WORDSIZE.
75462
75463         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
75464         "unsigned long long int" if __x86_64__ is defined.
75465         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
75466
75467         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
75468         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
75469         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
75470
75471         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
75472         <stdint.h>.
75473         (GET_PC): Cast to uintptr_t first.
75474         (GET_FRAME): Likewise.
75475         (GET_STACK): Likewise.
75476
75477         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
75478         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
75479         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
75480         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
75481         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
75482         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
75483         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
75484         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
75485         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
75486         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
75487         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
75488         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
75489         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
75490         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
75491         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
75492         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
75493         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
75494         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
75495         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
75496         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
75497         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
75498         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
75499         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
75500         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
75501         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
75502         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
75503         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
75504         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
75505         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
75506
75507 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
75508
75509         * Makerules (+depfiles): Also collect depfiles from .oS in
75510         $(extra-objs).
75511         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
75512         .oS, $(libnldbl-routines)).
75513
75514         * Makerules (native-compile-mkdep-flags): Define.
75515         * sunrpc/Makefile (extra-objs): Add $(addprefix
75516         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
75517         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
75518         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
75519         calling $(make-target-directory).
75520
75521 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
75522
75523         * bits/types.h (__snseconds_t): Removed.
75524         * time/time.h (struct timespec): Replace __snseconds_t with
75525         __syscall_slong_t.
75526         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
75527         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
75528         Likewise.
75529         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
75530         (__SNSECONDS_T_TYPE): Likewise.
75531         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
75532         (__SNSECONDS_T_TYPE): Likewise.
75533         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
75534         (__SNSECONDS_T_TYPE): Likewise.
75535
75536 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
75537
75538         * sysdeps/mach/hurd/bits/typesizes.h
75539         (__SYSCALL_SLONG_TYPE): New macro.
75540         (__SYSCALL_ULONG_TYPE): Likewise.
75541
75542 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
75543
75544         * bits/types.h (__syscall_slong_t): New type.
75545         (__syscall_ulong_t): Likewise.
75546
75547         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
75548         (__SYSCALL_ULONG_TYPE): Likewise.
75549         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
75550         (__SYSCALL_SLONG_TYPE): Likewise.
75551         (__SYSCALL_ULONG_TYPE): Likewise.
75552         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
75553         (__SYSCALL_SLONG_TYPE): Likewise.
75554         (__SYSCALL_ULONG_TYPE): Likewise.
75555         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
75556         (__SYSCALL_SLONG_TYPE): Likewise.
75557         (__SYSCALL_ULONG_TYPE): Likewise.
75558
75559 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
75560
75561         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
75562         Add sigaltstack-offsets.sym.
75563         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
75564         <sigaltstack-offsets.h>.
75565         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
75566         longjmp_msg pointer.
75567         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
75568         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
75569         signal stack.
75570         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
75571
75572 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
75573
75574         * elf/stackguard-macros.h: Remove file.
75575         * sysdeps/generic/stackguard-macros.h: New file.
75576         * sysdeps/i386/stackguard-macros.h: Likewise.
75577         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
75578         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
75579         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
75580         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
75581         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
75582         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
75583         * sysdeps/x86_64/stackguard-macros.h: Likewise.
75584         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
75585         <elf/stackguard-macros.h>.
75586
75587         [BZ #14109]
75588         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
75589         __aligned__ in attribute.
75590         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
75591         (gregset_t): Likewise.
75592
75593 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
75594
75595         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
75596         * sysdeps/x86_64/64/Implies-after: Here.  New file.
75597         * sysdeps/x86_64/x32/Implies-after: New file.
75598
75599 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
75600
75601         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
75602         and access return value for _dl_profile_fixup.  Use R10_LP to
75603         load frame size.
75604
75605 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
75606
75607         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
75608
75609 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
75610
75611         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
75612         * sysdeps/x86_64/x32/sysdep.h: New file.
75613
75614 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
75615
75616         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
75617         * sysdeps/x86_64/setjmp.S: Likewise.
75618
75619 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
75620
75621         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
75622         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
75623         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
75624         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
75625         remove unused global constant.
75626
75627 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
75628
75629         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
75630         include of <not-cancel.h>.
75631
75632 2012-05-15  Roland McGrath  <roland@hack.frob.com>
75633
75634         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
75635
75636 2012-05-15  Jeff Law  <law@redhat.com>
75637             Andreas Jaeger  <aj@suse.de>
75638
75639         [BZ #13594]
75640         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
75641         out from...
75642         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
75643         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
75644         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
75645         code changing __hst_map_handle.map.
75646
75647 2012-05-15  Roland McGrath  <roland@hack.frob.com>
75648
75649         * configure.in (sysnames): Look for Implies-before and Implies-after
75650         files.
75651         * configure: Regenerated.
75652
75653 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
75654
75655         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
75656         8-byte data alignment with LP_SIZE alignment.
75657
75658 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
75659
75660         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
75661         into R10_LP.
75662
75663 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
75664
75665         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
75666
75667 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
75668
75669         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
75670         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
75671         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
75672         Likewise.
75673         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
75674
75675 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
75676
75677         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
75678         (stackinfo_sub_sp): Likewise.
75679
75680 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
75681
75682         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
75683         RAX_LP.
75684
75685 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
75686
75687         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
75688         into R*_LP.
75689
75690 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
75691
75692         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
75693         sizes into R*_LP.
75694
75695 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
75696
75697         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
75698
75699 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
75700
75701         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
75702         into R11_LP and load __x86_64_shared_cache_size_half into
75703         R8_LP.
75704
75705 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
75706
75707         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
75708         R8_LP.
75709
75710 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
75711
75712         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
75713         logb for POWER7.
75714         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
75715         logbf for POWER7.
75716         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
75717         logbl for POWER7.
75718         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
75719         powerpc32/power7/fpu/s_logb.c via #include.
75720         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
75721         powerpc32/power7/fpu/s_logbf.c via #include.
75722         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
75723         powerpc32/power7/fpu/s_logbl.c via #include.
75724
75725 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
75726
75727         * README.libm: Remove file.
75728
75729 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
75730
75731         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
75732         count for x32.  Use R*_LP and omit operand-size suffix.
75733
75734 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
75735
75736         * shlib-versions: Move x86_64-.*-linux.* entries to ...
75737         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
75738         * sysdeps/x86_64/x32/shlib-versions: New file.
75739
75740 2012-05-14  Roland McGrath  <roland@hack.frob.com>
75741
75742         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
75743         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
75744         Use _dl_fatal_printf instead.
75745
75746 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
75747
75748         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
75749         set if not set by the user.  Do not allow for being unset.
75750         * sysdeps/unix/sysv/linux/configure: Regenerated.
75751
75752 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
75753
75754         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
75755         the `q' suffix from lea and replace .quad with ASM_ADDR.
75756
75757 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
75758
75759         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
75760         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
75761         instead of $17.
75762         (PTR_DEMANGLE): Likewise.
75763
75764 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
75765
75766         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
75767         (LP_OP): Likewise.
75768         (ASM_ADDR): Likewise.
75769         (RAX_LP): Likewise.
75770         (RBP_LP): Likewise.
75771         (RBX_LP): Likewise.
75772         (RCX_LP): Likewise.
75773         (RDI_LP): Likewise.
75774         (RSI_LP): Likewise.
75775         (RSP_LP): Likewise.
75776         (R8_LP): Likewise.
75777         (R9_LP): Likewise.
75778         (R10_LP): Likewise.
75779         (R10_LP): Likewise.
75780         (R11_LP): Likewise.
75781         (R12_LP): Likewise.
75782         (R13_LP): Likewise.
75783         (R14_LP): Likewise.
75784         (R15_LP): Likewise.
75785
75786 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
75787
75788         * sysdeps/x86_64/x32/dl-machine.h: New file.
75789
75790 2012-05-14  Andreas Jaeger  <aj@suse.de>
75791
75792         * manual/Makefile (subdir): Remove export of subdir.
75793         (all): Remove target.
75794         (.PHONY): Remove all from list.
75795         (mkinstalldirs): Remove.
75796         (.PHONY): Remove installdirs from list.
75797         ($(inst_infodir)/libc.info): Use make-target-directory.
75798         (installdirs): Remove.
75799         (subdir_%): Remove.
75800         (glibc-targets): Remove.
75801         (lib): Remove.
75802         (stubs): Remove.
75803         ($(objpfx)stubs ../po/manual.pot): Remove.
75804         ($(objpfx)stamp%): Remove.
75805         (make-target-directory): Remove.
75806         (subdir_install): Remove.
75807         (routines): Remove.
75808         (aux): Remove.
75809         (sources): Remove.
75810         (objects): Remove.
75811         (headers): Remove.
75812
75813         [BZ #13750]
75814         * manual/.gitignore: Remove, it's not needed anymore.
75815         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
75816         all files in it.
75817         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
75818         directory.
75819         (texis): Renamed to $(objpfx)texis.
75820         (texis-path): New, contains path to generated files.
75821         (chapters.%): Use texis-path for complete path, add extra argument
75822         libc-texinfo.sh.
75823         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
75824         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
75825         (summary,texi, stamp-summary): Use complete path of
75826         files. Generate files in build dir.
75827         (dir-add.texi): Build in build dir.
75828         (libm-err.texi,stamp-libm-err): Likewise.
75829         (version.texi, stamp-version): Likewise.
75830         (.%c.texi): Likewise.
75831         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
75832         (mostlyclean): Remove target.
75833         (realclean): Remove target.
75834         (generated): Add new variable with contents from mostlyclean and
75835         realclean, remove entries duplicated in common-mostlyclean, add
75836         stamp-libm-err and stamp-version.
75837         (generated-dirs): Add libc directory.
75838         ($(inst_infodir)/libc.info): Install files from build dir.
75839
75840         * manual/install.texi (Configuring and compiling): Adjust since
75841         the info files are not part of the tar ball anymore.
75842
75843 2012-05-14  Andreas Jaeger  <aj@suse.de>
75844
75845         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
75846         variable.
75847
75848 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
75849
75850         [BZ #13717]
75851         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
75852         to 2.2.0 where earlier.
75853         * sysdeps/unix/sysv/linux/configure: Regenerated.
75854         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
75855         Remove conditional code.
75856         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
75857         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
75858         Remove conditional code.
75859         [!__NR_lchown]: Likewise.
75860         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
75861         [__NR_lchown]: Likewise.
75862         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
75863         comment referencing __ASSUME_LCHOWN_SYSCALL.
75864         * sysdeps/unix/sysv/linux/i386/sigaction.c
75865         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
75866         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
75867         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
75868         Remove conditional code.
75869         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
75870         (__protocol_available): Remove #if 0 code.
75871         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
75872         conditional code.
75873         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
75874         * sysdeps/unix/sysv/linux/kernel-features.h
75875         (__ASSUME_GETCWD_SYSCALL): Don't define.
75876         (__ASSUME_REALTIME_SIGNALS): Likewise.
75877         (__ASSUME_PREAD_SYSCALL): Likewise.
75878         (__ASSUME_PWRITE_SYSCALL): Likewise.
75879         (__ASSUME_POLL_SYSCALL): Likewise.
75880         (__ASSUME_LCHOWN_SYSCALL): Likewise.
75881         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
75882         non-SPARC.
75883         (__ASSUME_SIOCGIFNAME): Don't define.
75884         (__ASSUME_MSG_NOSIGNAL): Likewise.
75885         (__ASSUME_SENDFILE): Define unconditionally.
75886         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
75887         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
75888         conditional code.
75889         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
75890         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
75891         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
75892         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
75893         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
75894         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
75895         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
75896         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
75897         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
75898         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
75899         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
75900         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
75901         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
75902         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
75903         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
75904         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
75905         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
75906         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
75907         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
75908         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
75909         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
75910         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
75911         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
75912         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
75913         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
75914         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
75915         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
75916         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
75917         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
75918         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
75919         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
75920         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
75921         Remove conditional code.
75922         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
75923         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
75924         Remove conditional code.
75925         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
75926         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
75927         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
75928         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
75929         Remove conditional code.
75930         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
75931         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
75932         Remove conditional code.
75933         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
75934         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
75935         Remove conditional code.
75936         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
75937         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
75938         Remove conditional code.
75939         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
75940         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
75941         Remove conditional code.
75942         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
75943         * sysdeps/unix/sysv/linux/sh/pwrite64.c
75944         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
75945         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
75946         * sysdeps/unix/sysv/linux/sigaction.c
75947         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
75948         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
75949         * sysdeps/unix/sysv/linux/sigpending.c
75950         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
75951         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
75952         * sysdeps/unix/sysv/linux/sigprocmask.c
75953         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
75954         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
75955         * sysdeps/unix/sysv/linux/sigsuspend.c
75956         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
75957         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
75958         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
75959         (__libc_missing_rt_sigs): Remove.
75960         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
75961         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
75962         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
75963         Remove conditional code.
75964         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
75965         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
75966         return 1.
75967         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
75968         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
75969         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
75970         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
75971
75972 2012-05-14  Andreas Jaeger  <aj@suse.de>
75973
75974         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
75975         it's not used in glibc.
75976         (__coshm1): Likewise.
75977         (__acosh1p): Likewise.
75978         (__sgn): Likewise.
75979
75980         * manual/string.texi (Copying and Concatenation): Add missing
75981         variable in concat example.
75982         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
75983
75984 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
75985
75986         [BZ #14103]
75987         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
75988         __builtin_clzl with __builtin_clzll.
75989
75990 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
75991
75992         [BZ #14104]
75993         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
75994         libc_freeres_ptr.
75995
75996 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
75997
75998         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
75999         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
76000         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
76001         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
76002
76003 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
76004
76005         * NEWS: Update ia64 info.
76006
76007 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
76008
76009         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
76010         used as bcopy.
76011
76012 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
76013
76014         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
76015         * sysdeps/unix/syscalls.list (dup3): Likewise.
76016         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
76017         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
76018
76019 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
76020
76021         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
76022         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
76023
76024 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
76025
76026         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
76027         thread pointer.
76028         (TLS_IE): Use mov/add instead of movq/addq to load thread
76029         pointer.
76030         (TLS_GD_PREFIX): New.
76031         (TLS_GD): Use it.
76032
76033 2012-05-11  David S. Miller  <davem@davemloft.net>
76034
76035         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
76036         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
76037         (_FPU_SETCW): Likewise.
76038
76039 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
76040
76041         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
76042         is 32-byte aligned.
76043
76044 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
76045
76046         [BZ #11837]
76047         * iconvdata/gb18030.c: Update tables.
76048         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
76049         characters specially.
76050         (BODY for TO_LOOP): Add encoding of missing ranges.
76051
76052 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
76053
76054         [BZ #13673]
76055         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
76056         * sysdeps/mach/hurd/dup3.c: Likewise.
76057         * sysdeps/mach/hurd/readlinkat.c: Likewise.
76058         * sysdeps/powerpc/memmove.c:: Likewise.
76059
76060 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
76061
76062         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
76063         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
76064
76065 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
76066
76067         * elf/elf.h (R_X86_64_RELATIVE64): New.
76068         (R_X86_64_NUM): Updated.
76069         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
76070         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
76071         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
76072         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
76073         tst-quad1pie tst-quad2pie
76074         (modules-names): Add tst-quadmod1 tst-quadmod2.
76075         ($(objpfx)tst-quad1): New dependency.
76076         ($(objpfx)tst-quad2): Likewise.
76077         ($(objpfx)tst-quad1pie): Likewise.
76078         ($(objpfx)tst-quad2pie): Likewise.
76079         * sysdeps/x86_64/tst-quad1.c: New file.
76080         * sysdeps/x86_64/tst-quad1pie.c: New file.
76081         * sysdeps/x86_64/tst-quad2.c: Likewise.
76082         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
76083         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
76084         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
76085         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
76086         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
76087
76088 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76089
76090         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
76091         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
76092         * streams/stropts.h (t_scalar_t): Define type.
76093
76094         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
76095         (_PATH_PRESERVE): Set to "/var/lib".
76096         (_PATH_RWHODIR): Set to "/var/spool/rwho".
76097
76098         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
76099         instead of int.
76100
76101         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
76102         if __dir_mkfile succeeded.
76103
76104         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
76105         checking for _hurd_dtablesize.  Unlock it right after having
76106         finished _hurd_dtable allocation.
76107
76108 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
76109
76110         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
76111         * sysdeps/mach/hurd/configure: Regenerated.
76112         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
76113         special-casing to...
76114         * sysdeps/gnu/configure.in: ... this new file.
76115         * sysdeps/unix/sysv/linux/configure: Regenerated.
76116         * sysdeps/gnu/configure: New generated file.
76117
76118         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
76119         for Linux: use nsec instead of usec, as well as:
76120         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
76121         members of type struct timespec.
76122         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
76123         New macros.
76124         (struct stat64): Likewise.
76125         (_STATBUF_ST_NSEC): New macro.
76126         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
76127
76128         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
76129         __strtoul_internal rather than strtoul.
76130
76131 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
76132
76133         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
76134         and reject them.
76135
76136 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76137
76138         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
76139         which preserves existing values.
76140         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
76141
76142 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
76143
76144         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
76145         TIMEOUT values.  Return EINVAL for NFDS values either negative or
76146         greater than FD_SETSIZE.
76147
76148 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76149
76150         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
76151         allocated, call __vm_protect to finish enabling the existing space, and
76152         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
76153         allocate the remainder.
76154
76155 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
76156
76157         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
76158         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
76159
76160 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76161
76162         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
76163         sysdeps/mach/hurd/readlink.c.
76164
76165         * posix/tst-sysconf.c (posix_options): Only use
76166         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
76167         _POSIX_SYNCHRONIZED_IO when they are defined
76168         * sysdeps/mach/hurd/bits/posix_opt.h:
76169         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
76170         (_XOPEN_REALTIME): Undefine macro.
76171         (_XOPEN_REALTIME_THREADS): Undefine macro.
76172         (_XOPEN_SHM): Undefine macro.
76173         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
76174         macro to -1.
76175         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
76176         macro to -1.
76177         (_POSIX_ASYNC_IO): Undefine macro.
76178         (_POSIX_PRIORITIZED_IO): Undefine macro.
76179         (_POSIX_SPIN_LOCKS): Define macro to -1.
76180
76181         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
76182         SA_NODEFER, SA_RESETHAND.
76183         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
76184         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
76185         F_DUPFD_CLOEXEC.
76186
76187 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
76188
76189         * elf/Makefile (pldd-modules): Define unconditionally.
76190
76191 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
76192
76193         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
76194
76195 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76196
76197         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
76198         Return ENOENT when name is empty.
76199         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
76200
76201 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
76202
76203         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
76204
76205         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
76206
76207 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76208
76209         Fix mlock in all cases except non-readable pages.
76210         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
76211         instead of VM_PROT_ALL as parameter to __vm_wire function.
76212
76213         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
76214         (__mkdir): When path is `/', just fail with EEXIST.
76215         * sysdeps/mach/hurd/mkdirat.c: Likewise.
76216
76217 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
76218
76219         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
76220         <sys/uio.h> (for writev).
76221         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
76222         and <sys/param.h> (for MIN).
76223
76224 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
76225
76226         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
76227         REQUESTED_TIME.  Properly set the remaining time and return EINTR
76228         if interrupted.
76229
76230 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
76231
76232         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
76233         Depend on against $(link-rpcuserlibs).
76234
76235 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76236
76237         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
76238         (__libc_stack_end): Do not use attribute_relro.
76239         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
76240         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
76241         to libthread-provided value.
76242         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
76243         attribute_relro.
76244
76245 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
76246
76247         [BZ #3748]
76248         * bits/libc-lock.h (__libc_once_get): New macro.
76249         * sysdeps/mach/bits/libc-lock.h: Likewise.
76250         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
76251         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
76252         instead of using implementation details.
76253
76254         * libio/fileops.c: Unconditionally include <kernel-features.h>.
76255         * libio/freopen.c: Likewise.
76256         * libio/freopen64.c: Likewise.
76257         * misc/syslog.c: Likewise.
76258         * nscd/connections.c: Likewise.
76259         * nscd/netgroupcache.c: Likewise.
76260         * sysdeps/posix/getcwd.c: Likewise.
76261
76262 2012-05-10  Roland McGrath  <roland@hack.frob.com>
76263
76264         * math/w_ilogbf.c: Add #include <limits.h>.
76265
76266 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76267
76268         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
76269         path instead of returning without unlocking.
76270
76271         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
76272         immediate-write ioctls.
76273         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
76274
76275 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
76276
76277         * sysdeps/mach/hurd/i386/init-first.c (init): Use
76278         __builtin_frame_address instead of making assumptions about the
76279         location of the return address relative to DATA.  Force early load of
76280         the return address.
76281         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
76282         __builtin_frame_address.
76283
76284         dup3 for GNU Hurd.
76285         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
76286         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
76287         implement dup3 and do some further code clean-ups.
76288         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
76289         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
76290
76291 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76292
76293         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
76294
76295         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
76296         HURD_CRITICAL_END around holding _hurd_dtable_lock.
76297         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
76298         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
76299         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
76300         d->port.lock.
76301
76302         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
76303         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
76304         when handler == SIG_ERR, not when handler != SIG_ERR.
76305
76306 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
76307
76308         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
76309         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
76310         definitions.
76311
76312         accept4 for GNU Hurd.
76313         * include/sys/socket.h (__libc_accept4): New prototype.
76314         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
76315         to implement __libc_accept4.
76316         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
76317         __libc_accept4.
76318         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
76319
76320         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
76321         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
76322         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
76323         signal-defines.sym.
76324
76325 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76326
76327         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
76328
76329 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
76330
76331         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
76332         assertion on O_CLOEXEC flag.
76333         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
76334         * hurd/intern-fd.c: Likewise.
76335         * hurd/port2fd.c: Likewise.
76336
76337 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76338
76339         [BZ #3906]
76340         * bits/in.h (IPV6_PKTINFO): Define new macro.
76341         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
76342
76343 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
76344
76345         [BZ #13954]
76346         [BZ #13955]
76347         [BZ #13956]
76348         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
76349         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
76350         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
76351         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
76352         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
76353         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
76354         * math/libm-test.inc (logb_test) : Additional logb tests.
76355
76356 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
76357             Andreas Jaeger  <aj@suse.de>
76358
76359         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
76360         * configure: Regenerated.
76361         * config.h.in (LINK_OBSOLETE_RPC): New macro.
76362         * config.make.in (link-obsolete-rpc): New substituted variable.
76363         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
76364         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
76365         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
76366         (shared-only-routines): Don't set it under [link-obsolete-rpc],
76367         so that libc.a contains the symbols.
76368         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
76369         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
76370         * sunrpc/auth_none.c: Likewise.
76371         * sunrpc/auth_unix.c: Likewise.
76372         * sunrpc/authdes_prot.c: Likewise.
76373         * sunrpc/authuxprot.c: Likewise.
76374         * sunrpc/clnt_gen.c: Likewise.
76375         * sunrpc/clnt_perr.c: Likewise.
76376         * sunrpc/clnt_raw.c: Likewise.
76377         * sunrpc/clnt_simp.c: Likewise.
76378         * sunrpc/clnt_tcp.c: Likewise.
76379         * sunrpc/clnt_udp.c: Likewise.
76380         * sunrpc/clnt_unix.c: Likewise.
76381         * sunrpc/des_crypt.c: Likewise.
76382         * sunrpc/des_soft.c: Likewise.
76383         * sunrpc/get_myaddr.c: Likewise.
76384         * sunrpc/key_call.c: Likewise.
76385         * sunrpc/key_prot.c: Likewise.
76386         * sunrpc/netname.c: Likewise.
76387         * sunrpc/pm_getmaps.c: Likewise.
76388         * sunrpc/pm_getport.c: Likewise.
76389         * sunrpc/pmap_clnt.c: Likewise.
76390         * sunrpc/pmap_prot.c: Likewise.
76391         * sunrpc/pmap_prot2.c: Likewise.
76392         * sunrpc/pmap_rmt.c: Likewise.
76393         * sunrpc/publickey.c: Likewise.
76394         * sunrpc/rpc_cmsg.c: Likewise.
76395         * sunrpc/rpc_common.c: Likewise.
76396         * sunrpc/rpc_dtable.c: Likewise.
76397         * sunrpc/rpc_prot.c: Likewise.
76398         * sunrpc/rpc_thread.c: Likewise.
76399         * sunrpc/rtime.c: Likewise.
76400         * sunrpc/svc.c: Likewise.
76401         * sunrpc/svc_auth.c: Likewise.
76402         * sunrpc/svc_raw.c: Likewise.
76403         * sunrpc/svc_run.c: Likewise.
76404         * sunrpc/svc_tcp.c: Likewise.
76405         * sunrpc/svc_udp.c: Likewise.
76406         * sunrpc/svc_unix.c: Likewise.
76407         * sunrpc/svcauth_des.c: Likewise.
76408         * sunrpc/xcrypt.c: Likewise.
76409         * sunrpc/xdr.c: Likewise.
76410         * sunrpc/xdr_array.c: Likewise.
76411         * sunrpc/xdr_float.c: Likewise.
76412         * sunrpc/xdr_intXX_t.c: Likewise.
76413         * sunrpc/xdr_mem.c: Likewise.
76414         * sunrpc/xdr_rec.c: Likewise.
76415         * sunrpc/xdr_ref.c: Likewise.
76416         * sunrpc/xdr_sizeof.c: Likewise.
76417         * sunrpc/xdr_stdio.c: Likewise.
76418
76419 2012-05-10  Roland McGrath  <roland@hack.frob.com>
76420
76421         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
76422         change.  Update copyright years.
76423
76424 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
76425
76426         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
76427
76428 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
76429             Joseph Myers  <joseph@codesourcery.com>
76430             Paul Pluzhnikov  <ppluzhnikov@google.com>
76431
76432         [BZ #14012]
76433         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
76434         requiring rpcgen.
76435         [cross-compiling] (extra-libs): Likewise.
76436         [cross-compiling] (extra-libs-others): Likewise.
76437         [cross-compiling] (librpcsvc-routines): Likewise.
76438         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
76439         [cross-compiling] (omit-deps): Likewise.
76440         (sunrpc-CPPFLAGS): New variable.
76441         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
76442         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
76443         (cross-rpcgen-objs): New variable.
76444         (extra-objs): Append $(cross-rpcgen-objs).
76445         ($(cross-rpcgen-objs)): New rule.
76446         ($(objpfx)cross-rpcgen): Likewise.
76447         (rpcgen-cmd): Define to use $(built-program-file).  Expand
76448         comment.
76449         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
76450         ($(objpfx)x%.stmp): Likewise.
76451         * sunrpc/proto.h [IS_IN_build] (_): Define.
76452         [IS_IN_build] (_libc_intl_domainname): Likewise.
76453
76454 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
76455
76456         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
76457         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
76458         and R_X86_64_TPOFF64.
76459
76460 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
76461
76462         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
76463         sysdeps/unix/sysv/syscalls.list.
76464         (stime): Likewise.
76465         (utime): Likewise.
76466         * sysdeps/unix/sysv/syscalls.list: Remove file.
76467
76468 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
76469
76470         [BZ #3440]
76471         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
76472         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
76473         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
76474         (__LC_IDENTIFICATION): Make these macros useful in #if
76475         expressions, as required by C99.
76476
76477 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
76478
76479         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
76480         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
76481         after this.
76482
76483 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
76484
76485         * stdlib/longlong.h: Updated from GCC.
76486
76487 2012-05-09  Andreas Jaeger  <aj@suse.de>
76488
76489         * nscd/nscd.c (run_modes): Make named enum, reorder so that
76490         default is first entry.
76491         (run_mode): Set type.
76492         (main): Remove informal message about syslog.
76493         (options): Fix typo.
76494
76495         [BZ #14053]
76496         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
76497         to asm.
76498         (lrint): Likewise.
76499         (llrintf): Likewise.
76500         (llrint): Likewise.
76501         (rint): Likewise.
76502         (rintf): Likewise.
76503         (nearbyint): Likewise.
76504         (nearbyintf): Likewise.
76505
76506 2012-05-09  Andreas Jaeger  <aj@suse.de>
76507             Pedro Alves  <palves@redhat.com>
76508
76509         * nscd/nscd.c (run_mode): Use enum.
76510         (main): Cleanup coding style issue.
76511
76512 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
76513             Andreas Jaeger  <aj@suse.de>
76514
76515         * nscd/nscd.c (go_background): Replaced with...
76516         (run_mode): ... this.
76517         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
76518         (options): Add -F --foreground.
76519         (main): Implement it.
76520         (parse_opt): Parse it.
76521
76522 2012-05-09  Andreas Jaeger  <aj@suse.de>
76523
76524         [BZ #14083]
76525         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
76526         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
76527         -Wconversion warning.
76528         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
76529         Likewise.
76530
76531 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
76532
76533         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
76534         == 0.
76535         (LC_ALL): Use macro-int-constant.
76536         (LC_COLLATE): Likewise.
76537         (LC_CTYPE): Likewise.
76538         (LC_MESSAGES): Likewise.
76539         (LC_MONETARY): Likewise.
76540         (LC_NUMERIC): Likewise.
76541         (LC_TIME): Likewise.
76542         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
76543         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
76544         [ISO || ISO99 || ISO11] (*_t): Do not allow.
76545         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
76546         Specify type.
76547         [C99-based standards] (float_t): Expect type.
76548         [C99-based standards] (double_t): Expect type.
76549         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
76550         type.
76551         [C99-based standards] (HUGE_VALL): Likewise.
76552         [C99-based standards] (INFINITY): Likewise.
76553         [C99-based standards] (NAN): Likewise.
76554         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
76555         [C99-based standards] (FP_NAN): Likewise.
76556         [C99-based standards] (FP_NORMAL): Likewise.
76557         [C99-based standards] (FP_SUBNORMAL): Likewise.
76558         [C99-based standards] (FP_ZERO): Likewise.
76559         [C99-based standards] (FP_FAST_FMA): Use
76560         optional-macro-int-constant.  Specify type.  Require == 1.
76561         [C99-based standards] (FP_FAST_FMAF): Likewise.
76562         [C99-based standards] (FP_FAST_FMAL): Likewise.
76563         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
76564         [C99-based standards] (FP_ILOGBNAN): Likewise.
76565         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
76566         Specify type.
76567         [C99-based standards] (MATH_ERREXCEPT): Likewise.
76568         [C99-based standards] (math_errhandling): Specify type.
76569         [ISO99 || ISO11] (signgam): Do not allow.
76570         [non-C99-based standards] (copysignf): Do not allow.
76571         [non-C99-based standards] (exp2f): Likewise.
76572         [non-C99-based standards] (log2f): Likewise.
76573         [non-C99-based standards] (modff): Allow.
76574         [non-C99-based standards] (erff): Do not allow.
76575         [non-C99-based standards] (erfcf): Likewise.
76576         [non-C99-based standards] (gammaf): Likewise.
76577         [non-C99-based standards] (hypotf): Likewise.
76578         [non-C99-based standards] (j0f): Likewise.
76579         [non-C99-based standards] (j1f): Likewise.
76580         [non-C99-based standards] (jnf): Likewise.
76581         [non-C99-based standards] (lgammaf): Likewise.
76582         [non-C99-based standards] (tgammaf): Likewise.
76583         [non-C99-based standards] (y0f): Likewise.
76584         [non-C99-based standards] (y1f): Likewise.
76585         [non-C99-based standards] (ynf): Likewise.
76586         [non-C99-based standards] (isnanf): Likewise.
76587         [non-C99-based standards] (acoshf): Likewise.
76588         [non-C99-based standards] (asinhf): Likewise.
76589         [non-C99-based standards] (atanhf): Likewise.
76590         [non-C99-based standards] (cbrtf): Likewise.
76591         [non-C99-based standards] (expm1f): Likewise.
76592         [non-C99-based standards] (ilogbf): Likewise.
76593         [non-C99-based standards] (log1pf): Likewise.
76594         [non-C99-based standards] (logbf): Likewise.
76595         [non-C99-based standards] (nextafterf): Likewise.
76596         [non-C99-based standards] (remainderf): Likewise.
76597         [non-C99-based standards] (rintf): Likewise.
76598         [non-C99-based standards] (scalbf): Likewise.
76599         [non-C99-based standards] (copysignl): Likewise.
76600         [non-C99-based standards] (exp2l): Likewise.
76601         [non-C99-based standards] (log2l): Likewise.
76602         [non-C99-based standards] (modfl): Allow.
76603         [non-C99-based standards] (erfl): Do not allow.
76604         [non-C99-based standards] (erfcl): Likewise.
76605         [non-C99-based standards] (gammal): Likewise.
76606         [non-C99-based standards] (hypotl): Likewise.
76607         [non-C99-based standards] (j0l): Likewise.
76608         [non-C99-based standards] (j1l): Likewise.
76609         [non-C99-based standards] (jnl): Likewise.
76610         [non-C99-based standards] (lgammal): Likewise.
76611         [non-C99-based standards] (tgammal): Likewise.
76612         [non-C99-based standards] (y0l): Likewise.
76613         [non-C99-based standards] (y1l): Likewise.
76614         [non-C99-based standards] (ynl): Likewise.
76615         [non-C99-based standards] (isnanl): Likewise.
76616         [non-C99-based standards] (acoshl): Likewise.
76617         [non-C99-based standards] (asinhl): Likewise.
76618         [non-C99-based standards] (atanhl): Likewise.
76619         [non-C99-based standards] (cbrtl): Likewise.
76620         [non-C99-based standards] (expm1l): Likewise.
76621         [non-C99-based standards] (ilogbl): Likewise.
76622         [non-C99-based standards] (log1pl): Likewise.
76623         [non-C99-based standards] (logbl): Likewise.
76624         [non-C99-based standards] (nextafterl): Likewise.
76625         [non-C99-based standards] (remainderl): Likewise.
76626         [non-C99-based standards] (rintl): Likewise.
76627         [non-C99-based standards] (scalbl): Likewise.
76628         [ISO || ISO99 || ISO11] (*_t): Do not allow.
76629         [non-C99-based standards] (FP_*): Do not allow.
76630         [C99-based standards] (FP_*): Change to
76631         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
76632         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
76633         allow.
76634         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
76635         (SIG_ERR): Likewise.
76636         [X/Open-based standards] (SIG_HOLD): Likewise.
76637         (SIG_IGN): Likewise.
76638         (SIGABRT): Use macro-int-constant.  Specify type.  Require
76639         positive value.
76640         (SIGFPE): Likewise.
76641         (SIGILL): Likewise.
76642         (SIGINT): Likewise.
76643         (SIGSEGV): Likewise.
76644         (SIGTER): Likewise.
76645         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
76646         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
76647         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
76648         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
76649         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
76650         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
76651         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
76652         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
76653         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
76654         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
76655         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
76656         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
76657         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
76658         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
76659         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
76660         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
76661         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
76662         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
76663         [X/Open-based standards] (SIGTRAP): Likewise.
76664         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
76665         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
76666         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
76667         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
76668         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
76669         allow.
76670
76671 2012-05-08  Ian Wienand  <ianw@vmware.com>
76672
76673         [BZ #14080]
76674         * time/tzset.c (__tzset_parse_tz): Update default rules for
76675         daylight time changes in the Energy Policy Act of 2005.
76676
76677 2012-05-09  Andreas Jaeger  <aj@suse.de>
76678
76679         [BZ #13983]
76680         * elf/ldconfig.c (parse_conf): Change string to make clear that
76681         ldconfig only issued a warning if ld.so.conf does not exist.
76682
76683 2012-05-08  David S. Miller  <davem@davemloft.net>
76684
76685         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
76686         movxtod instead of popping the value on the stack.
76687
76688         * sysdeps/sparc/fpu/libm-test-ulps: Update.
76689
76690 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
76691
76692         * config.h.in: Add HAVE_ARM_PCS_VFP.
76693
76694 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
76695
76696         [BZ #13979]
76697         * include/features.h: Warn if user requests __FORTIFY_SOURCE
76698         checking but the checks are disabled for any reason.
76699
76700 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
76701
76702         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
76703         and ELF64_R_TYPE with ELFW(R_TYPE).
76704
76705 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
76706
76707         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
76708         (ulimit): Likewise.
76709
76710         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
76711         (settimeofday): Likewise.
76712
76713 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
76714
76715         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
76716         a struct th_u2 inside the union, and move tu_block/tu_code into
76717         a new th_u3 union of tu_block/tu_code inside of that.  Move
76718         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
76719         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
76720         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
76721         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
76722         (th_stuff): Change to th_u1.tu_stuff.
76723         (th_data): Define.
76724         (th_msg): Change to th_u1.th_u2.tu_data.
76725
76726 2012-05-07  David S. Miller  <davem@davemloft.net>
76727
76728         * sysdeps/sparc/fpu/libm-test-ulps: Update.
76729
76730         [BZ #14074]
76731         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
76732         (SETUP_PIC_REG): Use it.
76733         (SETUP_PIC_REG_LEAF): Use it.
76734
76735 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
76736
76737         [BZ #13885]
76738         [BZ #13923]
76739         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
76740         USE_AS_EXPM1L.
76741         (EXPL_FINITE): Likewise.
76742         (FLDLOG): Likewise.
76743         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
76744         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
76745         e_expl.S.
76746         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
76747         USE_AS_EXPM1L.
76748         (EXPL_FINITE): Likewise.
76749         (FLDLOG): Likewise.
76750         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
76751         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
76752         e_expl.S.
76753         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
76754         test of -max_value argument for long double.
76755         * sysdeps/i386/fpu/libm-test-ulps: Update.
76756         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
76757
76758 2012-05-06  David S. Miller  <davem@davemloft.net>
76759
76760         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
76761         quad soft-float symbols whose references which are compiler
76762         generated.
76763         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
76764
76765 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
76766
76767         [BZ #13884]
76768         [BZ #13914]
76769         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
76770         USE_AS_EXP10L.
76771         (EXPL_FINITE): Likewise.
76772         (FLDLOG): Likewise.
76773         (c0): Likewise.
76774         (c1): Likewise.
76775         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
76776         Adjust comments for base varying.
76777         (__expl_finite): Change alias to EXPL_FINITE.
76778         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
76779         e_expl.S.
76780         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
76781         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
76782         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
76783         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
76784         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
76785         USE_AS_EXP10L.
76786         (EXPL_FINITE): Likewise.
76787         (FLDLOG): Likewise.
76788         (c0): Likewise.
76789         (c1): Likewise.
76790         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
76791         Adjust comments for base varying.
76792         (__expl_finite): Change alias to EXPL_FINITE.
76793         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
76794         tests for bugs.
76795         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
76796
76797         [BZ #14064]
76798         * math/libm-test.inc (check_float_internal): Correct ulp
76799         calculation for subnormal expected results.
76800
76801 2012-05-06  Andreas Jaeger  <aj@suse.de>
76802
76803         * Makeconfig (+math-flags): New, set to -frounding-math.
76804         (+cflags): Add +math-flags so that all of glibc gets compiled with
76805         it.
76806
76807         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
76808
76809 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
76810
76811         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
76812         Disable one test.
76813
76814         [BZ #13787]
76815         [BZ #13922]
76816         [BZ #14036]
76817         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
76818         (__ieee754_expl): Allow for and saturate large arguments.
76819         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
76820         (u_threshold): Likewise.
76821         (__exp): Call __ieee754_exp before checking for overflow and
76822         underflow.
76823         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
76824         (u_threshold): Likewise.
76825         (__expf): Call __ieee754_expf before checking for overflow and
76826         underflow.
76827         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
76828         (u_threshold): Likewise.
76829         (__expl): Call __ieee754_expl before checking for overflow and
76830         underflow.
76831         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
76832         (__ieee754_expl): Allow for and saturate large arguments.
76833         * math/libm-test.inc (exp_test): Add another test.  Do not allow
76834         missing overflow exception on overflow.
76835         (expm1_test): Do not allow missing overflow exception on overflow.
76836
76837         * sysdeps/i386/fpu/e_expl.c: Move to ...
76838         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
76839         rather than using inline asm.
76840         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
76841         * sysdeps/x86_64/fpu/e_expl.S: Copy from
76842         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
76843
76844         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
76845         (nice): Likewise.
76846         (poll): Likewise.
76847         (signal): Likewise.
76848         (time): Likewise.
76849         (times): Likewise.
76850
76851 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
76852
76853         * sysdeps/unix/syscalls.list (adjtime): Add entry from
76854         sysdeps/unix/common/syscalls.list.
76855         (fchmod): Likewise.
76856         (fchown): Likewise.
76857         (ftruncate): Likewise.
76858         (getrusage): Likewise.
76859         (gettimeofday): Likewise.
76860         (setpgid): Likewise.
76861         (setregid): Likewise.
76862         (setreuid): Likewise.
76863         (sigaction): Likewise.
76864         (truncate): Likewise.
76865         (vhangup): Likewise.
76866         * sysdeps/unix/common/syscalls.list: Remove file.
76867         * sysdeps/unix/bsd/Implies: Don't include unix/common.
76868         * sysdeps/unix/sysv/linux/Implies: Likewise.
76869
76870 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
76871
76872         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
76873         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
76874         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
76875         Moved to ...
76876         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
76877         Here.
76878         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
76879         to ...
76880         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
76881         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
76882         to ...
76883         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
76884         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
76885         to ...
76886         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
76887         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
76888         to ...
76889         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
76890         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
76891         to ...
76892         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
76893         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
76894         to ...
76895         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
76896         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
76897         to ...
76898         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
76899         Here.
76900         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
76901         to ...
76902         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
76903         Here.
76904         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
76905         to ...
76906         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
76907         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
76908         Moved to ...
76909         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
76910         Here.
76911         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
76912         to ...
76913         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
76914
76915 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
76916
76917         * sysdeps/unix/common/bits/dirent.h: Remove file.
76918         * sysdeps/unix/common/bits/fcntl.h: Likewise.
76919
76920         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
76921         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
76922         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
76923         * sysdeps/unix/bsd/isatty.c: Likewise.
76924         * sysdeps/unix/bsd/tcdrain.c: Likewise.
76925         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
76926         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
76927
76928 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
76929
76930         [BZ #13563]
76931         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
76932         long double comparison inaccuracies.
76933         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
76934         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
76935
76936 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
76937
76938         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
76939         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
76940
76941 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
76942
76943         [BZ #14049]
76944         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
76945         nonzero digits before rounding a hex value.
76946         * stdlib/tst-strtod.c (tests): Add another test.
76947
76948 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
76949
76950         * sysdeps/s390/fpu/libm-test-ulps: Update.
76951
76952 2012-05-03  Andreas Jaeger  <aj@suse.de>
76953
76954         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
76955         does not get optimized out.
76956         (malloc_opt_barrier): New.
76957
76958 2012-05-03  Andreas Jaeger  <aj@suse.de>
76959             Roland McGrath  <roland@hack.frob.com>
76960
76961         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
76962         intermediate file deletion.
76963         (generated): Add .symlist files.
76964
76965 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
76966
76967         [BZ #13775]
76968         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
76969         Redirect under this condition.
76970         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
76971         [__USE_GNU] (__dprintf_chk): Not under this condition.
76972         [__USE_GNU] (__vdprintf_chk): Likewise.
76973         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
76974         under this condition.
76975         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
76976         [__USE_XOPEN2K8] (dprintf): Define under this condition.
76977         [__USE_XOPEN2K8] (vdprintf): Likewise.
76978         [__USE_GNU] (__dprintf_chk): Not under this condition.
76979         [__USE_GNU] (__vdprintf_chk): Likewise.
76980         [__USE_GNU] (dprintf): Likewise.
76981         [__USE_GNU] (vdprintf): Likewise.
76982
76983 2012-05-03  Roland McGrath  <roland@hack.frob.com>
76984
76985         * elf/Makefile (common-generated): Set this instead of generated for
76986         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
76987         $(all-built-dso)-derived lists.
76988
76989 2012-05-03  Andreas Jaeger  <aj@suse.de>
76990
76991         * sysdeps/i386/fpu/libm-test-ulps: Update.
76992
76993         * FAQ: Removed.
76994         * FAQ.in: Likewise.
76995         * scripts/gen-FAQ.pl: Likewise.
76996         * manual/install.texi (Installation): Point to online location of
76997         FAQ.
76998         * Makefile (files-for-dist): Remove FAQ.
76999         (FAQ): Remove.
77000
77001 2012-05-02  Allan McRae  <allan@archlinux.org>
77002
77003         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
77004         (LDFLAGS-reldepmod5.so): Likewise.
77005         (LDFLAGS-reldep6mod1.so): Likewise.
77006         (LDFLAGS-reldep6mod4.so): Likewise.
77007         (LDFLAGS-reldep8mod3.so): Likewise.
77008         (LDFLAGS-unload4mod1.so): Likewise.
77009         (LDFLAGS-unload4mod2.so): Likewise.
77010         (LDFLAGS-tst-initorder): Likewise.
77011         (LDFLAGS-tst-initordera2.so): Likewise.
77012         (LDFLAGS-tst-initordera3.so): Likewise.
77013         (LDFLAGS-tst-initordera4.so): Likewise.
77014         (LDFLAGS-tst-initorderb2.so): Likewise.
77015         (LDFLAGS-noload): Likewise.
77016         (LDFLAGS-next): Likewise.
77017         (LDFLAGS-order2mod1.so): Likewise.
77018         (LDFLAGS-order2mod2.so): Likewise.
77019         (LDFLAGS-tst-initorder2): Likewise.
77020         (LDFLAGS-tst-initorder2a.so): Likewise.
77021         (LDFLAGS-tst-initorder2b.so): Likewise.
77022         (LDFLAGS-tst-initorder2c.so): Likewise.
77023         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
77024
77025 2012-05-02  David S. Miller  <davem@davemloft.net>
77026
77027         * sysdeps/sparc/fpu/libm-test-ulps: Update.
77028
77029 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
77030
77031         [BZ #14055]
77032         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
77033
77034 2012-05-02  Andreas Jaeger  <aj@suse.de>
77035
77036         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
77037         since we manipulate rounding mode.
77038         (CPPFLAGS-test-idouble.c): Likewise.
77039         (CPPFLAGS-test-ifloat.c): Likewise.
77040         (CFLAGS-test-ldouble.c): Likewise.
77041         (CFLAGS-test-double.c): Likewise.
77042         (CFLAGS-test-float.c): Likewise.
77043         (CFLAGS-test-misc.c): Likewise.
77044         (CFLAGS-test-test-fenv.c): Likewise.
77045
77046 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
77047
77048         [BZ #2550]
77049         [BZ #2570]
77050         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
77051         comparisons to determine direction to adjust input.
77052
77053 2012-05-01  Roland McGrath  <roland@hack.frob.com>
77054
77055         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
77056         output to the target.
77057
77058         * scripts/localplt.awk: New file.
77059         * elf/Makefile ($(objpfx)check-localplt): Target removed.
77060         (check-localplt-CFLAGS): Variable removed.
77061         ($(all-built-dso:=.jmprel)): New static pattern rule.
77062         (generated): Add those targets.
77063         (localplt-built-dso): New variable.
77064         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
77065
77066         * elf/check-localplt.c: File removed.
77067
77068         * scripts/check-execstack.awk: New file.
77069         * elf/Makefile ($(objpfx)check-execstack): Target removed.
77070         (check-execstack-CFLAGS): Variable removed.
77071         ($(objpfx)check-execstack.h): Target removed.
77072         ($(objpfx)execstack-default): New target.
77073         (generated): Add that instead of check-execstack.h.
77074         ($(all-built-dso:=.phdr)): New static pattern rule.
77075         (generated): Add those targets.
77076         * elf/check-execstack.c: File removed.
77077
77078         * scripts/check-textrel.awk: New file.
77079         * elf/Makefile ($(objpfx)check-textrel): Target removed.
77080         (check-textrel-CFLAGS): Variable removed.
77081         (all-built-dso): Use := to define.o
77082         ($(all-built-dso:=.dyn)): New static pattern rule.
77083         (generated): Add those targets.
77084         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
77085         * config.make.in (READELF): New substituted variable.
77086         * elf/check-textrel.c: File removed.
77087
77088 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
77089
77090         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
77091         allow.
77092         * conform/data/ctype.h-data [C99-based standards] (isblank):
77093         Expect function.
77094         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
77095         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
77096         [ISO || ISO99 || ISO11] (*_t): Do not allow.
77097         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
77098         Specify type.  Require positive value.
77099         (EILSEQ): Likewise.
77100         (ERANGE): Likewise.
77101         [ISO || POSIX] (EILSEQ): Do not expect.
77102         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
77103         Specify type.  Require positive value.
77104         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
77105         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
77106         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
77107         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
77108         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
77109         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
77110         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
77111         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
77112         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
77113         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
77114         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
77115         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
77116         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
77117         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
77118         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
77119         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
77120         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
77121         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
77122         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
77123         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
77124         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
77125         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
77126         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
77127         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
77128         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
77129         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
77130         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
77131         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
77132         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
77133         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
77134         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
77135         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
77136         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
77137         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
77138         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
77139         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
77140         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
77141         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
77142         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
77143         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
77144         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
77145         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
77146         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
77147         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
77148         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
77149         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
77150         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
77151         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
77152         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
77153         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
77154         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
77155         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
77156         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
77157         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
77158         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
77159         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
77160         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
77161         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
77162         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
77163         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
77164         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
77165         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
77166         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
77167         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
77168         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
77169         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
77170         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
77171         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
77172         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
77173         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
77174         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
77175         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
77176         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
77177         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
77178         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
77179         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
77180         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
77181         Require >= 2.
77182         (FLT_ROUNDS): Expect as macro, not constant.
77183         (FLT_MANT_DIG): Use macro-int-constant.
77184         (DBL_MANT_DIG): Likewise.
77185         (LDBL_MANT_DIG): Likewise.
77186         (FLT_DIG): Likewise.
77187         (DBL_DIG): Likewise.
77188         (LDBL_DIG): Likewise.
77189         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
77190         (DBL_MIN_EXP): Likewise.
77191         (LDBL_MIN_EXP): Likewise.
77192         (FLT_MAX_EXP): Use macro-int-constant.
77193         (DBL_MAX_EXP): Likewise.
77194         (LDBL_MAX_EXP): Likewise.
77195         (FLT_MAX_10_EXP): Likewise.
77196         (DBL_MAX_10_EXP): Likewise.
77197         (LDBL_MAX_10_EXP): Likewise.
77198         (FLT_MAX): Use macro-constant.
77199         (DBL_MAX): Likewise.
77200         (LDBL_MAX): Likewise.
77201         (FLT_EPSILON): Use macro-constant.  Give upper bound.
77202         (DBL_EPSILON): Likewise.
77203         (LDBL_EPSILON): Likewise.
77204         (FLT_MIN): Likewise.
77205         (DBL_MIN): Likewise.
77206         (LDBL_MIN): Likewise.
77207         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
77208         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
77209         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
77210         [ISO11] (FLT_HAS_SUBNORM): Likewise.
77211         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
77212         [ISO11] (DBL_DECIMAL_DIG): Likewise.
77213         [ISO11] (FLT_DECIMAL_DIG): Likewise.
77214         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
77215         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
77216         [ISO11] (FLT_TRUE_MIN): Likewise.
77217         [ISO11] (LDBL_TRUE_MIN): Likewise.
77218         [ISO || ISO99 || ISO11] (*_t): Do not allow.
77219         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
77220         (SCHAR_MIN): Use macro-int-constant.  Specify type.
77221         (SCHAR_MAX): Likewise.
77222         (UCHAR_MAX): Likewise.
77223         (CHAR_MIN): Likewise.
77224         (CHAR_MAX): Likewise.
77225         (MB_LEN_MAX): Use macro-int-constant.
77226         (SHRT_MIN): Use macro-int-constant.  Specify type.
77227         (SHRT_MAX): Likewise.
77228         (USHRT_MAX): Likewise.
77229         (INT_MAX): Likewise.
77230         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
77231         bound negative.
77232         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
77233         bound with "U".
77234         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
77235         bound with "L".
77236         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
77237         bound negative.  Suffix upper bound with "L".
77238         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
77239         bound with "UL".
77240         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
77241         Specify type.
77242         [C99-based standards] (LLONG_MAX): Likewise.
77243         [C99-based standards] (ULLONG_MAX): Likewise.
77244         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
77245         == 0.
77246         [ISO11] (max_align_t): Require type.
77247         [ISO || ISO99 || ISO11] (*_t): Do not allow.
77248
77249         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
77250         from $CFLAGS, without defining away __attribute__ calls.
77251         (checknamespace): Use $CFLAGS_namespace.
77252
77253         * conform/conformtest.pl (@keywords): Only include C99 keywords
77254         for standards based on C99 or C11.
77255
77256         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
77257         Disable tests.
77258         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
77259         UNIX98]: Likewise.
77260
77261         * conform/conformtest.pl: Handle "macro-int-constant" and test for
77262         usability of symbols in #if.
77263
77264         * conform/conformtest.pl: If macro or constant types start
77265         "promoted:", expect the symbol to be of the following type
77266         promoted by the integer promotions.
77267
77268         * conform/conformtest.pl: Parse all "constant" and "macro" lines
77269         in one place.  Also handle "macro-constant".
77270
77271         * conform/conformtest.pl: Only accept expected macro values with
77272         "==".  Parse all "macro" lines in one place.
77273         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
77274
77275         * conform/conformtest.pl: Handle braced types on "constant" lines
77276         instead of handling "typed-constant".
77277         * conform/data/signal.h-data: Use "constant" instead of
77278         "typed-constant".
77279
77280         * conform/conformtest.pl: Handle "optional-" at start of lines in
77281         one place rather than duplicating several cases.  Handle each
77282         format of "macro" line with initial "optional-".
77283
77284         * conform/conformtest.pl: Only accept expected constant or
77285         optional-constant values with "==".  Parse all "constant" lines in
77286         one place.  Parse all "optional-constant" lines in one place.
77287         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
77288         * conform/data/fmtmsg.h-data: Likewise.
77289         * conform/data/netinet/in.h-data: Likewise.
77290         * conform/data/tar.h-data: Likewise.
77291         * conform/data/limits.h-data: Use "==" form on "constant" and
77292         "optional-constant" lines.
77293
77294         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
77295         Use -std=c99 for XOPEN2K.
77296         (@knownproblems): Remove.
77297         (newtoken): Don't check %isknown.
77298
77299         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
77300         Do not expect macro.
77301         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
77302         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
77303         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
77304         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
77305         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
77306         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
77307         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
77308         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
77309         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
77310         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
77311         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
77312         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
77313         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
77314         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
77315         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
77316         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
77317         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
77318         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
77319         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
77320         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
77321         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
77322         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
77323         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
77324         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
77325         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
77326         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
77327         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
77328         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
77329         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
77330         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
77331         [XPG3] (acosh): Likewise.
77332         [XPG3] (asinh): Likewise.
77333         [XPG3] (atanh): Likewise.
77334         [XPG3] (cbrt): Likewise.
77335         [XPG3] (expm1): Likewise.
77336         [XPG3] (ilogb): Likewise.
77337         [XPG3] (log1p): Likewise.
77338         [XPG3] (logb): Likewise.
77339         [XPG3] (nextafter): Likewise.
77340         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
77341         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
77342         [XPG3] (remainder): Likewise.
77343         [XPG3] (rint): Likewise.
77344         [XPG3 || XPG4 || UNIX98] (round): Likewise.
77345         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
77346         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
77347         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
77348         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
77349         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
77350         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
77351         [UNIX98 || XOPEN2K] (scalb): Expect.
77352         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
77353         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
77354         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
77355         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
77356         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
77357         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
77358         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
77359         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
77360         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
77361         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
77362         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
77363         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
77364         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
77365         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
77366         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
77367         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
77368         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
77369         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
77370         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
77371         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
77372         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
77373         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
77374         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
77375         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
77376         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
77377         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
77378         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
77379         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
77380         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
77381         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
77382         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
77383         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
77384         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
77385         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
77386         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
77387         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
77388         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
77389         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
77390         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
77391         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
77392         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
77393         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
77394         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
77395         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
77396         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
77397         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
77398         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
77399         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
77400         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
77401         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
77402         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
77403         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
77404         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
77405         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
77406         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
77407         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
77408         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
77409         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
77410         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
77411         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
77412         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
77413         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
77414         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
77415         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
77416         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
77417         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
77418         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
77419         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
77420         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
77421         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
77422         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
77423         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
77424         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
77425         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
77426         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
77427         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
77428         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
77429         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
77430         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
77431         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
77432         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
77433         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
77434         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
77435         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
77436         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
77437         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
77438         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
77439         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
77440         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
77441         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
77442         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
77443         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
77444         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
77445         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
77446         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
77447         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
77448         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
77449         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
77450         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
77451         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
77452         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
77453         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
77454         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
77455         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
77456         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
77457         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
77458         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
77459         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
77460         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
77461         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
77462         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
77463         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
77464         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
77465         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
77466         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
77467         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
77468         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
77469         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
77470         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
77471         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
77472         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
77473         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
77474         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
77475         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
77476         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
77477         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
77478         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
77479         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
77480         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
77481         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
77482         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
77483         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
77484         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
77485         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
77486         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
77487         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
77488         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
77489
77490         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
77491         _XOPEN_SOURCE_EXTENDED for XPG4.
77492
77493         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
77494
77495         * Makeconfig (localtime): Remove variable.
77496         (inst_localtime-file): Likewise.
77497
77498 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
77499
77500         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
77501         Update.
77502         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
77503         Update.
77504         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
77505         Update.
77506         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
77507         Update.
77508         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
77509         Update.
77510         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
77511         Update.
77512         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
77513         Update.
77514         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
77515         Update.
77516         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
77517         Update.
77518
77519 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
77520
77521         [BZ #2550]
77522         [BZ #2570]
77523         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
77524         comparisons to determine direction to adjust input.
77525         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
77526         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
77527         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
77528         Likewise.
77529         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
77530         Likewise.
77531         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
77532         Likewise.
77533         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
77534         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
77535         Likewise.
77536         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
77537         Likewise.
77538         * math/libm-test.inc (nexttoward_test): Add more tests.
77539
77540 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
77541
77542         [BZ #14040]
77543         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
77544         in version GLIBC_2.1, not GLIBC_2.0.
77545         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
77546         Likewise.
77547
77548 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
77549
77550         [BZ #13942]
77551         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
77552         (1 - x) * (1 + x).
77553         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
77554         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
77555         * math/libm-test.inc (acos_test): Add more tests.
77556         (asin_test): Likewise.
77557         * sysdeps/i386/fpu/libm-test-ulps: Update.
77558         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
77559
77560         [BZ #14034]
77561         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
77562         of square root.
77563         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
77564         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
77565         * math/libm-test.inc (acos_test_tonearest): New function.
77566         (acos_test_towardzero): Likewise.
77567         (acos_test_downward): Likewise.
77568         (acos_test_upward): Likewise.
77569         (asin_test_tonearest): Likewise.
77570         (asin_test_towardzero): Likewise.
77571         (asin_test_downward): Likewise.
77572         (asin_test_upward): Likewise.
77573         (main): Call the new functions.
77574         * sysdeps/i386/fpu/libm-test-ulps: Update.
77575         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
77576
77577         [BZ #13884]
77578         [BZ #13924]
77579         * math/e_exp10.c: Include <float.h>.
77580         (__ieee754_exp10): Handle underflow here rather than multiplying
77581         large negative argument by M_LN10.
77582         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
77583         of __ieee754_expf.
77584         * math/e_exp10l.c: Include <float.h>.
77585         (__ieee754_exp10l): Handle underflow here rather than multiplying
77586         large negative argument by M_LN10l.
77587         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
77588         spurious overflow exception on underflow.
77589
77590 2012-04-29  Marek Polacek  <polacek@redhat.com>
77591
77592         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
77593         (__fortify_function): New macro.
77594         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
77595         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
77596         __extern_always_inline.
77597         * libio/bits/stdio2.h: Likewise.
77598         * libio/bits/stdio.h: Likewise.
77599         * string/string.h: Likewise.
77600         * string/bits/string3.h: Likewise.
77601         * include/stdio.h: Likewise.
77602         * stdlib/bits/stdlib.h: Likewise.
77603         * stdlib/stdlib.h: Likewise.
77604         * rt/bits/mqueue2.h: Likewise.
77605         * rt/mqueue.h: Likewise.
77606         * posix/bits/unistd.h: Likewise.
77607         * posix/unistd.h: Likewise.
77608         * io/bits/poll2.h: Likewise.
77609         * io/bits/fcntl2.h: Likewise.
77610         * io/fcntl.h: Likewise.
77611         * io/sys/poll.h: Likewise.
77612         * misc/bits/syslog.h: Likewise.
77613         * misc/bits/syslog-ldbl.h: Likewise.
77614         * misc/sys/syslog.h: Likewise.
77615         * socket/bits/socket2.h: Likewise.
77616         * socket/sys/socket.h: Likewise.
77617         * debug/tst-chk1.c: Likewise.
77618         * wcsmbs/bits/wchar2.h: Likewise.
77619         * wcsmbs/bits/wchar-ldbl.h: Likewise.
77620         * wcsmbs/wchar.h: Likewise.
77621
77622 2012-04-29  Andreas Jaeger  <aj@suse.de>
77623
77624         * Makerules (tests): Remove enable-check-abi protection.
77625         (check-abi-warn): Remove.
77626         (check-abi-%): Remove check-abi-warn usage.
77627
77628         * configure.in: Remove check-abi configure option.
77629         * configure: Regenerated.
77630         * config.make.in (enable-check-abi): Remove.
77631
77632 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
77633
77634         [BZ #14033]
77635         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
77636         double functions to double *_finite functions.
77637
77638         [BZ #13941]
77639         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
77640         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
77641         LDBL_MIN_EXP.
77642         * stdio-common/Makefile (tests): Add tst-sprintf3.
77643         * stdio-common/tst-sprintf3.c: New file.
77644
77645         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
77646         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
77647
77648 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
77649
77650         * conform/conformtest.pl: Remove duplicate typed-constant
77651         handling.
77652
77653 2012-04-28  David S. Miller  <davem@davemloft.net>
77654
77655         * Makerules (%.abilist): Add vpath on sysdep_dirs.
77656         (check-abi-%): Remove AWK script prerequisite and explicit
77657         abilist directory.
77658         (check-abi): Rewrite to just diff the symlist with the abilist.
77659         (config-tls, config-abi-config): Delete, no longer used.
77660         (update-abi-%): Remove AWK script and explicit abilist directory.
77661         (update-abi): Rewrite to simply compare and conditionally copy the
77662         symlist and the sysdep abilist file.  Remove update-abi-config
77663         checks.
77664         * abilist/ld.abilist: Remove.
77665         * abilist/libBrokenLocale.abilist: Remove.
77666         * abilist/libanl.abilist: Remove.
77667         * abilist/libcrypt.abilist: Remove.
77668         * abilist/libdl.abilist: Remove.
77669         * abilist/librt.abilist: Remove.
77670         * abilist/libthread_db.abilist: Remove.
77671         * abilist/libutil.abilist: Remove.
77672         * scripts/extract-abilist.awk: Remove.
77673         * scripts/merge-abilist.awk: Remove.
77674         * sysdeps/generic/libcidn.abilist: New file.
77675         * sysdeps/generic/libnss_compat.abilist: New file.
77676         * sysdeps/generic/libnss_db.abilist: New file.
77677         * sysdeps/generic/libnss_dns.abilist: New file.
77678         * sysdeps/generic/libnss_files.abilist: New file.
77679         * sysdeps/generic/libnss_hesiod.abilist: New file.
77680         * sysdeps/generic/libnss_nis.abilist: New file.
77681         * sysdeps/generic/libnss_nisplus.abilist: New file.
77682         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
77683         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
77684         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
77685         file.
77686         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
77687         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
77688         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
77689         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
77690         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
77691         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
77692         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
77693         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
77694         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
77695         file.
77696         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
77697         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
77698         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
77699         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
77700         file.
77701         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
77702         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
77703         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
77704         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
77705         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
77706         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
77707         file.
77708         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
77709         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
77710         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
77711         file.
77712         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
77713         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
77714         New file.
77715         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
77716         New file.
77717         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
77718         New file.
77719         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
77720         New file.
77721         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
77722         New file.
77723         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
77724         New file.
77725         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
77726         New file.
77727         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
77728         New file.
77729         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
77730         New file.
77731         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
77732         New file.
77733         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
77734         New file.
77735         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
77736         New file.
77737         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
77738         New file.
77739         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
77740         file.
77741         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
77742         New file.
77743         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
77744         New file.
77745         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
77746         file.
77747         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
77748         New file.
77749         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
77750         New file.
77751         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
77752         file.
77753         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
77754         New file.
77755         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
77756         New file.
77757         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
77758         New file.
77759         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
77760         New file.
77761         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
77762         New file.
77763         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
77764         New file.
77765         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
77766         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
77767         file.
77768         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
77769         New file.
77770         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
77771         file.
77772         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
77773         file.
77774         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
77775         file.
77776         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
77777         file.
77778         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
77779         file.
77780         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
77781         New file.
77782         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
77783         file.
77784         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
77785         file.
77786         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
77787         New file.
77788         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
77789         file.
77790         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
77791         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
77792         file.
77793         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
77794         New file.
77795         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
77796         file.
77797         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
77798         file.
77799         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
77800         file.
77801         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
77802         file.
77803         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
77804         file.
77805         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
77806         New file.
77807         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
77808         file.
77809         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
77810         file.
77811         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
77812         New file.
77813         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
77814         file.
77815         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
77816         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
77817         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
77818         file.
77819         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
77820         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
77821         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
77822         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
77823         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
77824         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
77825         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
77826         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
77827         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
77828         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
77829         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
77830         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
77831         file.
77832         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
77833         New file.
77834         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
77835         file.
77836         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
77837         file.
77838         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
77839         file.
77840         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
77841         file.
77842         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
77843         file.
77844         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
77845         New file.
77846         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
77847         New file.
77848         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
77849         file.
77850         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
77851         New file.
77852         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
77853         file.
77854         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
77855         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
77856         file.
77857         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
77858         New file.
77859         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
77860         file.
77861         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
77862         file.
77863         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
77864         file.
77865         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
77866         file.
77867         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
77868         file.
77869         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
77870         New file.
77871         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
77872         New file.
77873         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
77874         file.
77875         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
77876         New file.
77877         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
77878         file.
77879
77880 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
77881
77882         * conform/conformtest.pl: Fix typo in handling typed-constant from
77883         allow-header.
77884
77885 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
77886
77887         * README: Cut down references to pre-2.6 Linux kernels and
77888         Linuxthreads.  Update lists of configurations in libc and ports
77889         and sort alphabetically.  Say "or newer" with Linux kernel version
77890         requirements.
77891
77892         * config.h.in [IS_IN_build]: Allow compiling without optimization.
77893
77894 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
77895
77896         [BZ #887]
77897         * math/libm-test.inc (logb_test_downward): New test to expose
77898         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
77899         rounding mode.
77900
77901 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
77902
77903         [BZ #14027]
77904         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
77905         to be done.
77906         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
77907         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
77908
77909 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
77910
77911         * sysdeps/unix/i386/brk.S: Remove file.
77912         * sysdeps/unix/i386/dl-brk.S: Likewise.
77913         * sysdeps/unix/i386/pipe.S: Likewise.
77914         * sysdeps/unix/i386/sigreturn.S: Likewise.
77915         * sysdeps/unix/i386/syscall.S: Likewise.
77916         * sysdeps/unix/i386/vfork.S: Likewise.
77917         * sysdeps/unix/i386/wait.S: Likewise.
77918
77919         * sysdeps/unix/common/tcsendbrk.c: Move to ...
77920         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
77921
77922         * configure.in (arm*-none*): Do not allow without
77923         --enable-hacker-mode.
77924         (netbsd*): Remove case setting base_os.
77925         (386bsd*): Likewise.
77926         (freebsd*): Likewise.
77927         (bsdi*): Likewise.
77928         (osf*): Likewise.
77929         (sunos*): Likewise.
77930         (ultrix*): Likewise.
77931         (newsos*): Likewise.
77932         (dynix*): Likewise.
77933         (*bsd*): Likewise.
77934         (sysv*): Likewise.
77935         (isc*): Likewise.
77936         (esix*): Likewise.
77937         (sco*): Likewise.
77938         (minix*): Likewise.
77939         (irix4*): Likewise.
77940         (irix6*): Likewise.
77941         (solaris[2-9]*): Likewise.
77942         (none): Likewise.
77943         * configure: Regenerated.
77944
77945 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
77946
77947         [BZ #11521]
77948         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
77949         overflow or cancellation in calculating denominator.
77950         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
77951         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
77952         down expression to avoid unexpected rounding in newer GCCs.
77953         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
77954
77955 2012-04-26  David S. Miller  <davem@davemloft.net>
77956
77957         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
77958         long-double compat symbols.
77959         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
77960         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
77961         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
77962         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
77963         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
77964         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
77965         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
77966         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
77967         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
77968         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
77969         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
77970         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
77971         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
77972
77973 2012-04-25  David S. Miller  <davem@davemloft.net>
77974
77975         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
77976         HWCAP_* values only after the memory barriers have been defined.
77977         (atomic_full_barrier): Define.
77978         (atomic_read_barrier): Define.
77979         (atomic_write_barrier): Define.
77980
77981 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
77982
77983         * shlib-versions: Add libgcc_s version information.
77984         * sysdeps/generic/libgcc_s.h: Remove.
77985         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
77986         libgcc_s.h.
77987         * sysdeps/gnu/unwind-resume.c: Likewise.
77988         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
77989
77990 2012-04-25  David S. Miller  <davem@davemloft.net>
77991
77992         * sysdeps/unix/sparc/brk.S: Delete.
77993         * sysdeps/unix/sparc/dl-brk.S: Delete.
77994         * sysdeps/unix/sparc/pipe.S: Delete.
77995         * sysdeps/unix/sparc/sysdep.S: Delete.
77996         * sysdeps/unix/sparc/sysdep.h: Delete.
77997         * sysdeps/unix/sparc/vfork.S: Delete.
77998         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG)
77999         (SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
78000         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO)
78001         (ret_ERRVAL, r0, r1, MOVE): Define.
78002         (JUMPTARGET): Remove.
78003         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
78004         sysdeps/unix/sparc/sysdep.h
78005         (ENTRY, END): Remove.
78006         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
78007
78008 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
78009
78010         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
78011         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
78012         -DIS_IN_build.
78013
78014         * timezone/README: Update upstream location and email address for
78015         tzcode and tzdata.
78016         * timezone/zdump.c: Update from tzcode 2012b.
78017         * timezone/zic.c: Likewise.
78018
78019         * configure.in (libc_cv_as_needed): Remove test.
78020         * configure: Regenerated.
78021         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
78022         conditional definition.
78023         [$(have-as-needed) != yes] (no-as-needed): Likewise.
78024         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
78025         * config.make.in (have-as-needed): Remove variable.
78026
78027 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
78028             Paul Pluzhnikov  <ppluzhnikov@google.com>
78029
78030         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
78031         strings correctly.
78032
78033 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
78034
78035         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
78036         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
78037         * sysdeps/sh/strlen.S: Likewise.
78038
78039 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
78040
78041         * sysdeps/unix/fork.S: Remove file.
78042         * sysdeps/unix/i386/fork.S: Likewise.
78043         * sysdeps/unix/sparc/fork.S: Likewise.
78044
78045         * sysdeps/unix/system.c: Remove file.
78046         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
78047
78048         * sysdeps/unix/getegid.S: Remove file.
78049         * sysdeps/unix/geteuid.S: Likewise.
78050
78051 2012-04-24  Roland McGrath  <roland@hack.frob.com>
78052
78053         * scripts/check-localplt.awk: New file.
78054         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
78055         of diff.
78056         * scripts/data/localplt-generic.data: Add a comment.
78057
78058         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
78059         NODE when __dir_mkfile failed.
78060         * sysdeps/mach/hurd/symlinkat.c: Likewise.
78061         Reported by Ludovic Courtès <ludo@gnu.org>.
78062
78063 2012-04-24  Andreas Jaeger  <aj@suse.de>
78064
78065         * Makerules (common-clean): Also remove gen-as-const-headers
78066         files.
78067
78068 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
78069
78070         * Makerules (native-compile): Do not change working directory for
78071         build.  Use $(OUTPUT_OPTION) in command.
78072         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
78073
78074 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
78075
78076         [BZ #13886]
78077         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
78078         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
78079         * math/libm-test.inc (floor_test): Add more tests.
78080         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
78081
78082 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
78083
78084         * sysdeps/unix/getdents.c: Remove file.
78085         * sysdeps/unix/sysv/getdents.c: Likewise.
78086         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
78087
78088         * sysdeps/unix/syscalls.list (madvise): Add syscall from
78089         sysdeps/unix/mman/syscalls.list.
78090         (mmap): Likewise.
78091         (mprotect): Likewise.
78092         (msync): Likewise.
78093         (munmap): Likewise.
78094         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
78095         * sysdeps/unix/mman/syscalls.list: Remove.
78096         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
78097
78098         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
78099         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
78100         * configure: Regenerated.
78101         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
78102         $(libgcc_s_suffix).
78103         * config.make.in (libgcc_s_suffix): Remove variable.
78104
78105 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
78106
78107         * sysdeps/unix/sysv/gethostname.c: Move to ...
78108         * sysdeps/posix/gethostname.c: ... here.
78109
78110         * sysdeps/unix/execve.S: Remove file.
78111
78112         * sysdeps/unix/_exit.S: Remove file.
78113
78114 2012-04-23  Andreas Jaeger  <aj@suse.de>
78115
78116         [BZ #13739]
78117         * manual/Makefile: Remove make dist support, there's no
78118         need for a stand-alone documentation tar ball.
78119         (TEXI2DVI): Define always, it's not in Makeconfig.
78120         (dist): Removed.
78121         (tar-it): Removed.
78122         (edition): Removed.
78123         (glibc-doc-$(edition).tar): Removed
78124         (%.Z): Removed.
78125         (%.gz): Removed.
78126         (%.uu): Removed.
78127         (ETAGS): Remove, it's in Makeconfig.
78128         (move-if-change): Remove, it's in Makeconfig.
78129
78130 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
78131
78132         [BZ #13970]
78133         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
78134         (strtod, strtof, strtold, strtol, strtoul, strtoq)
78135         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
78136         (strtod_l, strtof_l, strtold_l): Remove __wur.
78137         It is not necessarily an error to ignore strtol's return value.
78138         One can reliably look at the stored endptr to decide whether
78139         the number had valid syntax.
78140
78141 2012-04-21  Andreas Jaeger  <aj@suse.de>
78142
78143         [BZ #13739]
78144         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
78145
78146 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
78147
78148         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
78149         * sysdeps/unix/sysv/Versions: Remove file.
78150
78151 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
78152
78153         [BZ #13927]
78154         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
78155
78156 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
78157
78158         [BZ #7064]
78159         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
78160         version from __vm86.
78161
78162 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
78163
78164         * sysdeps/unix/common/lxstat.c: Remove file.
78165         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
78166
78167         * sysdeps/unix/sysv/Makefile: Remove file.
78168
78169         * sysdeps/unix/sysv/direct.h: Remove file.
78170
78171         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
78172         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
78173         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
78174         * sysdeps/unix/sysv/bits/signum.h: Likewise.
78175         * sysdeps/unix/sysv/bits/stat.h: Likewise.
78176         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
78177         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
78178
78179         * sysdeps/unix/sysv/setrlimit.c: Remove file.
78180
78181         * sysdeps/unix/xmknod.c: Remove file.
78182         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
78183
78184         * sysdeps/unix/sysv/settimeofday.c: Remove file.
78185
78186         * sysdeps/unix/sysv/i386/time.S: Remove file.
78187
78188         * sysdeps/unix/fxstat.c: Remove file.
78189         * sysdeps/unix/xstat.c: Likewise.
78190         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
78191
78192         * sysdeps/unix/sysv/sigaction.c: Remove file.
78193
78194         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
78195         (sysdep_headers): Remove variable.
78196         [termio.h not in sysdep_headers] (generated): Likewise.
78197         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
78198         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
78199         * sysdeps/unix/sysv/tcdrain.c: Likewise.
78200         * sysdeps/unix/sysv/tcflow.c: Likewise.
78201         * sysdeps/unix/sysv/tcflush.c: Likewise.
78202         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
78203         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
78204         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
78205         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
78206         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
78207
78208         * sysdeps/unix/siglist.c: Remove file.
78209
78210         * sysdeps/unix/getppid.S: Remove file.
78211
78212         * sysdeps/unix/mkdir.c: Remove file.
78213         * sysdeps/unix/rmdir.c: Likewise.
78214
78215 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
78216
78217         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
78218         ERR_MAX value.
78219         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
78220         errlist-compat value.
78221
78222 2012-04-18  David S. Miller  <davem@davemloft.net>
78223
78224         * sysdeps/generic/memcopy.h (reg_char): Delete.
78225         * debug/strcat_chk.c: Use char, not reg_char.
78226         * debug/strcpy_chk.c: Likewise.
78227         * debug/strncat_chk.c: Likewise.
78228         * debug/strncpy_chk.c: Likewise.
78229         * string/memchr.c: Likewise.
78230         * string/memrchr.c: Likewise.
78231         * string/rawmemchr.c: Likewise.
78232         * string/strcat.c: Likewise.
78233         * string/strchr.c: Likewise.
78234         * string/strchrnul.c: Likewise.
78235         * string/strcmp.c: Likewise.
78236         * string/strcpy.c: Likewise.
78237         * string/strncat.c: Likewise.
78238         * string/strncmp.c: Likewise.
78239         * string/strncpy.c: Likewise.
78240
78241 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
78242
78243         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
78244         __builtin_memcopy is called when src and dest ranges are known to not
78245         overlap.
78246
78247 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
78248
78249         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
78250         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
78251         fwd_align_merge macro call.
78252         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
78253         bwd_align_merge macro call.
78254         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
78255
78256 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
78257
78258         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
78259         bwd_align_merge macros.
78260         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
78261         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
78262         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
78263
78264 2012-04-18  David S. Miller  <davem@davemloft.net>
78265
78266         * sysdeps/sparc/sparc64/memcopy.h: Delete.
78267
78268 2012-04-18  Andreas Jaeger  <aj@suse.de>
78269
78270         [BZ #6794]
78271         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
78272         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
78273         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
78274
78275         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
78276         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
78277         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
78278
78279         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
78280         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
78281         Adjust for changed ldbl-128 files.
78282
78283         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
78284         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
78285         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
78286
78287 2012-04-17  David S. Miller  <davem@davemloft.net>
78288
78289         * sysdeps/sparc/sparc32/memcopy.h: Delete.
78290
78291 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
78292
78293         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
78294         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
78295         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
78296         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
78297         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
78298         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
78299
78300 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
78301
78302         [BZ #6794]
78303         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
78304         * math/libm-test.inc: Add ilogb errno and exception tests.
78305         * math/w_ilogb.c: New file: ilogb wrapper.
78306         * math/w_ilogbf.c: New file: ilogbf wrapper.
78307         * math/w_ilogbl.c: New file: ilogbl wrapper.
78308         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
78309         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
78310         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
78311         exception being thrown with 0.0 as argument.
78312         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
78313         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
78314         exception being thrown with 0.0 as argument.
78315         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
78316         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
78317         exception being thrown with 0.0 as argument.
78318         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
78319         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
78320         exception being thrown with 0.0 as argument.
78321         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
78322         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
78323         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
78324         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
78325         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
78326         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
78327         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
78328         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
78329         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
78330
78331 2012-04-17  Petr Baudis  <pasky@ucw.cz>
78332
78333         * include/sys/uio.h: Change __vector to __iovec to avoid clash
78334         with altivec.
78335
78336 2012-04-16  Marek Polacek  <polacek@redhat.com>
78337
78338         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
78339
78340 2012-04-16  Marek Polacek  <polacek@redhat.com>
78341
78342         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
78343         operands of fdivp instruction.
78344
78345 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
78346
78347         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
78348         * elf/tst-auditmod3b.c: Likewise.
78349         * elf/tst-auditmod4b.c: Likewise.
78350         * elf/tst-auditmod5b.c: Likewise.
78351         * elf/tst-auditmod6b.c: Likewise.
78352         * elf/tst-auditmod6c.c: Likewise.
78353         * elf/tst-auditmod7b.c: Likewise.
78354         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
78355         * sysdeps/x86_64/preconfigure.in: Likewise.
78356         * sysdeps/x86_64/preconfigure: Regenerated.
78357
78358 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
78359
78360         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
78361         __ILP32__.
78362
78363 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
78364
78365         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
78366         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
78367
78368 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
78369
78370         [BZ #13973]
78371         * locale/iso-639.def: Fix gl language name. Spotted by
78372         Yaron Shahrabani.
78373
78374 2012-04-12  Roland McGrath  <roland@hack.frob.com>
78375
78376         [BZ #2074]
78377         * libio/libio.h (__io_write_fn): Update comment.
78378
78379 2012-04-12  Petr Baudis  <pasky@ucw.cz>
78380
78381         [BZ #2074]
78382         * stdio.texi (Hook Functions): The user provided writer function
78383         is not allowed to return -1.
78384
78385 2012-04-11  David S. Miller  <davem@davemloft.net>
78386
78387         * sysdeps/sparc/fpu/libm-test-ulps: Update.
78388
78389 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
78390
78391         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
78392         Add a leading slash to rtkaio.
78393
78394 2012-04-11  Jim Meyering  <meyering@redhat.com>
78395
78396         [BZ #11959]
78397         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
78398         It is not necessarily an error to ignore fwrite's return
78399         value.  One can reliably use ferror to test for errors after
78400         the fact.
78401
78402 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
78403
78404         * bits/types.h (__snseconds_t): New type.
78405         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
78406
78407         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
78408         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
78409         (__SNSECONDS_T_TYPE): Likewise.
78410         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
78411         (__SNSECONDS_T_TYPE): Likewise.
78412         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
78413         (__SNSECONDS_T_TYPE): Likewise.
78414
78415 2012-04-10  Andreas Jaeger  <aj@suse.de>
78416
78417         [BZ #2636]
78418         * manual/time.texi (Processor Time): Return type of times is
78419         elapsed real time since an arbitrary point in the past.
78420         (CPU Time): Move CLK_TCK from here...
78421         (Processor Time): ...to here.  Correct description.
78422         * manual/conf.texi (Constants for Sysconf): Correct description of
78423         _SC_CLK_TCK.
78424
78425 2012-04-10  David S. Miller  <davem@davemloft.net>
78426
78427         [BZ #13967]
78428         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
78429         where the is a gap between DT_REL(A) and DT_JMPREL.
78430
78431 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
78432
78433         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
78434         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
78435         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
78436
78437 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
78438
78439         * elf/dl-support.c (_dl_inhibit_cache): New variable.
78440         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
78441         (dl_main): Handle --inhibit-cache.
78442         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
78443         _dl_inhibit_cache.
78444         * elf/dl-load.c (_dl_map_object): Use it.
78445         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
78446
78447 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
78448
78449         [BZ #13872]
78450         * sysdeps/i386/fpu/e_powl.S (p78): New object.
78451         (__ieee754_powl): Saturate large exponents rather than testing for
78452         overflow of y*log2(x).
78453         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
78454         * math/libm-test.inc (pow_test): Do not permit spurious overflow
78455         exceptions.
78456
78457         [BZ #11521]
78458         * math/s_ctan.c: Include <float.h>.
78459         (__ctan): Avoid internal overflow or cancellation in calculating
78460         denominator.
78461         * math/s_ctanf.c: Likewise.
78462         * math/s_ctanl.c: Likewise.
78463         * math/s_ctanh.c: Likewise.
78464         * math/s_ctanhf.c: Likewise.
78465         * math/s_ctanhl.c: Likewise.
78466         * math/libm-test.inc (ctan_test): Add more tests.
78467         (ctanh_test): Likewise.
78468         * sysdeps/i386/fpu/libm-test-ulps: Update.
78469         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
78470
78471 2012-04-09  Andreas Jaeger  <aj@suse.de>
78472
78473         [BZ #6894]
78474         * manual/filesys.texi (Directory Entries): Mention that d_namlen
78475         is an optional BSD extension.
78476
78477         [BZ #10254]
78478         * manual/stdio.texi (Opening Streams): Document additional fopen
78479         parameters.
78480
78481 2012-04-09  Roland McGrath  <roland@hack.frob.com>
78482
78483         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
78484         %eax without telling the compiler.
78485
78486 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
78487
78488         [BZ # 13963]
78489         * manual/install.texi: Use sourceware.org.
78490
78491 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
78492
78493         [BZ #13873]
78494         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
78495         (__ieee754_pow): Generate overflow and underflow using huge*huge
78496         and tiny*tiny rather than just returning constant infinity or zero
78497         for large exponents.
78498         * math/libm-test.inc (pow_test): Require overflow exceptions for
78499         applicable cases of large exponents.
78500
78501         [BZ #706]
78502         * sysdeps/i386/fpu/e_pow.S (p10): New object.
78503         (__ieee754_pow): Use iterative multiplication algorithm only for
78504         integer exponents with absolute value below 1024.  Check for odd
78505         integer exponents when using algorithm for real exponents.
78506         * math/libm-test.inc (pow_test): Add more tests.
78507         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
78508
78509 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
78510
78511         [BZ #13705]
78512         * math/libm-test.inc (exp_test): Do not allow overflow exception
78513         on underflow test.
78514
78515 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
78516
78517         [BZ #13705]
78518         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
78519         instead of __kernel_standard_f.
78520
78521 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
78522
78523         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
78524         * sysdeps/x86_64/memset_chk.S: Likewise.
78525
78526 2012-04-08  Andreas Jaeger  <aj@suse.de>
78527
78528         [BZ #10153]
78529         * manual/startup.texi (Environment Access): Describe return value
78530         for putenv and setenv.
78531
78532         [BZ #6895]
78533         * manual/filesys.texi (Directory Entries): Add description for
78534         DT_LNK.
78535
78536         [BZ #6890]
78537         * manual/filesys.texi (Directory Entries): Clarify that it's file
78538         system not operating system in the description of DT_UNKNOWN.
78539
78540         [BZ #6578]
78541         * manual/syslog.texi (closelog): Fix reference, it's openlog.
78542
78543 2012-04-08  Stephen Compall  <s11@member.fsf.org>
78544
78545         [BZ #6649]
78546         * manual/llio.texi (Opening and Closing Files): Add cross
78547         reference to explain mode argument.
78548
78549 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
78550
78551         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
78552         * sysdeps/x86_64/memset_chk.S: Likewise.
78553
78554 2012-04-07  David S. Miller  <davem@davemloft.net>
78555
78556         * elf/elf.h (R_SPARC_WDISP10): Define.
78557         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
78558         R_SPARC_SIZE32.
78559         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
78560         R_SPARC_SIZE64 and R_SPARC_H34.
78561
78562 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
78563
78564         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
78565         conditions and remove no longer applicable assertion.
78566
78567 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
78568
78569         * bits/byteswap.h: Include <features.h>.
78570         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
78571         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
78572
78573 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
78574
78575         * bits/byteswap.h (__bswap_16): Removed.
78576         Include <bits/byteswap-16.h> to get __bswap_16.
78577         * sysdeps/i386/bits/byteswap.h: Likewise.
78578         * sysdeps/s390/bits/byteswap.h: Likewise.
78579         * sysdeps/x86_64/bits/byteswap.h: Likewise.
78580         * bits/byteswap-16.h: New file.
78581         * sysdeps/i386/bits/byteswap-16.h: Likewise.
78582         * sysdeps/s390/bits/byteswap-16.h: Likewise.
78583         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
78584         * string/Makefile (headers): Add bits/byteswap-16.h.
78585
78586 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
78587
78588         [BZ #13895]
78589         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
78590         extra indirection.
78591         * nss/Makefile (tests-static, tests): Add tst-nss-static.
78592         * nss/tst-nss-static.c: New.
78593
78594 2012-04-06  Robert Millan  <rmh@gnu.org>
78595
78596         [BZ #6486]
78597         * manual/llio.texi (File Position Primitive): lseek
78598         refers to WHENCE when it really means OFFSET.
78599
78600 2012-04-06  Andreas Jaeger  <aj@suse.de>
78601
78602         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
78603         strncmp declarations.
78604
78605         * abilist/libc.abilist: Add __poll and __ppoll.
78606
78607 2012-04-05  David S. Miller  <davem@davemloft.net>
78608
78609         * scripts/check-local-headers.sh: Accept a host triplet in the
78610         path matched by the exclude regexp.
78611
78612         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
78613         definition.
78614         * sysdeps/powerpc/powerpc32/dl-machine.h
78615         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
78616         * sysdeps/s390/s390-32/dl-machine.h
78617         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
78618         * sysdeps/sparc/sparc32/dl-machine.h
78619         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
78620         * sysdeps/sparc/sparc64/dl-machine.h
78621         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
78622
78623         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
78624         lazy binding.
78625         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
78626         undefined symbol errors.
78627
78628         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
78629         DT_NEEDED entries.
78630
78631 2012-04-05  Michael Matz  <matz@suse.de>
78632
78633         [BZ #13592]
78634         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
78635
78636 2012-04-05  Andreas Jaeger  <aj@suse.de>
78637
78638         [BZ #13908]
78639         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
78640         comment.
78641
78642 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
78643
78644         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
78645         which ROUND is no valid rounding mode.
78646
78647 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
78648
78649         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
78650         read again.
78651         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
78652
78653 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
78654
78655         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
78656         an exception using FPU order intentionally.
78657
78658 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
78659
78660         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
78661         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
78662         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
78663         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
78664
78665 2012-04-05  Simon Josefsson  <simon@josefsson.org>
78666
78667         [BZ #12340]
78668         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
78669         EINVAL when BUFLEN is too smal.
78670
78671 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
78672
78673         [BZ #13553]
78674         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
78675         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
78676
78677 2012-04-03  Andreas Jaeger  <aj@suse.de>
78678
78679         [BZ #13938]
78680         * manual/setjmp.texi (System V contexts): Fix sentence.
78681
78682         [BZ #13926]
78683         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
78684         New macro for this case.
78685         [!__GNUC__] (__bswap_64): New inline function for this case.
78686         * sysdeps/x86_64/bits/byteswap.h: Likewise.
78687         * bits/byteswap.h: Likewise.
78688         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
78689         ull, guard with __GLIBC_HAVE_LONG_LONG.
78690
78691         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
78692         __GLIBC_HAVE_LONG_LONG.
78693
78694         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
78695         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
78696
78697 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
78698
78699         [BZ #13691]
78700         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
78701         inptr and inend, rather than using last_ch.
78702
78703 2012-04-02  David S. Miller  <davem@davemloft.net>
78704
78705         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
78706         * stdio-common/printf-parse.h (read_int): Change return type to
78707         'int', return -1 on INT_MAX overflow.
78708         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
78709         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
78710         overflows INT_MAX.  Check for overflow of in-format-string precision
78711         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
78712         SIZE_MAX not INT_MAX for integer overflow test.
78713         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
78714         skip the construct in the format string but do not record anything.
78715         * stdio-common/bug22.c: Adjust to test both width/prevision
78716         INT_MAX overflow as well as total length INT_MAX overflow.  Check
78717         explicitly for proper errno values.
78718
78719 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
78720
78721         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
78722         CHAR_MAX.
78723         * string/test-strcmp.c [! WIDE]: Likewise.
78724         * time/tst-mktime2.c: Likewise for INT_MAX.
78725         * string/test-string.h: #include <sys/param.h> for MIN.
78726
78727         * csu/init-first.c (__libc_init_first): Call __ctype_init.
78728         * sysdeps/i386/init-first.c (init): Likewise.
78729         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
78730         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
78731         * sysdeps/sh/init-first.c (init): Likewise.
78732
78733 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
78734
78735         * po/ru.po: Update from translation team.
78736         * po/vi.po: Likewise.
78737
78738 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
78739
78740         * resolv/nss_dns/dns-host.c: Merge copyright years.
78741
78742 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
78743
78744         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
78745         Optimize memcpy with prefetch if
78746         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
78747         src, dst pointers have unequal 16 byte alignments.
78748
78749 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
78750
78751         [BZ #13928]
78752         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
78753         from a CNAME entry and return the minimum ttl for the query.
78754         (gaih_getanswer_slice): Likewise.
78755
78756 2012-03-30  Jeff Law  <law@redhat.com>
78757
78758         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
78759         due to long keys.
78760         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
78761         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
78762
78763         * resolv/nss_dns/dns-host.c: Update copyright year.
78764
78765 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
78766
78767         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
78768         requests to save a system call.  Fix check that all bytes are sent.
78769
78770         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
78771         comments for sendmmsg.
78772
78773 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
78774
78775         [BZ #13691]
78776         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
78777         with only 1 character between 0x0041 and 0x01b0.
78778         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
78779         * wcsmbs/tst-mbsnrtowcs.c: New file.
78780
78781 2012-03-29  David S. Miller  <davem@davemloft.net>
78782
78783         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
78784         small copies by hand.
78785
78786 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
78787
78788         [BZ #13761]
78789         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss)
78790         (_nss_compat_initgroups_dyn): Fall back to malloc/free for large
78791         group memberships.
78792
78793 2012-03-28  David S. Miller  <davem@davemloft.net>
78794
78795         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
78796         that branches into memcpy.
78797         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
78798         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
78799         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
78800         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
78801         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
78802         bits.
78803         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
78804         implementation too.
78805         * sysdeps/sparc/mempcpy.S: New file.
78806
78807         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
78808         the IFUNC routine in the libc case.
78809         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
78810
78811         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
78812         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
78813         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
78814         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
78815         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
78816         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
78817         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
78818         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
78819
78820         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
78821         loop to 256 bytes instead of 64 bytes and fix test signedness.
78822
78823         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
78824         * sysdeps/sparc/sparc32/Makefile: rather than here...
78825         * sysdeps/sparc/sparc64/Makefile: and here.
78826
78827 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
78828
78829         * malloc/mallocbug.c: Avoid warnings about unused variables.
78830
78831 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
78832
78833         [BZ #13760]
78834         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
78835         in the right place. Discard and retry query if response is
78836         larger than input buffer size.
78837
78838 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
78839
78840         [BZ #369]
78841         [BZ #2678]
78842         [BZ #3866]
78843         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
78844         x for large integer exponent.
78845         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
78846         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
78847         sign of result as needed afterwards.
78848         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
78849         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
78850         result for underflowing pow the same as for overflow.
78851         (__kernel_standard_l): Handle powl overflow and underflow here
78852         rather than calling __kernel_standard.
78853         * math/libm-test.inc (pow_test): Add more tests.
78854
78855         [BZ #3868]
78856         [BZ #13879]
78857         [BZ #13910]
78858         [BZ #13911]
78859         [BZ #13912]
78860         [BZ #13913]
78861         [BZ #13915]
78862         [BZ #13916]
78863         [BZ #13917]
78864         [BZ #13918]
78865         [BZ #13919]
78866         [BZ #13920]
78867         [BZ #13921]
78868         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
78869         * sysdeps/ieee754/k_standard.c: Include <float.h>.
78870         (__kernel_standard_l): New function.
78871         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
78872         __kernel_standard.
78873         * math/w_acosl.c (__acosl): Likewise.
78874         * math/w_asinl.c (__asinl): Likewise.
78875         * math/w_atan2l.c (__atan2l): Likewise.
78876         * math/w_atanhl.c (__atanhl): Likewise.
78877         * math/w_coshl.c (__coshl): Likewise.
78878         * math/w_exp10l.c (__exp10l): Likewise.
78879         * math/w_exp2l.c (__exp2l): Likewise.
78880         * math/w_fmodl.c (__fmodl): Likewise.
78881         * math/w_hypotl.c (__hypotl): Likewise.
78882         * math/w_j0l.c (__j0l, __y0l): Likewise.
78883         * math/w_j1l.c (__j1l, __y1l): Likewise.
78884         * math/w_jnl.c (__jnl, __ynl): Likewise.
78885         * math/w_lgammal.c (__lgammal): Likewise.
78886         * math/w_log10l.c (__log10l): Likewise.
78887         * math/w_log2l.c (__log2l): Likewise.
78888         * math/w_logl.c (__logl): Likewise.
78889         * math/w_powl.c (__powl): Likewise.
78890         * math/w_remainderl.c (__remainderl): Likewise.
78891         * math/w_scalbl.c (sysv_scalbl): Likewise.
78892         * math/w_sinhl.c (__sinhl): Likewise.
78893         * math/w_sqrtl.c (__sqrtl): Likewise.
78894         * math/w_tgammal.c (__tgammal): Likewise.
78895         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
78896         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
78897         * math/libm-test.inc (acos_test): Add more tests.
78898         (acosh_test): Likewise.
78899         (asin_test): Likewise.
78900         (atanh_test): Likewise.
78901         (exp_test): Likewise.
78902         (exp10_test): Likewise.
78903         (exp2_test): Likewise.
78904         (expm1_test): Likewise.
78905         (lgamma_test): Likewise.
78906         (log_test): Likewise.
78907         (log10_test): Likewise.
78908         (log1p_test): Likewise.
78909         (log2_test): Likewise.
78910         (pow_test): Do not allow some spurious overflow exceptions.
78911         (sqrt_test): Add more tests.
78912         (tgamma_test): Likewise.
78913         (y0_test): Likewise.
78914         (y1_test): Likewise.
78915         (yn_test): Likewise.
78916
78917 2012-03-27  Anton Blanchard  <anton@samba.org>
78918
78919         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
78920         MAP_HUGETLB.
78921         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
78922         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
78923         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
78924
78925 2012-03-27  David S. Miller  <davem@davemloft.net>
78926
78927         * conform/Makefile: Run run-conformtest.sh using $(BASH).
78928
78929         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
78930         have-as-vis3 check.
78931
78932 2012-03-27  Andreas Jaeger  <aj@suse.de>
78933
78934         * sysdeps/x86_64/elf/configure.in: Moved to ...
78935         * sysdeps/x86_64/configure.in: ... here.
78936         * sysdeps/x86_64/elf/start.S: Moved to ...
78937         * sysdeps/x86_64/start.S: ... here.
78938         * sysdeps/x86_64/elf/configure: Delete.
78939
78940         * sysdeps/x86_64/configure.in: Merge contents from
78941         sysdeps/i386/configure.in (without i686 check).
78942
78943         * sysdeps/i386/elf/Versions: Merge into ...
78944         * sysdeps/i386/Versions: ... this.
78945         * sysdeps/i386/elf/Versions: Delete file.
78946         * sysdeps/i386/elf/start.S: Moved to ...
78947         * sysdeps/i386/start.S: ...here.
78948         * sysdeps/i386/elf/configure.in: Merge into...
78949         * sysdeps/i386/configure.in: ...here.
78950         * sysdeps/i386/elf/configure.in: Delete file.
78951         * sysdeps/i386/elf/configure: Delete file.
78952
78953         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
78954         * debug/backtracesyms.c: ... here.
78955         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
78956         * debug/backtracesymsfd.c: ... here.
78957         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
78958         * sysdeps/generic/ifunc-sel.h: ... here.
78959
78960         * sysdeps/unix/i386/start.c: Delete file.
78961         * sysdeps/unix/sparc/start.c: Delete file.
78962         * sysdeps/unix/start.c: Delete file.
78963
78964         * sysdeps/sh/elf/configure.in: Moved to ...
78965         * sysdeps/sh/configure.in: ... here.
78966         * sysdeps/sh/elf/start.S: Moved to ...
78967         * sysdeps/sh/start.S: ... here.
78968         * sysdeps/sh/elf/configure: Delete file.
78969
78970         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
78971         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
78972         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
78973         * sysdeps/powerpc/powerpc64/entry.h: ... here.
78974         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
78975         * sysdeps/powerpc/powerpc64/start.S: here.
78976         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
78977         * sysdeps/powerpc/powerpc64/Makefile: ... this.
78978         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
78979         * sysdeps/powerpc/powerpc64/configure.in: ... this.
78980         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
78981
78982         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
78983         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
78984         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
78985         * sysdeps/powerpc/powerpc32/start.S: ... here.
78986         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
78987         * sysdeps/powerpc/powerpc32/configure.in: ... this.
78988         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
78989
78990         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
78991         * sysdeps/powerpc/ifunc-sel.h: ... here.
78992         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
78993         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
78994
78995         * sysdeps/sparc/elf/configure.in: Moved to ...
78996         * sysdeps/sparc/configure.in: ... here.
78997         * sysdeps/sparc/elf/configure: Delete file.
78998         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
78999         * sysdeps/sparc/sparc32/start.S: ... here.
79000         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
79001         * sysdeps/sparc/sparc64/start.S: ... here.
79002         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
79003         * sysdeps/sparc/sparc32/Makefile: ... this.
79004         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
79005         * sysdeps/sparc/sparc64/Makefile: ... this.
79006
79007         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
79008         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
79009         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
79010         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
79011         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
79012         * sysdeps/s390/s390-32/setjmp.S: ... here.
79013         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
79014         * sysdeps/s390/s390-32/configure.in: ... here.
79015         * sysdeps/s390/s390-32/elf/configure: Delete file.
79016         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
79017         * sysdeps/s390/s390-32/start.S: ... here.
79018
79019         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
79020         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
79021         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
79022         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
79023         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
79024         * sysdeps/s390/s390-64/setjmp.S: ... here.
79025         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
79026         * sysdeps/s390/s390-64/configure.in: ... here
79027         * sysdeps/s390/s390-64/elf/configure: Delete file.
79028         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
79029         * sysdeps/s390/s390-64/start.S: ... here.
79030         * sysdeps/s390/s390-64/elf/configure: Delete.
79031
79032         * configure.in: Remove support for elf directories in sysdeps.
79033
79034         * configure: Regenerated.
79035         * sysdeps/i386/configure: Regenerated.
79036         * sysdeps/powerpc/powerpc32/configure: Regenerated.
79037         * sysdeps/powerpc/powerpc64/configure: Regenerated.
79038         * sysdeps/s390/s390-32/configure: Regenerated.
79039         * sysdeps/s390/s390-64/configure: Regenerated.
79040         * sysdeps/sh/configure: Regenerated.
79041         * sysdeps/sparc/configure: Regenerated.
79042         * sysdeps/x86_64/configure: Regenerated.
79043
79044 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
79045
79046         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
79047
79048         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
79049         denormal result into account.
79050
79051 2012-03-25  Roland McGrath  <roland@hack.frob.com>
79052
79053         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
79054         Reported by Allan McRae <allan@archlinux.org>.
79055
79056 2012-03-23  Jeff Law  <law@redhat.com>
79057
79058         * nss/getnssent.c (__nss_getent): Fix typo.
79059
79060 2012-03-23  David S. Miller  <davem@davemloft.net>
79061
79062         * sysdeps/sparc/fpu/libm-test-ulps: Update.
79063
79064 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
79065
79066         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
79067         to pad to uint64_t for each field.
79068         (dl_tls_index): Replace unsigned long with uint64_t.
79069
79070 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
79071         Paul Pluzhnikov  <ppluzhnikov@google.com>
79072
79073         [BZ #6528]
79074         * grp/Makefile (otherlibs): Don't set it.
79075         * inet/Makefile (otherlibs): Likewise.
79076         * login/Makefile (otherlibs): Likewise.
79077         * nscd/Makefile (otherlibs): Likewise.
79078         * posix/Makefile (otherlibs): Likewise.
79079         * pwd/Makefile (otherlibs): Likewise.
79080         * rt/Makefile (otherlibs): Likewise.
79081         * sunrpc/Makefile (otherlibs): Likewise.
79082         * nss/Makefile (otherlibs): Likewise.
79083         Add libnss_files to routines and static-only-routines.
79084         ($(objpfx)getent): Remove rule.
79085         * resolv/Makefile: Add libnss_dns and libresolv to routines and
79086         static-only-routines.
79087
79088 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
79089
79090         [BZ #13892]
79091         * math/s_cexp.c: Include <float.h>.
79092         (__cexp): Handle exp result overflowing not necessarily
79093         overflowing both real and imaginary parts of result.
79094         * math/s_cexpf.c: Likewise.
79095         * math/s_cexpl.c: Likewise.
79096         * math/libm-test.inc (cexp_test): Add more tests.
79097         * sysdeps/i386/fpu/libm-test-ulps: Update.
79098         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
79099
79100 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
79101
79102         * include/link.h (ELFW): New macro.
79103         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
79104         Replace ELF64_R_TYPE with ELFW(R_TYPE).
79105
79106 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
79107
79108         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
79109         with uint64_t.
79110
79111 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
79112
79113         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
79114         declaration.
79115         (struct La_x32_retval): Likewise.
79116
79117 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
79118
79119         * sysdeps/x86_64/preconfigure.in: New file.
79120         * sysdeps/x86_64/preconfigure: New generated file.
79121
79122 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
79123
79124         [BZ #13824]
79125         * math/e_exp2l.c: Include <float.h>.
79126         (__ieee754_exp2l): Handle overflow and underflow cases
79127         separately.  Only pass fractional part of argument to
79128         __ieee754_expl.
79129         * math/libm-test.inc (exp2_test): Add more tests.
79130
79131         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
79132         negating x to take absolute value.
79133         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
79134         Likewise.
79135         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
79136         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
79137         Likewise.
79138         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
79139         computing low part if x was negated.
79140         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
79141
79142 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
79143
79144         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
79145         la_x32_gnu_pltexit.
79146         (pltexit): Cast int_retval to ptrdiff_t.
79147         * elf/tst-auditmod3b.c: Likewise.
79148         * elf/tst-auditmod4b.c: Likewise.
79149         * elf/tst-auditmod5b.c: Likewise.
79150         * elf/tst-auditmod6b.c: Likewise.
79151         * elf/tst-auditmod6c.c: Likewise.
79152         * elf/tst-auditmod7b.c: Likewise.
79153
79154         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
79155         and x32_gnu_pltexit.
79156
79157         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
79158         __ELF_NATIVE_CLASS.
79159         (La_x32_regs): New macro.
79160         (La_x32_retval): Likewise.
79161         (la_x32_gnu_pltenter): New function prototype.
79162         (la_x32_gnu_pltexit): Likewise.
79163
79164 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
79165
79166         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
79167         exponent.
79168
79169         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
79170
79171         * configure.in (libc_cv_cc_nofma): Check for option to disable
79172         generation of FMA instructions.
79173         * configure: Regenerate.
79174         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
79175         * sysdeps/ieee754/dbl-64/Makefile: New file.
79176         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
79177         Remove brandred-fma4.
79178         (CFLAGS-brandred-fma4.c): Remove.
79179         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
79180         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
79181         define.
79182         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
79183         define.
79184
79185 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
79186
79187         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
79188         LLONG_MAX != LONG_MAX.
79189         (_itoa_word): Use _ITOA_WORD_TYPE on value.
79190         (_fitoa_word): Likewise.
79191         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
79192         LLONG_MAX != LONG_MAX.
79193         * stdio-common/_itowa.h: Include <_itoa.h>.
79194         (_itowa_word): Use _ITOA_WORD_TYPE on value.
79195         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
79196         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
79197         only if not defined.
79198         (_ITOA_WORD_TYPE): Likewise.
79199         (_itoa_word): Use _ITOA_WORD_TYPE on value.
79200         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
79201
79202 2012-03-21  David S. Miller  <davem@davemloft.net>
79203
79204         * sysdeps/sparc/fpu/libm-test-ulps: Update.
79205
79206 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
79207
79208         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
79209         of x86_64 when setting libc_cv_slibdir, libdir and
79210         libc_cv_localedir.
79211         * sysdeps/unix/sysv/linux/configure: Regenerated.
79212
79213 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
79214
79215         * manual/lang.texi (Old Varargs): Remove section.
79216         (How Variadic): Update menu.
79217         (va_start): Do not mention varargs.h.
79218
79219 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
79220             Joseph Myers  <joseph@codesourcery.com>
79221
79222         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
79223         link test.
79224         * configure: Regenerated.
79225
79226 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
79227
79228         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
79229         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
79230         conformtest.pl
79231
79232 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
79233
79234         * NOTES: Remove.
79235         * Makefile (files-for-dist): Remove NOTES.
79236         (NOTES): Remove rule.
79237         * README: Don't refer to NOTES.
79238         * manual/creature.texi: Don't include macros.texi.
79239         * manual/intro.texi (creature.texi): Remove comment referring to
79240         NOTES.
79241
79242         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
79243         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
79244         * configure: Regenerated.
79245         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
79246         LIBC_TRY_CC_OPTION.
79247         (libc_cv_as_i686): Likewise.
79248         (libc_cv_cc_avx): Likewise.
79249         (libc_cv_cc_sse2avx): Likewise.
79250         (libc_cv_cc_fma4): Likewise.
79251         (libc_cv_cc_novzeroupper): Likewise.
79252         * sysdeps/i386/configure: Regenerated.
79253
79254         [BZ #13883]
79255         * sysdeps/i386/fpu/s_cexp.S: Remove.
79256         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
79257         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
79258         * math/libm-test.inc (cexp_test): Add more tests.
79259         * sysdeps/i386/fpu/libm-test-ulps: Update.
79260         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
79261
79262 2012-03-21  Allan McRae  <allan@archlinux.org>
79263
79264         * timezone/Makefile: Do not install iso3166.tab and zone.tab
79265
79266 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
79267
79268         [BZ #13871]
79269         * math/w_exp2.c: Do not include <float.h>.
79270         (o_threshold, u_threshold): Remove.
79271         (__exp2): Calculate result before checking finiteness and calling
79272         __kernel_standard.
79273         * math/w_exp2f.c: Likewise.
79274         * math/w_exp2l.c: Likewise.
79275         * math/libm-test.inc (exp2_test): Require overflow exception for
79276         1e6 input.
79277
79278         [BZ #3866]
79279         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
79280         range of signed 64-bit integers before using fistpll.  Remove
79281         checks for whether integers fit in mantissa bits.
79282         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
79283         the range of signed 32-bit integers before using fistpl.  Remove
79284         checks for whether integers fit in mantissa bits.
79285         * sysdeps/i386/fpu/e_powl.S (p64): New object.
79286         (__ieee754_powl): Test for y outside the range of signed 64-bit
79287         integers before using fistpll.  Reduce 64-bit values to 63-bit
79288         ones as needed.
79289         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
79290         divide-by-zero is raised for zero to large negative powers.
79291         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
79292         (__ieee754_powl): Test for y outside the range of signed 64-bit
79293         integers before using fistpll.  Reduce 64-bit values to 63-bit
79294         ones as needed.
79295         * math/libm-test.inc (pow_test): Add more tests.
79296
79297 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
79298
79299         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
79300         <stdio-common/_itoa.h>.
79301         * debug/segfault.c: Likewise.
79302         * elf/dl-cache.c: Likewise.
79303         * elf/dl-minimal.c: Likewise.
79304         * elf/dl-misc.c: Likewise.
79305         * elf/dl-sysdep.c: Likewise.
79306         * elf/dl-version.c: Likewise.
79307         * elf/rtld.c: Likewise.
79308         * hurd/hurdsock.c: Likewise.
79309         * hurd/lookup-retry.c: Likewise.
79310         * malloc/malloc.c: Likewise.
79311         * malloc/mtrace.c: Likewise.
79312         * nscd/nscd_getgr_r.c: Likewise.
79313         * nscd/nscd_getpw_r.c: Likewise.
79314         * nscd/nscd_getserv_r.c: Likewise.
79315         * posix/getopt_init.c: Likewise.
79316         * posix/wordexp.c: Likewise.
79317         * stdio-common/_itoa.c: Likewise.
79318         * stdio-common/printf_fphex.c: Likewise.
79319         * stdio-common/vfprintf.c: Likewise.
79320         * string/_strerror.c: Likewise.
79321         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
79322         * sysdeps/i386/i686/hp-timing.h: Likewise.
79323         * sysdeps/mach/_strerror.c: Likewise.
79324         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
79325         * sysdeps/mach/hurd/sethostid.c: Likewise.
79326         * sysdeps/mach/hurd/xmknodat.c: Likewise.
79327         * sysdeps/mach/xpg-strerror.c: Likewise.
79328         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
79329         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
79330         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
79331         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
79332         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
79333         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
79334         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
79335         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
79336         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
79337         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
79338         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
79339         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
79340         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
79341         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
79342         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
79343         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
79344         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
79345         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
79346         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
79347         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
79348         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
79349
79350         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
79351
79352         * stdio-common/_itoa.h: Moved to ...
79353         * sysdeps/generic/_itoa.h: Here.
79354
79355         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
79356
79357         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
79358         instead of "_itoa.h" and "_itowa.h".
79359         * stdio-common/vfprintf.: Likewise.
79360
79361 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
79362
79363         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
79364         <bits/wordsize.h>.
79365         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
79366         (__signbit): Likewise.
79367         (llrintf): Likewise.
79368         (llrint): Likewise.
79369
79370 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
79371
79372         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
79373         __WORDSIZE != 64.
79374
79375 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
79376
79377         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
79378         OVERFLOW_EXCEPTION_OK.
79379         * math/libm-test.inc ("Philosophy"): Update comment about
79380         exception testing.
79381         (OVERFLOW_EXCEPTION): Define.
79382         (OVERFLOW_EXCEPTION_OK): Likewise.
79383         (INVALID_EXCEPTION_OK): Renumber.
79384         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
79385         (IGNORE_ZERO_INF_SIGN): Likewise.
79386         (test_exceptions): Handle FE_OVERFLOW.
79387         (exp10_test): Expect overflow exceptions.
79388         (exp2_test): Likewise.
79389         (expm1_test): Likewise.
79390         (nextafter_test): Likewise.
79391         (pow_test): Likewise.
79392         (scalbn_test): Likewise.
79393         (scalbln_test): Likewise.
79394
79395 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
79396
79397         * sysdeps/x86_64/bits/atomic.h
79398         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
79399         64bit integer.
79400         (atomic_exchange_acq): Likewise.
79401         (__arch_exchange_and_add_body): Likewise.
79402         (__arch_add_body): Likewise.
79403         (atomic_add_negative): Likewise.
79404         (atomic_add_zero): Likewise.
79405
79406 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
79407
79408         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
79409         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
79410
79411 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
79412
79413         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
79414         Check __x86_64__ instead of __WORDSIZE.
79415
79416 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
79417
79418         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
79419
79420 2012-03-19  David S. Miller  <davem@davemloft.net>
79421
79422         * sysdeps/sparc/fpu/libm-test-ulps: Update.
79423
79424         * sysdeps/sparc/fpu/fenv_private.h: New file.
79425         * sysdeps/sparc/fpu/math_private.h: Use it.
79426         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
79427         Remove.
79428         (libc_feholdexcept_setround, libc_feholdexcept_setroundf)
79429         (libc_feholdexcept_setroundl): Remove.
79430         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
79431         Remove.
79432         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
79433         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
79434
79435 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
79436
79437         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
79438         int64_t instead of long int.
79439         (INSERT_WORDS64): Likewise.
79440
79441 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
79442
79443         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
79444         _Unwind_GetCFA return to _Unwind_Ptr first.
79445
79446 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
79447
79448         [BZ #13629]
79449         * math/s_clog.c: Include <float.h>.
79450         (__clog): Scale large or subnormal inputs.
79451         * math/s_clogf.c: Likewise.
79452         * math/s_clogl.c: Likewise.
79453         * math/s_clog10.c: Include <float.h>.
79454         (M_LOG10_2): Define.
79455         (__clog10): Scale large or subnormal inputs.
79456         * math/s_clog10f.c: Likewise.
79457         * math/s_clog10l.c: Likewise.
79458         * math/libm-test.inc (clog_test): Add more tests.
79459         (clog10_test): Likewise.
79460         * sysdeps/i386/fpu/libm-test-ulps: Update.
79461         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
79462
79463         [BZ #11451]
79464         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
79465         x and y.
79466         * math/libm-test.inc (atan2_test): Add another test.
79467
79468         * Makerules (common-objdir-compile): Remove.
79469         * sysdeps/unix/Makefile (config-generated): Do not add
79470         $(unix-generated) to variable.
79471         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
79472         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
79473         Remove rule.
79474         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
79475         Likewise.
79476         [generic bits/local_lim.h] (before-compile): Do not append to
79477         variable.
79478         [generic bits/local_lim.h] (common-generated): Likewise.
79479         [generic sys/param.h] (before-compile): Do not append to variable.
79480         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
79481         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
79482         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
79483         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
79484         include.
79485         [generic sys/param.h] (sys/param.h-includes): Remove variable.
79486         [generic sys/param.h] (sys/param.h-includes): Remove rule.
79487         [generic sys/param.h] ($(addprefix
79488         $(common-objpfx),$(sys/param.h-includes))): Likewise.
79489         [generic sys/param.h] (common-generated): Do not append to
79490         variable.
79491         [generic sys/param.h] (sysdep_headers): Likewise.
79492         [generic bits/errno.h] (before-compile): Do not append to
79493         variable.
79494         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
79495         rule.
79496         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
79497         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
79498         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
79499         [generic bits/errno.h] (common-generated): Do not append to
79500         variable.
79501         [generic bits/ioctls.h] (before-compile): Do not append to
79502         variable.
79503         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
79504         rule.
79505         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
79506         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
79507         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
79508         rule.
79509         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
79510         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
79511         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
79512         [generic bits/ioctls.h] (common-generated): Do not append to
79513         variable.
79514         [generic sys/syscall.h] (syscall.h): Remove variable.
79515         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
79516         rule.
79517         [generic sys/syscall.h] (before-compile): Do not append to
79518         variable.
79519         [generic sys/syscall.h] (common-generated): Likewise.
79520         * sysdeps/unix/errnos-tmpl.c: Remove file.
79521         * sysdeps/unix/errnos.awk: Likewise.
79522         * sysdeps/unix/ioctls-tmpl.c: Likewise.
79523         * sysdeps/unix/ioctls.awk: Likewise.
79524         * sysdeps/unix/mk-local_lim.c: Likewise.
79525         * sysdeps/unix/snarf-ioctls: Likewise.
79526
79527 2012-03-19  Richard Henderson  <rth@twiddle.net>
79528
79529         * sysdeps/i386/fpu/fenv_private.h: New file.
79530         * sysdeps/i386/fpu/math_private.h: Use it.
79531         (math_opt_barrier, math_force_eval): Remove.
79532         (libc_feholdexcept_setround_53bit): Remove.
79533         (libc_feupdateenv_53bit): Remove.
79534         * sysdeps/x86_64/fpu/math_private.h: Likewise.
79535         (math_opt_barrier, math_force_eval): Remove.
79536         (libc_feholdexcept): Remove.
79537         (libc_feholdexcept_setround): Remove.
79538         (libc_fetestexcept, libc_fesetenv): Remove.
79539         (libc_feupdateenv_test): Remove.
79540         (libc_feupdateenv, libc_feholdsetround): Remove.
79541         (libc_feresetround): Remove.
79542
79543         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
79544         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
79545
79546         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
79547         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
79548         (libc_feupdateenv_testl): New.
79549         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
79550         (libc_feupdateenv_testf): New.
79551         (libc_feupdateenv): Use libc_feupdateenv_test.
79552         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
79553         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
79554
79555         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
79556         (libc_feholdsetroundf, libc_feholdsetroundl): New.
79557         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
79558         (libc_feresetround_noex): New.
79559         (libc_feresetround_noexf): New.
79560         (libc_feresetround_noexl): New.
79561         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
79562         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
79563         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
79564         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
79565         SET_RESTORE_ROUND.
79566         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
79567         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
79568         (__cos): Likewise.
79569         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
79570         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
79571         SET_RESTORE_ROUND_NOEX.
79572         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
79573         SET_RESTORE_ROUND_NOEXF.
79574         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
79575         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
79576         (libc_feholdsetroundf): New.
79577         (libc_feresetround, libc_feresetroundf): New.
79578
79579         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
79580         (libc_feholdexcept_setround_53bit): Convert from macro to function.
79581         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
79582
79583         * sysdeps/generic/math_private.h: Include <fenv.h>.
79584         (default_libc_feholdexcept): New.
79585         (default_libc_feholdexcept_setround): New.
79586         (default_libc_fesetenv, default_libc_feupdateenv): New.
79587         (libc_feholdexcept): Only define if undefined.
79588         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
79589         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
79590         (libc_feholdexcept_setroundl): Likewise.
79591         (libc_feholdexcept_setround_53bit): Likewise.
79592         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
79593         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
79594         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
79595         (libc_feupdateenv_53bit): Likewise.
79596         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
79597         (libc_feholdexcept): Convert from macro to inline function.
79598         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
79599         (libc_fesetenv, libc_feupdateenv): Likewise.
79600
79601         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
79602         not previously defined.
79603         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
79604         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
79605         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
79606         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
79607         * sysdeps/ieee754/flt-32/math_private.h: New file.
79608         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
79609         math_private.h below SET_FLOAT_WORD.
79610         (__isnan, __isinf_ns, __finite): Remove.
79611         (__isnanf, __isinf_nsf, __finitef): Remove.
79612
79613 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
79614
79615         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
79616
79617 2012-03-17  David S. Miller  <davem@davemloft.net>
79618
79619         [BZ #6471]
79620         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
79621         for 2.16.
79622
79623 2012-03-16  David S. Miller  <davem@davemloft.net>
79624
79625         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
79626         warnings.
79627
79628         [BZ #6471]
79629         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
79630         properly.
79631         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
79632         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
79633         sysdep_routines when subdir is sysvipc.
79634         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
79635         __getshmlba helper.
79636
79637         * sysdeps/sparc/fpu/libm-test/ulps: Update.
79638
79639 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
79640
79641         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
79642         [__LP64__].
79643
79644 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
79645
79646         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
79647         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
79648         (__lround): Renamed to ...
79649         (__llround): This.  Replace long int with long long int.
79650         Define lround functions as aliases of llround functions.
79651         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
79652
79653 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
79654
79655         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
79656         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
79657         adresses to uintptr_t.  Replace "long int" and "unsigned long
79658         int" with "greg_t" on va_arg.
79659
79660 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
79661
79662         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
79663         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
79664
79665         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
79666         Move e_machine check before EI_CLASS check.  Handle x32
79667         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
79668         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
79669         SKIP_EM_IA_64 and include
79670         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
79671
79672         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
79673         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
79674         (add_system_dir): New macro.
79675
79676         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
79677         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
79678
79679 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
79680
79681         [BZ #2551]
79682         [BZ #2552]
79683         [BZ #2553]
79684         [BZ #2554]
79685         [BZ #2562]
79686         [BZ #2563]
79687         [BZ #2565]
79688         [BZ #2566]
79689         [BZ #2576]
79690         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
79691         (y0): Likewise.
79692         * math/w_j0f.c (j0f): Likewise.
79693         (y0f): Likewise.
79694         * math/w_j0l.c (__j0l): Likewise.
79695         (__y0l): Likewise.
79696         * math/w_j1.c (j1): Likewise.
79697         (y1): Likewise.
79698         * math/w_j1f.c (j1f): Likewise.
79699         (y1f): Likewise.
79700         * math/w_j1l.c (__j1l): Likewise.
79701         (__y1l): Likewise.
79702         * math/w_jn.c (jn): Likewise.
79703         (yn): Likewise.
79704         * math/w_jnf.c (jnf): Likewise.
79705         (ynf): Likewise.
79706         * math/w_jnl.c (__jnl): Likewise.
79707         (__ynl): Likewise.
79708         * math/libm-test.inc (j0_test): Add more tests.
79709         (j1_test): Likewise.
79710         (jn_test): Likewise.  Add trailing semicolon to existing test.
79711         (y0_test): Likewise.
79712         (y1_test): Likewise.
79713         * sysdeps/i386/fpu/libm-test-ulps: Update.
79714         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
79715
79716         [BZ #13851]
79717         [BZ #13854]
79718         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
79719         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
79720         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
79721         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
79722         (__tanl): Set errno for infinite argument.
79723         * sysdeps/i386/fpu/mptan.c: Remove.
79724         * sysdeps/i386/fpu/s_tan.S: Likewise.
79725         * sysdeps/i386/fpu/s_tanl.S: Likewise.
79726         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
79727         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
79728         * math/libm-test.inc (tan_test): Add more tests and enable more
79729         tests for double and long double.
79730         * sysdeps/i386/fpu/libm-test-ulps: Update.
79731         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
79732
79733 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
79734
79735         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
79736         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
79737
79738 2012-03-16  Roland McGrath  <roland@hack.frob.com>
79739
79740         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
79741         * configure.in: Use it for both main tree and add-ons.
79742         * configure: Regenerated.
79743
79744 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
79745
79746         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
79747
79748 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
79749
79750         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
79751         in comment.
79752
79753         [BZ #13851]
79754         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
79755         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
79756         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
79757         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
79758         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
79759         infinite argument.
79760         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
79761         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
79762         != 0 for prec == 2.
79763         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
79764         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
79765         * sysdeps/i386/fpu/s_cosl.S: Likewise.
79766         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
79767         * sysdeps/i386/fpu/s_sinl.S: Likewise.
79768         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
79769         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
79770         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
79771         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
79772         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
79773         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
79774         * math/libm-test.inc (cos_test): Add more tests and enable more
79775         tests for long double.
79776         (sin_test): Likewise.
79777         (sincos_test): Likewise.
79778         * sysdeps/i386/fpu/libm-test-ulps: Update.
79779         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
79780
79781 2012-03-16  David S. Miller  <davem@davemloft.net>
79782
79783         * sysdeps/sparc/fpu/math_private.h: New file.
79784
79785 2012-03-15  David S. Miller  <davem@davemloft.net>
79786
79787         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
79788         file.
79789         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
79790         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
79791         file.
79792         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
79793         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
79794         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
79795         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
79796         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
79797         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
79798         sysdep routines.
79799         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
79800
79801         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
79802         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
79803
79804         * sysdeps/sparc/sparc-ifunc.h: New file.
79805         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
79806         sparc-ifunc.h
79807         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
79808         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
79809         Likewise.
79810         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
79811         Likewise.
79812         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
79813         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
79814         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
79815         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
79816         Likewise.
79817         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
79818         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
79819         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
79820         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
79821         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
79822         Likewise.
79823         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
79824         Likewise.
79825         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
79826         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
79827         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
79828         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
79829         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
79830         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
79831         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
79832         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
79833         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
79834         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
79835         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
79836         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
79837         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
79838         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
79839         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
79840         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
79841         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
79842         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
79843         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
79844         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
79845         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
79846         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
79847         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
79848         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
79849
79850 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
79851
79852         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
79853         scaling.
79854         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
79855
79856 2012-03-15  Andreas Jaeger  <aj@suse.de>
79857
79858         [BZ #13852]
79859         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
79860         ieee754/flt-32 implementation for sin, cos and sincos.
79861         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
79862         * sysdeps/i386/fpu/s_cosf.S: Likewise.
79863         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
79864         * sysdeps/i386/fpu/s_sinf.S: Likewise.
79865         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
79866         ieee754/flt-32 implementation for tan.
79867
79868         * math/libm-test.inc (cos_test): Enable some large input tests for
79869         float as well
79870         (sin_test): Likewise.
79871         (sincos_test): Likewise.
79872         (tan_test): Add tests for large input.
79873
79874         * sysdeps/i386/fpu/libm-test-ulps: Update.
79875
79876 2012-03-15  Andreas Jaeger  <aj@suse.de>
79877
79878         [BZ #13658]
79879         * math/libm-test.inc (cos_test): Add more test cases.
79880         (sin_test): Likewise.
79881         (sincos_test): Likewise.
79882
79883 2012-03-15  Andreas Jaeger  <aj@suse.de>
79884
79885         [BZ #13837]
79886         * math/libm-test.inc (cos_test): Add a test case for large input
79887         value.
79888         (sin_test): Likewise.
79889         (sincos_test): Likewise.
79890
79891 2012-03-15  Andreas Jaeger  <aj@suse.de>
79892             Joseph Myers  <joseph@codesourcery.com>
79893
79894         [BZ #13658]
79895         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
79896         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
79897         * sysdeps/i386/fpu/branred.c: Likewise.
79898         * sysdeps/i386/fpu/dosincos.c: Likewise.
79899         * sysdeps/i386/fpu/mpa.c: Likewise.
79900         * sysdeps/i386/fpu/s_cos.S: Likewise.
79901         * sysdeps/i386/fpu/s_sin.S: Likewise.
79902         * sysdeps/i386/fpu/s_sincos.S: Likewise.
79903         * sysdeps/i386/fpu/sincos32.c: Likewise.
79904
79905         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
79906         Define.
79907         (libc_feupdateenv_53bit): Define.
79908         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
79909         Define.
79910         (libc_feupdateenv_53bit): Define.
79911
79912         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
79913         53 bit (without extend i386 double precision).
79914
79915         * math/libm-test.inc (sincos_test): Add tests for large input.
79916         (sin): Likewise.
79917         (cos): Likewise.
79918
79919         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
79920
79921 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
79922
79923         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
79924
79925 2012-03-15  David S. Miller  <davem@davemloft.net>
79926
79927         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
79928         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
79929         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
79930         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
79931         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
79932         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
79933         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
79934         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
79935         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
79936         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
79937         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
79938         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
79939         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
79940         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
79941         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
79942         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
79943         file.
79944         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
79945         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
79946         file.
79947         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
79948         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
79949         file.
79950         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
79951         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
79952         file.
79953         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
79954         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
79955         fmin/fmax sysdep routines.
79956         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
79957
79958 2012-03-14  David S. Miller  <davem@davemloft.net>
79959
79960         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
79961         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
79962         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
79963         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
79964         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
79965         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
79966         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
79967         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
79968         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
79969         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
79970         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
79971         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
79972         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
79973         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
79974         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
79975         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
79976         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
79977         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
79978         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
79979         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
79980         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
79981         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
79982         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
79983         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
79984         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
79985         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
79986         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
79987         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
79988         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
79989         routines.
79990         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
79991         file.
79992         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
79993         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
79994         file.
79995         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
79996         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
79997         file.
79998         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
79999         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
80000         file.
80001         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
80002         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
80003         file.
80004         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
80005         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
80006         file.
80007         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
80008         file.
80009         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
80010         file.
80011         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
80012         file.
80013         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
80014         New file.
80015         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
80016         file.
80017         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
80018         file.
80019         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
80020         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
80021         file.
80022         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
80023         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
80024         file.
80025         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
80026         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
80027         file.
80028         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
80029         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
80030         VIS3 routines.
80031
80032         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
80033         New file.
80034
80035         * sysdeps/sparc/fpu/libm-test-ulps: Update.
80036
80037         * sysdeps/sparc/configure.in: New file.
80038         * sysdeps/sparc/configure: Generate.
80039         * configure.in (libc_cv_sparc_as_vis3): Substitute.
80040         * configure: Regenerate.
80041         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
80042         * config.make.in (have-as-vis3): New.
80043         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
80044         available use -Av9d instead of -Av9a.
80045         * sysdeps/sparc/sparc64/Makefile: Likewise.
80046         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
80047         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
80048         New file.
80049         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
80050         file.
80051         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
80052         New file.
80053         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
80054         file.
80055         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
80056         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
80057         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
80058         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
80059         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
80060
80061         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
80062         fzeros/fnegs to load 0x80000000 into a float register instead of
80063         using the stack.
80064         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
80065
80066 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
80067
80068         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
80069         bits/syscall.h.
80070         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
80071         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
80072         ($(inst_includedir)/bits/syscall.h): Remove rule.
80073         ($(objpfx)bits/syscall.d): Include instead of
80074         $(objpfx)syscall-list.d.
80075         (generated): Change syscall-list.h and syscall-list.d to
80076         bits/syscall.h and bits/syscall.d.
80077
80078 2012-03-14  Roland McGrath  <roland@hack.frob.com>
80079
80080         [BZ #13846]
80081         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
80082
80083 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
80084
80085         [BZ #13841]
80086         * math/s_csqrt.c: Include <float.h>.
80087         (__csqrt): Scale large or subnormal inputs.
80088         * math/s_csqrtf.c: Likewise.
80089         * math/s_csqrtl.c: Likewise.
80090         * math/libm-test.inc (csqrt_test): Add more tests.
80091         * sysdeps/i386/fpu/libm-test-ulps: Update.
80092         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
80093
80094         [BZ #13840]
80095         * math/libm-test.inc (hypot_test): Add more tests.
80096
80097 2012-03-13  David S. Miller  <davem@davemloft.net>
80098
80099         [BZ #13840]
80100         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
80101         double-precision for the calculation instead of scaling.
80102
80103 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
80104
80105         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
80106         manipulate bits before adding and subtracting TWO52[sx].
80107         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
80108         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
80109         Likewise.
80110         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
80111
80112 2012-03-13  David S. Miller  <davem@davemloft.net>
80113
80114         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
80115         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
80116         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
80117         rtld-global-offsets.h
80118         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
80119
80120         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
80121         large parameters.
80122
80123         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
80124
80125         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
80126         'err' in the ifdef scope in which it is actually used.
80127
80128         * nss/nss_db/db-init.c: Include string.h
80129
80130 2012-03-12  David S. Miller  <davem@davemloft.net>
80131
80132         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
80133         masking out of the most significant byte of random value used.
80134         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
80135         Fix coding style in previous change.
80136
80137         * sysdeps/unix/sysv/linux/kernel-features.h
80138         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
80139         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
80140         expression.
80141         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
80142         later.
80143
80144 2012-03-11  David S. Miller  <davem@davemloft.net>
80145
80146         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
80147         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
80148         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
80149         for 'resultvar' otherwise things get truncated on 64-bit.
80150
80151         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
80152         Fix masking out of the most significant byte of random value used.
80153
80154         * sysdeps/sparc/fpu/libm-test-ulps: Update.
80155
80156 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
80157
80158         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
80159
80160 2012-03-09  David S. Miller  <davem@davemloft.net>
80161
80162         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
80163         variables with appropriate CPP guards.
80164         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr
80165         from the frame pointer, not the stack pointer.  Correct layout
80166         comments.  Fix test on resulting framesize and the management of
80167         the outregs buffer for pltexit.  Preserve floating point return
80168         values across _dl_call_pltexit call.
80169         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
80170         framesize and the management of the outregs buffer for pltexit.
80171         Preserve floating point return values across _dl_call_pltexit
80172         call.
80173         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter)
80174         (la_sparc64_gnu_pltenter, la_sparc32_gnu_pltexit)
80175         (la_sparc64_gnu_pltexit): New functions.
80176         (print_exit): Fix format string for return register value.
80177
80178 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
80179
80180         * sunrpc/Makefile (others): Add rpcgen.
80181         ($(objpfx)rpcgen): Remove special build rule and dependency on
80182         libc.
80183         * sunrpc/rpcgen.c: New file.
80184
80185 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
80186
80187         [BZ #13673]
80188         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
80189         * stdio-common/bug-vfprintf-nargs.c: Likewise.
80190         * sysdeps/i386/crti.S: Likewise.
80191         * sysdeps/i386/crtn.S: Likewise.
80192         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
80193         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
80194         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
80195         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
80196         * sysdeps/sh/crti.S: Likewise.
80197         * sysdeps/sh/crtn.S: Likewise.
80198         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
80199
80200         [BZ #13673]
80201         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
80202         with URL.
80203         * locale/programs/locfile-kw.gperf: Likewise.
80204         * locale/programs/charmap-kw.h: Regenerated.
80205         * locale/programs/locfile-kw.h: Likewise.
80206
80207         [BZ #13673]
80208         * intl/plural.y: Replace FSF snail mail address with URL.
80209         * intl/plural.c: Regenerated.
80210
80211 2012-03-09  Richard Henderson  <rth@twiddle.net>
80212
80213         * include/math_private.h: Remove file.
80214         * math/math_private.h: Move file ...
80215         * sysdeps/generic/math_private.h: ... here.
80216
80217         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
80218         * sysdeps/powerpc/fpu/math_private.h: Likewise.
80219         * sysdeps/x86_64/fpu/math_private.h: Likewise.
80220
80221         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
80222         and <math_private.h>.
80223         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
80224         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
80225         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
80226         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
80227         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
80228         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
80229         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
80230         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
80231         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
80232         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
80233         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
80234         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
80235         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
80236         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
80237         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
80238         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
80239         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
80240         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
80241         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
80242         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
80243         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
80244         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
80245         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
80246         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
80247         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
80248         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
80249         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
80250         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
80251         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
80252         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
80253         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
80254         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
80255         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
80256         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
80257         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
80258         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
80259         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
80260         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
80261         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
80262         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
80263         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
80264         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
80265         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
80266         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
80267         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
80268         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
80269         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
80270         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
80271         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
80272         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
80273         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
80274         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
80275         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
80276         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
80277         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
80278         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
80279         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
80280         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
80281         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
80282         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
80283         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
80284         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
80285         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
80286         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
80287         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
80288         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
80289         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
80290         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
80291         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
80292         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
80293         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
80294         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
80295         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
80296         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
80297         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
80298         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
80299         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
80300         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
80301         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
80302         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
80303         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
80304         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
80305         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
80306         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
80307         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
80308         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
80309         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
80310         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
80311         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
80312         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
80313         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
80314         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
80315         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
80316         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
80317         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
80318         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
80319         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
80320         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
80321         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
80322         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
80323         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
80324         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
80325         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
80326         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
80327         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
80328         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
80329         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
80330         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
80331         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
80332         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
80333         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
80334         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
80335         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
80336         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
80337         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
80338         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
80339         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
80340         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
80341         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
80342         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
80343         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
80344         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
80345         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
80346         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
80347         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
80348         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
80349         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
80350         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
80351         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
80352         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
80353         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
80354         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
80355         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
80356         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
80357         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
80358         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
80359         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
80360         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
80361         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
80362         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
80363         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
80364         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
80365         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
80366         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
80367         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
80368         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
80369         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
80370         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
80371         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
80372         * sysdeps/ieee754/k_standard.c: Likewise.
80373         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
80374         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
80375         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
80376         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
80377         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
80378         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
80379         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
80380         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
80381         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
80382         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
80383         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
80384         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
80385         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
80386         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
80387         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
80388         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
80389         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
80390         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
80391         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
80392         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
80393         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
80394         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
80395         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
80396         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
80397         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
80398         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
80399         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
80400         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
80401         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
80402         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
80403         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
80404         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
80405         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
80406         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
80407         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
80408         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
80409         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
80410         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
80411         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
80412         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
80413         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
80414         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
80415         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
80416         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
80417         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
80418         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
80419         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
80420         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
80421         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
80422         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
80423         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
80424         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
80425         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
80426         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
80427         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
80428         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
80429         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
80430         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
80431         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
80432         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
80433         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
80434         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
80435         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
80436         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
80437         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
80438         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
80439         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
80440         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
80441         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
80442         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
80443         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
80444         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
80445         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
80446         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
80447         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
80448         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
80449         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
80450         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
80451         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
80452         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
80453         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
80454         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
80455         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
80456         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
80457         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
80458         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
80459         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
80460         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
80461         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
80462         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
80463         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
80464         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
80465         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
80466         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
80467         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
80468         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
80469         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
80470         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
80471         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
80472         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
80473         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
80474         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
80475         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
80476         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
80477         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
80478         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
80479         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
80480         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
80481         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
80482         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
80483         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
80484         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
80485         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
80486         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
80487         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
80488         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
80489         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
80490         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
80491         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
80492         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
80493         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
80494         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
80495         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
80496         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
80497         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
80498         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
80499         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
80500         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
80501         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
80502         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
80503         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
80504         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
80505         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
80506         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
80507         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
80508         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
80509         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
80510         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
80511         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
80512         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
80513         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
80514         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
80515         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
80516         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
80517         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
80518         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
80519         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
80520         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
80521         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
80522         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
80523         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
80524         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
80525         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
80526         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
80527         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
80528         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
80529         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
80530         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
80531         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
80532         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
80533         * sysdeps/ieee754/s_lib_version.c: Likewise.
80534         * sysdeps/ieee754/s_matherr.c: Likewise.
80535         * sysdeps/ieee754/s_signgam.c: Likewise.
80536         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
80537         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
80538         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
80539         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
80540         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
80541         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
80542         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
80543         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
80544         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
80545         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
80546         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
80547         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
80548         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
80549         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
80550         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
80551         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
80552         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
80553         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
80554         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
80555         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
80556         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
80557
80558 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
80559
80560         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
80561         * sunrpc/rpc_main.c: Likewise.
80562         * sunrpc/rpc_svcout.c: Likewise.
80563
80564 2012-03-09  David S. Miller  <davem@davemloft.net>
80565
80566         * include/math_private.h: New file.
80567
80568 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
80569
80570         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
80571         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
80572         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
80573         from <bits/socket_type.h>.
80574         (enum __socket_type): Don't define here.
80575         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
80576         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
80577         bits/socket_type.h.
80578
80579         [BZ #13566]
80580         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
80581         checking __USE_GNU.
80582
80583         * Makerules ($(inst_includedir)/%.h): New rule.
80584         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
80585         (install-others): Remove variable setting.
80586         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
80587
80588 2012-03-08  Richard Henderson  <rth@twiddle.net>
80589
80590         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
80591         from macro to inline function; merge with the
80592         !__LIBC_INTERNAL_MATH_INLINES version.
80593         (__ieee754_sqrtf): Likewise.
80594
80595         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
80596         to inline function.
80597         (__rintf, __floor, __floorf): Likewise.
80598
80599         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
80600         macro to inline function.
80601         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
80602
80603         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
80604         not <math/math_private.h>.
80605
80606 2012-03-08  David S. Miller  <davem@davemloft.net>
80607
80608         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
80609         copyright year.
80610         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
80611
80612 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
80613
80614         * resolv/gai_misc.c (handle_requests): Fix struct timespec
80615         normalization.
80616         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
80617         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
80618
80619 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
80620
80621         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
80622         be defined individually, they must be defined as a block.  Define
80623         S for printing a string instead of hidint the different by using a
80624         macro for adding the 'l'.
80625         * stdio-common/tst-fphex-wide.c: Adjust.
80626
80627 2012-03-07  Marek Polacek  <polacek@redhat.com>
80628
80629         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
80630
80631 2012-03-08  Marek Polacek  <polacek@redhat.com>
80632
80633         [BZ #13806]
80634         * stdio-common/Makefile (tests): Add tst-fphex-wide.
80635         * stdio-common/tst-fphex.c: Define a few macros to make the
80636         test reusable.  Use them.
80637         * stdio-common/tst-fphex-wide.c: New file.
80638
80639 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
80640
80641         [BZ #6911]
80642         * manual/macros.texi (gnusystems): New macro.
80643         (nongnusystems): Likewise.
80644         (gnulinuxhurdsystems): Likewise.
80645         (gnuhurdsystems): Likewise..
80646         (gnulinuxsystems): Likewise.
80647         * manual/charset.texi: Use new macros or @theglibc{} to refer to
80648         variants of the GNU system, not "GNU system".
80649         * manual/conf.texi: Likewise.
80650         * manual/errno.texi: Likewise.  Update example of errno macro
80651         expansion.
80652         * manual/filesys.texi: Likewise.
80653         (getumask): Document as specific to GNU/Hurd.
80654         * manual/install.texi: Likewise.  Reword some references to
80655         GNU/Linux.
80656         * manual/intro.texi: Likewise.
80657         * manual/io.texi: Likewise.
80658         (File Name Portability): Detail which constraints are inapplicable
80659         to all GNU systems and which are only inapplicable to GNU/Hurd.
80660         * manual/job.texi: Likewise.
80661         * manual/llio.texi: Likewise.
80662         (O_NOCTTY): Document as present on GNU/Linux.
80663         * manual/maint.texi: Likewise.
80664         * manual/memory.texi: Likewise.
80665         * manual/pattern.texi: Likewise.
80666         * manual/pipe.texi: Likewise.
80667         * manual/process.texi: Likewise.
80668         * manual/resource.texi: Likewise.
80669         (RUSAGE_CHILDREN): Remove statement about specifying a particular
80670         child on GNU/Hurd.
80671         * manual/setjmp.texi: Likewise.
80672         * manual/signal.texi: Likewise.
80673         * manual/startup.texi: Likewise.
80674         * manual/stdio.texi: Likewise.
80675         * manual/terminal.texi: Likewise.
80676         (ONLCR): Document as POSIX.
80677         (OXTABS): Document availability on GNU/Linux as XTABS.
80678         (ONOEOT): Document availability separately from other bits.
80679         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
80680         * manual/time.texi: Likewise.
80681         * manual/users.texi: Likewise.
80682         * INSTALL: Regenerated.
80683         * sysdeps/gnu/errlist.c: Regenerated.
80684
80685         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
80686         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
80687         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
80688         puts.
80689         * configure: Regenerated.
80690
80691 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
80692
80693         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
80694         default includes instead of AC_HEADER_CHECK.
80695         * sysdeps/i386/configure: Regenerated.
80696
80697         [BZ #10716]
80698         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
80699         * math/s_cacoshf.c (__cacoshf): Likewise.
80700         * math/s_cacoshl.c (__cacoshl): Likewise.
80701         * math/s_casinh.c (__casinh): Set signs of result from argument.
80702         * math/s_casinhf.c (__casinhf): Likewise.
80703         * math/s_casinhl.c (__casinhl): Likewise.
80704         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
80705         (casinh_test): Add more tests.
80706         * sysdeps/i386/fpu/libm-test-ulps: Update.
80707         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
80708
80709 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
80710
80711         * po/zh_TW.po: Update from translation team.
80712
80713         * login/Makefile (distribute): Remove variable.
80714         * catgets/Makefile: Likewise.
80715         * mach/Makefile: Likewise.
80716         * malloc/Makefile: Likewise.
80717         * misc/Makefile: Likewise.
80718         * iconv/Makefile: Likewise.
80719         * nscd/Makefile: Likewise.
80720         * hurd/Makefile: Likewise.
80721         * manual/Makefile: Likewise.
80722         * locale/Makefile: Likewise.
80723         * intl/Makefile: Likewise.
80724         * conform/Makefile: Likewise.
80725         * nss/Makefile: Likewise.
80726         * time/Makefile: Likewise.
80727         * soft-fp/Makefile: Likewise.
80728         * dirent/Makefile: Likewise.
80729         * gmon/Makefile: Likewise.
80730         * po/Makefile: Likewise.
80731         * rt/Makefile: Likewise.
80732         * socket/Makefile: Likewise.
80733         * math/Makefile: Likewise.
80734         * signal/Makefile: Likewise.
80735         * debug/Makefile: Likewise.
80736         * elf/Makefile: Likewise.
80737         * timezone/Makefile: Likewise.
80738         * stdlib/Makefile: Likewise.
80739         * iconvdata/Makefile: Likewise.
80740         * sunrpc/Makefile: Likewise.
80741         * io/Makefile: Likewise.
80742         * argp/Makefile: Likewise.
80743         * inet/Makefile: Likewise.
80744         * hesiod/Makefile: Likewise.
80745         * grp/Makefile: Likewise.
80746         * csu/Makefile: Likewise.
80747         * wctype/Makefile: Likewise.
80748         * crypt/Makefile: Likewise.
80749         * libio/Makefile: Likewise.
80750         * string/Makefile: Likewise.
80751         * nis/Makefile: Likewise.
80752         * resolv/Makefile: Likewise.
80753         * stdio-common/Makefile: Likewise.
80754         * wcsmbs/Makefile: Likewise.
80755         * dlfcn/Makefile: Likewise.
80756         * posix/Makefile: Likewise.
80757
80758         [BZ #6959]
80759         * timezone/Makefile: Don't install timezone files, just the programs
80760         and scripts.
80761
80762 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
80763
80764         * nss/databases.def: Add missing gshadow entry.
80765
80766         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
80767
80768 2012-03-06  Marek Polacek  <polacek@redhat.com>
80769
80770         [BZ #13726]
80771         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
80772         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
80773         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
80774         * stdio-common/tst-long-dbl-fphex.c: New file.
80775
80776 2012-03-06  David S. Miller  <davem@davemloft.net>
80777
80778         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
80779         (set_obp_int): New function.
80780         (get_obp_int): New function.
80781         (__get_clockfreq_via_dev_openprom): Likewise.
80782         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
80783         Avoid unused variable warnings on 'val' and use builtin_expect.
80784         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
80785         __builtin_expect.
80786         (INLINE_CLONE_SYSCALL): Likewise.
80787
80788 2012-03-05  David S. Miller  <davem@davemloft.net>
80789
80790         * sysdeps/sparc/fpu/libm-test-ulps: Update.
80791
80792 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
80793
80794         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
80795
80796         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
80797         only for |x| >= 40.
80798         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
80799
80800 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
80801
80802         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
80803         Replace gettimeofday with __vdso_gettimeofday.
80804
80805         * sysdeps/unix/sysv/linux/x86_64/init-first.c
80806         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
80807         __vdso_clock_gettime and __vdso_getcpu.
80808
80809         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
80810         time with __vdso_time.
80811
80812 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
80813
80814         * manual/lang.texi (size_t): Note types to which size_t may be
80815         equivalent with the GNU C Library, but do not describe when
80816         differences between them are significant.
80817
80818 2012-03-05  Andreas Jaeger  <aj@suse.de>
80819
80820         * sysdeps/i386/fpu/libm-test-ulps: Update.
80821
80822 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
80823
80824         [BZ #3976]
80825         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
80826         (__ieee754_pow): Save and restore rounding mode and use
80827         round-to-nearest for main computations.
80828         * math/libm-test.inc (pow_test_tonearest): New function.
80829         (pow_test_towardzero): Likewise.
80830         (pow_test_downward): Likewise.
80831         (pow_test_upward): Likewise.
80832         (main): Call the new functions.
80833         * sysdeps/i386/fpu/libm-test-ulps: Update.
80834         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
80835
80836         [BZ #3976]
80837         * math/libm-test.inc (cosh_test_tonearest): New function.
80838         (cosh_test_towardzero): Likewise.
80839         (cosh_test_downward): Likewise.
80840         (cosh_test_upward): Likewise.
80841         (sinh_test_tonearest): Likewise.
80842         (sinh_test_towardzero): Likewise.
80843         (sinh_test_downward): Likewise.
80844         (sinh_test_upward): Likewise.
80845         (main): Call the new functions.
80846         * sysdeps/i386/fpu/libm-test-ulps: Update.
80847         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
80848
80849 2012-03-05  Tom de Vries  <tom@codesourcery.com>
80850
80851         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
80852         default stack guard is set in last bytes.
80853         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
80854
80855 2012-03-05  Kees Cook  <keescook@chromium.org>
80856
80857         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
80858
80859         [BZ #13656]
80860         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
80861         possibly allocate from heap instead of stack.
80862         * stdio-common/bug-vfprintf-nargs.c: New file.
80863         * stdio-common/Makefile (tests): Add nargs overflow test.
80864
80865 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
80866
80867         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
80868
80869 2012-03-03  Marek Polacek  <polacek@redhat.com>
80870
80871         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
80872         * math/math_private.h: Likewise.
80873         * stdlib/tst-strtod.c: Likewise.
80874         * sysdeps/i386/i486/bits/atomic.h: Likewise.
80875         * sysdeps/x86_64/bits/atomic.h: Likewise.
80876
80877 2012-03-02  David S. Miller  <davem@davemloft.net>
80878
80879         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
80880         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
80881         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
80882         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
80883         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
80884         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
80885         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
80886         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
80887
80888 2012-03-02  Roland McGrath  <roland@hack.frob.com>
80889
80890         [BZ #13792]
80891         * manual/examples/README: New file, says the example source files
80892         can be used under GPL>=2.
80893         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
80894         line containing just "*/".
80895         * manual/examples/add.c: Add copyright header (GPL>=2).
80896         * manual/examples/argp-ex1.c: Likewise.
80897         * manual/examples/argp-ex2.c: Likewise.
80898         * manual/examples/argp-ex3.c: Likewise.
80899         * manual/examples/argp-ex4.c: Likewise.
80900         * manual/examples/atexit.c: Likewise.
80901         * manual/examples/db.c: Likewise.
80902         * manual/examples/dir.c: Likewise.
80903         * manual/examples/dir2.c: Likewise.
80904         * manual/examples/execinfo.c: Likewise.
80905         * manual/examples/filecli.c: Likewise.
80906         * manual/examples/filesrv.c: Likewise.
80907         * manual/examples/fmtmsgexpl.c: Likewise.
80908         * manual/examples/genpass.c: Likewise.
80909         * manual/examples/inetcli.c: Likewise.
80910         * manual/examples/inetsrv.c: Likewise.
80911         * manual/examples/isockad.c: Likewise.
80912         * manual/examples/longopt.c: Likewise.
80913         * manual/examples/memopen.c: Likewise.
80914         * manual/examples/memstrm.c: Likewise.
80915         * manual/examples/mkfsock.c: Likewise.
80916         * manual/examples/mkisock.c: Likewise.
80917         * manual/examples/mygetpass.c: Likewise.
80918         * manual/examples/pipe.c: Likewise.
80919         * manual/examples/popen.c: Likewise.
80920         * manual/examples/rprintf.c: Likewise.
80921         * manual/examples/search.c: Likewise.
80922         * manual/examples/select.c: Likewise.
80923         * manual/examples/setjmp.c: Likewise.
80924         * manual/examples/sigh1.c: Likewise.
80925         * manual/examples/sigusr.c: Likewise.
80926         * manual/examples/stpcpy.c: Likewise.
80927         * manual/examples/strdupa.c: Likewise.
80928         * manual/examples/strftim.c: Likewise.
80929         * manual/examples/strncat.c: Likewise.
80930         * manual/examples/subopt.c: Likewise.
80931         * manual/examples/swapcontext.c: Likewise.
80932         * manual/examples/termios.c: Likewise.
80933         * manual/examples/testopt.c: Likewise.
80934         * manual/examples/testpass.c: Likewise.
80935         * manual/examples/timeval_subtract.c: Likewise.
80936
80937         [BZ #13792]
80938         * manual/time.texi (Elapsed Time): Move timeval_subtract example
80939         function to ...
80940         * manual/timeval_subtract.c.texi: ... here, new file.
80941
80942 2012-03-02  David S. Miller  <davem@davemloft.net>
80943
80944         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
80945
80946 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
80947
80948         [BZ #3976]
80949         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
80950         (__sin): Save and restore rounding mode and use round-to-nearest
80951         for all computations.
80952         (__cos): Save and restore rounding mode and use round-to-nearest
80953         for all computations.
80954         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
80955         <fenv.h>.
80956         (tan): Save and restore rounding mode and use round-to-nearest for
80957         all computations.
80958         * math/libm-test.inc (cos_test_tonearest): New function.
80959         (cos_test_towardzero): Likewise.
80960         (cos_test_downward): Likewise.
80961         (cos_test_upward): Likewise.
80962         (sin_test_tonearest): Likewise.
80963         (sin_test_towardzero): Likewise.
80964         (sin_test_downward): Likewise.
80965         (sin_test_upward): Likewise.
80966         (tan_test_tonearest): Likewise.
80967         (tan_test_towardzero): Likewise.
80968         (tan_test_downward): Likewise.
80969         (tan_test_upward): Likewise.
80970         (main): Call the new functions.
80971         * sysdeps/i386/fpu/libm-test-ulps: Update.
80972         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
80973
80974         [BZ #10135]
80975         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
80976         small n, then large n, before computing and testing k+n.
80977         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
80978         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
80979         Likewise.
80980         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
80981         Likewise.
80982         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
80983         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
80984         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
80985         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
80986         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
80987         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
80988         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
80989         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
80990         * math/libm-test.inc (scalbn_test): Add more tests.
80991         (scalbln_test): Likewise.
80992
80993         * manual/filesys.texi (mode_t): Describe constraints on size and
80994         signedness, not exact equivalence to a particular type.
80995         (ino_t): Likewise.
80996         (ino64_t): Likewise.
80997         (dev_t): Likewise.
80998         (nlink_t): Likewise.
80999         (blkcnt_t): Likewise.
81000         (blkcnt64_t): Likewise.
81001         * manual/llio.texi (off_t): Likewise.
81002
81003         [BZ #3976]
81004         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
81005         (__ieee754_exp): Save and restore rounding mode and use
81006         round-to-nearest for all computations.
81007         * math/libm-test.inc (exp_test_tonearest): New function.
81008         (exp_test_towardzero): Likewise.
81009         (exp_test_downward): Likewise.
81010         (exp_test_upward): Likewise.
81011         (main): Call the new functions.
81012         * sysdeps/i386/fpu/libm-test-ulps: Update.
81013         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
81014
81015 2012-03-01  Chris Demetriou  <cgd@google.com>
81016
81017         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
81018         have predictable order.
81019
81020 2012-03-01  David S. Miller  <davem@davemloft.net>
81021
81022         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
81023
81024         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
81025         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
81026         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
81027         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
81028
81029         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
81030         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
81031         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
81032         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
81033         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
81034         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
81035         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
81036         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
81037         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
81038
81039         * sysdeps/sparc/fpu/libm-test-ulps: Update.
81040
81041         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
81042         * sysdeps/sparc/fpu/libm-test-ulps: to here.
81043         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
81044
81045         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
81046         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
81047         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
81048         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
81049         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
81050         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
81051         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
81052         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
81053         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
81054         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
81055         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
81056         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
81057         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
81058         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
81059         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
81060         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
81061         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
81062         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
81063         * sysdeps/sparc/elf/configure: Regenerated.
81064
81065 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
81066
81067         * configure.in (AS, LD): Require binutils 2.20 or later.
81068         * configure: Regenerated.
81069         * manual/install.texi (Tools for Compilation): Give binutils 2.20
81070         as required minimum version.
81071         * INSTALL: Regenerated.
81072
81073         [BZ #2541]
81074         [BZ #4108]
81075         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
81076         before squaring exponent.
81077         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
81078         bottom long double and 27 bits of top long double before squaring
81079         exponent.
81080         * math/libm-test.inc (erfc_test): Add more tests.
81081         * sysdeps/i386/fpu/libm-test-ulps: Update.
81082         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
81083         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
81084
81085 2012-03-01  Kai Tietz  <ktietz@redhat.com>
81086
81087         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
81088         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
81089         containing bit-fields.
81090         * soft-fp/extended.h (_FP_UNION_E): Likewise.
81091         * soft-fp/single.h (_FP_UNION_S): Likewise.
81092         * soft-fp/double.h (_FP_UNION_D): Likewise.
81093
81094 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
81095
81096         [BZ #13786]
81097         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
81098         not include ../strcmp.S.
81099         [USE_AS_STRNCASECMP_L]: Likewise.
81100         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
81101         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
81102         * sysdeps/i386/i686/multiarch/strncase_l-c.c
81103         (__strncasecmp_l_ia32): Define as alias to
81104         __strncasecmp_l_nonascii.
81105
81106         [BZ #5794]
81107         * math/libm-test.inc (expm1_test): Add test for bug 5794.
81108         * sysdeps/i386/fpu/libm-test-ulps: Update.
81109         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
81110
81111         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
81112         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
81113
81114 2012-02-29  Jeff Law  <law@redhat.com>
81115
81116         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
81117         out of bounds read.
81118
81119 2012-02-29  Marek Polacek  <polacek@redhat.com>
81120
81121         [BZ #13706]
81122         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
81123         * elf/Makefile: Add rules to run tst-unused-dep.out.
81124
81125 2012-02-28  David S. Miller  <davem@davemloft.net>
81126
81127         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
81128         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
81129         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
81130         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
81131         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
81132         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
81133
81134 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
81135
81136         * math/libm-test.inc (llround_test): Move one test from
81137         lround_test.  Use TEST_f_L in moved test.
81138         (lround_test): Move misplaced test to llround_test.  Add testcase
81139         from bug 2561.
81140
81141 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
81142
81143         * sysdeps/x86_64/fpu/e_expf.S: New file.
81144         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
81145
81146 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
81147
81148         [BZ #13637]
81149         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
81150         of remain_len that may cause incomplete multi-byte character and
81151         false match.
81152         * posix/bug-regex33.c: New file.
81153         * posix/Makefile (tests): Add bug-regex33.
81154
81155 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
81156
81157         * manual/macros.texi: New file.
81158         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
81159         * manual/libc.texinfo: Include macros.texi.
81160         * manual/creatute.texi: Likewise.
81161         * manual/install.texi: Likewise.
81162         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
81163         @glibcadj{} in references to the GNU C Library.
81164         * manual/charset.texi: Likewise.
81165         * manual/conf.texi: Likewise.
81166         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
81167         when not using those macros.
81168         * manual/creature.texi: Likewise.
81169         * manual/crypt.texi: Likewise.
81170         * manual/errno.texi: Likewise.
81171         * manual/filesys.texi: Likewise.
81172         * manual/header.texi: Likewise.
81173         * manual/install.texi: Likewise.
81174         * manual/intro.texi: Likewise.
81175         * manual/io.texi: Likewise.
81176         * manual/job.texi: Likewise.
81177         * manual/lang.texi: Likewise.
81178         * manual/libc.texiinfo: Likewise.
81179         * manual/llio.texi: Likewise.
81180         * manual/locale.texi: Likewise.
81181         * manual/maint.texi: Likewise.
81182         * manual/math.texi: Likewise.
81183         * manual/memory.texi: Likewise.
81184         * manual/message.texi: Likewise.
81185         * manual/nss.texi: Likewise.
81186         * manual/pattern.texi: Likewise.
81187         * manual/process.texi: Likewise.
81188         * manual/resource.texi: Likewise.
81189         * manual/search.texi: Likewise.
81190         * manual/setjmp.texi: Likewise.
81191         * manual/signal.texi: Likewise.
81192         * manual/socket.texi: Likewise.
81193         * manual/startup.texi: Likewise.
81194         * manual/stdio.texi: Likewise.
81195         * manual/string.texi: Likewise.
81196         * manual/sysinfo.texi: Likewise.
81197         * manual/syslog.texi: Likewise.
81198         * manual/terminal.texi: Likewise.
81199         * manual/time.texi: Likewise.
81200         * manual/users.texi: Likewise.
81201         * INSTALL: Regenerated.
81202         * NOTES: Regenerated.
81203         * sysdeps/gnu/errlist.c: Regenerated.
81204
81205 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
81206
81207         * include/dirent.h: Include <dirstream.h> before
81208         <dirent/dirent.h>.
81209
81210 2012-02-28  David S. Miller  <davem@davemloft.net>
81211
81212         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
81213         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
81214         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
81215         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
81216
81217 2012-02-27  David S. Miller  <davem@davemloft.net>
81218
81219         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
81220         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
81221         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
81222         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
81223
81224         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
81225         frame pointer instead of stack pointer relative arg slot.
81226         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
81227         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
81228         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
81229
81230 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
81231
81232         [BZ #3992]
81233         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
81234
81235 2012-02-27  David S. Miller  <davem@davemloft.net>
81236
81237         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
81238         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
81239         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
81240         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
81241         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
81242         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
81243         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
81244         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
81245
81246 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
81247
81248         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
81249         later.  Allow versions 5-9.
81250         * configure: Regenerated.
81251         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
81252         required minimum version and 4.6 as recommended version.  Do not
81253         mention bugs in GCC 2.7 and 2.8.
81254         * INSTALL: Regenerated.
81255
81256 2012-02-27  David S. Miller  <davem@davemloft.net>
81257
81258         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
81259         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
81260         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
81261         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
81262         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
81263         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
81264         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
81265         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
81266
81267         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
81268         manipulate bits before adding and subtracting TWO112[sx].
81269         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
81270
81271 2012-02-27  Roland McGrath  <roland@hack.frob.com>
81272
81273         [BZ #13775]
81274         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
81275         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
81276         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
81277         being in POSIX, because they are in 1003.1-2008.
81278
81279         * rt/tst-aio.c: Include <fcntl.h>.
81280         * rt/tst-aio7.c: Likewise.
81281         * rt/tst-aio64.c: Likewise.
81282
81283         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
81284
81285 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
81286
81287         * manual/install.texi (--with-headers): Describe headers as
81288         interface headers, not private headers.
81289         (Specific advice for GNU/Linux systems): Describe use of headers
81290         from "make headers_install", not private headers from older
81291         kernels.
81292         * INSTALL: Regenerated.
81293         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
81294         Change to 2.6.19.
81295         * sysdeps/unix/sysv/linux/configure: Regenerated.
81296
81297         * manual/llio.texi (fclean): Remove documentation.
81298
81299         * manual/Makefile (libc-texi-generated): New variable.  Include
81300         version.texi.
81301         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
81302         $(libc-texi-generated), not duplicated list of files.
81303         (version.texi, stamp-version): New rules.
81304         (realclean): Remove $(libc-texi-generated), not individual files
81305         from that list.  Do not remove dir-add.texinfo.
81306         * manual/libc.texinfo: Comment out uses of edition numbers and
81307         references to printed manual.  Remove last-updated dates.
81308         (EDITION): Comment out.
81309         (ISBN): Likewise.
81310         (VERSION, UPDATED): Remove.
81311         (version.texi): Include.
81312
81313 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
81314
81315         * sysdeps/posix/spawni.c: Include <signal.h>.
81316         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
81317         * sysdeps/pthread/aio_fsync.c: Likewise.
81318
81319 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
81320
81321         * conform/Makefile (tests): Run only when not cross-compiling and
81322         when fast-check is not defined.
81323
81324         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
81325         * conform/data/limits.h-data: Fixes for POSIX2008.
81326         * conform/run-conformtest.sh: Run all tests.
81327         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
81328         headers.
81329         * include/bits/dlfcn.h: Likewise.
81330         * include/langinfo.h: Likewise.
81331         * include/monetary.h: Likewise.
81332         * include/sys/poll.h: Likewise.
81333
81334         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
81335         for __USE_GNU.
81336         * posix/spawn.h: Define __need_sigset_t.
81337         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
81338         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
81339         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
81340         to get sigevent_t only.
81341         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
81342         only for __USE_GNU.
81343         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
81344         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
81345         process_vm_writev only for __USE_GNU.
81346         * termios/termios.h: Declare tcgetsid also for POSIX2008.
81347
81348         * conform/Makefile: For now ignore errors from run-conformtest.
81349         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
81350         POSIX to avoid namespace pollution.  Don't prepend headers.
81351         * conform/data/aio.h-data: Fixes for POSIX testing.
81352         * conform/data/fcntl.h-data: Likewise.
81353         * conform/data/glob.h-data: Likewise.
81354         * conform/data/grp.h-data: Likewise.
81355         * conform/data/pthread.h-data: Likewise.
81356         * conform/data/pwd.h-data: Likewise.
81357         * conform/data/signal.h-data: Likewise.
81358         * conform/data/spawn.h-data: Likewise.
81359         * conform/data/stdio.h-data: Likewise.
81360         * conform/data/stdlib.h-data: Likewise.
81361         * conform/data/stropts.h-data: Likewise.
81362         * conform/data/sys/mman.h-data: Likewise.
81363         * conform/data/sys/stat.h-data: Likewise.
81364         * conform/data/sys/types.h-data: Likewise.
81365         * conform/data/sys/wait.h-data: Likewise.
81366         * conform/data/time.h-data: Likewise.
81367         * conform/data/unistd.h-data: Likewise.
81368         * conform/data/utime.h-data: Likewise.
81369
81370         * io/sys/stat.h: fchmod was always in POSIX.
81371         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
81372         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
81373         * rt/aio.h: Define __need_timespec before including <time.h>.
81374         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
81375         struct.  Add forward declaration of pthread_attr_t and use it in
81376         sigevent.
81377         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
81378         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
81379         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
81380         always remove CLK_TCK definition.
81381
81382 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
81383
81384         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
81385
81386 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
81387
81388         * conform/run-conformtest.sh: New file.
81389         * conform/Makefile: Run run-conformtest for tests.
81390         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
81391         support.
81392
81393         * conform/data/uchar.h-data: New file.
81394         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
81395         * conform/data/arpa/inet.h-data: Likewise.
81396         * conform/data/assert.h-data: Likewise.
81397         * conform/data/complex.h-data: Likewise.
81398         * conform/data/cpio.h-data: Likewise.
81399         * conform/data/ctype.h-data: Likewise.
81400         * conform/data/dirent.h-data: Likewise.
81401         * conform/data/dlfcn.h-data: Likewise.
81402         * conform/data/errno.h-data: Likewise.
81403         * conform/data/fcntl.h-data: Likewise.
81404         * conform/data/float.h-data: Likewise.
81405         * conform/data/fmtmsg.h-data: Likewise.
81406         * conform/data/fnmatch.h-data: Likewise.
81407         * conform/data/ftw.h-data: Likewise.
81408         * conform/data/glob.h-data: Likewise.
81409         * conform/data/grp.h-data: Likewise.
81410         * conform/data/iconv.h-data: Likewise.
81411         * conform/data/inttypes.h-data: Likewise.
81412         * conform/data/langinfo.h-data: Likewise.
81413         * conform/data/libgen.h-data: Likewise.
81414         * conform/data/limits.h-data: Likewise.
81415         * conform/data/locale.h-data: Likewise.
81416         * conform/data/math.h-data: Likewise.
81417         * conform/data/monetary.h-data: Likewise.
81418         * conform/data/mqueue.h-data: Likewise.
81419         * conform/data/ndbm.h-data: Likewise.
81420         * conform/data/net/if.h-data: Likewise.
81421         * conform/data/netdb.h-data: Likewise.
81422         * conform/data/netinet/in.h-data: Likewise.
81423         * conform/data/nl_types.h-data: Likewise.
81424         * conform/data/poll.h-data: Likewise.
81425         * conform/data/pthread.h-data: Likewise.
81426         * conform/data/pwd.h-data: Likewise.
81427         * conform/data/regex.h-data: Likewise.
81428         * conform/data/sched.h-data: Likewise.
81429         * conform/data/search.h-data: Likewise.
81430         * conform/data/semaphore.h-data: Likewise.
81431         * conform/data/setjmp.h-data: Likewise.
81432         * conform/data/signal.h-data: Likewise.
81433         * conform/data/spawn.h-data: Likewise.
81434         * conform/data/stdarg.h-data: Likewise.
81435         * conform/data/stdio.h-data: Likewise.
81436         * conform/data/stdlib.h-data: Likewise.
81437         * conform/data/string.h-data: Likewise.
81438         * conform/data/strings.h-data: Likewise.
81439         * conform/data/stropts.h-data: Likewise.
81440         * conform/data/sys/ipc.h-data: Likewise.
81441         * conform/data/sys/mman.h-data: Likewise.
81442         * conform/data/sys/msg.h-data: Likewise.
81443         * conform/data/sys/resource.h-data: Likewise.
81444         * conform/data/sys/select.h-data: Likewise.
81445         * conform/data/sys/sem.h-data: Likewise.
81446         * conform/data/sys/shm.h-data: Likewise.
81447         * conform/data/sys/socket.h-data: Likewise.
81448         * conform/data/sys/stat.h-data: Likewise.
81449         * conform/data/sys/statvfs.h-data: Likewise.
81450         * conform/data/sys/time.h-data: Likewise.
81451         * conform/data/sys/timeb.h-data: Likewise.
81452         * conform/data/sys/times.h-data: Likewise.
81453         * conform/data/sys/types.h-data: Likewise.
81454         * conform/data/sys/uio.h-data: Likewise.
81455         * conform/data/sys/un.h-data: Likewise.
81456         * conform/data/sys/utsname.h-data: Likewise.
81457         * conform/data/sys/wait.h-data: Likewise.
81458         * conform/data/syslog.h-data: Likewise.
81459         * conform/data/tar.h-data: Likewise.
81460         * conform/data/termios.h-data: Likewise.
81461         * conform/data/utime.h-data: Likewise.
81462         * conform/data/utmpx.h-data: Likewise.
81463         * conform/data/varargs.h-data: Likewise.
81464         * conform/data/wchar.h-data: Likewise.
81465         * conform/data/wctype.h-data: Likewise.
81466         * conform/data/wordexp.h-data: Likewise.
81467
81468         * include/stropts.h: New file.
81469         * include/uchar.h: New file.
81470         * include/aio.h: Changes to allow conformtest.pl to use the headers.
81471         * include/assert.h: Likewise.
81472         * include/ctype.h: Likewise.
81473         * include/dirent.h: Likewise.
81474         * include/dlfcn.h: Likewise.
81475         * include/fcntl.h: Likewise.
81476         * include/fnmatch.h: Likewise.
81477         * include/glob.h: Likewise.
81478         * include/grp.h: Likewise.
81479         * include/libio.h: Likewise.
81480         * include/locale.h: Likewise.
81481         * include/math.h: Likewise.
81482         * include/net/if.h: Likewise.
81483         * include/netdb.h: Likewise.
81484         * include/netinet/in.h: Likewise.
81485         * include/pthread.h: Likewise.
81486         * include/pwd.h: Likewise.
81487         * include/regex.h: Likewise.
81488         * include/sched.h: Likewise.
81489         * include/search.h: Likewise.
81490         * include/setjmp.h: Likewise.
81491         * include/signal.h: Likewise.
81492         * include/stdio.h: Likewise.
81493         * include/stdlib.h: Likewise.
81494         * include/string.h: Likewise.
81495         * include/sys/cdefs.h: Likewise.
81496         * include/sys/mman.h: Likewise.
81497         * include/sys/msg.h: Likewise.
81498         * include/sys/resource.h: Likewise.
81499         * include/sys/select.h: Likewise.
81500         * include/sys/socket.h: Likewise.
81501         * include/sys/stat.h: Likewise.
81502         * include/sys/statvfs.h: Likewise.
81503         * include/sys/time.h: Likewise.
81504         * include/sys/times.h: Likewise.
81505         * include/sys/uio.h: Likewise.
81506         * include/sys/utsname.h: Likewise.
81507         * include/sys/wait.h: Likewise.
81508         * include/termios.h: Likewise.
81509         * include/time.h: Likewise.
81510         * include/ulimit.h: Likewise.
81511         * include/unistd.h: Likewise.
81512         * include/utime.h: Likewise.
81513         * include/wchar.h: Likewise.
81514         * include/wctype.h: Likewise.
81515         * include/wordexp.h: Likewise.
81516
81517         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
81518
81519         * time/time.h: TIME_UTC must be a macro.
81520         Make timespec_get available for ISO C11 only as well.
81521
81522 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
81523
81524         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
81525         Reported by Peng Haitao <penght@cn.fujitsu.com>.
81526
81527 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
81528
81529         * configure.in: Use -o not -a in test for unsupported multi-arch.
81530
81531 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
81532
81533         * manual/texinfo.tex: Update to version 2012-01-19.16.
81534
81535 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
81536
81537         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
81538
81539 2012-02-24  Roland McGrath  <roland@hack.frob.com>
81540
81541         [BZ #13738]
81542         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
81543         * manual/fdl-1.3.texi: New file.
81544         * manual/fdl-1.1.texi: File removed.
81545
81546         [BZ #13738]
81547         * manual/libc.texinfo (FDL_VERSION): New @set.
81548         Use it for mention of FDL in cover text.
81549         (Documentation License): Use it in @include file name.
81550
81551 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
81552             Roland McGrath  <roland@hack.frob.com>
81553
81554         [BZ #5461]
81555         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN)
81556         (not LONG_LONG_MAX and LONG_LONG_MIN.
81557         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
81558         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
81559         name.
81560         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
81561
81562 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
81563
81564         [BZ #2547]
81565         [BZ #11365]
81566         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
81567         manipulate bits before adding and subtracting TWO23[sx].
81568         * math/libm-test.inc (nearbyint_test): Add more tests.
81569
81570 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
81571
81572         [BZ #2548]
81573         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
81574         bits before adding and subtracting TWO23[sx].
81575         * math/libm-test.inc (rint_test): Add more tests.
81576         (rint_test_tonearest): Likewise.
81577         (rint_test_towardzero): Likewise.
81578         (rint_test_downward): Likewise.
81579         (rint_test_upward: Likewise.
81580
81581 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
81582
81583         [BZ #10110]
81584         * include/stdc-predef.h: New file.  Extracted from features.h.
81585         * include/features.h: Include stdc-predef.h.
81586         * Makefile (headers): Add stdc-predef.h.
81587         * CONFORMANCE (Compiler limitations): Update.
81588
81589 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
81590
81591         * manual/libc.texinfo (VERSION, UPDATED): Revert.
81592
81593 2012-02-21  David S. Miller  <davem@davemloft.net>
81594
81595         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
81596         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
81597
81598 2012-02-20  David S. Miller  <davem@davemloft.net>
81599
81600         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
81601         using a normal save/restore sequence, rather than allocating a
81602         dummy stack frame just to store a frame pointer and restore.
81603         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
81604
81605 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
81606
81607         * manual/install.texi: Fix stray word in line-wrapped comment.
81608
81609 2012-02-20  David S. Miller  <davem@davemloft.net>
81610
81611         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
81612         both binutils and gcc support GOTDATA.
81613
81614         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
81615         "rd %pc" in the PIC register setup sequences.
81616
81617         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
81618         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
81619         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
81620         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
81621         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
81622         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
81623         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
81624         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
81625         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
81626         (SYSCALL_ERROR_HANDLER): Likewise.
81627         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
81628         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
81629         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
81630         (SYSCALL_ERROR_HANDLER): Likewise.
81631
81632         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
81633         (HAVE_GCC_GOTDATA): New.
81634         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
81635         relocation support in both binutils and gcc.
81636         * sysdeps/sparc/elf/configure: Regenerate.
81637
81638         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
81639         * sysdeps/sparc/sparc32/elf/configure: Delete.
81640         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
81641         * sysdeps/sparc/sparc64/elf/configure: Delete.
81642         * sysdeps/sparc/elf/configure.in: New file.
81643         * sysdeps/sparc/elf/configure: Generate.
81644
81645         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
81646         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
81647         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
81648         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
81649         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
81650
81651 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
81652
81653         * manual/install.texi: Do not mention specific glibc version
81654         numbers.
81655         * manual/libc.texinfo (VERSION, UPDATED): Update.
81656         (@copying): Use @copyright{} and range of years.
81657
81658 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
81659
81660         [BZ #13695]
81661         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
81662         [crti.S not in sysdirs] (generated): Do not append.
81663         [crti.S not in sysdirs] (omit-deps): Likewise.
81664         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
81665         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
81666         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
81667         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
81668         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
81669         Likewise.
81670         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
81671         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
81672         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
81673         * csu/defs.awk: Remove file.
81674         * sysdeps/generic/initfini.c: Likewise.
81675         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
81676         variable.
81677         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
81678         Likewise.
81679
81680 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
81681
81682         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
81683         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
81684         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
81685         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
81686         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
81687         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
81688         <bits/epoll.h>.
81689         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
81690         (__EPOLL_PACKED): Define to empty if not defined by
81691         <bits/epoll.h>.
81692         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
81693         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
81694         bits/epoll.h.
81695
81696 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
81697
81698         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
81699         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
81700         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
81701         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
81702         <bits/timerfd.h>.
81703         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
81704         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
81705         bits/timerfd.h.
81706
81707 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
81708
81709         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
81710         in C locale.
81711         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
81712         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
81713         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
81714         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
81715
81716 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
81717
81718         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
81719         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
81720
81721 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
81722
81723         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
81724         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
81725         defined.
81726         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
81727         Likewise.
81728         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
81729         entry for 2.16.
81730
81731 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
81732
81733         * math/w_acos.c: Use non-signaling floating-point comparisons.
81734         * math/w_acosf.c: Likewise.
81735         * math/w_acosh.c: Likewise.
81736         * math/w_acoshf.c: Likewise.
81737         * math/w_acoshl.c: Likewise.
81738         * math/w_acosl.c: Likewise.
81739         * math/w_asin.c: Likewise.
81740         * math/w_asinf.c: Likewise.
81741         * math/w_asinl.c: Likewise.
81742         * math/w_atanh.c: Likewise.
81743         * math/w_atanhf.c: Likewise.
81744         * math/w_atanhl.c: Likewise.
81745         * math/w_exp2.c: Likewise.
81746         * math/w_exp2f.c: Likewise.
81747         * math/w_exp2l.c: Likewise.
81748         * math/w_j0.c: Likewise.
81749         * math/w_j0f.c: Likewise.
81750         * math/w_j0l.c: Likewise.
81751         * math/w_j1.c: Likewise.
81752         * math/w_j1f.c: Likewise.
81753         * math/w_j1l.c: Likewise.
81754         * math/w_jn.c: Likewise.
81755         * math/w_jnf.c: Likewise.
81756         * math/w_log.c: Likewise.
81757         * math/w_log10.c: Likewise.
81758         * math/w_log10f.c: Likewise.
81759         * math/w_log10l.c: Likewise.
81760         * math/w_log2.c: Likewise.
81761         * math/w_log2f.c: Likewise.
81762         * math/w_log2l.c: Likewise.
81763         * math/w_logf.c: Likewise.
81764         * math/w_logl.c: Likewise.
81765         * math/w_sqrt.c: Likewise.
81766         * math/w_sqrtf.c: Likewise.
81767         * math/w_sqrtl.c: Likewise.
81768         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
81769         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
81770         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
81771         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
81772         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
81773
81774 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
81775
81776         [BZ #9739]
81777         * manual/string.texi (strnlen): Use correct parameter name in
81778         equivalent expression.
81779
81780 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
81781
81782         [BZ #11174]
81783         * manual/users.texi (seteuid): Consistently use neweuid for
81784         argument name.
81785
81786 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
81787
81788         [BZ #13704]
81789         * manual/nss.texi (Services in the NSS configuration): Correct
81790         list of services in example configuration file.
81791
81792 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
81793
81794         [BZ #11322]
81795         * manual/arith.texi: Remove statements about negative zero
81796         behaving identically to zero.
81797
81798 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
81799
81800         [BZ #5993]
81801         * manual/install.texi: Do not document upgrading from libc5.
81802
81803 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
81804
81805         [BZ #4596]
81806         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
81807
81808 2012-02-18  David S. Miller  <davem@davemloft.net>
81809
81810         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
81811         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
81812         %o7 across the call.
81813         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
81814         instead.
81815         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
81816         SETUP_PIC_REG_LEAF.
81817         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
81818         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
81819         * sysdeps/sparc/crtn.S: Likewise.
81820
81821 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
81822
81823         * aout/Makefile: Remove.
81824
81825 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
81826
81827         [BZ #13058]
81828         * manual/examples/argp-ex1.c (main): Format definition in GNU
81829         style.
81830         * manual/examples/argp-ex2.c (main): Likewise.
81831         * manual/examples/argp-ex3.c (main): Likewise.
81832         * manual/examples/argp-ex4.c (main): Likewise.
81833         * manual/examples/longopt.c (main): Use new-style prototype
81834         definition.
81835         * manual/examples/strncat.c (main): Specify return type and use
81836         (void) for arguments.
81837         * manual/examples/subopt.c (main): Use char **argv argument.
81838
81839 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
81840
81841         [BZ #5077]
81842         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
81843         rounding modes.
81844
81845 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
81846
81847         [BZ #6907]
81848         * manual/string.texi (strchr): Change when strchrnul is
81849         recommended.
81850
81851 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
81852
81853         [BZ #174]
81854         * manual/locale.texi (setlocale): Document LOCPATH.
81855
81856 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
81857
81858         [BZ #10210]
81859         * manual/process.texi (execle): Move @dots{} before last argument.
81860
81861 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
81862
81863         [BZ #12047]
81864         * manual/charset.texi (Generic Charset Conversion): Fix typo
81865         (LC_TYPE -> LC_CTYPE).
81866
81867 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
81868
81869         [BZ #5805]
81870         * manual/arith.texi (scalbn): Use @var{} on parameter names.
81871         (scalbnf): Likewise.
81872         (scalbnl): Likewise.
81873         (scalbln): Likewise.
81874         (scalblnf): Likewise.
81875         (scalblnl): Likewise.
81876         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
81877         (vwarnx): Likewise.
81878         (verr): Likewise.
81879         (verrx): Likewise.
81880         * manual/filesys.texi (telldir): Use braces around return type.
81881         * manual/llio.texi (mmap): Add space after comma.
81882         (mmap64): Likewise.
81883         * manual/math.texi (jn): Use @var{} on parameter names.
81884         (jnf): Likewise.
81885         (jnl): Likewise.
81886         (yn): Likewise.
81887         (ynf): Likewise.
81888         (ynl): Likewise.
81889         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
81890         line.
81891         * manual/resource.texi (ulimit): Use @dots{} instead of literal
81892         "...".
81893         (sched_get_priority_min): Remove semicolon on @deftypefun line.
81894         (sched_get_priority_max): Likewise.
81895         * manual/signal.texi (sigvec): Add space after comma.
81896         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
81897         names.
81898         (if_indextoname): Likewise.
81899         (if_freenameindex): Likewise.
81900         (sendto): Use ',' instead of '.' in prototype.
81901         * manual/startup.texi (syscall): Use @dots{} instead of literal
81902         "...".
81903         * manual/stdio.texi (__fpending): Separate initial words of
81904         paragraph from @deftypefun line.
81905         * manual/syslog.texi (syslog): Use @dots{} instead of literal
81906         "...".
81907         (vsyslog): Use @var{} on parameter names.
81908         * manual/terminal.texi (stty): Use @var{} on parameter names.
81909         * manual/users.texi (getutmp): Use @var{} on parameter names.
81910         (getutmpx): Likewise.
81911
81912 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
81913
81914         [BZ #6884]
81915         * manual/stdio.texi (fopen): Fix typos in description of
81916         ",ccs=STRING".
81917
81918 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
81919
81920         [BZ #4026]
81921         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
81922         get clock_id definition.
81923
81924 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
81925
81926         [BZ #4822]
81927         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
81928         (madvise): Cast every argument to void on its own.
81929
81930 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
81931
81932         [BZ #9902]
81933         * manual/startup.texi (Exit Status): Fix typo.
81934
81935 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
81936
81937         [BZ #10140]
81938         * manual/examples/argp-ex1.c: Include <stdlib.h>.
81939         * manual/examples/argp-ex2.c: Likewise.
81940         * manual/examples/argp-ex3.c: Likewise.
81941
81942 2012-02-16  Richard Henderson  <rth@redhat.com>
81943
81944         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
81945         * sysdeps/s390/s390-32/initfini.c: Remove.
81946         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
81947         * sysdeps/s390/s390-64/initfini.c: Remove.
81948
81949 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
81950
81951         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
81952         compiler output for sysdeps/generic/initfini.c.
81953         * sysdeps/sh/elf/initfini.c: Remove file.
81954
81955 2012-02-16  David S. Miller  <davem@davemloft.net>
81956
81957         [BZ #11494]
81958         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
81959
81960         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
81961         * sysdeps/sparc/crti.S: New file.
81962         * sysdeps/sparc/crtn.S: New file.
81963         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
81964         * sysdeps/sparc/sparc64/Makefile: Likewise.
81965
81966 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
81967
81968         [BZ #3335]
81969         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
81970
81971 2012-02-15  Roland McGrath  <roland@hack.frob.com>
81972
81973         [BZ #4822]
81974         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
81975
81976         * mach/devstream.c (cookie_io_functions_t): Macro removed.
81977         (write, read, close): Likewise.
81978         Patch by Aurelien Jarno <aurelien@aurel32.net>.
81979
81980 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
81981
81982         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
81983         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
81984         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
81985         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
81986         <bits/signalfd.h>.
81987         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
81988         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
81989         bits/signalfd.h.
81990
81991 2012-02-14  Marek Polacek  <polacek@redhat.com>
81992
81993         * sysdeps/x86_64/crti.S: New file.
81994         * sysdeps/x86_64/crtn.S: New file.
81995         * sysdeps/x86_64/elf/initfini.c: Remove file.
81996
81997 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
81998
81999         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
82000         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
82001         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
82002         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
82003         <bits/inotify.h>.
82004         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
82005         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
82006         bits/inotify.h.
82007
82008 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
82009
82010         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
82011         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
82012         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
82013         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
82014         <bits/eventfd.h>.
82015         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
82016         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
82017         bits/eventfd.h.
82018
82019 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
82020
82021         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
82022         __feraiseexcept instead of feraiseexcept.
82023
82024         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
82025         nanosleep invocations.
82026         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
82027         strings, and add error checking for a nanosleep invocations.
82028
82029 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
82030
82031         Replace FSF snail mail address with URLs, as per GNU coding standards.
82032         Most of the snail mail addresses were wrong anyway, and omitting
82033         them makes the source code easier to maintain.  Almost all of the
82034         changes are to license notices and to locale LC_IDENTIFICATION
82035         addresses, except for this one:
82036         * manual/libc.texinfo: In "Published by", give the FSF's URL,
82037         not its snail mail address.
82038
82039 2012-02-09  Richard Henderson  <rth@twiddle.net>
82040
82041         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
82042         of kernel-features.h.
82043
82044         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
82045
82046 2012-02-08  Marek Polacek  <polacek@redhat.com>
82047
82048         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
82049         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
82050         * sysdeps/gnu/_G_config.h: Likewise.
82051         * sysdeps/generic/_G_config.h: Likewise.
82052
82053 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
82054
82055         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
82056         tests.
82057         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
82058
82059         * sysdeps/powerpc/powerpc32/crti.S: New file.
82060         * sysdeps/powerpc/powerpc32/crtn.S: New file.
82061         * sysdeps/powerpc/powerpc64/crti.S: New file.
82062         * sysdeps/powerpc/powerpc64/crtn.S: New file.
82063
82064         * Makeconfig (have-initfini): Don't set.
82065         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
82066         * configure.in (nopic_initfini): Don't substitute.
82067         * config.h.in (HAVE_INITFINI): Don't #undef.
82068         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
82069         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
82070
82071 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
82072
82073         Support crti.S and crtn.S provided directly by architectures.
82074         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
82075         [crti.S in sysdirs] (omit-deps): Likewise.
82076         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
82077         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
82078         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
82079         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
82080         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
82081         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
82082         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
82083         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
82084         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
82085         compiler output for sysdeps/generic/initfini.c.
82086         * sysdeps/i386/elf/Makefile: Remove file.
82087         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
82088
82089 2012-02-07  Marek Polacek  <polacek@redhat.com>
82090
82091         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
82092         * sysdeps/gnu/_G_config.h: Likewise.
82093         * sysdeps/mach/hurd/_G_config.h: Likewise.
82094
82095 2012-02-07  Marek Polacek  <polacek@redhat.com>
82096
82097         * math/Makefile (tests): Add tst-CMPLX2.
82098         * math/tst-CMPLX2.c: New file.
82099
82100 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
82101
82102         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
82103
82104         * math/libm-test.inc (jn_test): Add missing L suffix.
82105
82106 2012-02-06  Marek Polacek  <polacek@redhat.com>
82107
82108         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
82109         * sysdeps/i386/fpu/e_powf.S: Likewise.
82110         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
82111         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
82112         * sysdeps/i386/fpu/e_acosh.S: Likewise.
82113         * sysdeps/i386/fpu/e_pow.S: Likewise.
82114         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
82115         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
82116         * sysdeps/i386/fpu/s_expm1.S: Likewise.
82117         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
82118         * sysdeps/i386/fpu/e_log2.S: Likewise.
82119         * sysdeps/i386/fpu/e_log2l.S: Likewise.
82120         * sysdeps/i386/fpu/e_scalb.S: Likewise.
82121         * sysdeps/i386/fpu/e_powl.S: Likewise.
82122         * sysdeps/i386/fpu/s_log1p.S: Likewise.
82123         * sysdeps/i386/fpu/e_log10f.S: Likewise.
82124         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
82125         * sysdeps/i386/fpu/e_logl.S: Likewise.
82126         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
82127         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
82128         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
82129         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
82130         * sysdeps/i386/fpu/e_log2f.S: Likewise.
82131         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
82132         * sysdeps/i386/fpu/e_log.S: Likewise.
82133         * sysdeps/i386/fpu/s_cexp.S: Likewise.
82134         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
82135         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
82136         * sysdeps/i386/fpu/e_logf.S: Likewise.
82137         * sysdeps/i386/fpu/e_log10l.S: Likewise.
82138         * sysdeps/i386/fpu/e_atanh.S: Likewise.
82139         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
82140         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
82141         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
82142         * sysdeps/i386/fpu/e_log10.S: Likewise.
82143         * sysdeps/i386/fpu/s_frexp.S: Likewise.
82144         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
82145         * sysdeps/i386/fpu/s_asinh.S: Likewise.
82146         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
82147         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
82148         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
82149         * sysdeps/i386/asm-syntax.h: Likewise.
82150         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
82151         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
82152         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
82153         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
82154         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
82155         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
82156         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
82157         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
82158         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
82159         * sysdeps/powerpc/sysdep.h: Likewise.
82160         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
82161         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
82162
82163 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
82164
82165         [BZ #411]
82166         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
82167
82168 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
82169
82170         * sysdeps/i386/sysdep.h: Include <features.h>.
82171         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
82172         version.
82173
82174 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
82175
82176         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
82177         Define.
82178         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
82179         LOAD_PIC_REG_STR.
82180
82181 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
82182
82183         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
82184         (SETUP_PIC_REG): Use GET_PC_THUNK.
82185         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
82186         macro.
82187
82188 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
82189
82190         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
82191         for non-PIC compilation.
82192         (SETUP_PIC_REG): Add .p2align directive.
82193         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
82194         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
82195         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
82196         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
82197         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
82198         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
82199         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
82200         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
82201         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
82202         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
82203         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
82204         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
82205         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
82206         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
82207         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
82208         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
82209         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
82210         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
82211         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
82212         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
82213         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
82214         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
82215         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
82216         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
82217         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
82218         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
82219         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
82220         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
82221         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
82222         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
82223         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
82224         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
82225         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
82226         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
82227         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
82228         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
82229         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
82230         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
82231         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
82232         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
82233         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
82234
82235 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
82236
82237         * math/tst-CMPLX.c: Include <stdio.h>.
82238
82239 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
82240
82241         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
82242         float.
82243         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
82244         * sysdeps/sparc/bits/mathdef.h: Likewise.
82245
82246 2012-01-31  Marek Polacek  <polacek@redhat.com>
82247
82248         * libio/libio.h: Don't define _PARAMS.
82249         * locale/programs/config.h: Don't define PARAMS.
82250         * stdlib/strtol_l.c: Likewise.
82251         (__strtol_l): Remove PARAMS from the prototype.
82252
82253 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
82254
82255         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
82256         names.  Just use the correct names.  Remove unnecessary wrapper
82257         functions.
82258         * malloc/arena.c: Likewise.
82259         * malloc/hooks.c: Likewise.
82260
82261         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
82262         ARENA_TEST says not to.  Simplify test for creation of a new arena.
82263         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
82264
82265 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
82266
82267         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
82268         into tail calls.
82269         (update_get_addr): New function.
82270         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
82271         GET_ADDR_MODULE parameter.
82272
82273 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
82274
82275         * crypt/cert.c: Remove __STDC__ conditionals.
82276         * crypt/crypt-entry.c: Likewise.
82277         * crypt/crypt_util.c: Likewise.
82278         * libio/filedoalloc.c: Likewise.
82279         * libio/fileops.c: Likewise.
82280         * libio/genops.c: Likewise.
82281         * libio/iofclose.c: Likewise.
82282         * libio/iofdopen.c: Likewise.
82283         * libio/iofopen.c: Likewise.
82284         * libio/iofopen64.c: Likewise.
82285         * libio/iogetdelim.c: Likewise.
82286         * libio/iopopen.c: Likewise.
82287         * libio/obprintf.c: Likewise.
82288         * libio/oldfileops.c: Likewise.
82289         * libio/oldiofclose.c: Likewise.
82290         * libio/oldiofdopen.c: Likewise.
82291         * libio/oldiofopen.c: Likewise.
82292         * libio/oldiopopen.c: Likewise.
82293         * libio/wfiledoalloc.c: Likewise.
82294         * libio/wgenops.c: Likewise.
82295         * locale/programs/xmalloc.c: Likewise.
82296         * misc/syslog.c: Likewise.
82297         * stdio-common/xbug.c: Likewise.
82298         * string/memchr.c: Likewise.
82299         * string/memcmp.c: Likewise.
82300         * string/memrchr.c: Likewise.
82301         * string/rawmemchr.c: Likewise.
82302         * sysdeps/posix/getcwd.c: Likewise.
82303         * time/strftime_l.c: Likewise.
82304
82305 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
82306
82307         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
82308         * config.make.in (config-cflags-sse2avx): Define.
82309         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
82310         Fix typo.
82311
82312 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
82313
82314         * scripts/config.guess: Update from upstream config git repository.
82315         * scripts/config.sub: Likewise.
82316
82317 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
82318
82319         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
82320         (EM_NUM): Update.
82321         (R_TILEPRO_*, R_TILEGX_*): New macros.
82322
82323         * scripts/firstversions.awk: Fix bug in version range handling.
82324
82325         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
82326
82327         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
82328
82329         * include/sys/epoll.h: New file.
82330         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
82331         libc_hidden_def.
82332
82333 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
82334
82335         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
82336         Avoid unnecessary __WORDSIZE == 64 test.
82337         (fmaxf): Use VEX format if possible.
82338         (fmax): Likewise.
82339         (fminf): Likewise.
82340         (fmin): Likewise.
82341
82342         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
82343         * math/math_private.h: Remove libc_fegetround* and
82344         libc_fesetround*.
82345         * sysdeps/i386/configure.in: Check for -msse2avx.
82346         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
82347         also if SSE2AVX is defined.
82348         Remove libc_fegetround* and libc_fesetround*.
82349         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
82350         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
82351         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
82352         of HAS_YMM_USABLE.
82353         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
82354         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
82355         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
82356         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
82357         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
82358
82359         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
82360
82361 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
82362
82363         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
82364         size is not set.
82365         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
82366
82367 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
82368
82369         [BZ #13618]
82370         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
82371         relocation.
82372         * Makeconfig (libm): Define.
82373         * elf/Makefile: Add rules to build and run tst-relsort1.
82374         * elf/tst-relsort1.c: New file.
82375         * elf/tst-relsort1mod1.c: New file.
82376         * elf/tst-relsort1mod2.c: New file.
82377
82378 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
82379
82380         * math/s_ldexp.c: Remove __STDC__ conditionals.
82381         * math/s_ldexpf.c: Likewise.
82382         * math/s_ldexpl.c: Likewise.
82383         * math/s_nextafter.c: Likewise.
82384         * math/s_nexttowardf.c: Likewise.
82385         * math/s_significand.c: Likewise.
82386         * math/s_significandf.c: Likewise.
82387         * math/s_significandl.c: Likewise.
82388         * math/w_jnl.c: Likewise.
82389         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
82390         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
82391         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
82392         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
82393         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
82394         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
82395         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
82396         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
82397         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
82398         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
82399         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
82400         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
82401         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
82402         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
82403         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
82404         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
82405         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
82406         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
82407         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
82408         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
82409         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
82410         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
82411         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
82412         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
82413         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
82414         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
82415         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
82416         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
82417         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
82418         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
82419         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
82420         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
82421         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
82422         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
82423         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
82424         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
82425         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
82426         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
82427         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
82428         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
82429         * sysdeps/ieee754/k_standard.c: Likewise.
82430         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
82431         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
82432         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
82433         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
82434         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
82435         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
82436         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
82437         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
82438         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
82439         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
82440         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
82441         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
82442         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
82443         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
82444         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
82445         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
82446         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
82447         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
82448         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
82449         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
82450         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
82451         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
82452         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
82453         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
82454         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
82455         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
82456         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
82457         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
82458         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
82459         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
82460         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
82461         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
82462         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
82463         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
82464         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
82465         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
82466         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
82467         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
82468         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
82469         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
82470         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
82471         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
82472         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
82473         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
82474         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
82475         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
82476         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
82477         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
82478         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
82479         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
82480         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
82481         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
82482         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
82483         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
82484         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
82485         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
82486         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
82487         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
82488         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
82489         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
82490         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
82491         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
82492         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
82493         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
82494         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
82495         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
82496         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
82497         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
82498         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
82499         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
82500         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
82501         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
82502         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
82503         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
82504         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
82505         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
82506         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
82507         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
82508         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
82509         * sysdeps/ieee754/s_matherr.c: Likewise.
82510         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
82511         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
82512         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
82513         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
82514
82515 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
82516
82517         * crypt/md5.h: Remove __STDC__ conditionals.
82518         * libio/libioP.h: Likewise.
82519         * locale/programs/config.h: Likewise.
82520         * sysdeps/generic/sysdep.h: Likewise.
82521         * sysdeps/i386/asm-syntax.h: Likewise.
82522         * sysdeps/s390/asm-syntax.h: Likewise.
82523         * sysdeps/unix/sysdep.h: Likewise.
82524         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
82525         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
82526
82527 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
82528
82529         * libio/libio.h: Remove __STDC__ conditionals.
82530         * malloc/obstack.h: Likewise.
82531         * math/complex.h: Likewise.
82532         * math/math.h: Likewise.
82533         * sysdeps/generic/_G_config.h: Likewise.
82534         * sysdeps/gnu/_G_config.h: Likewise.
82535         * sysdeps/mach/hurd/_G_config.h: Likewise.
82536         * sysdeps/powerpc/bits/mathdef.h: Likewise.
82537         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
82538         * sysdeps/sparc/bits/mathdef.h: Likewise.
82539
82540 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
82541
82542         [BZ #13583]
82543         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
82544         Clean up HAS_* macros.
82545         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
82546         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
82547         possible.
82548         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
82549         HAS_AVX.
82550         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
82551         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
82552         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
82553         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
82554         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
82555
82556 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
82557
82558         * elf/tst-unique3.cc (gets): Remove declaration.
82559         * elf/tst-unique3lib.cc (gets): Likewise.
82560         * elf/tst-unique3lib2.cc (gets): Likewise.
82561         * elf/tst-unique4.cc (gets): Likewise.
82562
82563 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
82564
82565         * include/stdio.h: Add C++ protection.  Add gets declarations and
82566         definitions.
82567         * debug/tst-chk1.c: Don't declare gets here.
82568         * stdio-common/tst-gets.c: Likewise.
82569
82570 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
82571
82572         * posix/glob: Remove directory.
82573
82574 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
82575
82576         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
82577
82578 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
82579
82580         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
82581         of the non-standard EPFNOSUPPORT.
82582
82583 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
82584
82585         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
82586         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
82587         ANYWHERE set to 1 only on KERN_NO_SPACE error.
82588
82589 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
82590
82591         * wcsmbs/uchar.h: Test __STDC_VERSION__.
82592
82593 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
82594
82595         * nscd/aicache.c (addhstaiX): Do not cache negative results of
82596         transient errors.
82597         * nscd/grpcache.c (cache_addgr): Likewise.
82598         * nscd/hstcache.c (cache_addhst): Likewise.
82599         * nscd/initgrcache.c (addinitgroupsX): Likewise.
82600         * nscd/pwdcache.c (cache_addpw): Likewise.
82601         * nscd/servicescache.c (cache_addserv): Likewise.
82602
82603 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
82604
82605         * malloc/malloc.c: Various cleanups.
82606         * malloc/hooks.c: Likewise.
82607
82608         * stdlib/Makefile (tests): Add bug-fmtmsg1.
82609         * stdlib/bug-fmtmsg1.c: New file.
82610
82611         * stdlib/fmtmsg.c (init): Add missing unlock.
82612         Patch by Peng Haitao <penght@cn.fujitsu.com>.
82613
82614 2012-01-12  Marek Polacek  <polacek@redhat.com>
82615
82616         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
82617         and _GNU_SOURCE.
82618
82619 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
82620
82621         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
82622         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
82623         macro to ensure uniqueness of label name.
82624         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
82625         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
82626
82627 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
82628
82629         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
82630
82631         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
82632         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
82633         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
82634         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
82635
82636 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
82637
82638         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
82639
82640         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
82641         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
82642         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
82643
82644         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
82645
82646         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
82647         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
82648         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
82649         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
82650
82651         * math/bits/math-finite.h: Add ldexp support.
82652
82653 2012-01-10  Marek Polacek  <polacek@redhat.com>
82654
82655         * locale/programs/localedef.h (show_archive_content): Add noreturn
82656         attribute.
82657
82658 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
82659
82660         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
82661
82662 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
82663
82664         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
82665
82666         * io/Makefile (headers): Add bits/poll2.h.
82667
82668 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
82669
82670         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
82671         typo #include statement.
82672
82673 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
82674
82675         * include/sys/cdefs.h: Define __attribute_alloc_size.
82676         * catgets/gencat.c: Add alloc_size attribute and apply consistently
82677         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
82678         * elf/pldd.c: Likewise.
82679         * iconv/iconv_charmap.c: Likewise.
82680         * iconv/iconvconfig.c: Likewise.
82681         * iconv/strtab.c: Likewise.
82682         * locale/programs/locale.c: Likewise.
82683         * locale/programs/localedef.h: Likewise.
82684         * locale/programs/simple-hash.c: Likewise.
82685         * nscd/nscd.h: Likewise.
82686         * nss/makedb.c: Likewise.
82687         * sysdeps/generic/ldconfig.h: Likewise.
82688         * locale/programs/localedef.c: Remove xmalloc prototype.
82689         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
82690
82691 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
82692
82693         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
82694         appropriate.
82695
82696 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
82697
82698         * math/Makefile (tests): Add tst-CMPLX.
82699         * math/tst-CMPLX.c: New file.
82700
82701         * math/complex.h (CMPLXL): Fix typo.
82702
82703         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
82704         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
82705         GLIBC_2.16.
82706         * debug/tst-chk1.c: Add poll and ppoll tests.
82707         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
82708         * include/sys/poll.h: Add hidden proto for ppoll.
82709         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
82710         * sysdeps/mach/hurd/ppoll.c: Likewise.
82711         * io/ppoll.c: Likewise.
82712         * debug/poll_chk.c: New file.
82713         * debug/ppoll_chk.c: New file.
82714         * include/bits/poll2.h: New file.
82715         * io/bits/poll2.h: New file.
82716
82717         [BZ #1350]
82718         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
82719
82720         * configure.in: static is always set to yes.  Remove.
82721         * config.make.in: Don't set build-static.
82722         * Makeconfig: Remove use of build-static.
82723         * dlfcn/Makefile: Likewise.
82724         * elf/Makefile: Likewise.
82725         * math/Makefile: Likewise.
82726         * misc/Makefile: Likewise.
82727         * nptl/Makefile: Likewise.
82728         * sysdeps/mach/hurd/Makefile: Likewise.
82729
82730         * configure.in: PWD_P is not used anymore.
82731         * config.make.in: Remove PWD_P entry.
82732
82733         * configure.in: Remove last remnants of RANLIB.
82734         No need to check for signed size_t anymore.
82735         Don't set libc_commonpagesize and libc_relro_required here for Alpha
82736         and IA-64.
82737         Remove __builtin_expect test because we require at least gcc 3.4.
82738         * aclocal.m4: Likewise.
82739
82740         * wcsmbs/mbrtoc16.c: Implement using towc function.
82741         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
82742         * wcsmbs/wcsmbsload.c: Likewise.
82743         * iconv/gconv_simple.c: Likewise.
82744         * iconv/gconv_int.h: Likewise.
82745         * iconv/gconv_builtin.h: Likewise.
82746         * iconv/iconv_prog.c: Remove CHAR16 handling.
82747
82748         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
82749
82750         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
82751
82752         * configure.in: Remove --with-elf and --enable-bounded options.
82753         Dont set base_machine for ia64.  More non-ELF conditions removed.
82754         Remove testing and setting of leading underscore information.
82755         * config.make.in (build-bounded): Set to no.
82756         * config.h.in: Remove NO_UNDERSCORES entry.
82757         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
82758         them.
82759         * csu/start.c: Remove !NO_UNDERSCORE code.
82760         * locale/localeinfo.h: Likewise.
82761         * sysdeps/generic/machine-gmon.h: Likewise.
82762         * sysdeps/generic/sysdep.h: Likewise.
82763         * sysdeps/i386/sysdep.h: Likewise.
82764         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
82765         * sysdeps/mach/sysdep.h: Likewise.
82766         * sysdeps/s390/s390-32/sysdep.h: Likewise.
82767         * sysdeps/s390/s390-64/sysdep.h: Likewise.
82768         * sysdeps/sh/sysdep.h: Likewise.
82769         * sysdeps/sparc/sparc32/alloca.S: Likewise.
82770         * sysdeps/unix/i386/sysdep.S: Likewise.
82771         * sysdeps/unix/sparc/start.c: Likewise.
82772         * sysdeps/unix/sparc/sysdep.S: Likewise.
82773         * sysdeps/unix/sparc/sysdep.h: Likewise.
82774         * sysdeps/unix/start.c: Likewise.
82775         * sysdeps/unix/x86_64/sysdep.S: Likewise.
82776         * sysdeps/x86_64/sysdep.h: Likewise.
82777
82778 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
82779
82780         [BZ #13553]
82781         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
82782         for non-gcc.
82783         * argp/argp-fmtstream.h: Use const instead __const.
82784         * argp/argp.h: Likewise.
82785         * assert/assert.h: Likewise.
82786         * bits/fenv.h: Likewise.
82787         * bits/sched.h: Likewise.
82788         * bits/sigset.h: Likewise.
82789         * bits/sigthread.h: Likewise.
82790         * catgets/nl_types.h: Likewise.
82791         * conform/data/pthread.h-data: Likewise.
82792         * crypt/crypt-private.h: Likewise.
82793         * crypt/crypt.h: Likewise.
82794         * crypt/crypt_util.c: Likewise.
82795         * ctype/ctype.h: Likewise.
82796         * debug/execinfo.h: Likewise.
82797         * debug/mbsnrtowcs_chk.c: Likewise.
82798         * debug/mbsrtowcs_chk.c: Likewise.
82799         * debug/wcsnrtombs_chk.c: Likewise.
82800         * debug/wcsrtombs_chk.c: Likewise.
82801         * debug/wcstombs_chk.c: Likewise.
82802         * dirent/dirent.h: Likewise.
82803         * dlfcn/dlfcn.h: Likewise.
82804         * elf/neededtest4.c: Likewise.
82805         * grp/grp.h: Likewise.
82806         * gshadow/gshadow.h: Likewise.
82807         * iconv/gconv.h: Likewise.
82808         * iconv/gconv_int.h: Likewise.
82809         * iconv/gconv_simple.c: Likewise.
82810         * iconv/iconv.h: Likewise.
82811         * iconv/loop.c: Likewise.
82812         * iconv/skeleton.c: Likewise.
82813         * include/aio.h: Likewise.
82814         * include/aliases.h: Likewise.
82815         * include/argz.h: Likewise.
82816         * include/arpa/inet.h: Likewise.
82817         * include/assert.h: Likewise.
82818         * include/dirent.h: Likewise.
82819         * include/dlfcn.h: Likewise.
82820         * include/execinfo.h: Likewise.
82821         * include/fcntl.h: Likewise.
82822         * include/fenv.h: Likewise.
82823         * include/glob.h: Likewise.
82824         * include/grp.h: Likewise.
82825         * include/libintl.h: Likewise.
82826         * include/mntent.h: Likewise.
82827         * include/netdb.h: Likewise.
82828         * include/pwd.h: Likewise.
82829         * include/rpc/netdb.h: Likewise.
82830         * include/sched.h: Likewise.
82831         * include/search.h: Likewise.
82832         * include/shadow.h: Likewise.
82833         * include/signal.h: Likewise.
82834         * include/stdio.h: Likewise.
82835         * include/stdlib.h: Likewise.
82836         * include/string.h: Likewise.
82837         * include/sys/socket.h: Likewise.
82838         * include/sys/stat.h: Likewise.
82839         * include/sys/statfs.h: Likewise.
82840         * include/sys/statvfs.h: Likewise.
82841         * include/sys/syslog.h: Likewise.
82842         * include/sys/time.h: Likewise.
82843         * include/sys/uio.h: Likewise.
82844         * include/time.h: Likewise.
82845         * include/unistd.h: Likewise.
82846         * include/utmp.h: Likewise.
82847         * include/wchar.h: Likewise.
82848         * include/wctype.h: Likewise.
82849         * inet/aliases.h: Likewise.
82850         * inet/arpa/inet.h: Likewise.
82851         * inet/netinet/ether.h: Likewise.
82852         * inet/netinet/in.h: Likewise.
82853         * intl/libintl.h: Likewise.
82854         * io/bits/fcntl2.h: Likewise.
82855         * io/fcntl.h: Likewise.
82856         * io/ftw.h: Likewise.
82857         * io/sys/poll.h: Likewise.
82858         * io/sys/stat.h: Likewise.
82859         * io/sys/statfs.h: Likewise.
82860         * io/sys/statvfs.h: Likewise.
82861         * io/utime.h: Likewise.
82862         * libio/bits/stdio.h: Likewise.
82863         * libio/bits/stdio2.h: Likewise.
82864         * libio/libio.h: Likewise.
82865         * libio/libioP.h: Likewise.
82866         * libio/stdio.h: Likewise.
82867         * locale/lc-ctype.c: Likewise.
82868         * locale/locale.h: Likewise.
82869         * login/utmp.h: Likewise.
82870         * malloc/arena.c: Likewise.
82871         * malloc/malloc.c: Likewise.
82872         * malloc/malloc.h: Likewise.
82873         * malloc/mcheck.c: Likewise.
82874         * malloc/mtrace.c: Likewise.
82875         * math/bits/mathcalls.h: Likewise.
82876         * math/fenv.h: Likewise.
82877         * math/math_private.h: Likewise.
82878         * misc/bits/error.h: Likewise.
82879         * misc/bits/syslog.h: Likewise.
82880         * misc/err.h: Likewise.
82881         * misc/error.h: Likewise.
82882         * misc/fstab.h: Likewise.
82883         * misc/mntent.h: Likewise.
82884         * misc/regexp.h: Likewise.
82885         * misc/search.h: Likewise.
82886         * misc/sgtty.h: Likewise.
82887         * misc/sys/mman.h: Likewise.
82888         * misc/sys/syslog.h: Likewise.
82889         * misc/sys/uio.h: Likewise.
82890         * misc/sys/xattr.h: Likewise.
82891         * misc/ttyent.h: Likewise.
82892         * nis/rpcsvc/ypclnt.h: Likewise.
82893         * nss/nss.h: Likewise.
82894         * posix/bits/unistd.h: Likewise.
82895         * posix/fnmatch.h: Likewise.
82896         * posix/glob.h: Likewise.
82897         * posix/sched.h: Likewise.
82898         * posix/spawn.h: Likewise.
82899         * posix/sys/wait.h: Likewise.
82900         * posix/unistd.h: Likewise.
82901         * posix/wordexp.h: Likewise.
82902         * pwd/pwd.h: Likewise.
82903         * resolv/netdb.h: Likewise.
82904         * resource/sys/resource.h: Likewise.
82905         * rt/aio.h: Likewise.
82906         * rt/bits/mqueue2.h: Likewise.
82907         * rt/mqueue.h: Likewise.
82908         * shadow/shadow.h: Likewise.
82909         * signal/signal.h: Likewise.
82910         * socket/send.c: Likewise.
82911         * socket/sendto.c: Likewise.
82912         * socket/sys/socket.h: Likewise.
82913         * stdio-common/printf.h: Likewise.
82914         * stdlib/bits/stdlib.h: Likewise.
82915         * stdlib/fmtmsg.h: Likewise.
82916         * stdlib/monetary.h: Likewise.
82917         * stdlib/stdlib.h: Likewise.
82918         * stdlib/ucontext.h: Likewise.
82919         * streams/stropts.h: Likewise.
82920         * string/argz.h: Likewise.
82921         * string/bits/string2.h: Likewise.
82922         * string/string.h: Likewise.
82923         * string/strings.h: Likewise.
82924         * sunrpc/rpc/auth.h: Likewise.
82925         * sunrpc/rpc/auth_des.h: Likewise.
82926         * sunrpc/rpc/clnt.h: Likewise.
82927         * sunrpc/rpc/netdb.h: Likewise.
82928         * sunrpc/rpc/pmap_clnt.h: Likewise.
82929         * sunrpc/rpc/xdr.h: Likewise.
82930         * sysdeps/generic/inttypes.h: Likewise.
82931         * sysdeps/generic/net/if.h: Likewise.
82932         * sysdeps/generic/sys/swap.h: Likewise.
82933         * sysdeps/gnu/net/if.h: Likewise.
82934         * sysdeps/gnu/utmpx.h: Likewise.
82935         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
82936         * sysdeps/i386/i486/bits/string.h: Likewise.
82937         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
82938         * sysdeps/s390/bits/string.h: Likewise.
82939         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
82940         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
82941         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
82942         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
82943         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
82944         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
82945         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
82946         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
82947         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
82948         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
82949         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
82950         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
82951         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
82952         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
82953         * sysdeps/unix/sysv/linux/readv.c: Likewise.
82954         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
82955         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
82956         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
82957         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
82958         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
82959         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
82960         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
82961         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
82962         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
82963         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
82964         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
82965         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
82966         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
82967         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
82968         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
82969         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
82970         * sysvipc/sys/ipc.h: Likewise.
82971         * sysvipc/sys/msg.h: Likewise.
82972         * sysvipc/sys/sem.h: Likewise.
82973         * sysvipc/sys/shm.h: Likewise.
82974         * termios/termios.h: Likewise.
82975         * time/sys/time.h: Likewise.
82976         * time/time.h: Likewise.
82977         * wcsmbs/bits/wchar2.h: Likewise.
82978         * wcsmbs/uchar.h: Likewise.
82979         * wcsmbs/wchar.h: Likewise.
82980         * wctype/wctype.h: Likewise.
82981
82982         [BZ #13551]
82983         * Makeconfig: Remove all but ELF support including AIX support.
82984         * Makerules: Likewise.
82985         * config.h.in: Likewise.
82986         * config.make.in: Likewise.
82987         * configure: Likewise.
82988         * configure.in: Likewise.
82989         * csu/Makefile: Likewise.
82990         * csu/version.c: Likewise.
82991         * debug/Makefile: Likewise.
82992         * dlfcn/Makefile: Likewise.
82993         * elf/Makefile: Likewise.
82994         * extra-lib.mk: Likewise.
82995         * iconv/Makefile: Likewise.
82996         * include/libc-symbols.h: Likewise.
82997         * include/shlib-compat.h: Likewise.
82998         * resolv/Makefile: Likewise.
82999         * resolv/res_libc.c: Likewise.
83000         * rt/Makefile: Likewise.
83001         * sysdeps/i386/asm-syntax.h: Likewise.
83002         * sysdeps/i386/sysdep.h: Likewise.
83003         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
83004         * sysdeps/mach/sysdep.h: Likewise.
83005         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
83006         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
83007         * sysdeps/s390/asm-syntax.h: Likewise.
83008         * sysdeps/s390/s390-32/sysdep.h: Likewise.
83009         * sysdeps/s390/s390-64/sysdep.h: Likewise.
83010         * sysdeps/sh/sysdep.h: Likewise.
83011         * sysdeps/unix/sparc/sysdep.h: Likewise.
83012         * sysdeps/wordsize-32/divdi3.c: Likewise.
83013         * sysdeps/x86_64/sysdep.h: Likewise.
83014
83015         * argp/Versions: Remove _argp_unlock_xxx.
83016
83017         [BZ #13559]
83018         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
83019         * abilist/libBrokenLocale.abilist: Likewise.
83020         * abilist/libanl.abilist: Likewise.
83021         * abilist/libc.abilist: Likewise.
83022         * abilist/libcrypt.abilist: Likewise.
83023         * abilist/libdl.abilist: Likewise.
83024         * abilist/libm.abilist: Likewise.
83025         * abilist/libnsl.abilist: Likewise.
83026         * abilist/libpthread.abilist: Likewise.
83027         * abilist/libresolv.abilist: Likewise.
83028         * abilist/librt.abilist: Likewise.
83029         * abilist/libthread_db.abilist: Likewise.
83030         * abilist/libutil.abilist: Likewise.
83031         * abilist/libnss_db.abilist: New file.
83032
83033         * scripts/abilist.awk: Add support for indirect functions.
83034
83035         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
83036
83037         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
83038
83039         * shlib-versions: Remove entries for ports architectures.
83040
83041         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
83042         files in ports.
83043         * elf/stackguard-macros.h: Remove support for IA-64.
83044         * elf/tst-auditmod1.c: Likewise.
83045         * sysdeps/generic/ldsodefs.h: Likewise.
83046
83047         * sysdeps/unix/sysv/linux/configure.in: Ports should define
83048         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
83049         configure files.
83050
83051         [BZ #13552]
83052         * configure.in: Remove --enable-omitfp support.
83053         * FAQ.in: Adjust.
83054         * config.make.in: Likewise.
83055         * Makeconfig: Likewise.
83056         * manual/install.texi: Likewise.
83057
83058         In case anyone cares, the IA-64 architecture could move to ports.
83059         * sysdeps/ia64/*: Removed.
83060         * sysdeps/unix/sysv/linux/ia64/*: Removed.
83061         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
83062
83063         [BZ #13555]
83064         * configure.in: Remove entries for unsupported architectures.
83065
83066         [BZ #13533]
83067         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
83068         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
83069         routines.
83070         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
83071         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
83072         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
83073         fall back to using wcrtomb.
83074         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
83075         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
83076         renaming.
83077         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
83078         * wcsmbs/tst-c16c32-1.c: New file.
83079
83080         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
83081         local variable.
83082
83083         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
83084
83085         * elf/tst-unique3.cc: Add explicit declaration of gets.
83086         * elf/tst-unique3lib.cc: Likewise.
83087         * elf/tst-unique3lib2.cc: Likewise.
83088         * elf/tst-unique4.cc: Likewise.
83089
83090         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
83091
83092 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
83093
83094         [BZ #13566]
83095         * assert/assert.h (static_assert): Don't define for C++.
83096         * libio/stdio.h (gets): Do declare for C++ <= C++11.
83097         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
83098
83099 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
83100
83101         * iconv/loop.c (single loop): Fix assertion in storing of
83102         remaining bytes.
83103
83104         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
83105
83106 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
83107
83108         * posix/getconf.c: Update copyright year.
83109         * nss/getent.c: Likewise.
83110         * nss/makedb.c: Likewise.
83111         * iconv/iconvconfig.c: Likewise.
83112         * iconv/iconv_prog.c: Likewise.
83113         * elf/ldconfig.c: Likewise.
83114         * elf/pldd.c: Likewise.
83115         * elf/sotruss.ksh: Likewise.
83116         * catgets/gencat.c: Likewise.
83117         * csu/version.c: Likewise.
83118         * elf/ldd.bash.in: Likewise.
83119         * elf/sprof.c (print_version): Likewise.
83120         * locale/programs/locale.c: Likewise.
83121         * locale/programs/localedef.c: Likewise.
83122         * login/programs/pt_chown.c: Likewise.
83123         * nscd/nscd.c (print_version): Likewise.
83124         * debug/xtrace.sh: Likewise.
83125         * malloc/memusage.sh: Likewise.
83126         * malloc/mtrace.pl: Likewise.
83127         * debug/catchsegv.sh: Likewise.
83128
83129 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
83130
83131         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
83132         pure attribute.
83133
83134 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
83135
83136         [BZ #13533]
83137         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
83138         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
83139         transformations.
83140         * iconv/gconv_int.h: Likewise.
83141         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
83142         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
83143         from libc for GLIBC_2.16.
83144         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
83145         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
83146         * wcsmbs/uchar.h: Really define mbstate_t.
83147         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
83148         * wcsmbs/c16rtomb.c: New file.
83149         * wcsmbs/mbrtoc16.c: New file.
83150         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
83151         for C/POSIX locale.
83152         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
83153         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
83154
83155         * wcsmbs/wchar.h: Add missing __restrict.
83156
83157 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
83158
83159         [BZ #13532]
83160         * time/Makefile (routines): Add timespec_get.
83161         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
83162         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
83163         timespec for ISO C11.
83164         * time/timespec_get.c: New file.
83165         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
83166         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
83167
83168         [BZ #13531]
83169         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
83170         * stdlib/stdlib.h: Declare aligned_alloc.
83171         * Versions.def: Add GLIBC_2.16 for libc.
83172         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
83173
83174         [BZ 13527]
83175         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
83176         ISO C11.
83177
83178         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
83179         code.
83180
83181         [BZ #13528]
83182         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
83183
83184         [BZ #13529]
83185         * assert/assert.h (static_assert): Define.
83186
83187         * version.h: Update for 2.16 development version.
83188
83189         [BZ #13526]
83190         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
83191         _ISOC11_SOURCE.
83192
83193         * version.h (RELEASE): Bump for 2.15 release.
83194         * include/features.h (__GLIBC_MINOR__): Bump to 15.
83195
83196         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
83197         Patch by Marek Polacek <mpolacek@redhat.com>.
83198
83199         * bits/byteswap.h: Protect long long constants with __extension__.
83200         * sysdeps/i386/bits/byteswap.h: Likewise.
83201         * sysdeps/ia64/bits/byteswap.h: Likewise.
83202         * sysdeps/s390/bits/byteswap.h: Likewise.
83203         * sysdeps/x86_64/bits/byteswap.h: Likewise.
83204
83205 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
83206
83207         [BZ #13540]
83208         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
83209         destination buffer.
83210         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
83211
83212 2011-12-23  Marek Polacek  <polacek@redhat.com>
83213
83214         * elf/dl-addr.c (determine_info): Add inline keyword.
83215         * elf/tst-auditmod4b.c (check_avx): Likewise.
83216         * elf/tst-auditmod6b.c (check_avx): Likewise.
83217         * elf/tst-auditmod6c.c (check_avx): Likewise.
83218         * elf/tst-auditmod7b.c (check_avx): Likewise.
83219
83220 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
83221
83222         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
83223         !__SSE_MATH__.
83224
83225 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
83226
83227         [BZ #13540]
83228         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
83229         processing for last bytes.
83230
83231 2011-08-06  Bruno Haible  <bruno@clisp.org>
83232
83233         [BZ #13061]
83234         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
83235         U+0385, not to U+1FEE.
83236
83237         [BZ #13062]
83238         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
83239         entry for U+00A5 U+0301.
83240
83241 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
83242
83243         [BZ #13166]
83244         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
83245         buffer for the output is too small.
83246
83247         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
83248         optimization.
83249
83250         [BZ #13185]
83251         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
83252         SSE flags if possible.
83253
83254 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
83255
83256         [BZ #13540]
83257         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
83258         processing for last bytes.
83259
83260 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
83261
83262         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
83263         (syscall-list-default-options, syscall-list-default-condition)
83264         (syscall-list-includes): Define.
83265         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
83266         list of ABIs and options and #if conditions for each ABI.  Do not
83267         handle common syscalls between ABIs specially.
83268         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
83269         Remove.
83270         (syscall-list-variants, syscall-list-32bit-options)
83271         (syscall-list-32bit-condition, syscall-list-64bit-options)
83272         (syscall-list-64bit-condition): Define.
83273         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
83274         (syscall-list-variants, syscall-list-32bit-options)
83275         (syscall-list-32bit-condition, syscall-list-64bit-options)
83276         (syscall-list-64bit-condition): Define.
83277         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
83278         Remove.
83279         (syscall-list-variants, syscall-list-32bit-options)
83280         (syscall-list-32bit-condition, syscall-list-64bit-options)
83281         (syscall-list-64bit-condition): Define.
83282         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
83283         Remove.
83284         (syscall-list-variants, syscall-list-32bit-options)
83285         (syscall-list-32bit-condition, syscall-list-64bit-options)
83286         (syscall-list-64bit-condition): Define.
83287
83288 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
83289
83290         * locale/iso-639.def: Add brx entry.
83291
83292         [BZ #13328]
83293         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
83294         Proposed by Mariusz_Cukr <marcukr@op.pl>.
83295
83296         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
83297         __feraiseexcept_renamed.
83298
83299 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
83300
83301         [BZ #13538]
83302         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
83303         EPOLLET with unsigned values.
83304         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
83305         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
83306
83307         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
83308         to large cancellation.
83309         * math/s_cacoshf.c: Likewise.
83310         * math/s_cacoshl.c: Likewise.
83311
83312 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
83313
83314         [BZ #13305]
83315         [BZ #12786]
83316         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
83317         * math/s_cacoshf.c: Likewise.
83318         * math/s_cacoshl.c: Likewise.
83319
83320 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
83321
83322         [BZ #13439]
83323         * iconv/gconv.h: Define __GCONV_SWAP.
83324         * iconvdata/unicode.c: The swap bit must be stored in __flags.
83325         * iconvdata/utf-16.c: Likewise.
83326         * iconvdata/utf-32.c: Likewise.
83327
83328 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
83329
83330         [BZ #13524]
83331         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
83332         numerator after shifting it by one limb.
83333
83334 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
83335
83336         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
83337         under [__USE_EXTERN_INLINES].
83338
83339 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
83340
83341         [BZ #13446]
83342         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
83343
83344 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
83345
83346         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
83347         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
83348         optimized code.
83349         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
83350         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
83351         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
83352         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
83353         for strncasecmp/strncasecmp_l compilation.
83354         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
83355         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
83356
83357 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
83358
83359         [BZ #13484]
83360         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
83361         of __asm__.
83362
83363 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
83364
83365         [BZ #13506]
83366         * time/tzfile.c (__tzfile_read): Check values from file header.
83367
83368 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
83369
83370         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
83371         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
83372         * powerpc/powerpc32/dl-start.S: Likewise.
83373         * powerpc/powerpc32/elf/start.S: Likewise.
83374         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
83375         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
83376         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
83377         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
83378         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
83379         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
83380         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
83381         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
83382         * powerpc/powerpc32/fpu/s_round.S: Likewise.
83383         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
83384         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
83385         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
83386         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
83387         * powerpc/powerpc32/memset.S: Likewise.
83388         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
83389         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
83390         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
83391         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
83392         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
83393         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
83394         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
83395         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
83396         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
83397         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
83398         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
83399         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
83400         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
83401
83402 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
83403
83404         * math/libm-test.inc: Added more nearbyint tests.
83405         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
83406         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
83407         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
83408         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
83409
83410 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
83411
83412         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
83413         FD_CLOEXEC.
83414
83415 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
83416
83417         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
83418         Add wcscpy-ssse3 wcscpy-c.
83419         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
83420         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
83421         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
83422         * sysdeps/x86_64/wcschr.S: New file.
83423         * sysdeps/x86_64/wcsrchr.S: New file.
83424         * string/test-strcmp.c: Remove checking of wcscmp function for
83425         wrong alignments.
83426         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
83427         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
83428         wcsrchr-sse2 wcsrchr-c.
83429         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
83430         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
83431         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
83432         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
83433         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
83434         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
83435         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
83436         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
83437         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
83438         * wcsmbc/wcschr.c (WCSCHR): New macro.
83439
83440 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
83441
83442         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
83443         * wcsmbs/test-wcsrchr.c: New file.
83444         * string/test-strrchr.c: Add wcsrchr support.
83445         (WIDE): New macro.
83446         * wcsmbs/test-wcscpy.c: New file.
83447         * string/test-strcpy.c: Add wcscpy support.
83448         (WIDE): New macro.
83449
83450 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
83451
83452         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
83453         the inner loop.
83454
83455 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
83456
83457         [BZ #13472]
83458         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
83459
83460 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
83461
83462         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
83463         Minor optimizations.
83464
83465         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
83466         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
83467         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
83468
83469 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
83470
83471         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
83472         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
83473         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
83474         for gcc to avoid warnings.
83475         * inet/Makefile (tests): Add tst-checks.
83476         * inet/tst-checks.c: New file.
83477
83478         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
83479         warning.
83480
83481         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
83482         __wmemcmp_sse2.
83483
83484         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
83485         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
83486
83487         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
83488
83489 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
83490
83491         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
83492         problem.
83493
83494         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
83495
83496 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
83497
83498         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
83499         conditional on GCC version.
83500         (__arch_compare_and_exchange_val_8_acq)
83501         (__arch_compare_and_exchange_val_16_acq)
83502         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
83503         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
83504         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
83505
83506 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
83507
83508         * sysdeps/sh/backtrace.c: New file.
83509
83510 2011-12-02  Andreas Schwab  <schwab@redhat.com>
83511
83512         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
83513         parenthesis.
83514
83515 2011-12-01  Andreas Schwab  <schwab@redhat.com>
83516
83517         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
83518         falling back to utime.
83519
83520 2011-11-30  Andreas Schwab  <schwab@redhat.com>
83521
83522         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
83523         expectations for float.
83524
83525 2011-11-29  Andreas Schwab  <schwab@redhat.com>
83526
83527         * locale/weight.h (findidx): Add parameter len.
83528         * locale/weightwc.h (findidx): Likewise.
83529         * posix/fnmatch_loop.c (FCT): Adjust caller.
83530         * posix/regcomp.c (build_equiv_class): Likewise.
83531         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
83532         * posix/regexec.c (check_node_accept_bytes): Likewise.
83533         * string/strcoll_l.c (STRCOLL): Likewise.
83534         * string/strxfrm_l.c (STRXFRM): Likewise.
83535
83536 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
83537
83538         * Makefile.in: Remove CVSOPT handling.
83539         * configure.in: Remove use of AC_REVISION.
83540         * iconvdata/Makefile (distribute): No need to filter out CVS.
83541         * scripts/list-sources.sh: Remove CVS, subversion and monotone
83542         handling.
83543
83544 2011-11-16  Andreas Schwab  <schwab@redhat.com>
83545
83546         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
83547         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
83548         [USE_AS_STRNCASECMP_L]: Likewise.
83549         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
83550         NO_TLS_DIRECT_SEG_REFS.
83551         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
83552         Fix argument offsets for non-PIC.
83553         [USE_AS_STRNCASECMP_L]: Likewise.
83554         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
83555         NO_TLS_DIRECT_SEG_REFS.
83556
83557 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
83558
83559         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
83560         O_CLOEXEC.
83561         * locale/loadlocale.c (_nl_load_locale): Likewise.
83562
83563 2011-11-15  Andreas Schwab  <schwab@redhat.com>
83564
83565         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
83566         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
83567         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
83568         (SYSCALL_GETTIME): Set errno on error.
83569
83570         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
83571         count references to noai6ai_cached.
83572
83573 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
83574
83575         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
83576
83577         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
83578         FD_CLOEXEC for /proc/self/maps.
83579
83580         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
83581         FD_CLOEXEC for /proc/meminfo.
83582
83583         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
83584         gai.conf.
83585
83586         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
83587         FD_CLOEXEC for given file.
83588
83589         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
83590
83591         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
83592         FD_CLOEXEC for /etc/hosts.
83593         (_gethtent): Likewise.
83594
83595         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
83596
83597         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
83598         cancellation and set FD_CLOEXEC for /etc/netgroup.
83599
83600         * nss/nss_files/files-key.c (search): Don't allow cancellation when
83601         reading /etc/publickey.
83602
83603         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
83604         allow cancellation when reading /etc/group.
83605
83606         * nss/nss_files/files-alias.c (internal_setent): Don't allow
83607         cancellation.
83608         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
83609
83610         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
83611         when using data file.
83612
83613         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
83614
83615         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
83616         (write_nis_obj): Use "c" and "e" in fopen.
83617
83618         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
83619
83620         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
83621
83622         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
83623
83624         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
83625
83626         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
83627         locale.alias.
83628
83629         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
83630
83631         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
83632
83633         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
83634
83635         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
83636         file parsing and set FD_CLOEXEC.
83637
83638 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
83639
83640         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
83641
83642 2011-11-14  Andreas Schwab  <schwab@redhat.com>
83643
83644         * malloc/arena.c (arena_get2): Don't call reused_arena when
83645         _int_new_arena failed.
83646
83647 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
83648
83649         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
83650         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
83651         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
83652         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
83653         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
83654         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
83655         to compile strcasecmp and strncasecmp.
83656         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
83657         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
83658
83659         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
83660
83661 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
83662
83663         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
83664         locale-defines.sym to gen-as-const-headers.
83665         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
83666         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
83667         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
83668         to compile strcasecmp and strncasecmp.
83669         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
83670         strcasecmp_l and strncasecmp_l.
83671         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
83672         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
83673         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
83674         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
83675         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
83676         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
83677         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
83678         * sysdeps/i386/i686/multiarch/strncase.S: New file.
83679         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
83680         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
83681         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
83682
83683 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
83684
83685         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
83686         result of SYSDEP_GETTIME_CPU to retval.
83687         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
83688         parameter list to macro.  Remove trailing semicolon.  Adjust users.
83689
83690         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
83691         variable.
83692
83693         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
83694         mantissa words.
83695         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
83696
83697         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
83698         from unused variable.
83699
83700         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
83701         DWARF definitions.
83702         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
83703         for assembling.
83704
83705         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
83706         over namespaces.
83707
83708         * sunrpc/rpc_prot.c (rejected): Fix case value.
83709
83710         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
83711         unsigned long long int to avoid warnings in shift.
83712
83713         * posix/regex_internal.c (re_string_reconstruct): Actually use result
83714         of use of trans.
83715         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
83716         variable tmp.
83717
83718         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
83719         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
83720         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
83721
83722         * nis/nis_table.c (nis_list): Use variable of correct type for
83723         result of __follow_path call.
83724
83725 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
83726
83727         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
83728         of math functions ceil, trunc, floor, round, and sqrt, when
83729         avaliable on the platform.
83730         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
83731         name clash.
83732         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
83733         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
83734         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
83735
83736 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
83737
83738         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
83739         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
83740
83741 2011-11-11  Roland McGrath  <roland@hack.frob.com>
83742
83743         * include/unistd.h: Fix __readlink return type.
83744         Reported by Chris Metcalf <cmetcalf@tilera.com>.
83745
83746 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
83747
83748         * stdlib/ucontext.h: Undo last change for makecontext.
83749
83750 2011-11-11  Andreas Schwab  <schwab@redhat.com>
83751
83752         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
83753
83754         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
83755         * setjmp/setjmp.h: Mark functions as non-leaf.
83756         * setjmp/bits/setjmp2.h: Likewise.
83757         * stdlib/ucontext.h: Likewise.
83758
83759 2011-11-10  Andreas Schwab  <schwab@redhat.com>
83760
83761         * malloc/arena.c (_int_new_arena): Don't increment narenas.
83762         (reused_arena): Don't check arena limit.
83763         (arena_get2): Atomically check arena limit.
83764
83765 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
83766
83767         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
83768         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
83769
83770         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
83771         instructions.
83772
83773 2011-11-07  Andreas Schwab  <schwab@redhat.com>
83774
83775         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
83776         handler when locking.
83777
83778         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
83779         Fix size of allocated buffer.
83780
83781 2011-11-04  Andreas Schwab  <schwab@redhat.com>
83782
83783         [BZ #10103]
83784         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
83785         declarations for long double functions.
83786         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
83787
83788         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
83789
83790 2011-11-03  Andreas Schwab  <schwab@redhat.com>
83791
83792         * nscd/nscd.c (main): Don't start AVC thread until credentials are
83793         installed.
83794
83795         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
83796         is disabled.
83797
83798 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
83799
83800         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
83801
83802 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
83803
83804         * include/alloca.h (stackinfo_alloca_round): Define.
83805         (extend_alloca): Use it.
83806         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
83807         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
83808         here.
83809
83810         * scripts/check-local-headers.sh: Ignore libaudit.h.
83811
83812         * nscd/Makefile (extra-objs): Make recursively expanded.
83813
83814 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
83815
83816         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
83817         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
83818
83819         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
83820         * posix/tst-rfc3484-2.c: Likewise.
83821         * posix/tst-rfc3484-3.c: Likewise.
83822
83823         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
83824         process_vm_writev.
83825         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
83826         process_vm_writev.
83827         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
83828         process_vm_writev from libc using GLIBC_2.15 version.
83829
83830         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
83831
83832 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
83833
83834         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
83835         stack usage.
83836
83837 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
83838
83839         [BZ #13367]
83840         * nss/getent.c (initgroups_keys): Show error message in case no group
83841         names are given.
83842
83843         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
83844         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
83845         __bump_nl_timestamp.
83846         * nscd/connections (nscd_init): When host database is served open
83847         netlink socket and request notification about configuration changes.
83848         (main_loop_poll): Track netlink file descriptor and bump timestamp
83849         in case data becomes available.
83850         (main_loop_epoll): Likewise.
83851         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
83852         (database_pers_head): Add extra_data fileds.
83853         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
83854         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
83855         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
83856         Adjust caller.
83857         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
83858         in6ai data, call __free_in6ai.
83859         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
83860         Add -DHAVE_NETLINK.
83861         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
83862         interface information.  Reuse previous data if netlink timestamp
83863         is not changed.
83864         (__bump_nl_timestamp): New function.
83865         (__free_in6ai): New function.
83866
83867 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
83868
83869         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
83870         close_not_cancel_no_status here.
83871         (__check_pf): Reorganize code a bit to not call close twice if OOM.
83872
83873 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
83874
83875         [BZ #13276]
83876         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
83877         return value.
83878
83879         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
83880         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
83881         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
83882
83883 2011-07-03  Andreas Jaeger  <aj@suse.de>
83884
83885         [BZ #10709]
83886         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
83887         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
83888         * math/libm-test.inc (sin_test): Add test case.
83889
83890 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
83891
83892         [BZ #13337]
83893         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
83894         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
83895
83896         * elf/chroot_canon.c (chroot_canon): Cleanups.
83897
83898         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
83899
83900         [BZ #13335]
83901         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
83902         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
83903
83904         * string/test-strchr.c: Make usable for strchrnul testing.
83905         * string/test-strchrnul.c: New file.
83906         * string/Makefile (strop-tests): Add strchrnul.
83907
83908         * po/it.po: Update from translation team.
83909         * po/es.po: Likewise.
83910
83911 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
83912
83913         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
83914         the three constants needed as parameters.  Drop the others.
83915         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
83916         __m128i_strloadu_tolower.
83917         Create and initialize variable zero and use it in all the places
83918         where _mm_setzero_si128 was used.
83919
83920         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
83921         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
83922         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
83923         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
83924         anymore.
83925         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
83926         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
83927         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
83928         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
83929         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
83930         __mpranred, __mptan.
83931         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
83932         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
83933         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
83934         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
83935         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
83936         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
83937         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
83938         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
83939         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
83940
83941 2011-10-28  Andreas Schwab  <schwab@redhat.com>
83942
83943         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
83944         redefine if SHARED.
83945         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
83946
83947         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
83948         wide char related routines to wcsmbs subdir.
83949
83950 2011-10-27  Andreas Schwab  <schwab@redhat.com>
83951
83952         [BZ #13344]
83953         * misc/sys/cdefs.h (__THROWNL): Define.
83954         * posix/unistd.h: Use __THREADNL instead of __THREAD
83955         for memory synchronization functions.
83956
83957 2011-10-26  Roland McGrath  <roland@hack.frob.com>
83958
83959         [BZ #13349]
83960         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
83961         doesn't exist.
83962         * manual/stdio.texi (Obstack Streams): Node removed.
83963
83964 2011-10-26  Andreas Schwab  <schwab@redhat.com>
83965
83966         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
83967         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
83968         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
83969
83970         * math/math_private.h (math_force_eval): Allow non-addressable
83971         arguments.
83972         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
83973
83974 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
83975
83976         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
83977         file is not needed.
83978
83979         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
83980         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
83981         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
83982         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
83983         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
83984         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
83985         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
83986         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
83987         Add AVX variants.
83988         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
83989         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
83990         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
83991         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
83992         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
83993         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
83994         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
83995         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
83996         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
83997         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
83998         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
83999         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
84000         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
84001         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
84002         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
84003         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
84004         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
84005         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
84006         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
84007
84008         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
84009         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
84010
84011         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
84012         place.  Use VEX encoding when compiling for AVX.
84013
84014 2011-10-25  Andreas Schwab  <schwab@redhat.com>
84015
84016         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
84017         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
84018
84019         * string/test-strchr.c (do_test): Don't generate NUL bytes.
84020
84021 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
84022
84023         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
84024         useless if() expression.
84025         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
84026         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
84027         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
84028         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
84029         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
84030         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
84031         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
84032         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
84033         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
84034         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
84035         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
84036         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
84037         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
84038         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
84039         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
84040         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
84041         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
84042         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
84043         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
84044
84045         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
84046
84047 2011-10-25  Andreas Schwab  <schwab@redhat.com>
84048
84049         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
84050         condition.
84051         * elf/dl-fini.c (_dl_sort_fini): Likewise.
84052
84053 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
84054
84055         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
84056         .text section.  Avoid duplicate constants.
84057         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
84058         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
84059         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
84060         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
84061         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
84062         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
84063         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
84064         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
84065         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
84066         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
84067         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
84068         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
84069         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
84070         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
84071         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
84072         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
84073         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
84074         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
84075         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
84076         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
84077         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
84078         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
84079         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
84080         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
84081         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
84082         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
84083         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
84084         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
84085         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
84086         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
84087         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
84088         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
84089         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
84090         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
84091         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
84092         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
84093         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
84094         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
84095         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
84096         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
84097         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
84098         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
84099         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
84100         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
84101         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
84102
84103 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
84104
84105         * sysdeps/x86_64/dla.h: Move to ...
84106         * sysdeps/x86_64/fpu/dla.h: ...here.
84107         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
84108         situations.  Use __builtin_fma only for gcc 4.6 and up.
84109
84110         * config.make.in: Add have-mfma4 entry.
84111         * configure.in: Substitute libc_cv_cc_fma4.
84112         * math/Makefile (dbl-only-routines): Add sincostab.
84113         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
84114         Use __sincostab not sincos.
84115         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
84116         name is a macro.
84117         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
84118         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
84119         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
84120         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
84121         using __copysign.
84122         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
84123         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
84124         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
84125         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
84126         and __inv.
84127         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
84128         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
84129         __copysign.
84130         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
84131         define aliases when function name is a macro.
84132         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
84133         sysdeps/ieee754/dbl-64/sincos.tbl.
84134         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
84135         fma4-enabled routines.
84136         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
84137         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
84138         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
84139         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
84140         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
84141         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
84142         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
84143         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
84144         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
84145         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
84146         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
84147         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
84148         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
84149         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
84150         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
84151         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
84152         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
84153         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
84154         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
84155         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
84156         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
84157         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
84158         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
84159         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
84160         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
84161         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
84162         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
84163         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
84164         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
84165         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
84166
84167         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
84168         rename.
84169         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
84170         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
84171         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
84172         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
84173         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
84174         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
84175         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
84176         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
84177
84178 2011-10-24  Andreas Schwab  <schwab@redhat.com>
84179
84180         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
84181
84182 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
84183
84184         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
84185
84186         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
84187         prediction.
84188         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
84189
84190         * string/strnlen.c: Don't define STRNLEN, reverse logic.
84191         Remove unused variable magic_bits.
84192         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
84193
84194         * string/strnlen.c: Define and use STRNLEN macro.
84195         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
84196         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
84197         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
84198         * wcsmbs/wcslen.c: Define and use WCSLEN.
84199         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
84200         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
84201         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
84202         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
84203         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
84204         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
84205         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
84206
84207 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
84208
84209         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
84210         strnlen-sse2-no-bsf.
84211         Rename strlen-no-bsf to strlen-sse2-no-bsf.
84212         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
84213         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
84214         Add strnlen support.
84215         (USE_AS_STRNLEN): New macro.
84216         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
84217         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
84218         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
84219         * sysdeps/x86_64/wcslen.S: New file.
84220
84221 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
84222
84223         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
84224         XMM-moves are used for copying on small sizes.
84225
84226 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
84227
84228         * wcsmbs/Makefile (strop-tests): Add wcschr.
84229         * wcsmbs/test-wcschr.c: New file.
84230         * string/test-strchr.c: Update.
84231         Add wcschr support.
84232         (WIDE): New macro.
84233
84234 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
84235
84236         * wcsmbs/Makefile (strop-tests): Add wcslen.
84237         * wcsmbs/test-wcslen.c: New file.
84238         * string/test-strlen.c: Update.
84239         Add wcslen support.
84240         (WIDE): New macro.
84241
84242 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
84243
84244         * po/it.po: Update from translation team.
84245
84246 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
84247
84248         * sysdeps/x86_64/wcscmp.S: Update.
84249         Fix wrong comparison semantics.
84250         wcscmp shall use signed comparison not unsigned.
84251         Don't use substraction to avoid overflow bug.
84252         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
84253         * wcsmbc/wcscmp.c: Likewise.
84254         * string/test-strcmp.c: Likewise.
84255         Add new tests to check cases with negative values.
84256
84257 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
84258
84259         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
84260         * sysdeps/x86_64/dla.h: ...here.  New file.
84261         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
84262         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
84263         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
84264         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
84265         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
84266         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
84267         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
84268         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
84269         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
84270
84271 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
84272
84273         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
84274         __ynl_finite aliases.
84275
84276 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
84277
84278         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
84279
84280         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
84281         define DLA_FMA.
84282         [DLA_FMA] (EMULV): Use DLA_FMA.
84283         [DLA_FMA] (MUL12): Use EMULV.
84284         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
84285         that are not needed.
84286         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
84287         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
84288         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
84289         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
84290         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
84291         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
84292         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
84293
84294 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
84295
84296         * math/s_nan.c: Undef __nan.
84297         * math/s_nanf.c: Undef __nanf.
84298         * math/s_nanl.c: Undef __nanl.
84299         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
84300         "math_private.h".
84301
84302 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
84303
84304         * math/s_catan.c: Add branch predictions.
84305         * math/s_catanf.c: Likewise.
84306         * math/s_catanh.c: Likewise.
84307         * math/s_catanhf.c: Likewise.
84308         * math/s_catanhl.c: Likewise.
84309         * math/s_catanl.c: Likewise.
84310         * math/s_cexp.c: Likewise.
84311         * math/s_cexpf.c: Likewise.
84312         * math/s_cexpl.c: Likewise.
84313         * math/s_clog.c: Likewise.
84314         * math/s_clog10.c: Likewise.
84315         * math/s_clog10f.c: Likewise.
84316         * math/s_clog10l.c: Likewise.
84317         * math/s_clogf.c: Likewise.
84318         * math/s_clogl.c: Likewise.
84319         * math/s_csqrt.c: Likewise.
84320         * math/s_csqrtf.c: Likewise.
84321         * math/s_csqrtl.c: Likewise.
84322         * math/s_ctanf.c: Likewise.
84323         * math/s_ctanh.c: Likewise.
84324         * math/s_ctanhf.c: Likewise.
84325         * math/s_ctanhl.c: Likewise.
84326         * math/s_ctanl.c: Likewise.
84327
84328         * math/math_private.h: Define __nan, __nanf, __nanl.
84329         * math/s_cacosh.c: Include <math_private.h>.
84330         * math/s_cacoshl.c: Likewise.
84331         * math/s_casinh.c: Likewise.
84332         * math/s_casinhf.c: Likewise.
84333         * math/s_casinhl.c: Likewise.
84334         * math/s_ccos.c: Rely entire on ccosh.
84335         * math/s_ccosf.c: Rely entire on ccoshf.
84336         * math/s_ccosl.c: Rely entirely on ccoshl.
84337         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
84338         Remove tests for FE_INVALID.
84339         * math/s_ccoshf.c: Likewise.
84340         * math/s_ccoshl.c: Likewise.
84341         * math/s_csin.c: Likewise.
84342         * math/s_csinf.c: Likewise.
84343         * math/s_csinh.c Likewise.
84344         * math/s_csinhf.c: Likewise.
84345         * math/s_csinhl.c: Likewise.
84346         * math/s_csinl.c: Likewise.
84347         * math/s_ctan.c: Likewise.
84348         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
84349         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
84350         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
84351
84352 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
84353
84354         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
84355         compilation problems.
84356
84357         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
84358         __builtin_expect.
84359
84360 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
84361
84362         * sysdeps/i386/configure.in: Test for -mfma4 option.
84363         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
84364         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
84365         COMMON_CPUID_INDEX_80000001.
84366         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
84367         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
84368         use it if FMA3 is not supported.
84369         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
84370
84371         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
84372         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
84373
84374 2011-10-20  Andreas Schwab  <schwab@redhat.com>
84375
84376         [BZ #12892]
84377         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
84378         it would create a cycle with a link time dependency.
84379
84380 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
84381
84382         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
84383         instruction.
84384         * string/Makefile (strop-tests): Add rawmemchr.
84385         * string/test-rawmemchr.c: New file.
84386
84387         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
84388         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
84389         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
84390         when compiling str{,n}casecmp and when AVX is available.  Hook up
84391         new optimized code in initializers.
84392
84393 2011-10-19  Andreas Schwab  <schwab@redhat.com>
84394
84395         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
84396         __feraiseexcept instead of feraiseexcept.
84397
84398 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
84399
84400         * math/math_private.h: Define defaults for libc_fetestexcept and
84401         libc_feupdateenv.
84402         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
84403         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
84404         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
84405         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
84406         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
84407         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
84408         libc_fetestexcept and libc_feupdateenv.
84409
84410         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
84411         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
84412         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
84413         * sysdeps/x86_64/fpu/math_private.h: Define special version of
84414         libc_feholdexcept_setround.
84415
84416         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
84417         Add s_nearbyint-c and s_nearbyintf-c.
84418         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
84419         nearbyintf inlines.
84420         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
84421         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
84422         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
84423         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
84424
84425         * math/math_private.h: Define defaults for libc_fegetround,
84426         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
84427         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
84428         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
84429         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
84430         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
84431         standard functions.
84432         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
84433         Remove comments and hacks for old compiler versions.
84434         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
84435         libc_fegetround, libc_fesetround, libc_feholdexcept, and
84436         libc_feholdexceptl.
84437
84438 2011-10-18  Andreas Schwab  <schwab@redhat.com>
84439
84440         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
84441         (__feraiseexcept_renamed): Add __NTH.
84442         (feraiseexcept): Add __NTH.  Rename local variables to fix
84443         namespace violations.
84444
84445 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
84446
84447         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
84448
84449         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
84450
84451         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
84452         recently added interfaces.
84453         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
84454
84455         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
84456         about macro parameter expansion.
84457
84458         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
84459         __NO_MATH_INLINES is defined.  Cleanups.
84460
84461         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
84462         and __floorf is target has SSE4.1.
84463         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
84464         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
84465         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
84466         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
84467
84468         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
84469         name.
84470         (floorf): Likewise.
84471
84472         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
84473
84474 2011-10-17  Andreas Schwab  <schwab@redhat.com>
84475
84476         * misc/sys/cdefs.h: Fix last change.
84477
84478         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
84479         database lookup.
84480
84481 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
84482
84483         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
84484
84485         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
84486         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
84487         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
84488         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
84489         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
84490         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
84491         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
84492         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
84493         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
84494         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
84495         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
84496         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
84497         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
84498         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
84499         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
84500         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
84501         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
84502         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
84503         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
84504         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
84505         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
84506         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
84507
84508         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
84509         ceil, ceilf, floor, floorf.
84510
84511         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
84512         Perform IRELATIVE relocations last.
84513
84514         * elf/do-rel.h: Add another parameter nrelative, replacing the
84515         local variable with the same name.  Change name of the function
84516         to end in Rel or Rela (uppercase).
84517         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
84518         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
84519         elf_dynamic_do_##reloc function.
84520
84521 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
84522
84523         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
84524         is sufficient, at least on modern CPUs.
84525
84526         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
84527
84528         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
84529         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
84530
84531         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
84532         __expl_finite.
84533         * math/bits/math-finite.h: Add entries for exp.
84534         * math/e_expl.c: Add __*_finite alias.
84535         * sysdeps/i386/fpu/e_exp.S: Likewise.
84536         * sysdeps/i386/fpu/e_expf.S: Likewise.
84537         * sysdeps/i386/fpu/e_expl.c: Likewise.
84538         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
84539         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
84540         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
84541         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
84542         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
84543         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
84544         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
84545
84546         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
84547         is sufficient, at least on modern CPUs.
84548
84549         * ctype/ctype-info.c (__ctype_init): Define.
84550         * include/ctype.h (__ctype_init): Declare.
84551         (__ctype_b_loc): The variable is always initialized.
84552         (__ctype_toupper_loc): Likewise.
84553         (__ctype_tolower_loc): Likewise.
84554         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
84555         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
84556
84557 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
84558
84559         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
84560
84561         * configure.in: Also look in $cxxmachine/include for C++ system
84562         headers.
84563
84564 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
84565
84566         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
84567         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
84568         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
84569         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
84570         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
84571         (USE_AS_WMEMCMP): New macro.
84572         Fixing indents.
84573         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
84574         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
84575         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
84576         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
84577         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
84578         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
84579         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
84580         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
84581         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
84582         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
84583         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
84584         (USE_AS_WMEMCMP): New macro.
84585         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
84586         * sysdeps/string/test-memcmp.c: Update.
84587         Fix simple_wmemcmp.
84588         Add new tests.
84589         * wcsmbs/wmemcmp.c: Update.
84590         (WMEMCMP): New macro.
84591         Fix overflow bug.
84592
84593 2011-10-12  Andreas Jaeger  <aj@suse.de>
84594
84595         [BZ #13268]
84596         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
84597
84598 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
84599
84600         * libio/iofwide.c (do_length): Avoid warning.
84601
84602         * ctype/ctype.h (__isctype_f): Add missing __THROW.
84603
84604 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
84605
84606         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
84607
84608         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
84609         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
84610         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
84611         * sysdeps/i386/i686/fpu/e_log.S: New file.
84612         * sysdeps/i386/i686/fpu/e_logf.S: New file.
84613         * sysdeps/i386/i686/fpu/e_logl.S: New file.
84614
84615         * ctype/ctype.h: Add support for inlined isXXX functions when
84616         compiling C++ code.
84617
84618 2011-10-14  Andreas Schwab  <schwab@redhat.com>
84619
84620         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
84621
84622         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
84623
84624 2011-10-13  Roland McGrath  <roland@hack.frob.com>
84625
84626         [BZ #13291]
84627         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
84628
84629 2011-10-13  Andreas Schwab  <schwab@redhat.com>
84630
84631         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
84632         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
84633         feraiseexcept.
84634
84635         * sysdeps/x86_64/memrchr.S: Check for zero size.
84636
84637         * string/stratcliff.c: Add memrchr tests.
84638
84639 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
84640
84641         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
84642         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
84643         rawmemchr-sse2 rawmemchr-sse2-bsf.
84644         * sysdeps/i386/i686/multiarch/memchr.S: New file.
84645         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
84646         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
84647         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
84648         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
84649         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
84650         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
84651         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
84652         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
84653         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
84654         * string/memrchr.c (MEMRCHR): New macro.
84655
84656 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
84657
84658         Add integration with gcc's -ffinite-math-only and optimize wrapper
84659         functions in libm.
84660         * Versions.def: Define GLIBC_2.15 version for libm.
84661         * math/Makefile (headers): Add bits/math-finite.h.
84662         * math/bits/math-finite.h: New file.
84663         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
84664         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
84665         * math/e_acoshl.c: Add __*_finite alias.
84666         * math/e_acosl.c: Likewise.
84667         * math/e_asinl.c: Likewise.
84668         * math/e_atan2l.c: Likewise.
84669         * math/e_atanhl.c: Likewise.
84670         * math/e_coshl.c: Likewise.
84671         * math/e_exp10.c: Likewise.
84672         * math/e_exp10f.c: Likewise.
84673         * math/e_exp10l.c: Likewise.
84674         * math/e_exp2l.c: Likewise.
84675         * math/e_fmodl.c: Likewise.
84676         * math/e_gammal_r.c: Likewise.
84677         * math/e_hypotl.c: Likewise.
84678         * math/e_j0l.c: Likewise.
84679         * math/e_j1l.c: Likewise.
84680         * math/e_jnl.c: Likewise.
84681         * math/e_lgammal_r.c: Likewise.
84682         * math/e_log10l.c: Likewise.
84683         * math/e_log2l.c: Likewise.
84684         * math/e_logl.c: Likewise.
84685         * math/e_powl.c: Likewise.
84686         * math/e_sinhl.c: Likewise.
84687         * math/e_sqrtl.c: Likewise.
84688         * math/e_scalb.c: Completely rewritten and optimized.
84689         * math/e_scalbf.c: Likewise.
84690         * math/e_scalbl.c: Likewise.
84691         * math/w_acos.c: Likewise.
84692         * math/w_acosf.c: Likewise.
84693         * math/w_acosl.c: Likewise.
84694         * math/w_acosh.c: Likewise.
84695         * math/w_acoshf.c: Likewise.
84696         * math/w_acoshl.c: Likewise.
84697         * math/w_asin.c: Likewise.
84698         * math/w_asinf.c: Likewise.
84699         * math/w_asinl.c: Likewise.
84700         * math/w_atan2.c: Likewise.
84701         * math/w_atan2f.c: Likewise.
84702         * math/w_atan2l.c: Likewise.
84703         * math/w_atanh.c: Likewise.
84704         * math/w_atanhf.c: Likewise.
84705         * math/w_atanhl.c: Likewise.
84706         * math/w_exp10.c: Likewise.
84707         * math/w_exp10f.c: Likewise.
84708         * math/w_exp10l.c: Likewise.
84709         * math/w_fmod.c: Likewise.
84710         * math/w_fmodf.c: Likewise.
84711         * math/w_fmodl.c: Likewise.
84712         * math/w_j0.c: Likewise.
84713         * math/w_j0f.c: Likewise.
84714         * math/w_j0l.c: Likewise.
84715         * math/w_j1.c: Likewise.
84716         * math/w_j1f.c: Likewise.
84717         * math/w_j1l.c: Likewise.
84718         * math/w_jn.c: Likewise.
84719         * math/w_jnf.c: Likewise.
84720         * math/w_log.c: Likewise.
84721         * math/w_logf.c: Likewise.
84722         * math/w_logl.c: Likewise.
84723         * math/w_log10.c: Likewise.
84724         * math/w_log10f.c: Likewise.
84725         * math/w_log10l.c: Likewise.
84726         * math/w_log2.c: Likewise.
84727         * math/w_log2f.c: Likewise.
84728         * math/w_log2l.c: Likewise.
84729         * math/w_pow.c: Likewise.
84730         * math/w_powf.c: Likewise.
84731         * math/w_powl.c: Likewise.
84732         * math/w_remainder.c: Likewise.
84733         * math/w_remainderf.c: Likewise.
84734         * math/w_remainderl.c: Likewise.
84735         * math/w_scalb.c: Likewise.
84736         * math/w_scalbf.c: Likewise.
84737         * math/w_scalbl.c: Likewise.
84738         * math/w_sqrt.c: Likewise.
84739         * math/w_sqrtf.c: Likewise.
84740         * math/w_sqrtl.c: Likewise.
84741         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
84742         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
84743         used.
84744         * math/math_private.h: Declare __kernel_standard_f.
84745         * math/w_cosh.c: Remove cruft and optimize a bit.
84746         * math/w_coshf.c: Likewise.
84747         * math/w_coshl.c: Likewise.
84748         * math/w_exp2.c: Likewise.
84749         * math/w_exp2f.c: Likewise.
84750         * math/w_exp2l.c: Likewise.
84751         * math/w_hypot.c: Likewise.
84752         * math/w_hypotf.c: Likewise.
84753         * math/w_hypotl.c: Likewise.
84754         * math/w_lgamma.c: Likewise.
84755         * math/w_lgamma_r.c: Likewise.
84756         * math/w_lgammaf.c: Likewise.
84757         * math/w_lgammaf_r.c: Likewise.
84758         * math/w_lgammal.c: Likewise.
84759         * math/w_lgammal_r.c: Likewise.
84760         * math/w_sinh.c: Likewise.
84761         * math/w_sinhf.c: Likewise.
84762         * math/w_sinhl.c: Likewise.
84763         * math/w_tgamma.c: Likewise.
84764         * math/w_tgammaf.c: Likewise.
84765         * math/w_tgammal.c: Likewise.
84766         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
84767         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
84768         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
84769         Minor optimizations.  Pretty printing.  Remove cruft.
84770         * sysdeps/i386/fpu/e_acosf.S: Likewise.
84771         * sysdeps/i386/fpu/e_acosh.S: Likewise.
84772         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
84773         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
84774         * sysdeps/i386/fpu/e_acosl.c: Likewise.
84775         * sysdeps/i386/fpu/e_asin.S: Likewise.
84776         * sysdeps/i386/fpu/e_asinf.S: Likewise.
84777         * sysdeps/i386/fpu/e_atan2.S: Likewise.
84778         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
84779         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
84780         * sysdeps/i386/fpu/e_atanh.S: Likewise.
84781         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
84782         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
84783         * sysdeps/i386/fpu/e_exp10.S: Likewise.
84784         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
84785         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
84786         * sysdeps/i386/fpu/e_exp2.S: Likewise.
84787         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
84788         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
84789         * sysdeps/i386/fpu/e_fmod.S: Likewise.
84790         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
84791         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
84792         * sysdeps/i386/fpu/e_hypot.S: Likewise.
84793         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
84794         * sysdeps/i386/fpu/e_log.S: Likewise.
84795         * sysdeps/i386/fpu/e_log10.S: Likewise.
84796         * sysdeps/i386/fpu/e_log10f.S: Likewise.
84797         * sysdeps/i386/fpu/e_log10l.S: Likewise.
84798         * sysdeps/i386/fpu/e_log2.S: Likewise.
84799         * sysdeps/i386/fpu/e_log2f.S: Likewise.
84800         * sysdeps/i386/fpu/e_log2l.S: Likewise.
84801         * sysdeps/i386/fpu/e_logf.S: Likewise.
84802         * sysdeps/i386/fpu/e_logl.S: Likewise.
84803         * sysdeps/i386/fpu/e_pow.S: Likewise.
84804         * sysdeps/i386/fpu/e_powf.S: Likewise.
84805         * sysdeps/i386/fpu/e_powl.S: Likewise.
84806         * sysdeps/i386/fpu/e_remainder.S: Likewise.
84807         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
84808         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
84809         * sysdeps/i386/fpu/e_scalb.S: Likewise.
84810         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
84811         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
84812         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
84813         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
84814         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
84815         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
84816         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
84817         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
84818         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
84819         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
84820         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
84821         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
84822         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
84823         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
84824         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
84825         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
84826         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
84827         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
84828         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
84829         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
84830         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
84831         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
84832         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
84833         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
84834         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
84835         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
84836         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
84837         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
84838         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
84839         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
84840         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
84841         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
84842         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
84843         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
84844         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
84845         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
84846         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
84847         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
84848         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
84849         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
84850         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
84851         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
84852         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
84853         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
84854         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
84855         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
84856         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
84857         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
84858         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
84859         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
84860         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
84861         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
84862         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
84863         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
84864         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
84865         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
84866         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
84867         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
84868         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
84869         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
84870         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
84871         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
84872         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
84873         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
84874         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
84875         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
84876         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
84877         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
84878         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
84879         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
84880         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
84881         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
84882         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
84883         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
84884         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
84885         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
84886         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
84887         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
84888         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
84889         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
84890         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
84891         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
84892         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
84893         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
84894         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
84895         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
84896         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
84897         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
84898         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
84899         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
84900         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
84901         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
84902         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
84903         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
84904         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
84905         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
84906         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
84907         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
84908         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
84909         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
84910         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
84911         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
84912         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
84913         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
84914         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
84915         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
84916         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
84917         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
84918         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
84919         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
84920         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
84921         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
84922         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
84923         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
84924         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
84925         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
84926         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
84927         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
84928         (__isnanf): Likewise.
84929         (__isinf_ns): Likewise.
84930         (__isinf_nsf): Likewise.
84931         (__finite): Likewise.
84932         (__finitef): Likewise.
84933         (__ieee754_sqrt): Define as macro.
84934         (__ieee754_sqrtf): Define as macro.
84935         (__ieee754_sqrtl): Define as macro.
84936         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
84937         inlined copy.
84938         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
84939         __FINITE_MATH_ONLY__ consistent.
84940         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
84941
84942 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
84943
84944         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
84945         of rawmemchr.
84946
84947         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
84948
84949 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
84950
84951         * po/ja.po: Update from translation team.
84952
84953 2011-10-08  Roland McGrath  <roland@hack.frob.com>
84954
84955         * locale/programs/locarchive.c (prepare_address_space): New function.
84956         (create_archive, enlarge_archive, open_archive): Use it.
84957
84958         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
84959         inside [SHARED], where it is used.
84960
84961         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
84962
84963         * nss/getent.c (netgroup_keys): Remove unused variable.
84964         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
84965
84966 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
84967
84968         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
84969         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
84970         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
84971         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
84972         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
84973         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
84974         * math/Makefile (libm-calls): Add s_isinf_ns.
84975         * math/divtc3.c: Use __isinf_nsl instead of isinf.
84976         * math/multc3.c: Likewise.
84977         * math/s_casin.c: Likewise.
84978         * math/s_casinf.c: Likewise.
84979         * math/s_casinl.c: Likewise.
84980         * math/s_ccos.c: Likewise.
84981         * math/s_ccosf.c: Likewise.
84982         * math/s_ccosl.c: Likewise.
84983         * math/s_ctan.c: Likewise.
84984         * math/s_ctanf.c: Likewise.
84985         * math/s_ctanh.c: Likewise.
84986         * math/s_ctanhf.c: Likewise.
84987         * math/s_ctanhl.c: Likewise.
84988         * math/s_ctanl.c: Likewise.
84989         * math/w_fmod.c: Likewise.
84990         * math/w_fmodf.c: Likewise.
84991         * math/w_fmodl.c: Likewise.
84992         * math/w_remainder.c: Likewise.
84993         * math/w_remainderf.c: Likewise.
84994         * math/w_remainderl.c: Likewise.
84995         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
84996         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
84997         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
84998         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
84999         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
85000         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
85001         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
85002         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
85003
85004         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
85005         of the number.
85006         * stdio-common/printf_fphex.c: Likewise.
85007         * stdio-common/printf_size.c: Likewise.
85008
85009         * math/e_exp10.c: Include math_private.h using <...> not "...".
85010         * math/e_exp10f.c: Likewise.
85011         * math/e_exp10l.c: Likewise.
85012         * math/e_exp2l.c: Likewise.
85013         * math/e_j0l.c: Likewise.
85014         * math/e_j1l.c: Likewise.
85015         * math/e_jnl.c: Likewise.
85016         * math/e_lgammal_r.c: Likewise.
85017         * math/e_rem_pio2l.c: Likewise.
85018         * math/e_scalb.c: Likewise.
85019         * math/e_scalbf.c: Likewise.
85020         * math/e_scalbl.c: Likewise.
85021         * math/k_cosl.c: Likewise.
85022         * math/k_sinl.c: Likewise.
85023         * math/k_tanl.c: Likewise.
85024         * math/s_cacoshf.c: Likewise.
85025         * math/s_catan.c: Likewise.
85026         * math/s_catanf.c: Likewise.
85027         * math/s_catanh.c: Likewise.
85028         * math/s_catanhf.c: Likewise.
85029         * math/s_catanhl.c: Likewise.
85030         * math/s_catanl.c: Likewise.
85031         * math/s_ccosh.c: Likewise.
85032         * math/s_ccoshf.c: Likewise.
85033         * math/s_ccoshl.c: Likewise.
85034         * math/s_cexp.c: Likewise.
85035         * math/s_cexpf.c: Likewise.
85036         * math/s_cexpl.c: Likewise.
85037         * math/s_clog.c: Likewise.
85038         * math/s_clog10.c: Likewise.
85039         * math/s_clog10f.c: Likewise.
85040         * math/s_clog10l.c: Likewise.
85041         * math/s_clogf.c: Likewise.
85042         * math/s_clogl.c: Likewise.
85043         * math/s_csin.c: Likewise.
85044         * math/s_csinf.c: Likewise.
85045         * math/s_csinh.c: Likewise.
85046         * math/s_csinhf.c: Likewise.
85047         * math/s_csinhl.c: Likewise.
85048         * math/s_csinl.c: Likewise.
85049         * math/s_csqrt.c: Likewise.
85050         * math/s_csqrtf.c: Likewise.
85051         * math/s_csqrtl.c: Likewise.
85052         * math/s_ctan.c: Likewise.
85053         * math/s_ctanf.c: Likewise.
85054         * math/s_ctanh.c: Likewise.
85055         * math/s_ctanhf.c: Likewise.
85056         * math/s_ctanhl.c: Likewise.
85057         * math/s_ctanl.c: Likewise.
85058         * math/s_ldexp.c: Likewise.
85059         * math/s_ldexpf.c: Likewise.
85060         * math/s_ldexpl.c: Likewise.
85061         * math/s_significand.c: Likewise.
85062         * math/s_significandf.c: Likewise.
85063         * math/s_significandl.c: Likewise.
85064         * math/w_acos.c: Likewise.
85065         * math/w_acosf.c: Likewise.
85066         * math/w_acosh.c: Likewise.
85067         * math/w_acoshf.c: Likewise.
85068         * math/w_acoshl.c: Likewise.
85069         * math/w_acosl.c: Likewise.
85070         * math/w_asin.c: Likewise.
85071         * math/w_asinf.c: Likewise.
85072         * math/w_asinl.c: Likewise.
85073         * math/w_atan2.c: Likewise.
85074         * math/w_atan2f.c: Likewise.
85075         * math/w_atan2l.c: Likewise.
85076         * math/w_atanh.c: Likewise.
85077         * math/w_atanhf.c: Likewise.
85078         * math/w_atanhl.c: Likewise.
85079         * math/w_cosh.c: Likewise.
85080         * math/w_coshf.c: Likewise.
85081         * math/w_coshl.c: Likewise.
85082         * math/w_dremf.c: Likewise.
85083         * math/w_exp10.c: Likewise.
85084         * math/w_exp10f.c: Likewise.
85085         * math/w_exp10l.c: Likewise.
85086         * math/w_exp2.c: Likewise.
85087         * math/w_exp2f.c: Likewise.
85088         * math/w_fmod.c: Likewise.
85089         * math/w_fmodf.c: Likewise.
85090         * math/w_fmodl.c: Likewise.
85091         * math/w_hypot.c: Likewise.
85092         * math/w_hypotf.c: Likewise.
85093         * math/w_hypotl.c: Likewise.
85094         * math/w_j0.c: Likewise.
85095         * math/w_j0f.c: Likewise.
85096         * math/w_j0l.c: Likewise.
85097         * math/w_j1.c: Likewise.
85098         * math/w_j1f.c: Likewise.
85099         * math/w_j1l.c: Likewise.
85100         * math/w_jn.c: Likewise.
85101         * math/w_jnf.c: Likewise.
85102         * math/w_jnl.c: Likewise.
85103         * math/w_lgamma.c: Likewise.
85104         * math/w_lgamma_r.c: Likewise.
85105         * math/w_lgammaf.c: Likewise.
85106         * math/w_lgammaf_r.c: Likewise.
85107         * math/w_lgammal.c: Likewise.
85108         * math/w_lgammal_r.c: Likewise.
85109         * math/w_log.c: Likewise.
85110         * math/w_log10.c: Likewise.
85111         * math/w_log10f.c: Likewise.
85112         * math/w_log10l.c: Likewise.
85113         * math/w_log2.c: Likewise.
85114         * math/w_log2f.c: Likewise.
85115         * math/w_log2l.c: Likewise.
85116         * math/w_logf.c: Likewise.
85117         * math/w_logl.c: Likewise.
85118         * math/w_pow.c: Likewise.
85119         * math/w_powf.c: Likewise.
85120         * math/w_powl.c: Likewise.
85121         * math/w_remainder.c: Likewise.
85122         * math/w_remainderf.c: Likewise.
85123         * math/w_remainderl.c: Likewise.
85124         * math/w_scalb.c: Likewise.
85125         * math/w_scalbf.c: Likewise.
85126         * math/w_scalbl.c: Likewise.
85127         * math/w_sinh.c: Likewise.
85128         * math/w_sinhf.c: Likewise.
85129         * math/w_sinhl.c: Likewise.
85130         * math/w_sqrt.c: Likewise.
85131         * math/w_sqrtf.c: Likewise.
85132         * math/w_sqrtl.c: Likewise.
85133         * math/w_tgamma.c: Likewise.
85134         * math/w_tgammaf.c: Likewise.
85135         * math/w_tgammal.c: Likewise.
85136
85137         * po/ja.po: Update from translation team.
85138
85139 2011-09-29  Andreas Jaeger  <aj@suse.de>
85140
85141         [BZ #13179]
85142         * sunrpc/netname.c (netname2host): Fix logic.
85143
85144         [BZ #6779]
85145         [BZ #6783]
85146         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
85147         correctly.
85148         * math/w_remainder.c (__remainder): Likewise.
85149         * math/w_remainderf.c (__remainderf): Likewise.
85150         * math/libm-test.inc (remainder_test): Add test cases.
85151
85152 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
85153
85154         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
85155         sdiv_qrnnd.
85156
85157 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
85158
85159         * string/test-memcmp.c: Avoid unncessary #defines.
85160         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
85161
85162 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
85163
85164         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
85165         Use new sse2 version for core i3 - i7 as it's faster
85166         than sse42 version.
85167         (bit_Prefer_PMINUB_for_stringop): New.
85168         * sysdeps/x86_64/rawmemchr.S: Update.
85169         Replace with faster SSE2 version.
85170         * sysdeps/x86_64/memrchr.S: New file.
85171         * sysdeps/x86_64/memchr.S: Update.
85172         Replace with faster SSE2 version.
85173
85174 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
85175
85176         * elf/dl-load.c (lose): Add cast to avoid warning.
85177
85178 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
85179
85180         * po/ca.po: Update from translation team.
85181
85182         * inet/getnetgrent_r.c: Hook up nscd.
85183         * nscd/Makefile (routines): Add nscd_netgroup.
85184         (nscd-modules): Add netgroupcache.
85185         (CFLAGS-netgroupcache.c): Define.
85186         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
85187         (cache_search): Add const to second parameter.
85188         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
85189         INNETGR.
85190         (dbs): Add netgrdb entry.
85191         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
85192         (verify_persistent_db): Handle netgrdb.
85193         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
85194         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
85195         GETFDNETGR.
85196         (netgroup_response_header): Define.
85197         (innetgroup_response_header): Define.
85198         (datahead): Add netgroup_response_header and innetgroup_response_header
85199         elements.
85200         * nscd/nscd.conf: Add entries for netgroup cache.
85201         * nscd/nscd.h (dbtype): Add netgrdb.
85202         (_PATH_NSCD_NETGROUP_DB): Define.
85203         (netgroup_iov_disabled): Declare.
85204         (xmalloc, xcalloc, xrealloc): Move declarations here.
85205         (cache_search): Adjust prototype.
85206         Add netgroup-related prototypes.
85207         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
85208         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
85209         (__nscd_innetgr): Declare.
85210         * nscd/selinux.c (perms): Use access_vector_t as element type and
85211         add netgroup-related initializers.
85212         * nscd/netgroupcache.c: New file.
85213         * nscd/nscd_netgroup.c: New file.
85214         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
85215         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
85216         For four parameters use innetgr.
85217         * nss/nss_files/files-init.c: Add definition and callback for netgr.
85218         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
85219         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
85220         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
85221
85222         * nscd/connections.c (register_traced_file): Don't register file
85223         for disabled databases.
85224
85225 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
85226
85227         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
85228
85229         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
85230         from tree and freeing node.
85231
85232 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
85233
85234         * nss/nsswitch.c (__nss_database_lookup): Handle
85235         nss_parse_service_list out of memory case.
85236
85237 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
85238
85239         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
85240         out of memory case.
85241
85242 2011-10-04  Andreas Schwab  <schwab@redhat.com>
85243
85244         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
85245         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
85246         pass it down.
85247         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
85248         elf_machine_rela, elf_machine_lazy_rel.
85249         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
85250         (ELF_DYNAMIC_DO_REL): Likewise.
85251         (ELF_DYNAMIC_DO_RELA): Likewise.
85252         (ELF_DYNAMIC_RELOCATE): Likewise.
85253         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
85254         to ELF_DYNAMIC_DO_REL.
85255         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
85256         (dl_main): In trace mode always set __RTLD_NOIFUNC.
85257         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
85258         elf_machine_rela.
85259         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
85260         skip_ifunc, don't call ifunc function if non-zero.
85261         (elf_machine_rela): Likewise.
85262         (elf_machine_lazy_rel): Likewise.
85263         (elf_machine_lazy_rela): Likewise.
85264         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
85265         (elf_machine_lazy_rel): Likewise.
85266         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
85267         Likewise.
85268         (elf_machine_lazy_rel): Likewise.
85269         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
85270         Likewise.
85271         (elf_machine_lazy_rel): Likewise.
85272         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
85273         (elf_machine_lazy_rel): Likewise.
85274         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
85275         (elf_machine_lazy_rel): Likewise.
85276         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
85277         (elf_machine_lazy_rel): Likewise.
85278         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
85279         (elf_machine_lazy_rel): Likewise.
85280         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
85281         (elf_machine_lazy_rel): Likewise.
85282         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
85283         (elf_machine_lazy_rel): Likewise.
85284
85285 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
85286
85287         * nss/nss_files/files-init.c (_nss_files_init): Use static
85288         initialization for all the *_traced_file variables.
85289
85290 2011-09-28  Andreas Schwab  <schwab@redhat.com>
85291
85292         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
85293
85294 2011-09-27  Roland McGrath  <roland@hack.frob.com>
85295
85296         [BZ #13226]
85297         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
85298
85299 2011-09-27  Andreas Schwab  <schwab@redhat.com>
85300
85301         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
85302         Reread the line before reparsing it.
85303
85304 2011-09-26  Andreas Schwab  <schwab@redhat.com>
85305
85306         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
85307
85308 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
85309             Maxim Kuvyrkov  <maxim@codesourcery.com>
85310             Joseph Myers  <joseph@codesourcery.com>
85311
85312         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
85313         if needed for __stack_chk_guard.
85314
85315 2011-09-19  Roland McGrath  <roland@hack.frob.com>
85316
85317         * sysdeps/posix/spawni.c (script_execute): Always define it.
85318         It will be optimized away if unused.
85319         (maybe_script_execute): New function.
85320         (__spawni): Call it.
85321
85322         * Makerules: Don't include tls.make.
85323         (config-tls): Always set to thread.
85324         * tls.make.c: File removed.
85325
85326 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
85327
85328         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
85329         * config.make.in (CPPFLAGS-config): New substituted variable.
85330
85331 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
85332
85333         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
85334
85335         [BZ #13192]
85336         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
85337         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
85338
85339 2011-09-15  Roland McGrath  <roland@hack.frob.com>
85340
85341         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
85342         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
85343         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
85344         (CALL_FAIL): Likewise.
85345         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
85346         (CALL_FAIL): Macro removed.
85347         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
85348
85349 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
85350
85351         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
85352         for __FINITE_MATH_ONLY__ == 1.
85353
85354 2011-09-15  Andreas Schwab  <schwab@redhat.com>
85355
85356         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
85357         __ieee754_sqrt instead of sqrt.
85358         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
85359         __ieee754_sqrtf instead of sqrtf.
85360         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
85361         __floorf instead of floorf.
85362         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
85363         __floorf, __truncf instead of floorf, truncf.
85364
85365 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
85366
85367         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
85368
85369         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
85370         __extern_always_inline.
85371         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
85372         32-bit.
85373
85374 2011-09-14  Andreas Schwab  <schwab@redhat.com>
85375
85376         * elf/rtld.c (dl_main): Also relocate in dependency order when
85377         doing symbol dependency testing.
85378
85379 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
85380
85381         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
85382         Always define `refsym'.
85383
85384 2011-09-13  Andreas Schwab  <schwab@redhat.com>
85385
85386         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
85387         (__FD_ELT): Renamed from __FDELT.
85388         * misc/bits/select2.h (__FD_ELT): Likewise.
85389         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
85390         __FD_MASK instead of __FDELT, __FDMASK.
85391         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
85392         Likewise.
85393         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
85394         Likewise.
85395
85396         * elf/Makefile (gen-ldd): Fix pattern.
85397
85398         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
85399         (init_tls): Likewise.
85400
85401 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
85402
85403         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
85404
85405 2011-09-12  Andreas Schwab  <schwab@redhat.com>
85406
85407         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
85408         `struct cmsghdr *' instead of `void *'.
85409         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
85410         Likewise.
85411
85412 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
85413
85414         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
85415         if non-absolute.
85416         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
85417         ldd_rewrite_script.
85418
85419 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
85420
85421         * configure.in: Remove --with-tls option.
85422         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
85423         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
85424         out in case it is missing.
85425         * sysdeps/ia64/elf/configure.in: Likewise.
85426         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
85427         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
85428         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
85429         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
85430         * sysdeps/sh/elf/configure.in: Likewise.
85431         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
85432         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
85433         * sysdeps/x86_64/elf/configure.in: Likewise.
85434         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
85435         * sysdeps/mach/hurd/tls.h: Likewise.
85436
85437         [BZ #13067]
85438         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
85439
85440         [BZ #13090]
85441         * configure.in: Fix use of AC_INIT.
85442
85443         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
85444
85445 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
85446
85447         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
85448         __set_errno.
85449         * malloc/hooks.c: Likewise.
85450
85451         [BZ #11929]
85452         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
85453         variables statically.
85454         (narenas): Initialize.
85455         (list_lock): Initialize.
85456         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
85457         initializtion of main_arena and list_lock.  Small cleanups.
85458         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
85459         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
85460         Add initializers to main_arena and mp_.
85461         (malloc_state): Remove pagesize member.  Change all users to use
85462         GLRO(dl_pagesize).
85463
85464         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
85465         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
85466         is always initialized.
85467
85468         * malloc/malloc.c: Removed unused configurations and dead code.
85469         * malloc/arena.c: Likewise.
85470         * malloc/hooks.c: Likewise.
85471         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
85472
85473         * include/tls.h: Removed.  USE___THREAD must always be defined.
85474         * bits/libc-tsd.h: Don't handle !USE___THREAD.
85475         * elf/dl-libc.c: Likewise.
85476         * elf/dl-tsd.c: Likewise.
85477         * include/errno.h: Likewise.
85478         * include/netdb.h: Likewise.
85479         * include/resolv.h: Likewise.
85480         * inet/herrno-loc.c: Likewise.
85481         * inet/herrno.c: Likewise.
85482         * malloc/arena.c: Likewise.
85483         * malloc/hooks.c: Likewise.
85484         * malloc/malloc.c: Likewise.
85485         * resolv/res-state.c: Likewise.
85486         * resolv/res_libc.c: Likewise.
85487         * sysdeps/i386/dl-machine.h: Likewise.
85488         * sysdeps/ia64/dl-machine.h: Likewise.
85489         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
85490         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
85491         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
85492         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
85493         * sysdeps/sh/dl-machine.h: Likewise.
85494         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
85495         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
85496         * sysdeps/unix/i386/sysdep.S: Likewise.
85497         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
85498         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
85499         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
85500         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
85501         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
85502         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
85503         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
85504         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
85505         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
85506         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
85507         * sysdeps/unix/x86_64/sysdep.S: Likewise.
85508         * sysdeps/x86_64/dl-machine.h: Likewise.
85509         * tls.make.c: Likewise.
85510
85511         * configure.in: Remove --with-__thread option.  Make tests for
85512         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
85513         tls_model attribute fail if no support is available.  Remove
85514         USE_IN_LIBIO.
85515         * Makeconfig: Adjust for dropped configure option.  All features are
85516         now mandatory.
85517         * Makerules: Likewise.
85518         * Versions.def: Likewise.
85519         * argp/argp-fmtstream.c: Likewise.
85520         * argp/argp-fmtstream.h: Likewise.
85521         * argp/argp-help.c: Likewise.
85522         * assert/assert.c: Likewise.
85523         * config.h.in: Likewise.
85524         * config.make.in: Likewise.
85525         * configure: Likewise.
85526         * configure.in: Likewise.
85527         * csu/Versions: Likewise.
85528         * csu/init.c: Likewise.
85529         * elf/tst-audit2.c: Likewise.
85530         * elf/tst-tls10.c: Likewise.
85531         * elf/tst-tls10.h: Likewise.
85532         * elf/tst-tls11.c: Likewise.
85533         * elf/tst-tls12.c: Likewise.
85534         * elf/tst-tls14.c: Likewise.
85535         * elf/tst-tlsmod11.c: Likewise.
85536         * elf/tst-tlsmod12.c: Likewise.
85537         * elf/tst-tlsmod13.c: Likewise.
85538         * elf/tst-tlsmod13a.c: Likewise.
85539         * elf/tst-tlsmod14a.c: Likewise.
85540         * elf/tst-tlsmod15b.c: Likewise.
85541         * elf/tst-tlsmod16a.c: Likewise.
85542         * elf/tst-tlsmod16b.c: Likewise.
85543         * elf/tst-tlsmod7.c: Likewise.
85544         * elf/tst-tlsmod8.c: Likewise.
85545         * elf/tst-tlsmod9.c: Likewise.
85546         * gmon/gmon.c: Likewise.
85547         * grp/fgetgrent_r.c: Likewise.
85548         * grp/putgrent.c: Likewise.
85549         * hurd/fopenport.c: Likewise.
85550         * include/libc-symbols.h: Likewise.
85551         * include/tls.h: Likewise.
85552         * intl/gettextP.h: Likewise.
85553         * intl/loadinfo.h: Likewise.
85554         * locale/global-locale.c: Likewise.
85555         * locale/localeinfo.h: Likewise.
85556         * mach/devstream.c: Likewise.
85557         * malloc/arena.c: Likewise.
85558         * malloc/set-freeres.c: Likewise.
85559         * misc/err.c: Likewise.
85560         * misc/getttyent.c: Likewise.
85561         * misc/mntent_r.c: Likewise.
85562         * posix/getopt.c: Likewise.
85563         * posix/wordexp.c: Likewise.
85564         * pwd/fgetpwent_r.c: Likewise.
85565         * resolv/Versions: Likewise.
85566         * resolv/res_hconf.c: Likewise.
85567         * shadow/fgetspent_r.c: Likewise.
85568         * shadow/putspent.c: Likewise.
85569         * stdio-common/printf_fphex.c: Likewise.
85570         * stdio-common/tmpfile.c: Likewise.
85571         * stdlib/abort.c: Likewise.
85572         * stdlib/fmtmsg.c: Likewise.
85573         * sunrpc/auth_unix.c: Likewise.
85574         * sunrpc/clnt_perr.c: Likewise.
85575         * sunrpc/clnt_tcp.c: Likewise.
85576         * sunrpc/clnt_udp.c: Likewise.
85577         * sunrpc/clnt_unix.c: Likewise.
85578         * sunrpc/openchild.c: Likewise.
85579         * sunrpc/svc_simple.c: Likewise.
85580         * sunrpc/svc_tcp.c: Likewise.
85581         * sunrpc/svc_udp.c: Likewise.
85582         * sunrpc/svc_unix.c: Likewise.
85583         * sunrpc/xdr.c: Likewise.
85584         * sunrpc/xdr_array.c: Likewise.
85585         * sunrpc/xdr_rec.c: Likewise.
85586         * sunrpc/xdr_ref.c: Likewise.
85587         * sunrpc/xdr_stdio.c: Likewise.
85588
85589 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
85590
85591         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
85592
85593 2011-07-03  Andreas Jaeger  <aj@suse.de>
85594
85595         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
85596         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
85597         regenerate with gen-libm-tests.pl.
85598
85599 2010-05-12  Petr Baudis  <pasky@suse.cz>
85600
85601         [BZ #11589]
85602         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
85603         around j0() zero points by switching to j1().
85604         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
85605         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
85606         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
85607         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
85608
85609 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
85610
85611         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
85612         instead of 0.
85613         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
85614         instead of 0.
85615         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
85616         Patch in part by Pavel Roskin <proski@gnu.org>.
85617
85618         [BZ #13138]
85619         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
85620         realloc.
85621         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
85622         Free memory block if necessary.
85623
85624         [BZ #12847]
85625         * libio/genops.c (INTDEF): For string streams the _lock pointer can
85626         be NULL.  Don't lock in this case.
85627
85628 2011-09-09  Roland McGrath  <roland@hack.frob.com>
85629
85630         * elf/elf.h (ELFOSABI_GNU): New macro.
85631         (ELFOSABI_LINUX): Define to that.
85632
85633 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
85634
85635         * string/strncat.c (strncat): Undef the symbol in case it has been
85636         defined in bits/string.h.
85637
85638 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
85639
85640         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
85641
85642         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
85643         link map.
85644
85645 2011-08-17  Andreas Jaeger  <aj@suse.de>
85646
85647         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
85648
85649 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
85650             Ian Lance Taylor  <iant@google.com>
85651
85652         * math/libm-test.inc (lround_test): New testcase.
85653         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
85654
85655 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
85656
85657         * Makefile: Remove support for automatic cvs check-ins.
85658         * Makerules: Likewise.
85659         * config.make.in: Likewise.
85660         * configure.in: Likewise.
85661         * intl/Makefile: Likewise.
85662         * locale/Makefile: Likewise.
85663         * po/Makefile: Likewise.
85664         * posix/Makefile: Likewise.
85665         * sysdeps/gnu/Makefile: Likewise.
85666         * sysdeps/mach/hurd/Makefile: Likewise.
85667         * sysdeps/sparc/sparc32/Makefile: Likewise.
85668
85669         [BZ #13118]
85670         * posix/Makefile (bug-regex32-ENV): Define.
85671         Patch by John Stanley <jpsinthemix@verizon.net>.
85672
85673         * misc/Makefile (headers): Add bits/select2.h.
85674         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
85675         * misc/bits/select2.h: New file.
85676         * include/bits/select2.h: New file.
85677         * debug/Makefile (routines): Add fdelt_chk.
85678         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
85679         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
85680         FD_ISSET.
85681         * debug/fdelt_chk.c: New file.
85682
85683         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
85684         * wcsmbs/test-wmemcmp.c: Likewise.
85685         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
85686         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
85687
85688 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
85689
85690         * string/Makefile (strop-tests): Add memcmp.
85691         * string/test-wmemcmp.c: New file.
85692         * string/test-memcmp.c: Add wmemcmp support.
85693
85694 2011-09-08  Roland McGrath  <roland@hack.frob.com>
85695
85696         [BZ #13153]
85697         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
85698         2011-07-19 change.
85699
85700         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
85701         garbage value in a __mach_port_mod_refs call in the cases of the
85702         task-self and thread-self ports.
85703
85704 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
85705
85706         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
85707
85708 2011-09-08  Andreas Schwab  <schwab@redhat.com>
85709
85710         * elf/dl-load.c (lose): Check for non-null L.
85711
85712 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
85713
85714         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
85715
85716         * elf/dl-libc.c (dlerror_run): Pass back error code from
85717         dl_catch_error.
85718
85719         [BZ #13123]
85720         * elf/dl-load.c (lose): Free l_origin if it is valid.
85721
85722         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
85723         names.
85724         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
85725         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
85726         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
85727         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
85728         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
85729         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
85730
85731 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
85732
85733         * sysdeps/powerpc/fpu/e_hypot.c: New file.
85734         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
85735         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
85736         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
85737         * sysdeps/powerpc/fpu/k_cosf.c: New file.
85738         * sysdeps/powerpc/fpu/k_sinf.c: New file.
85739         * sysdeps/powerpc/fpu/s_cosf.c: New file.
85740         * sysdeps/powerpc/fpu/s_sinf.c: New file.
85741         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
85742         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
85743
85744 2011-08-15  Alan Modra  <amodra@gmail.com>
85745
85746         [BZ #13092]
85747         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
85748         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
85749         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
85750         ppc_mcount to static-only-routines.
85751         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
85752         __mcount_internal.
85753         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
85754         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
85755
85756 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
85757
85758         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
85759         for finite and infinity parameters.
85760
85761 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
85762
85763         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
85764         and add nop instructions for throughput optimization.
85765         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
85766
85767 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
85768
85769         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
85770         aligned copy for power7 with vector-scalar instructions.
85771         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
85772
85773 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
85774
85775         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
85776         AVX check.
85777
85778 2011-09-07  Andreas Schwab  <schwab@redhat.com>
85779
85780         [BZ #13144]
85781         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
85782         last change.
85783
85784 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
85785
85786         * sysdeps/unix/sysv/linux/x86_64/init-first.c
85787         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
85788         syscall wrapper around clock_gettime in __vdso_clock_gettime.
85789         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
85790         clock_gettime.
85791
85792 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
85793
85794         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
85795         Forgot to demangle the pointer.
85796
85797         * sysdeps/i386/sysdep.h: Define atom_text_section.
85798         * sysdeps/x86_64/sysdep.h: Likewise.
85799         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
85800         section with atom_text_section.
85801         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
85802         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
85803         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
85804         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
85805         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
85806
85807         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
85808         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
85809         already be defined.  Change to take two parameters and don't assign
85810         result to variable.  Adjust all users.
85811         Define INTERNAL_GETTIME if not already defined.
85812         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
85813         call.
85814         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
85815         HAVE_CLOCK_GETTIME_VSYSCALL.
85816         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
85817
85818         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
85819         gettimeofday vsyscall, just use time.
85820
85821 2011-09-06  Andreas Schwab  <schwab@redhat.com>
85822
85823         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
85824         <errno.h>.
85825
85826 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
85827
85828         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
85829         syscall on x86-64.
85830         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
85831         syscall.
85832         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
85833         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
85834         syscall if possible.
85835
85836 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
85837
85838         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
85839         e_ident.  Don't pass to find_mapsXX.
85840         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
85841
85842 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
85843
85844         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
85845         strchr-sse2-no-bsf strrchr-sse2-no-bsf
85846         * sysdeps/x86_64/multiarch/strchr.S: Update.
85847         Check bit_slow_BSF bit.
85848         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
85849         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
85850         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
85851
85852 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
85853
85854         [BZ #13134]
85855         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
85856         before glibc 2.15.
85857         (tryshell): Define.
85858         (__spawni): Change last parameter to be flag.  Test
85859         SPAWN_XFLAGS_USE_PATH flag to use path or not.
85860         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
85861         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
85862         * posix/spawni.c: Likewise.
85863         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
85864         * posix/spawnp.c: Likewise.  Change normal version to use
85865         SPAWN_XFLAGS_USE_PATH.
85866         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
85867         SPAWN_XFLAGS_TRY_SHELL.
85868
85869         [BZ #13150]
85870         * posix/glob.h: Remove gcc 1.x support.
85871
85872         [BZ #13068]
85873         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
85874
85875 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
85876
85877         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
85878         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
85879         strrchr-sse2-bsf
85880         * sysdeps/i386/i686/multiarch/strchr.S: New file.
85881         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
85882         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
85883         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
85884         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
85885         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
85886
85887 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
85888
85889         * sysdeps/x86_64/wcscmp.S: New file.
85890
85891         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
85892         wcscmp-c wcscmp-sse2
85893         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
85894         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
85895         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
85896         * wcsmbs/wcscmp.c: Allow renaming.
85897
85898 2011-09-05  David S. Miller  <davem@davemloft.net>
85899
85900         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
85901         stack slot, rather than the struct return pointer slot.
85902         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
85903         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
85904         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
85905         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
85906
85907 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
85908
85909         * po/ja.po: Update from translation team.
85910
85911         [BZ #13144]
85912         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
85913         kernel in 64-bit binaries.
85914
85915 2011-09-01  David S. Miller  <davem@davemloft.net>
85916
85917         * elf/elf.h (HWCAP_SPARC_*): Move to..
85918         * sysdeps/sparc/sysdep.h: this new file and add new values.
85919         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
85920         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
85921         _DL_HWCAP_COUNT to 24.
85922         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
85923         entries.
85924         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
85925         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
85926         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
85927         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
85928         instead of magic constants.
85929         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
85930
85931 2011-08-31  David S. Miller  <davem@davemloft.net>
85932
85933         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
85934         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
85935         Reimplement to do errno handling inline.
85936         (SYSCALL_ERROR_HANDLER): New macro.
85937         (__SYSCALL_STRING): Do not do errno handling in asm.
85938         (__CLONE_SYSCALL_STRING): Delete.
85939         (__INTERNAL_SYSCALL_STRING): Delete.
85940         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
85941         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
85942         (PSEUDO): Reimplement to do errno handling inline.
85943         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
85944         (SYSCALL_ERROR_HANDLER): New macro.
85945         (__SYSCALL_STRING): Do not do errno handling in asm.
85946         (__CLONE_SYSCALL_STRING): Delete.
85947         (__INTERNAL_SYSCALL_STRING): Delete.
85948         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
85949         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
85950         i386.
85951         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
85952         (inline_syscall*): Add 'err' argument.
85953         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
85954         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
85955         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
85956         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
85957
85958         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
85959         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
85960
85961 2011-08-30  Andreas Schwab  <schwab@redhat.com>
85962
85963         * elf/rtld.c (dl_main): Relocate objects in dependency order.
85964
85965 2011-08-29  Jiri Olsa <jolsa@redhat.com>
85966
85967         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
85968         directive.
85969
85970 2011-08-24  David S. Miller  <davem@davemloft.net>
85971
85972         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
85973
85974 2011-08-24  Andreas Schwab  <schwab@redhat.com>
85975
85976         * elf/Makefile: Add rules to build and run unload8 test.
85977         * elf/unload8.c: New file.
85978         * elf/unload8mod1.c: New file.
85979         * elf/unload8mod1x.c: New file.
85980         * elf/unload8mod2.c: New file.
85981         * elf/unload8mod3.c: New file.
85982
85983         * elf/dl-close.c (_dl_close_worker): Reset private search list if
85984         it wasn't used.
85985
85986 2011-08-23  David S. Miller  <davem@davemloft.net>
85987
85988         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
85989         subtract stack bias.
85990         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
85991         %sp not %fp in calculations.
85992         (_JMPBUF_UNWINDS_ADJ): Likewise.
85993
85994         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
85995         (aio_suspend): Call it to force an exception region around the
85996         AIO_MISC_WAIT() invocation.
85997
85998 2011-08-23  Andreas Schwab  <schwab@redhat.com>
85999
86000         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
86001         backslash.
86002
86003 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
86004
86005         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
86006         protection macro.
86007         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
86008         and <dl-machine.h>.
86009         (Elf64_FuncDesc): Remove.
86010
86011 2011-08-22  David S. Miller  <davem@davemloft.net>
86012
86013         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
86014         sigaltstack check, add missing cfi directives.
86015         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
86016         missing cfi directives, and sigaltstack handling.
86017
86018 2011-08-16  Andreas Schwab  <schwab@redhat.com>
86019
86020         [BZ #11724]
86021         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
86022         object is seen twice.
86023         * elf/dl-fini.c (_dl_sort_fini): Likewise.
86024
86025         * elf/Makefile (distribute): Add tst-initorder2.c.
86026         (tests): Add tst-initorder2.
86027         (modules-names): Add tst-initorder2a tst-initorder2b
86028         tst-initorder2c tst-initorder2d.  Add rules to build them.
86029         ($(objpfx)tst-initorder2.out): New rule.
86030         * elf/tst-initorder2.c: New file.
86031         * elf/tst-initorder2.exp: New file.
86032
86033 2011-08-22  Andreas Schwab  <schwab@redhat.com>
86034
86035         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
86036
86037         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
86038         dependencies back to end of function.
86039
86040         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
86041         $(elfobjdir)/ld.so.
86042
86043 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
86044
86045         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
86046         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
86047         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
86048         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
86049         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
86050         of __vdso_gettimeofday.
86051         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
86052         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
86053         attribute_hidden.
86054         (_libc_vdso_platform_setup): Remove initialization of
86055         __vdso_gettimeofday and __vdso_time.
86056
86057 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
86058
86059         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
86060         and fgetc_unlocked.
86061         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
86062         getc_unlocked.
86063
86064         * elf/dl-open.c (add_to_global): Report additions to the global scope
86065         for LD_DEBUG=scopes.
86066         (dl_open_worker): Also print scope of newly loaded dependencies.
86067         (_dl_show_scope): Indicate if there is no scope.
86068
86069         [BZ #13114]
86070         * stdio-common/Makefile (tests): Add bug24.
86071         * stdio-common/bug24.c: New file.
86072
86073 2011-08-19  Andreas Jaeger  <aj@suse.de>
86074
86075         [BZ #13114]
86076         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
86077         non-existant file when using close-on-exec mode.
86078
86079 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
86080
86081         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
86082         the very first instruction.
86083
86084         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
86085         the CFI state in the end.
86086         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
86087         inclusion of dl-trampoline.h.
86088         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
86089
86090 2011-08-19  Andreas Schwab  <schwab@redhat.com>
86091
86092         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
86093         expectations for long double.
86094
86095         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
86096         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
86097
86098 2011-08-14  David S. Miller  <davem@davemloft.net>
86099
86100         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
86101         artificual limit depends upon the system page size.
86102
86103 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
86104
86105         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
86106         * resolv/Makefile: Define CFLAGS-libresolv.
86107
86108 2011-08-17  Andreas Schwab  <schwab@redhat.com>
86109
86110         * nss/makedb.c (compute_tables): Make variables used in nested
86111         function static.
86112
86113 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
86114
86115         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
86116         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
86117         if buffer was too small.
86118
86119         * elf/pldd.c (main): Attach to all threads in the process.
86120         Rewrite /proc handling to use *at functions.
86121
86122 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
86123
86124         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
86125         specifies first scope to show.
86126         (dl_open_worker): Update callers.  Move printing scope of new
86127         object to before the relocation.
86128         * elf/rtld.c (dl_main): Update _dl_show_scope call.
86129         * sysdeps/generic/ldsodefs.h: Update declaration.
86130
86131         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
86132         string for the scope number.
86133
86134 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
86135
86136         * nscd/servicescache.c (cache_addserv): Make sure written is always
86137         initialized.
86138
86139 2011-08-14  Roland McGrath  <roland@hack.frob.com>
86140
86141         * sysdeps/i386/i486/bits/atomic.h
86142         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
86143         statement expression, so as to suppress "set but not used" warning.
86144         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
86145
86146         * string/strncat.c (STRNCAT): Use prototype definition.
86147
86148         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
86149         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
86150         -Iprograms here.
86151         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
86152         (localedef-modules): Add localedef.
86153         (locale-modules): Add locale.
86154
86155         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
86156         * elf/rtld.c (dl_main): Invert order of assignment in last change,
86157         to avoid a warning.
86158
86159 2011-08-14  David S. Miller  <davem@davemloft.net>
86160
86161         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
86162         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
86163
86164 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
86165
86166         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
86167         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
86168         * elf/rtld.c (dl_main): Set l_name of vDSO.
86169         Call _dl_show_scope when DL_DEBUG_SCOPES.
86170         (process_dl_debug): Recognize scopes flag and also set it for all.
86171         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
86172         Declare _dl_show_scope.
86173
86174         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
86175         (do_dlopen): Pass caller_dlopen to dl_open.
86176         (__libc_dlopen_mode): Initialize caller_dlopen.
86177
86178         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
86179         of libc.  Make tolower call locale-independent.  Optimize a bit by
86180         using isdigit instead of isalnum.
86181         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
86182
86183 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
86184
86185         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
86186         was a dependency or dynamically loaded.
86187
86188 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
86189
86190         * intl/l10nflist.c: Allow architecture-specific pop function.
86191         * sysdeps/x86_64/l10nflist.c: New file.
86192
86193         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
86194         classification.
86195
86196 2011-08-10  Andreas Schwab  <schwab@redhat.com>
86197
86198         * include/dirent.h: Add libc_hidden_proto for scandirat and
86199         scandirat64.  Don't declare __scandirat64.
86200         * dirent/scandirat.c: Add libc_hidden_def.
86201         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
86202         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
86203
86204 2011-08-10  David S. Miller  <davem@davemloft.net>
86205
86206         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
86207         enum.
86208         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
86209         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
86210         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
86211
86212 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
86213
86214         * Versions.def [libc]: Add GLIBC_2.15.
86215         * dirent/Makefile (routines): Add scandirat and scandirat64.
86216         * dirent/Versions [libc]: Export scandirat and scandirat64 for
86217         GLIBC_2.15.
86218         * dirent/dirent.h: Declare scandirat and scandirat64.
86219         * dirent/scandirat.c: New file.
86220         * dirent/scandirat64.c: New file.
86221         * sysdeps/wordsize-64/scandirat.c: New file.
86222         * sysdeps/wordsize-64/scandirat64.c: New file.
86223         * dirent/opendir.c: Define opendirat.
86224         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
86225         using scandirat.
86226         * dirent/scandir64.c: Adjust for scandir.c change.
86227         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
86228         __scandirat64, and __scandir_cancel_handler.
86229         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
86230         additional parameter and use openat instead of open (outside of ld.so).
86231         Add new __opendir as wrapper around __opendirat.
86232         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
86233         here without requiring old scandirat implementation.
86234
86235 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
86236
86237         * dirent/scandir.c (cancel_handler): Renamed to
86238         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
86239         defined.  Adjust users.
86240         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
86241         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
86242
86243 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
86244
86245         * string/test-string.h (IMPL): Use __STRING to expand name and then
86246         stringify it.
86247
86248         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
86249         of cleanups.
86250
86251 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
86252
86253         * string/Makefile: Update.
86254         (strop-tests): Append strncat.
86255         * string/test-wcscmp.c: New file.
86256         New comprehensive test for wcscmp.
86257         * string/test-strcmp.c: Update.
86258         (WIDE): New define.
86259
86260 2011-07-22  Andreas Schwab  <schwab@redhat.com>
86261
86262         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
86263         line.
86264
86265 2011-07-26  Andreas Schwab  <schwab@redhat.com>
86266
86267         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
86268         encoding to ACE if AI_IDN.
86269
86270 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
86271
86272         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
86273         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
86274
86275 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
86276
86277         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
86278         Fix overflow bug in strncat.
86279         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
86280
86281         * string/test-strncat.c: Update.
86282         Add new tests for checking overflow bugs.
86283
86284 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
86285
86286         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
86287         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
86288         * sysdeps/i386/i686/multiarch/strcat.S: New file.
86289         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
86290         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
86291         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
86292         * sysdeps/i386/i686/multiarch/strncat.S: New file.
86293         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
86294         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
86295
86296         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
86297         (USE_AS_STRCAT): Define.
86298         Add strcat and strncat support.
86299         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
86300
86301 2011-07-25  Andreas Schwab  <schwab@redhat.com>
86302
86303         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
86304         __n bigger than INT_MAX+1.
86305         (__strncmp_g): Likewise.
86306
86307 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
86308
86309         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
86310         * libio/stido.h: Likewise.
86311
86312         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
86313         (AF_NFC): Define.
86314         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
86315         (AF_NFC): Define.
86316
86317         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
86318         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
86319         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
86320         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
86321         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
86322
86323         [BZ #13021]
86324         * scripts/test-installation.pl: Don't expect libnss_test1 to be
86325         installed.
86326
86327         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
86328         typo.
86329         (_dl_x86_64_save_sse): Likewise.
86330
86331 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
86332
86333         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
86334         OSXSAVE.
86335         (_dl_x86_64_save_sse): Likewise.
86336
86337         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
86338
86339         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
86340
86341 2011-07-21  Andreas Schwab  <schwab@redhat.com>
86342
86343         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
86344         change.
86345         (_dl_x86_64_save_sse): Use correct AVX check.
86346
86347 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
86348
86349         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
86350         bug in strncpy/strncat.
86351         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
86352
86353 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
86354
86355         * string/tester.c (test_strcat): Add tests for different alignments
86356         of source and destination.
86357         (test_strncat): Likewise.
86358
86359 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
86360
86361         [BZ #12852]
86362         * posix/glob.c (glob): Check passed in values before using them in
86363         expressions to avoid some overflows.
86364         (glob_in_dir): Likewise.
86365
86366         [BZ #13007]
86367         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
86368         check for AVX enablement so that we don't crash with old kernels and
86369         new hardware.
86370         * elf/tst-audit4.c: Add same checks here.
86371         * elf/tst-audit6.c: Likewise.
86372
86373         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
86374
86375 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
86376
86377         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
86378
86379 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
86380
86381         * po/cs.po: Update from translation team.
86382         * po/bg.po: Likewise.
86383
86384 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
86385
86386         * misc/sys/cdefs.h: Add support for const attribute.
86387         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
86388         to gnu_dev_{major,minor,makedev} functions.
86389
86390 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
86391
86392         * intl/dcigettext.c (get_output_charset): Add missing bracket.
86393
86394 2011-07-20  Andreas Schwab  <schwab@redhat.com>
86395
86396         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
86397         strlen results.
86398
86399 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
86400
86401         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
86402         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
86403         register in order to avoid conflicts with the soft frame pointer
86404         being held in r11 when necessary.
86405         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
86406         (INTERNAL_VSYSCALL_NCS): Likewise.
86407
86408 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
86409
86410         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
86411         * elf/dl-fini.c (_dl_fini): Adjust caller.
86412         * elf/dl-close.c (_dl_close_worker): Likewise.
86413         * sysdeps/generic/ldsodefs.h: Adjust declaration.
86414
86415 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
86416
86417         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
86418         "aux_cache->nlibs < 0".
86419
86420         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
86421         in the reload-count case.
86422
86423 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
86424
86425         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
86426         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
86427         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
86428         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
86429         * sysdeps/x86_64/multiarch/strcat.S: New file.
86430         * sysdeps/x86_64/multiarch/strncat.S: New file.
86431         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
86432         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
86433         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
86434         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
86435         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
86436         (USE_AS_STRCAT): Define.
86437         Add strcat and strncat support.
86438         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
86439         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
86440         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
86441         * string/strncat.c: Update.
86442         (USE_AS_STRNCAT): Define.
86443         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
86444         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
86445         and i7.
86446         * sysdeps/x86_64/multiarch/init-arch.h
86447         (bit_Prefer_PMINUB_for_stringop): New.
86448         (index_Prefer_PMINUB_for_stringop): Likewise.
86449         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
86450         bit_Prefer_PMINUB_for_stringop.
86451
86452 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
86453
86454         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
86455         buffer64.
86456         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
86457         of casting of buffer.
86458         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
86459         buffer32 and buffer64.
86460         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
86461         writes instead of casting of buffer.
86462         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
86463         buffer32.
86464         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
86465         casting of buffer.
86466
86467 2011-07-19  Andreas Schwab  <schwab@redhat.com>
86468
86469         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
86470
86471 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
86472
86473         * nscd/nscd.c (termination_handler): Don't do anything for a database
86474         if it has not yet been initialized.
86475
86476 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
86477
86478         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
86479
86480 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
86481
86482         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
86483
86484 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
86485
86486         * po/nl.po: Update from translation team.
86487         * po/sv.po: Likewise.
86488
86489 2011-07-16  Roland McGrath  <roland@hack.frob.com>
86490
86491         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
86492         now disallowed by GCC.
86493
86494         * configure.in (use-default-link): Default to yes if a test -shared
86495         link meets our qualifications.
86496         * configure: Regenerated.
86497
86498         * config.make.in (output-format): New variable.
86499         * configure.in: Check for ld --print-output-format support.
86500         * configure: Regenerated.
86501         * Makerules ($(common-objpfx)format.lds)
86502         [$(output-format) != unknown]: Just use $(output-format),
86503         instead of the linker-script munging.
86504
86505 2011-07-14  Roland McGrath  <roland@hack.frob.com>
86506
86507         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
86508         of $(common-objpfx)shlib.lds.
86509         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
86510
86511         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
86512         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
86513
86514         * configure.in (-z relro check): Adjust test code to add a large
86515         writable data section after it.
86516         * configure: Regenerated.
86517
86518 2011-07-11  Roland McGrath  <roland@hack.frob.com>
86519
86520         * configure.in (-z relro check): Fix test code to make the variable
86521         truly const.
86522         * configure: Regenerated.
86523
86524 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
86525
86526         * nscd/nscd.h (struct traced_file): Define.
86527         (struct database_dyn): Remove inotify_descr, reset_res, and filename
86528         elements.  Add traced_files.
86529         (inotify_fd): Declare.
86530         (register_traced_file): Declare.
86531         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
86532         (inotify_fd): Export.
86533         (resolv_conf_descr): Remove.
86534         (nscd_init): Move inotify descriptor creation to main.
86535         Don't register files for notification here.
86536         (register_traced_file): New function.
86537         (invalidate_cache): Don't use reset_res to determine whether to call
86538         res_init, go through the list of registered files.
86539         (main_loop_poll): The inotify descriptors are now stored in the
86540         structures for the traced files.
86541         (main_loop_epoll): Likewise.
86542         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
86543         to __nss_disable_nscd.
86544         * nscd/cache.c (prune_cache): There is no single inotify descriptor
86545         for a database anymore.  Check the records for all the registered
86546         files instead.
86547         * nss/Makefile (libnss_files-routines): Add files-init.
86548         (libnss_db-routines): Add db-init.
86549         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
86550         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
86551         * nss/nss_db/db-init.c: New file.
86552         * nss/nss_files/files-init.c: New file.
86553         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
86554         __nss_lookup_function.
86555         (__nss_lookup_function): Call nss_load_library.
86556         (nss_load_all_libraries): New function.
86557         (__nss_disable_nscd): Take parameter with callback function for files
86558         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
86559         used for the cached services.
86560         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
86561         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
86562         options for features to all the files in nscd.
86563
86564         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
86565
86566 2011-07-10  Roland McGrath  <roland@hack.frob.com>
86567
86568         * csu/elf-init.c (__libc_csu_init): Comment typo.
86569
86570 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
86571
86572         * po/pl.po: Update from translation team.
86573         * po/ja.po: Likewise.
86574         * po/ru.po: Likewise.
86575         * po/ko.po: Likewise.
86576         * po/fr.po: Likewise.
86577
86578 2011-07-09  Roland McGrath  <roland@hack.frob.com>
86579
86580         * configure.in (.ctors/.dtors header and trailer check):
86581         Use an empirical test on a built program.
86582         * configure: Regenerated.
86583
86584         * configure.in (-z relro check): Use an empirical test on a built DSO.
86585         Detect, but do not require, on ia64.
86586         * configure: Regenerated.
86587
86588         * configure.in (READELF): Find it with AC_CHECK_TOOL.
86589         Update tests that use readelf to use $READELF instead.
86590         * configure: Regenerated.
86591
86592 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
86593
86594         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
86595         if the result is not used.
86596
86597 2011-07-05  Andreas Jaeger  <aj@suse.de>
86598
86599         [BZ #9696]
86600         * stdlib/tst-strtod.c: Add testcase.
86601
86602 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
86603
86604         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
86605         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
86606         The latter has a higher limit.  Take additional parameter to pass to
86607         the new function.
86608         (__pathconf): Pass file to __statfs_link_max.
86609         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
86610         __statfs_link_max.
86611         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
86612         __statfs_link_max.
86613
86614         [BZ #12868]
86615         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
86616         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
86617         Handle Lustre.
86618         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
86619         (__statfs_filesize_max): Likewise.
86620         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
86621
86622 2011-07-05  Andreas Jaeger  <aj@suse.de>
86623
86624         * resolv/res_comp.c (dn_skipname): Remove unused variable.
86625
86626 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
86627
86628         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
86629         `status' variable.
86630         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
86631         Likewise.
86632
86633 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
86634
86635         * Makefile (strop-tests): Add strncat.
86636         * string/test-strncat.c: New file.
86637
86638 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
86639
86640         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
86641
86642 2011-06-21  Andreas Jaeger  <aj@suse.de>
86643
86644         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
86645         Copy rule from iconvdata/Makefile.
86646
86647 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
86648
86649         [BZ #12922]
86650         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
86651         but no long options are defined, just return 'W'.
86652
86653 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
86654
86655         [BZ #9696]
86656         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
86657
86658 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
86659
86660         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
86661         netgroups to read.
86662         (innetgr): Likewise.
86663
86664 2011-07-05  Roland McGrath  <roland@hack.frob.com>
86665
86666         * config.make.in (install_root): Default to $(DESTDIR).
86667
86668 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
86669
86670         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
86671
86672 2011-07-02  Roland McGrath  <roland@hack.frob.com>
86673
86674         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
86675
86676         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
86677         containing directory rather than embedding absolute directory names.
86678
86679         * scripts/check-local-headers.sh: Rewritten using awk.
86680         Match by word, not by line.  Print error messages for matches.
86681         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
86682
86683         * Makerules [shlib-lds-flags empty]:
86684         ($(common-objpfx)libc_pic.opts): New target.
86685         ($(common-objpfx)libc_pic.os.clean): New target.
86686         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
86687
86688         * config.make.in (OBJCOPY): New variable.
86689         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
86690         * configure: Regenerated.
86691
86692         * config.make.in (use-default-link): New variable.
86693         * configure.in (use_default_link): Grok --with-default-link to set it.
86694         * configure: Regenerated.
86695         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
86696         (shlib-lds, shlib-lds-flags): Define to empty.
86697
86698         * Makerules (shlib-lds): New variable.
86699         (shlib-lds-flags): New variable.
86700         (build-shlib, build-moduile, build-module-asneeded): Use it.
86701         ($(common-objpfx)libc.so): Use $(shlib-lds).
86702         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
86703         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
86704
86705         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
86706         DT_FLAGS/DT_FLAGS_1 with zero flags.
86707
86708         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
86709         linker script munging.
86710
86711 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
86712
86713         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
86714         as 128-bit value.
86715         * crypt/sha512.c (sha512_process_block): Perform total addition using
86716         128-bit if possible.
86717         (__sha512_finish_ctx): Likewise.
86718         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
86719         as 64-bit value.
86720         * crypt/sha256.c (SWAP64): Define.
86721         (sha256_process_block): Perform total addition using 64-bit if
86722         possible.
86723         (__sha256_finish_ctx): Likewise.
86724
86725 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
86726
86727         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
86728         * nscd/initgrcache.c (addinitgroupsX): Likewise.
86729         * nscd/hstcache.c (cache_addhst): Likewise.
86730         * nscd/grpcache.c (cache_addgr): Likewise.
86731         * nscd/aicache.c (addhstaiX): Likewise.
86732         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
86733
86734 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
86735
86736         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
86737         * nscd/initgrcache.c (addinitgroupsX): Likewise.
86738         * nscd/hstcache.c (cache_addhst): Likewise.
86739         * nscd/grpcache.c (cache_addgr): Likewise.
86740         * nscd/aicache.c (addhstaiX): Likewise.
86741
86742 2011-07-01  Andreas Schwab  <schwab@redhat.com>
86743
86744         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
86745         domain only when needed.
86746
86747 2011-06-30  Andreas Schwab  <schwab@redhat.com>
86748
86749         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
86750         is always restored.
86751
86752 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
86753
86754         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
86755         are re-adding the entry.
86756         * nscd/servicescache.c (cache_addserv): Likewise.
86757
86758 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
86759
86760         * sysdeps/generic/dl-irel.h: fix protection against multiple
86761         inclusions.
86762         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
86763
86764 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
86765
86766         [BZ #12935]
86767         * malloc/memusage.sh: Fix quoting in message.
86768         * debug/xtrace.sh: Likewise.
86769
86770         * configure.in: Remove support for --experimental-malloc option, make
86771         it the default.
86772         * config.make.in: Likewise.
86773         * malloc/Makefile: Likewise.
86774
86775 2011-06-27  Andreas Schwab  <schwab@redhat.com>
86776
86777         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
86778         two-byte characters.
86779
86780 2011-06-27  Roland McGrath  <roland@hack.frob.com>
86781
86782         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
86783         AC_CACHE_CHECK invocation.
86784         * configure: Regenerated.
86785
86786         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
86787
86788 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
86789
86790         [BZ #12350]
86791         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
86792         bit from old_res_options.
86793
86794         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
86795
86796         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
86797         value type for setfct.
86798
86799 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
86800
86801         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
86802         __gettimeofday instead of gettimeofday.
86803
86804 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
86805
86806         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
86807
86808 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
86809
86810         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
86811
86812         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
86813         info.
86814
86815 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
86816
86817         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
86818         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
86819         strcpy-sse2-unaligned strncpy-sse2-unaligned
86820         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
86821         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
86822         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
86823         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
86824         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
86825         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
86826         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
86827         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
86828         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
86829         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
86830         (STRCPY): Support SSE2 and SSSE3 versions.
86831
86832 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
86833
86834         [BZ #12874]
86835         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
86836         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
86837         kernels which artificially limit size of requests.
86838
86839 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
86840
86841         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
86842         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
86843         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
86844         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
86845         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
86846         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
86847         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
86848         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
86849         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
86850         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
86851         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
86852         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
86853         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
86854         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
86855         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
86856         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
86857         Enable unaligned load optimization for Intel Core i3, i5 and i7
86858         processors.
86859         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
86860         Define.
86861         (index_Fast_Unaligned_Load): Define.
86862         (HAS_FAST_UNALIGNED_LOAD): Define.
86863
86864 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
86865
86866         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
86867
86868 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
86869
86870         [BZ #12907]
86871         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
86872         until it is clear that the information is realy needed.
86873         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
86874
86875 2011-06-22  Andreas Schwab  <schwab@redhat.com>
86876
86877         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
86878
86879 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
86880
86881         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
86882         /sys/devices/system/cpu/online if it is usable.
86883
86884         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
86885         reading the information from the /proc filesystem to once a second.
86886
86887 2011-06-21  Andreas Jaeger  <aj@suse.de>
86888
86889         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
86890         NULL after inclusion of kernel headers.
86891
86892 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
86893
86894         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
86895         calls to internal_setent.
86896
86897         [BZ #12885]
86898         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
86899         addresses using gethostbyname4_r ignore IPv4 addresses.
86900
86901         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
86902         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
86903
86904         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
86905
86906 2011-06-20  David S. Miller  <davem@davemloft.net>
86907
86908         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
86909         inclusions.
86910         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
86911
86912         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
86913         (elf_irel): Use it.
86914         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
86915         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
86916         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
86917         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
86918         * sysdeps/x86_64/dl-irel.h: Likewise.
86919
86920         * elf/dl-runtime.c: Use elf_ifunc_invoke.
86921         * elf/dl-sym.c: Likewise.
86922
86923 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
86924
86925         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
86926         need to dereference resplen2.
86927
86928 2011-06-14  Andreas Schwab  <schwab@redhat.com>
86929
86930         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
86931
86932 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
86933
86934         * Makeconfig: Define vardbdir and inst_vardbdir.
86935         * nss/Makefile: Add rules to install db-Makefile.
86936
86937         * nss/nss_db/db-XXX.c: Cleanup.
86938
86939         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
86940         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
86941         GLIBC_PRIVATE.
86942         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
86943         * nss/makedb.c: Implement -g option to specify that value strings
86944         are generated and should not be added to table iterated over for
86945         get*ent calls.
86946         * nss/nss_db/db-initgroups.c: New file.
86947
86948         * nss/getent.c: Add support for initgroups lookups through getgrouplist
86949         interface.
86950
86951         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
86952         (internal_getgrouplist): Adjust to name change.
86953         Update use_initgroups_entry if this is not the first call.
86954         * nss/databases.def: Add initgroups entry.
86955
86956         * nss/makedb.c (compute_tables): Check result of multiple hash table
86957         sizes to minimize maximum chain length.
86958
86959 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
86960
86961         * Versions.def: Add entry for libnss_db.
86962         * shlib-versions: Likewise.
86963         * nss/Makefile: Add rules to build libnss_db.
86964         * nss/Versions: Add libnss_db information.  Organize libnss_files
86965         entries better.
86966         * nss/db-Makefile: Add gshadow support.  Change rules for the new
86967         makedb progra.  Some minor improvements to generate smaller files.
86968         * nss/nss_db/nss_db.h: Move NSS database header data structures to
86969         here from...
86970         * nss/makedb.c: ...here.
86971         Improve database format to be smaller and require less memory at
86972         runtime.
86973         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
86974         db anymore.
86975         * nss/nss_db/db-netgrp.c: Likewise.
86976         * nss/nss_db/db-open.c: Likewise.
86977         * nss/nss_files/flies-XXX.x: Adjust comments.
86978         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
86979         * nss/nss_files/files-grp.c: Likewise.
86980         * nss/nss_files/files-hosts.c: Likewise.
86981         * nss/nss_files/files-network.c: Likewise.
86982         * nss/nss_files/files-proto.c: Likewise.
86983         * nss/nss_files/files-pwd.c: Likewise.
86984         * nss/nss_files/files-rpc.c: Likewise.
86985         * nss/nss_files/files-service.c: Likewise.
86986         * nss/nss_files/files-sgrp.c: Likewise.
86987         * nss/nss_files/files-spwd.c: Likewise.
86988         * nss/nss_db/db-alias.c: Removed.
86989         * nss/nss_db/dummy-db.h: Removed.
86990
86991 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
86992
86993         * nss/makedb.c: Rewritten to not use database library.
86994         * nss/Makefile: Update to build new makedb program.
86995
86996 2011-06-14  Andreas Jaeger  <aj@suse.de>
86997
86998         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
86999         memset declaration.
87000
87001 2011-06-10  Andreas Schwab  <schwab@redhat.com>
87002
87003         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
87004         tmpbuf.
87005
87006 2011-06-10  Roland McGrath  <roland@hack.frob.com>
87007
87008         * Makerules (shlib.lds): Fail if the linker script comes out empty.
87009         * elf/Makefile ($(objpfx)ld.so): Likewise.
87010
87011         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
87012         Don't list ld.so twice in dependencies.
87013
87014         * posix/bug-regex31.c: Include <stdlib.h>.
87015
87016         * nscd/hstcache.c (cache_addhst): Remove unused variable.
87017
87018         * nis/nss_compat/compat-spwd.c
87019         (getspent_next_nss_netgr): Remove unused variable.
87020         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
87021
87022         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
87023         nonmembers" output to use the right array.
87024
87025         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
87026
87027         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
87028
87029         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
87030         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
87031         * catgets/gencat.c (read_input_file): Likewise.
87032         * locale/programs/locarchive.c (enlarge_archive): Likewise.
87033
87034         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
87035         variable definition inside #if's controlling its use.
87036
87037         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
87038
87039         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
87040
87041         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
87042
87043         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
87044         unreachable code.
87045
87046         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
87047
87048         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
87049         * configure: Regenerated.
87050
87051         * Makerules: Revert last change.
87052         * elf/Makefile: Likewise.
87053
87054 2011-06-09  Roland McGrath  <roland@hack.frob.com>
87055
87056         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
87057         * elf/Makefile ($(objpfx)librtld.os): Likewise.
87058         (reloc-link): Likewise.
87059
87060 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
87061
87062         * elf/Makefile: Add rules to build pldd.
87063         * elf/pldd.c: New file.
87064         * elf/pldd-xx.c: New file.
87065
87066 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
87067
87068         * version.h: Update for 2.15 development version.
87069
87070 2011-06-07  David S. Miller  <davem@davemloft.net>
87071
87072         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
87073         ifuncs.
87074         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
87075         elf_machine_lazy_rel): Likewise.
87076         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
87077         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
87078         elf_machine_lazy_rel): Likewise.
87079         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
87080         dl_hwcap via passed in argument.
87081         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
87082         Likewise.
87083
87084 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
87085
87086         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
87087
87088 2011-06-06  Roland McGrath  <roland@hack.frob.com>
87089
87090         [BZ #12849]
87091         * manual/fdl-1.1.texi: New file, verbatim from:
87092         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
87093         * manual/lgpl-2.1.texi: New file, verbatim from:
87094         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
87095         * manual/Makefile (licenses): New variable, list those new file names.
87096         (texis): Use it.
87097         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
87098
87099         * manual/fdl.texi: File removed.
87100         * manual/lesser.texi: File removed.
87101         * manual/libc.texinfo (Copying, Documentation License):
87102         Use new @include file names, put @appendix directive before @include.
87103
87104 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
87105
87106         [BZ #12841]
87107         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
87108         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
87109         (mq_open): Add __NTH.
87110
87111 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
87112
87113         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
87114         Assume Intel Core i3/i5/i7 processor if AVX is available.
87115
87116 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
87117
87118         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
87119         typo.
87120
87121 2011-05-31  Andreas Schwab  <schwab@redhat.com>
87122
87123         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
87124         memory.  Use alloca_account.  Fix memory leak when retrying.
87125
87126 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
87127
87128         * version.h (RELEASE): Bump for 2.14 release.
87129         * include/features.h (__GLIBC_MINOR__): Bump to 14.
87130
87131         * config.make.in (RANLIB): Remove entry.
87132
87133 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
87134
87135         * po/Makefile (po-sed-cmd): Add ksh to extensions.
87136         (libc.pot): Work around missing support for .ksh extension in xgettext.
87137
87138         [BZ #12684]
87139         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
87140         if both request failed.
87141         (send_dg): In case of server errors clear resplen or *resplen2.
87142
87143         [BZ #12454]
87144         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
87145         when there are multiple maps.
87146         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
87147         (_dl_fini): Remove test here.
87148
87149         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
87150
87151 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
87152
87153         [BZ #12350]
87154         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
87155         bit from old_res_options.
87156         (gaih_inet): Likewise.
87157
87158         [BZ #11099]
87159         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
87160         as signed.
87161
87162         * resolv/res_init.c (res_setoptions): Make the code more compact.
87163
87164         [BZ #11558]
87165         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
87166         set RES_USEVC.
87167
87168         [BZ #11634]
87169         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
87170
87171         * malloc/malloc.h: Mark malloc hook variables as deprecated.
87172
87173         [BZ #11781]
87174         * malloc/malloc.h: Declare malloc hook variables as volatile.
87175
87176         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
87177         in last patch.
87178
87179         [BZ #11799]
87180         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
87181         raise in the comment.
87182         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
87183         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
87184         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
87185
87186 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
87187
87188         [BZ #12811]
87189         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
87190         grow the buffers more if it already has to be sufficient.
87191         (build_wcs_upper_buffer): Likewise.
87192         * posix/regexec.c (check_matching): Likewise.
87193         (clean_state_log_if_needed): Likewise.
87194         (extend_buffers): Don't enlarge buffers beyond size of the input
87195         buffer.
87196         Patches mostly by Emil Wojak <emil@wojak.eu>.
87197         * posix/bug-regex32.c: New file.
87198         * posix/Makefile (tests): Add bug-regex32.
87199
87200         * locale/findlocale.c (_nl_find_locale): Return right away if
87201         _nl_explode_name failed.
87202         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
87203
87204         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
87205
87206         * debug/xtrace.sh: Unify messages.
87207         * malloc/memusage.sh: Likewise.
87208
87209         [BZ #12813]
87210         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
87211         time symbol from vDSO.  Substitute with vsyscall if not available.
87212         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
87213         __vdso_time.
87214
87215         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
87216         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
87217         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
87218         Add sendmmsg and internal_sendmmsg.
87219         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
87220         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
87221         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
87222
87223         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
87224         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
87225         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
87226
87227 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
87228
87229         [BZ #12813]
87230         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
87231         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
87232         available.
87233         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
87234         __vdso_getcpu.
87235
87236         [BZ #12814]
87237         * iconvdata/Makefile (tests): Add bug-iconv9.
87238         * iconvdata/bug-iconv9.c: New file.
87239
87240 2011-05-27  Andreas Schwab  <schwab@redhat.com>
87241
87242         [BZ #12814]
87243         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
87244
87245 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
87246
87247         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
87248         (struct user_regs_struct): Change intcs field back to cs.
87249
87250 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
87251
87252         * po/ja.po: Update from translation team.
87253
87254 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
87255
87256         [BZ #12795]
87257         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
87258         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
87259
87260 2011-05-20  Andreas Schwab  <schwab@redhat.com>
87261
87262         * stdlib/longlong.h: Update from GCC.
87263
87264 2011-05-23  Andreas Schwab  <schwab@redhat.com>
87265
87266         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
87267         parameter name.
87268         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
87269         Add parameter name.
87270         (__sysconf): Pass it down.
87271
87272 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
87273
87274         [BZ #12671]
87275         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
87276         some situations.
87277         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
87278         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
87279         add in in __libc_use_alloca calls.  Adjust callers.
87280         (glob): Use malloc in some situations.
87281
87282         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
87283         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
87284         pltexit.
87285
87286 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
87287
87288         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
87289         and CLOCK_BOOTTIME_ALARM.
87290
87291         [BZ #12782]
87292         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
87293         is returned.
87294
87295         * string/_strerror.c (__strerror_r): Print negative errors as signed
87296         numbers.
87297
87298         [BZ #12777]
87299         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
87300         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
87301         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
87302
87303         * configure.in: Fix typo in redirection and correct removal of test
87304         files in two cases.
87305
87306         [BZ #12788]
87307         * locale/setlocale.c (new_composite_name): Fix test to check for
87308         identical name of all categories.
87309
87310         [BZ #12792]
87311         * libio/filedoalloc.c (local_isatty): New function.
87312         (_IO_file_doallocate): Use local_isatty.
87313         * stdio-common/perror.c (perror): In case a new stream is used
87314         forward the stream error.
87315         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
87316         error flag.
87317
87318 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
87319
87320         [BZ #11884]
87321         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
87322         alloca.
87323         * include/alloca.h (extend_alloca_account): Define.
87324
87325         [BZ #11857]
87326         * posix/regex.h: Fix comments with documentation of user-accessible
87327         fields after compilation and describe correct free'ing of pattern
87328         after re_compile_pattern.
87329         Patch by Reuben Thomas <rrt@sc3d.org>.
87330
87331 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
87332
87333         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
87334         and -mno-altivec to prevent the compiler from using Altivec and/or
87335         VSX instructions when the corresponding registers are not available.
87336
87337 2011-05-19  Andreas Schwab  <schwab@redhat.com>
87338
87339         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
87340
87341 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
87342
87343         * libio/freopen.c (freopen): Use __dup2, not dup2.
87344         * libio/freopen64.c (freopen64): Likewise.
87345
87346 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
87347
87348         [BZ #12775]
87349         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
87350         * math/Makefile (tests): Add test-powl.
87351         (CFLAGS-test-powl.c): Define.
87352         * math/test-powl.c: New file.
87353
87354 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
87355
87356         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
87357
87358 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
87359
87360         [BZ #11837]
87361         * iconvdata/gb18030.c: Update to GB18020-2005.
87362
87363 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
87364
87365         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
87366         RE_SYNTAX_POSIX_AWK): Update to match recent development.
87367         Patch by Aharon Robbins <arnold@skeeve.com>.
87368
87369         [BZ #11892]
87370         * stdlib/putenv.c (putenv): Don't always create copy of the variable
87371         on the stack.
87372
87373         [BZ #11895]
87374         * misc/pselect.c (__pselect): Handle timeout value errors hidden
87375         through underflows.
87376
87377         [BZ #12766]
87378         * misc/error.c (error_at_line): Ensure file_name and old_file_name
87379         point to strings before performing equality test for error_one_per_line
87380         mode.
87381
87382         [BZ #11697]
87383         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
87384
87385         [BZ #11820]
87386         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
87387         (struct user_fpregs_struct): Avoid __uint*_t types.
87388
87389         [BZ #6420]
87390         * malloc/mtrace.c (tr_where): Add additional parameter to point to
87391         symbol info.  Use it instead of calling _dl_addr locally.
87392         (lock_and_info): New function.
87393         (tr_freehook): Call lock_and_info and pass symbol info as additional
87394         parameter to tr_where.
87395         (tr_mallochook): Likewise.
87396         (tr_reallochook): Likewise.
87397         (tr_memalignhook): Likewise.
87398
87399         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
87400         used and couldn't be at all thread-safe.
87401
87402 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
87403
87404         * libio/freopen.c (freopen): Don't close old file descriptor
87405         before the new one is opened.  Instead dup the new file descriptor
87406         to the old one after the new stream is created.
87407         * libio/freopen64.c (freopen64): Likewise.
87408         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
87409         * libio/fileops.c (_IO_new_file_close_it): Handle new
87410         _IO_FLAGS2_NOCLOSE flag.
87411         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
87412         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
87413         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
87414         _IO_FLAGS2_NOCLOSE flag.
87415         * include/unistd.h: Add hidden_proto for dup3.
87416         Define __have_dup3.
87417         * io/dup3.c: Define hidden symbol.
87418         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
87419
87420         [BZ #7101]
87421         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
87422         when an incomplete long option is used.
87423         * posix/tst-getopt_long1.c: New file.
87424         * posix/Makefile (tests): Add tst-getopt_long1.
87425
87426         [BZ #10138]
87427         * scripts/config.guess: Update from autoconf-2.68.
87428         * scripts/config.sub: Likewise.
87429
87430         [BZ #10157]
87431         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
87432         tests into ...
87433         (has_cpuclock): ...this.  New function.
87434         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
87435         macro here based on has_cpuclock code.
87436
87437         [BZ #10149]
87438         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
87439         First byte (not low byte) is now always NUL.
87440         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
87441
87442         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
87443         Use non-cancelable interfaces.
87444
87445         [BZ #9809]
87446         * locale/iso-639.def: Add entry for Sorani.
87447
87448         [BZ #11901]
87449         * include/stdlib.h: Move include protection to the right place.
87450         Define abort_msg_s.  Declare __abort_msg with it.
87451         * stdlib/abort.c (__abort_msg): Adjust type.
87452         * assert/assert.c (__assert_fail_base): New function.  Majority
87453         of code from __assert_fail.  Allocate memory for __abort_msg with
87454         mmap.
87455         (__assert_fail): Now call __assert_fail_base.
87456         * assert/assert-perr.c: Remove bulk of implementation.  Use
87457         __assert_fail_base.
87458         * include/assert.hL Declare __assert_fail_base.
87459         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
87460         mmap.
87461         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
87462
87463 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
87464
87465         [BZ #11952]
87466         [BZ #12453]
87467         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
87468         until all modules are registered in the DTV.
87469         * elf/Makefile: Add rules to build and run tst-tls19.
87470         * elf/tst-tls19.c: New file.
87471         * elf/tst-tls19mod1.c: New file.
87472         * elf/tst-tls19mod2.c: New file.
87473         * elf/tst-tls19mod3.c: New file.
87474         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
87475
87476         [BZ #12083]
87477         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
87478         correctly.
87479
87480         [BZ #12601]
87481         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
87482         two-byte sequence errors.
87483         * iconvdata/Makefile (tests): Add bug-iconv8.
87484         * iconvdata/bug-iconv8.c: New file.
87485
87486         [BZ #12626]
87487         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
87488         buf2 definition.
87489
87490         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
87491
87492         [BZ #12432]
87493         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
87494         (dummy_getcfa): New function.
87495         (init): Get _Unwind_GetCFA address, use dummy if not found.
87496         (backtrace_helper): In recursion check, also check whether CFA changes.
87497         (__backtrace): Completely initialize arg.
87498
87499         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
87500         storing incomplete byte sequence in state object.  Avoid testing for
87501         guaranteed too small input if we know there is enough data available.
87502
87503 2011-05-11  Andreas Schwab  <schwab@redhat.com>
87504
87505         * Makeconfig (+link-pie): Indent.
87506         * Rules (binaries-pie): Define if $(have-fpie) and
87507         $(build-shared).
87508         (binaries-shared): Also filter out $(binaries-pie).
87509         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
87510         * nscd/Makefile (others-pie): Add nscd.
87511         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
87512         ($(objpfx)nscd): Remove command override.
87513         * login/Makefile (others-pie): Add pt_chown.
87514         ($(objpfx)pt_chown): Remove command override.
87515         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
87516         remove command overrides.
87517
87518 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
87519
87520         * libio/tst_putwc.c: Fix error messages.
87521
87522         [BZ #12724]
87523         * libio/fileops.c (_IO_new_file_close_it): Always flush when
87524         currently writing and seek to current position when not.
87525         * libio/Makefile (tests): Add bug-fclose1.
87526         * libio/bug-fclose1.c: New file.
87527
87528 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
87529
87530         [BZ #12511]
87531         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
87532         don't set DF_1_NODELETE here.
87533         (do_lookup_x): When entering new entry test for copy relocation
87534         and if necessary set DF_1_NODELETE flag.
87535         * elf/tst-unique4.cc: New file.
87536         * elf/tst-unique4.h: New file.
87537         * elf/tst-unique4lib.cc: New file.
87538         * elf/Makefile: Add rules to build and run tst-unique4.
87539         Patch by Piotr Bury <pbury@goahead.com>.
87540
87541 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
87542
87543         [BZ #12052]
87544         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
87545
87546         [BZ #12625]
87547         * misc/mntent_r.c (addmntent): Flush the stream after the output
87548
87549         [BZ #12393]
87550         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
87551         (is_trusted_path_normalize): Skip initial colon.  Append slash
87552         to empty buffer.  Duplicate is_trusted_path code but allow
87553         constructed patch to be prefix.
87554         (is_dst): Allow $ORIGIN followed by /.
87555         (_dl_dst_substitute): Correct clearing of check_for_trusted.
87556         Correct testing of result of is_trusted_path_normalize
87557         (decompose_rpath): Fix warning.
87558
87559 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
87560
87561         [BZ #11257]
87562         * grp/initgroups.c (internal_getgrouplist): When we found the service
87563         list through the initgroups entry in nsswitch.conf do not always
87564         continue on a successful lookup.  Don't always use the
87565         __nss_group_database value if it is set.
87566         * nss/nsswitch.conf (initgroups): Change action for successful db
87567         lookup to continue for compatibility.
87568
87569 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
87570
87571         [BZ #11532]
87572         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
87573         and CP774 modules.
87574         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
87575         and CP774 modules.
87576         * iconvdata/tst-tables.sh: Likewise.
87577         * iconvdata/cp770.c: New file.
87578         * iconvdata/cp771.c: New file.
87579         * iconvdata/cp772.c: New file.
87580         * iconvdata/cp773.c: New file.
87581         * iconvdata/cp774.c: New file.
87582         * iconvdata/testdata/CP770: New file.
87583         * iconvdata/testdata/CP770..UTF8: New file.
87584         * iconvdata/testdata/CP771: New file.
87585         * iconvdata/testdata/CP771..UTF8: New file.
87586         * iconvdata/testdata/CP772: New file.
87587         * iconvdata/testdata/CP772..UTF8: New file.
87588         * iconvdata/testdata/CP773: New file.
87589         * iconvdata/testdata/CP773..UTF8: New file.
87590         * iconvdata/testdata/CP774: New file.
87591         * iconvdata/testdata/CP774..UTF8: New file.
87592
87593         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
87594         END CHARMAP line.
87595         * iconvdata/gen-8bit-gap.sh: Likewise.
87596         * iconvdata/gen-8bit.sh: Likewise.
87597
87598         * locale/iso-639.def: Add ary entry.
87599
87600         [BZ #11258]
87601         * locale/C-translit.h.in: Add U20A1 transliteration.
87602
87603         [BZ #12178]
87604         * locale/iso-639.def: Add wae entry.
87605         Patch by Kevin Bortis <bortis@translate-wae.ch>.
87606
87607         [BZ #12545]
87608         * locale/programs/localedef.c (construct_output_path): Use ssize_t
87609         for n.
87610
87611         [BZ #12711]
87612         * locale/C-translit.h.in: Add entry for U20B9.
87613         Patch by pravin.d.s@gmail.com.
87614
87615 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
87616
87617         [BZ #12713]
87618         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
87619         ENAMETOOLONG use generic getcwd.
87620         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
87621         in rtld.  Use *stat64.
87622         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
87623         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
87624         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
87625         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
87626         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
87627         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
87628         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
87629         __fstatat64 macros.
87630         * include/dirent.h: Add libc_hidden_proto for rewinddir.
87631         * dirent/rewinddir.c: Add libc_hidden_def.
87632         * sysdeps/mach/hurd/rewinddir.c: Likewise.
87633         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
87634
87635         * include/dirent.h (__alloc_dir): Add flags parameter.
87636         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
87637         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
87638         __alloc_dir.
87639         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
87640         from fdopendir if O_CLOEXEC is already set.
87641
87642 2011-03-15  Alan Modra  <amodra@gmail.com>
87643
87644         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
87645         l_tls_firstbyte_offset non-zero.  Save padding offset in
87646         l_tls_firstbyte_offset for later use.
87647         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
87648         freeing static tls block.
87649
87650 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
87651
87652         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
87653         where #ifdef was intended.  The intent is to prevent ARG_MAX from
87654         being defined by the kernel headers.
87655
87656 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
87657
87658         [BZ #12734]
87659         * resolv/resolv.h: Define RES_NOTLDQUERY.
87660         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
87661         no-tld-query and set RES_NOTLDQUERY.
87662         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
87663         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
87664         modern BIND to search name as TLD unless forbidden.
87665
87666 2011-05-07  Petr Baudis  <pasky@suse.cz>
87667             Ulrich Drepper  <drepper@gmail.com>
87668
87669         [BZ #12393]
87670         * elf/dl-load.c (fillin_rpath): Move trusted path check...
87671         (is_trusted_path): ...to here.
87672         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
87673         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
87674         using is_trusted_path_normalize() in setuid scripts.
87675
87676 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
87677
87678         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
87679         __BEGIN/__END_DECLS.
87680
87681 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
87682
87683         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
87684         NSS_STATUS_NOTFOUND if no record was found.
87685
87686 2011-05-05  Andreas Schwab  <schwab@redhat.com>
87687
87688         * sunrpc/Makefile (headers): Add rpc/netdb.h.
87689         (headers-not-in-tirpc): Remove rpc/netdb.h
87690         * resolv/netdb.h: Revert last change.
87691
87692 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
87693
87694         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
87695         circular dependency between libgcc.a and libc.a.
87696
87697 2011-05-05  Andreas Schwab  <schwab@redhat.com>
87698
87699         * resolv/netdb.h: Don't include <rpc/netdb.h>.
87700         * nis/Makefile: Don't install rpcsvc/*.
87701         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
87702         instead of <rpc/types.h>.
87703         (MAXHOSTNAMELEN): Define.
87704
87705 2011-05-03  Andreas Schwab  <schwab@redhat.com>
87706
87707         * elf/ldconfig.c (add_dir): Don't crash on empty path.
87708
87709 2011-04-28  Maciej Babinski  <mbabinski@google.com>
87710
87711         [BZ #12714]
87712         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
87713         gethostbyname4_r when IPv6 results are possible.
87714
87715 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
87716
87717         [BZ #12723]
87718         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
87719         _PC_PIPE_BUF handling.
87720
87721 2011-04-30  Bruno Haible  <bruno@clisp.org>
87722
87723         [BZ #12717]
87724         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
87725         * resolv/netdb.h (getnameinfo): Change type of flags parameter
87726         to 'int'.
87727         * inet/getnameinfo.c (getnameinfo): Likewise.
87728
87729 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
87730
87731         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
87732         to groups setting in database lookup.
87733         * nss/nsswitch.conf: Add initgroups entry.
87734
87735 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
87736
87737         [BZ #12685]
87738         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
87739         mode string.
87740         Patch by Eric Blake <eblake@redhat.com>.
87741
87742 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
87743
87744         * sunrpc/Makefile (need-export-routines): Add svc_run.
87745         (routines): Remove svc_run.
87746         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
87747         * sunrpc/clnt_perr.c (clnt_perrno): Export.
87748         * sunrpc/svc_run.c (svc_run): Likewise.
87749         * sunrpc/svc_udp.c (svcudp_create): Likewise.
87750
87751 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
87752
87753         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
87754         problem in reallocation in last patch.
87755
87756 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
87757
87758         * sunrpc/Makefile: Move inclusion of Rules.
87759
87760 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
87761
87762         * nss/nss_files/files-initgroups.c: New file.
87763         * nss/Makefile (libnss_files-routines): Add files-initgroups.
87764         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
87765         _nss_files_initgroups_dyn.
87766
87767 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
87768
87769         * elf/elf.h (R_ARM_IRELATIVE): Define.
87770
87771 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
87772
87773         * po/ru.po: Update from translation team.
87774
87775 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
87776
87777         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
87778         dependencies.
87779
87780 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
87781
87782         [BZ #12653]
87783         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
87784         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
87785         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
87786         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
87787         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
87788
87789 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
87790
87791         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
87792         differing bytes.
87793         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
87794         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
87795         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
87796
87797 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
87798
87799         [BZ #12420]
87800         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
87801         storing it.
87802         * stdlib/bug-getcontext.c: New file.
87803         * stdlib/Makefile: Add rules to build and run bug-getcontext.
87804
87805 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
87806
87807         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
87808         instructions into .machine "z9-109".
87809         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
87810         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
87811
87812 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
87813
87814         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
87815         between environment variables and auxiliary vector.
87816
87817 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
87818
87819         * Makefile: Add rules to build linkobj/libc.so.
87820         * include/libc-symbols.h: Define libc_hidden_nolink.
87821         * include/rpc/auth.h: Mark functions which are to be hidden.
87822         * include/rpc/auth_des.h: Likewise.
87823         * include/rpc/auth_unix.h: Likewise.
87824         * include/rpc/clnt.h: Likewise.
87825         * include/rpc/des_crypt.h: Likewise.
87826         * include/rpc/key_prot.h: Likewise.
87827         * include/rpc/pmap_clnt.h: Likewise.
87828         * include/rpc/pmap_prot.h: Likewise.
87829         * include/rpc/pmap_rmt.h: Likewise.
87830         * include/rpc/rpc_msg.h: Likewise.
87831         * include/rpc/svc.h: Likewise.
87832         * include/rpc/svc_auth.h: Likewise.
87833         * include/rpc/xdr.h: Likewise.
87834         * nis/Makefile: Link all DSOs against linkobj/libc.so.
87835         * nss/Makefile: Likewise.
87836         * sunrpc/Makefile: Don't install headers.  Build library with normal
87837         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
87838         * sunrpc/auth_des.c: Hide exported symbols by default, export some
87839         for the compat linking library.  Remove use of INTDEF/INTUSE.
87840         * sunrpc/auth_none.c: Likewise.
87841         * sunrpc/auth_unix.c: Likewise.
87842         * sunrpc/authdes_prot.c: Likewise.
87843         * sunrpc/authuxprot.c: Likewise.
87844         * sunrpc/clnt_gen.c: Likewise.
87845         * sunrpc/clnt_perr.c: Likewise.
87846         * sunrpc/clnt_raw.c: Likewise.
87847         * sunrpc/clnt_simp.c: Likewise.
87848         * sunrpc/clnt_tcp.c: Likewise.
87849         * sunrpc/clnt_udp.c: Likewise.
87850         * sunrpc/clnt_unix.c: Likewise.
87851         * sunrpc/des_crypt.c: Likewise.
87852         * sunrpc/des_soft.c: Likewise.
87853         * sunrpc/get_myaddr.c: Likewise.
87854         * sunrpc/key_call.c: Likewise.
87855         * sunrpc/key_prot.c: Likewise.
87856         * sunrpc/netname.c: Likewise.
87857         * sunrpc/pm_getmaps.c: Likewise.
87858         * sunrpc/pm_getport.c: Likewise.
87859         * sunrpc/pmap_clnt.c: Likewise.
87860         * sunrpc/pmap_prot.c: Likewise.
87861         * sunrpc/pmap_prot2.c: Likewise.
87862         * sunrpc/pmap_rmt.c: Likewise.
87863         * sunrpc/publickey.c: Likewise.
87864         * sunrpc/rpc_cmsg.c: Likewise.
87865         * sunrpc/rpc_common.c: Likewise.
87866         * sunrpc/rpc_dtable.c: Likewise.
87867         * sunrpc/rpc_prot.c: Likewise.
87868         * sunrpc/rpc_thread.c: Likewise.
87869         * sunrpc/rtime.c: Likewise.
87870         * sunrpc/svc.c: Likewise.
87871         * sunrpc/svc_auth.c: Likewise.
87872         * sunrpc/svc_authux.c: Likewise.
87873         * sunrpc/svc_raw.c: Likewise.
87874         * sunrpc/svc_run.c: Likewise.
87875         * sunrpc/svc_simple.c: Likewise.
87876         * sunrpc/svc_tcp.c: Likewise.
87877         * sunrpc/svc_udp.c: Likewise.
87878         * sunrpc/svc_unix.c: Likewise.
87879         * sunrpc/svcauth_des.c: Likewise.
87880         * sunrpc/xcrypt.c: Likewise.
87881         * sunrpc/xdr.c: Likewise.
87882         * sunrpc/xdr_array.c: Likewise.
87883         * sunrpc/xdr_float.c: Likewise.
87884         * sunrpc/xdr_intXX_t.c: Likewise.
87885         * sunrpc/xdr_mem.c: Likewise.
87886         * sunrpc/xdr_rec.c: Likewise.
87887         * sunrpc/xdr_ref.c: Likewise.
87888         * sunrpc/xdr_sizeof.c: Likewise.
87889         * sunrpc/xdr_stdio.c: Likewise.
87890
87891 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
87892
87893         [BZ #12650]
87894         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
87895         * sysdeps/ia64/dl-tls.h: Likewise.
87896         * sysdeps/powerpc/dl-tls.h: Likewise.
87897         * sysdeps/s390/dl-tls.h: Likewise.
87898         * sysdeps/sh/dl-tls.h: Likewise.
87899         * sysdeps/sparc/dl-tls.h: Likewise.
87900         * sysdeps/x86_64/dl-tls.h: Likewise.
87901         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
87902
87903 2011-03-14  Andreas Schwab  <schwab@redhat.com>
87904
87905         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
87906         rpath element also skip the following colon.
87907         (expand_dynamic_string_token): Add is_path parameter and pass
87908         down to DL_DST_REQUIRED and _dl_dst_substitute.
87909         (decompose_rpath): Call expand_dynamic_string_token with
87910         non-zero is_path.  Ignore empty rpaths.
87911         (_dl_map_object_from_fd): Call expand_dynamic_string_token
87912         with zero is_path.
87913
87914 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
87915
87916         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
87917         Make cancelable.
87918
87919 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
87920
87921         [BZ #12655]
87922         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
87923         Patch by Filipe David Manana <fdmanana@apache.org>.
87924
87925 2011-04-07  Andreas Schwab  <schwab@redhat.com>
87926
87927         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
87928         Maintain aligned stack.
87929         (CHECK_RSP): Remove unused macro.
87930
87931 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
87932
87933         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
87934         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
87935
87936 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
87937
87938         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
87939
87940         * include/features.h: Mention __USE_XOPEN2K8 in comment.
87941
87942 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
87943
87944         [BZ #12518]
87945         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
87946         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
87947         * sysdeps/x86_64/memmove.c: New file.
87948         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
87949         (memcpy): Renamed to ...
87950         (__new_memcpy): This.
87951         (memcpy): Provide GLIBC_2_14 memcpy.
87952         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
87953         (memcpy): Provide GLIBC_2_2_5 memcpy.
87954
87955 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
87956
87957         [BZ #12631]
87958         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
87959
87960 2011-03-30  Andreas Schwab  <schwab@redhat.com>
87961
87962         * misc/syncfs.c: New file.
87963         * misc/Makefile (routines): Add syncfs.
87964         * posix/unistd.h: Declare syncfs.
87965         * sysdeps/unix/syscalls.list: Add syncfs.
87966
87967 2011-04-01  Andreas Schwab  <schwab@redhat.com>
87968
87969         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
87970         open_by_handle_at.
87971         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
87972         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
87973         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
87974         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
87975         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
87976         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
87977         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
87978
87979 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
87980
87981         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
87982         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
87983         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
87984         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
87985         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
87986         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
87987         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
87988
87989         * io/Makefile: Compile fallocate.c, fallocate64.c, and
87990         sync_file_range.c with -fexceptions.
87991         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
87992         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
87993         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
87994         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
87995         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
87996         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
87997         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
87998         sync_file_range as cancellation point
87999         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
88000         now a wrapper around __call_sync_file_range with cancellation handling.
88001         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
88002         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
88003         function name to __call_sync_file_range.
88004         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
88005         Add call_sync_file_range.
88006
88007 2011-04-01  Andreas Schwab  <schwab@redhat.com>
88008
88009         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
88010         bits/timex.h.
88011
88012 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
88013
88014         * iconv/iconv.h: Fix typo in comment.
88015         * io/fcntl.h: Likewise.
88016         * libio/stdio.h: Likewise.
88017         * posix/spawn.h: Likewise.
88018         * posix/unistd.h: Likewise.
88019         * stdlib/stdlib.h: Likewise.
88020         * time/time.h: Likewise.
88021         * wcsmbs/wchar.h: Likewise.
88022
88023         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
88024         open_by_handle): Add.
88025         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
88026         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
88027         Augment a few comments.
88028         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
88029         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
88030         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
88031         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
88032         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
88033         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
88034         open_by_handle.
88035
88036         * io/fcntl.h (AT_EMPTY_PATH): Define.
88037
88038 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
88039
88040         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
88041         * sysdeps/unix/sysv/linux/bits/time.h: New file.
88042         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
88043         to...
88044         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
88045         * Versions.def: Add GLIBC_2.14.
88046         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
88047         Export.
88048
88049 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
88050
88051         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
88052         round counter.
88053         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
88054
88055 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
88056
88057         [BZ #12597]
88058         * string/test-strncmp.c (do_page_test): New function.
88059         (check2): Likewise.
88060         (test_main): Call check2.
88061         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
88062
88063 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
88064
88065         [BZ #12587]
88066         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
88067         Handle cache information in CPU leaf 4.
88068         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
88069
88070 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
88071
88072         [BZ #12583]
88073         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
88074         character representation.
88075         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
88076
88077 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
88078
88079         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
88080         END(__isnan) to END(__isnanf) to match function entry point/label
88081         EALIGN(__isnanf,...).
88082
88083 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
88084
88085         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
88086
88087 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
88088
88089         [BZ #12510]
88090         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
88091         copy from the symbol referenced in the relocation to initialize the
88092         used variable.
88093         Patch by Piotr Bury <pbury@goahead.com>.
88094         * elf/Makefile: Add rules to build and tst-unique3.
88095         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
88096         * elf/tst-unique3.cc: New file.
88097         * elf/tst-unique3.h: New file.
88098         * elf/tst-unique3lib.cc: New file.
88099         * elf/tst-unique3lib2.cc: New file.
88100
88101         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
88102
88103 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
88104
88105         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
88106         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
88107         to _start.
88108
88109 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
88110
88111         * elf/dl-load.c (_dl_map_object): If we are looking for the first
88112         to-be-loaded object along a path to loader is ld.so.
88113
88114 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
88115             Ulrich Drepper  <drepper@gmail.com>
88116
88117         * sysdeps/x86_64/memset.S: After aligning destination, code
88118         branches to different locations depending on the value of
88119         misalignment, when multiarch is enabled. Fix this.
88120
88121 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
88122
88123         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
88124         Set _x86_64_preferred_memory_instruction for AMD processsors.
88125         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
88126         Set bit_Prefer_SSE_for_memop for AMD processors.
88127
88128 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
88129
88130         * libio/fmemopen.c (fmemopen): Optimize a bit.
88131
88132 2011-03-03  Andreas Schwab  <schwab@redhat.com>
88133
88134         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
88135
88136 2011-03-03  Roland McGrath  <roland@redhat.com>
88137
88138         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
88139
88140 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
88141
88142         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
88143         __bzero_ultra1 instead of __memset_ultra1.
88144
88145 2011-02-23  Andreas Schwab  <schwab@redhat.com>
88146             Ulrich Drepper  <drepper@gmail.com>
88147
88148         [BZ #12509]
88149         * include/link.h (struct link_map): Add l_orig_initfini.
88150         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
88151         returning unsuccessfully.
88152         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
88153         close of a file loaded at startup, restore the original l_initfini
88154         list.
88155         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
88156         list, store the pointer.
88157         * elf/Makefile ($(objpfx)noload-mem): New rule.
88158         (noload-ENV): Define.
88159         (tests): Add $(objpfx)noload-mem.
88160         * elf/noload.c: Include <memcheck.h>.
88161         (main): Call mtrace.  Close all opened handles.
88162
88163 2011-02-17  Andreas Schwab  <schwab@redhat.com>
88164
88165         [BZ #12454]
88166         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
88167         dependencies are missing.
88168
88169 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
88170
88171         Fix __if_freereq crash: Unlike the generic version which uses free,
88172         Hurd needs munmap.
88173         * sysdeps/mach/hurd/ifreq.h: New file.
88174
88175 2011-01-27  Petr Baudis  <pasky@suse.cz>
88176             Ulrich Drepper  <drepper@gmail.com>
88177
88178         [BZ 12445]#
88179         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
88180         to extend_alloca().
88181         * stdio-common/bug23.c: New file.
88182         * stdio-common/Makefile (tests): Add bug23.
88183
88184 2010-09-28  Andreas Schwab  <schwab@redhat.com>
88185             Ulrich Drepper  <drepper@gmail.com>
88186
88187         [BZ #12489]
88188         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
88189         before performing relro protection.  At old place add assertion
88190         to make sure nothing changed.
88191
88192 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
88193             Glauber de Oliveira Costa  <glommer@gmail.com>
88194
88195         * elf/elf.h: Add new ARM TLS relocs.
88196
88197 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
88198
88199         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
88200         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
88201         cast from r3.
88202         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
88203         'tests' variable.
88204         * sysdeps/wordsize-64/tst-writev.c: New file.
88205
88206 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
88207
88208         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
88209         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
88210         insns in _dl_start to prevent a TOC reference before relocs are
88211         resolved.
88212
88213 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
88214
88215         [BZ #12469]
88216         * Makeconfig: Remove RANLIB definition.
88217         * Makerules: Don't use RANLIB.
88218         * aclocal.m4: Remove ranlib test.
88219         * configure.in: No need to check for ranlib.
88220         * elf/rtld-Rules: Don't use RANLIB.
88221
88222 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
88223
88224         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
88225         protection macro.
88226         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
88227         inclusion protection macro.
88228
88229         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
88230         SIGRTMIN and SIGRTMAX and print information in that case only when
88231         SIGRTMIN is defined.
88232
88233 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
88234
88235         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
88236         arginfo fn returning -1.
88237
88238         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
88239         and thousands string is zero terminated.
88240
88241 2011-02-03  Andreas Schwab  <schwab@redhat.com>
88242
88243         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
88244         sysdeps/unix/sysv/linux/bits/socket.h.
88245
88246 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
88247
88248         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
88249         (__CPU_COUNT): Remove old macros.
88250         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
88251         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
88252         (__CPU_ALLOC, __CPU_FREE): Add macros.
88253         (__sched_cpualloc, __sched_cpufree): Add declarations.
88254
88255 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
88256
88257         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
88258         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
88259         * nscd/aicache.c (addhstaiX): Return timeout of added value.
88260         (readdhstai): Return value of addhstaiX call.
88261         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
88262         (addgrbyX): Return value returned by cache_addgr.
88263         (readdgrbyname): Return value returned by addgrbyX.
88264         (readdgrbygid): Likewise.
88265         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
88266         (addpwbyX): Return value returned by cache_addpw.
88267         (readdpwbyname): Return value returned by addhstbyX.
88268         (readdpwbyuid): Likewise.
88269         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
88270         (addservbyX): Return value returned by cache_addserv.
88271         (readdservbyname): Return value returned by addservbyX:
88272         (readdservbyport): Likewise.
88273         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
88274         (addhstbyX): Return value returned by cache_addhst.
88275         (readdhstbyname): Return value returned by addhstbyX.
88276         (readdhstbyaddr): Likewise.
88277         (readdhstbynamev6): Likewise.
88278         (readdhstbyaddrv6): Likewise.
88279         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
88280         (readdinitgroups): Return value returned by addinitgroupsX.
88281         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
88282         (prune_cache): Keep track of timeout value of re-added entries.
88283         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
88284         * nscd/nscd.h: Adjust prototypes of readd* functions.
88285
88286 2011-02-04  Roland McGrath  <roland@redhat.com>
88287
88288         * nis/nis_server.c (nis_servstate): Use the right name for 0.
88289         (nis_stats): Likewise.
88290         * nis/nis_modify.c (nis_modify): Likewise.
88291         * nis/nis_remove.c (nis_remove): Likewise.
88292         * nis/nis_add.c (nis_add): Likewise.
88293
88294         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
88295
88296         * posix/fnmatch_loop.c: Add some consts.
88297
88298         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
88299
88300 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
88301
88302         [BZ #12460]
88303         * config.make.in (config-cflags-novzeroupper): Define.
88304         * configure.in: Substitute libc_cv_cc_novzeroupper.
88305         * elf/Makefile (AVX-CFLAGS): Define.
88306         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
88307         (CFLAGS-tst-auditmod4a.c): Likewise.
88308         (CFLAGS-tst-auditmod4b.c): Likewise.
88309         (CFLAGS-tst-auditmod6b.c): Likewise.
88310         (CFLAGS-tst-auditmod6c.c): Likewise.
88311         (CFLAGS-tst-auditmod7b.c): Likewise.
88312         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
88313
88314 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
88315
88316         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
88317         function to the callback.
88318         Patch partly by Jiri Olsa <jolsa@redhat.com>.
88319
88320 2011-02-02  Andreas Schwab  <schwab@redhat.com>
88321
88322         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
88323         of errno.
88324
88325 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
88326
88327         [BZ #11724]
88328         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
88329         of constructors.
88330         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
88331         of destructors.
88332         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
88333
88334         [BZ #11724]
88335         * elf/Makefile: Add rules to build and run new test.
88336         * elf/tst-initorder.c: New file.
88337         * elf/tst-initorder.exp: New file.
88338         * elf/tst-initordera1.c: New file.
88339         * elf/tst-initordera2.c: New file.
88340         * elf/tst-initordera3.c: New file.
88341         * elf/tst-initordera4.c: New file.
88342         * elf/tst-initorderb1.c: New file.
88343         * elf/tst-initorderb2.c: New file.
88344         * elf/tst-order-a1.c: New file.
88345         * elf/tst-order-a2.c: New file.
88346         * elf/tst-order-a3.c: New file.
88347         * elf/tst-order-a4.c: New file.
88348         * elf/tst-order-b1.c: New file.
88349         * elf/tst-order-b2.c: New file.
88350         * elf/tst-order-main.c: New file.
88351         New test case by George Gensure <werkt0@gmail.com>.
88352
88353 2010-10-01  Andreas Schwab  <schwab@redhat.com>
88354
88355         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
88356         decoding ACE if AI_CANONIDN.
88357
88358 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
88359
88360         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
88361
88362 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
88363
88364         * version.h (RELEASE): Bump for 2.13 release.
88365         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
88366
88367         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
88368
88369         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
88370         MADV_NOHUGEPAGE.
88371         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
88372         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
88373         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
88374         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
88375         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
88376         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
88377
88378         * posix/getconf.c: Update copyright year.
88379         * catgets/gencat.c: Likewise.
88380         * csu/version.c: Likewise.
88381         * debug/catchsegv.sh: Likewise.
88382         * debug/xtrace.sh: Likewise.
88383         * elf/ldconfig.c: Likewise.
88384         * elf/ldd.bash.in: Likewise.
88385         * elf/sprof.c (print_version): Likewise.
88386         * iconv/iconv_prog.c: Likewise.
88387         * iconv/iconvconfig.c: Likewise.
88388         * locale/programs/locale.c: Likewise.
88389         * locale/programs/localedef.c: Likewise.
88390         * malloc/memusage.sh: Likewise.
88391         * malloc/mtrace.pl: Likewise.
88392         * nscd/nscd.c (print_version): Likewise.
88393         * nss/getent.c: Likewise.
88394
88395         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
88396         PF_CAIF, and PF_ALG.
88397         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
88398
88399 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
88400
88401         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
88402         (modules-names): Use them.
88403         (ifunc-test-modules, ifunc-pie-tests): Define.
88404         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
88405         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
88406         (test-extras): Likewise.
88407         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
88408         $(compile-command.c).
88409         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
88410         (all-built-dso): Define.
88411         (check-textrel.out, check-execstack.out): Depend on it.
88412
88413         * configure.in: Don't override --enable-multi-arch.
88414
88415 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
88416
88417         [BZ #6812]
88418         * nscd/hstcache.c (tryagain): Define.
88419         (cache_addhst): Return tryagain not notfound for temporary errors.
88420         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
88421         failed.
88422
88423 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
88424
88425         [BZ #10563]
88426         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
88427         to make the syscall.
88428         * sysdeps/unix/sysv/linux/setgroups.c: New file.
88429
88430         [BZ #12378]
88431         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
88432         and fall back to matching as normal character if the string ends before
88433         the matching ']' is found.  This is what POSIX requires.
88434         * posix/testfnm.c: Adjust test result.
88435         * posix/globtest.sh: Adjust test result.  Add new test.
88436         * posix/tst-fnmatch.input: Likewise.
88437         * posix/tst-fnmatch2.c: Add new test.
88438
88439 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
88440
88441         * elf/Makefile (check-execstack): Revert last change.  Depend on
88442         check-execstack.h.
88443         (check-execstack.h): New target.
88444         (generated): Add check-execstack.h.
88445         * elf/check-execstack.c: Include "check-execstack.h".
88446         (main): Revert last change.
88447         (handle_file): Return zero if GNU_STACK is absent and
88448         DEFAULT_STACK_PERMS doesn't include PF_X.
88449
88450 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
88451
88452         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
88453         in child fails because the descriptor is already closed.
88454         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
88455         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
88456         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
88457
88458         [BZ #12397]
88459         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
88460         syscall.
88461
88462         [BZ #10484]
88463         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
88464         temporary buffer used to handle multi lookups locally.
88465         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
88466
88467 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
88468
88469         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
88470         loader is ld.so.
88471
88472 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
88473
88474         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
88475         alignment for SSE2.
88476
88477 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
88478
88479         [BZ #12394]
88480         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
88481         characters.  When rounding increased number of integer digits recompute
88482         number of groups.
88483         * stdio-common/tst-grouping.c: New file.
88484         * stdio-common/Makefile: Add rules to build and run tst-grouping.
88485
88486 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
88487
88488         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
88489         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
88490
88491         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
88492         void.
88493         * bits/select.h: Likewise.
88494
88495 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
88496
88497         * po/ja.po: Update from translation team.
88498
88499 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
88500
88501         [BZ #11155]
88502         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
88503         implementation just like for lxstat, fxstatat, et al.
88504
88505 2010-12-27  Jim Meyering  <meyering@redhat.com>
88506
88507         [BZ #12348]
88508         * posix/regexec.c (build_trtable): Return failure indication upon
88509         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
88510
88511 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
88512
88513         [BZ #12201]
88514         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
88515         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
88516         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
88517         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
88518
88519         [BZ #12207]
88520         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
88521
88522         [BZ #12204]
88523         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
88524         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
88525
88526 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
88527
88528         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
88529         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
88530         script has SORT_BY_INIT_PRIORITY.
88531         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
88532         NO_CTORS_DTORS_SECTIONS is defined.
88533         * elf/soinit.c: Likewise.
88534         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
88535         NO_CTORS_DTORS_SECTIONS is defined.
88536         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
88537         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
88538         * sysdeps/sh/init-first.c: Likewise.
88539         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
88540
88541 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
88542
88543         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
88544         always use the slow path.
88545
88546 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
88547
88548         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
88549         similar rule which adds the sysdep directories to the header search in
88550         order to pick up the correct platform stackinfo.h.
88551         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
88552         perform test if it is, otherwise return successfully without testing.
88553         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
88554         DEFAULT_STACK_PERMS define in stackinfo.h.
88555         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
88556         defined in stackinfo.h.
88557         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
88558         DEFAULT_STACK_PERMS defined in stackinfo.h.
88559         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
88560         * sysdeps/ia64/stackinfo.h: Likewise.
88561         * sysdeps/s390/stackinfo.h: Likewise.
88562         * sysdeps/sh/stackinfo.h: Likewise.
88563         * sysdeps/sparc/stackinfo.h: Likewise.
88564         * sysdeps/x86_64/stackinfo.h: Likewise.
88565         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
88566         PF_X for powerpc64.  Retain PF_X for powerpc32.
88567
88568 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
88569
88570         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
88571         accurately.
88572         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
88573         GETDENTS_64BIT_ALIGNED.
88574
88575 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
88576
88577         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
88578
88579 2010-12-10  Andreas Schwab  <schwab@redhat.com>
88580
88581         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
88582         _GNU_SOURCE.
88583
88584         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
88585         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
88586         Remove __restrict.
88587         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
88588         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
88589
88590 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
88591
88592         [BZ #11655]
88593         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
88594         are initialized.
88595
88596 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
88597
88598         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
88599
88600 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
88601
88602         * po/it.po: Update from translation team.
88603
88604 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
88605
88606         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
88607         unused codes.
88608
88609 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
88610
88611         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
88612
88613 2010-11-24  Andreas Schwab  <schwab@redhat.com>
88614
88615         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
88616         specially.
88617         (gaih_getanswer_slice): Likewise.
88618
88619 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
88620
88621         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
88622
88623 2010-05-31  Petr Baudis  <pasky@suse.cz>
88624
88625         [BZ #11149]
88626         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
88627         silently even in the chroot mode.
88628
88629 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
88630
88631         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
88632         last patch a bit.  Pretty printing
88633
88634 2010-05-31  Petr Baudis <pasky@suse.cz>
88635
88636         [BZ #10085]
88637         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
88638         initialization of skip_initgroups_dyn.
88639
88640 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
88641
88642         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
88643         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
88644
88645 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
88646
88647         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
88648
88649 2010-11-11  Andreas Schwab  <schwab@redhat.com>
88650
88651         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
88652         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
88653         (tst-fnmatch-ENV): Set MALLOC_TRACE.
88654         ($(objpfx)tst-fnmatch-mem): New rule.
88655         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
88656         * posix/tst-fnmatch.c (main): Call mtrace.
88657
88658 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
88659
88660         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
88661         Support Intel processor model 6 and model 0x2c.
88662
88663 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
88664
88665         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
88666           signed comparison.
88667
88668 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
88669
88670         [BZ #12205]
88671         * string/test-strncasecmp.c (check_result): New function.
88672         (do_one_test): Use it.
88673         (check1): New function.
88674         (test_main): Use it.
88675         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
88676         Support strcasecmp and strncasecmp.
88677
88678 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
88679
88680         [BZ #12194]
88681         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
88682         * sysdeps/x86_64/bits/byteswap.h: Likewise.
88683
88684 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
88685
88686         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
88687         IFUNC support.
88688         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
88689         memset-x86-64.
88690         * sysdeps/x86_64/multiarch/bzero.S: New file.
88691         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
88692         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
88693         * sysdeps/x86_64/multiarch/memset.S: New file.
88694         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
88695         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
88696         Set bit_Prefer_SSE_for_memop for Intel processors.
88697         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
88698         Define.
88699         (index_Prefer_SSE_for_memop): Define.
88700         (HAS_PREFER_SSE_FOR_MEMOP): Define.
88701
88702 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
88703
88704         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
88705         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
88706
88707 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
88708
88709         [BZ #12191]
88710         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
88711         (__x86_64_raw_data_cache_size_half): Likewise.
88712         (__x86_64_raw_shared_cache_size): Likewise.
88713         (__x86_64_raw_shared_cache_size_half): Likewise.
88714
88715         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
88716         (__x86_64_raw_data_cache_size_half): Likewise.
88717         (__x86_64_raw_shared_cache_size): Likewise.
88718         (__x86_64_raw_shared_cache_size_half): Likewise.
88719         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
88720         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
88721         and __x86_64_raw_shared_cache_size_half.  Round
88722         __x86_64_data_cache_size_half, __x86_64_data_cache_size
88723         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
88724         to multiple of 256 bytes.
88725
88726 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
88727
88728         [BZ #12167]
88729         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
88730         of inacessible symlinks.  Verify result of symlink before returning it.
88731         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
88732         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
88733
88734 2010-10-28  Erich Ritz  <erichritz@gmail.com>
88735
88736         * math/math.h (isinf): Fix typo in comment.
88737
88738 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
88739
88740         * po/da.po: Update from translation team.
88741
88742 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
88743
88744         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
88745         is added to the list.
88746
88747 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
88748             Ulrich Drepper  <drepper@gmail.com>
88749
88750         * elf/dl-object.c (_dl_new_object): Don't append the new object to
88751         the global list here.  Move code to...
88752         (_dl_add_to_namespace_list): ...here.  New function.
88753         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
88754         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
88755         * elf/dl-load.c (lose): Don't remove the element from the list.
88756         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
88757         (_dl_map_object): Likewise.
88758
88759 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
88760
88761         [BZ #12159]
88762         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
88763         into all bytes of SSE register.
88764         Patch by Richard Li <richardpku@gmail.com>.
88765
88766 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
88767
88768         [BZ #12140]
88769         * malloc/malloc.c (_int_free): Fill correct number of bytes when
88770         perturbing.
88771
88772 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
88773
88774         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
88775         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
88776         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
88777         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
88778         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
88779         submachine.
88780         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
88781
88782 2010-10-22  Andreas Schwab  <schwab@redhat.com>
88783
88784         * include/dlfcn.h (__RTLD_SECURE): Define.
88785         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
88786         mode & __RTLD_SECURE instead.
88787         (open_path): Rename preloaded parameter to secure.
88788         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
88789         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
88790         * elf/dl-deps.c (openaux): Likewise.
88791         * elf/rtld.c (struct map_args): Remove is_preloaded.
88792         (map_doit): Don't use it.
88793         (dl_main): Likewise.
88794         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
88795         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
88796
88797 2010-09-09  Andreas Schwab  <schwab@redhat.com>
88798
88799         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
88800         (sysd-rules-targets): Remove duplicates.
88801         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
88802         rtld-%.$o dependency.
88803
88804 2010-10-18  Andreas Schwab  <schwab@redhat.com>
88805
88806         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
88807         _dl_map_object do it.
88808
88809 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
88810
88811         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
88812         fast fma builtins, define the macros in the C99 standard.
88813         (FP_FAST_FMAF): Likewise.
88814         (FP_FAST_FMAL): Likewise.
88815         * sysdeps/x86_64/bits/mathdef.h: Likewise.
88816
88817         * bits/mathdef.h: Update copyright year.
88818         * sysdeps/powerpc/bits/mathdef.h: Likewise.
88819
88820 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
88821
88822         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
88823         builtins, define the macros in the C99 standard.
88824         (FP_FAST_FMAF): Likewise.
88825         (FP_FAST_FMAL): Likewise.
88826         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
88827         multiply/add.
88828         (FP_FAST_FMAF): Likewise.
88829
88830 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
88831
88832         [BZ #3268]
88833         * math/libm-test.inc (fma_test): Some new testcases.
88834         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
88835         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
88836         y and infinite z.  Do multiplication by C already in long double.
88837         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
88838         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
88839         y and infinite z.  Do bitwise or of inexact bit into u.d.
88840         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
88841         * sysdeps/i386/fpu/s_fmaf.S: Removed.
88842         * sysdeps/i386/fpu/s_fma.S: Removed.
88843         * sysdeps/i386/fpu/s_fmal.S: Removed.
88844
88845 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
88846
88847         [BZ #3268]
88848         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
88849         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
88850         computation is not scheduled after fetestexcept.  Fix value
88851         of minimum denormal long double.
88852
88853 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
88854
88855         [BZ #3268]
88856         * math/libm-test.inc (fma_test): Add some more tests.
88857         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
88858         correctly.
88859
88860 2010-10-15  Andreas Schwab  <schwab@redhat.com>
88861
88862         * scripts/data/localplt-s390-linux-gnu.data: New file.
88863         * scripts/data/localplt-s390x-linux-gnu.data: New file.
88864
88865 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
88866
88867         [BZ #3268]
88868         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
88869         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
88870         instead of dbl-64.
88871         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
88872         inlines.
88873         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
88874         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
88875         if one of x and y is very large and the other is subnormal.
88876         * sysdeps/s390/fpu/s_fmaf.c: New file.
88877         * sysdeps/s390/fpu/s_fma.c: New file.
88878         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
88879         * sysdeps/powerpc/fpu/s_fma.S: New file.
88880         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
88881         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
88882         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
88883
88884 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
88885
88886         [BZ #3268]
88887         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
88888         fma tests.
88889         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
88890         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
88891         * sysdeps/i386/i686/multiarch/s_fma.c: Include
88892         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
88893         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
88894         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
88895         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
88896
88897 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
88898
88899         [BZ #12078]
88900         * posix/regcomp.c (parse_branch): One more memory leak plugged.
88901         * posix/bug-regex31.input: Add test case.
88902
88903 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
88904
88905         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
88906         * posix/bug-regex31.input: New file.
88907
88908         [BZ #12078]
88909         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
88910         (parse_sub_exp): Fix last change, use postorder.
88911
88912         * posix/bug-regex31.c: New file.
88913         * posix/Makefile: Add rules to build and run bug-regex31.
88914
88915         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
88916
88917         [BZ #12078]
88918         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
88919
88920         [BZ #12108]
88921         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
88922         to have entries in sys_siglist.
88923
88924         [BZ #12093]
88925         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
88926         be NULL.
88927
88928 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
88929
88930         [BZ #3268]
88931         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
88932         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
88933         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
88934         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
88935         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
88936         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
88937         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
88938         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
88939         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
88940         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
88941         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
88942         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
88943         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
88944         * math/ftestexcept.c (fetestexcept): Likewise.
88945         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
88946         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
88947         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
88948         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
88949         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
88950         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
88951         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
88952
88953 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
88954
88955         [BZ #12107]
88956         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
88957         newline.
88958
88959 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
88960
88961         * string/bug-strstr1.c: New file.
88962         * string/Makefile: Add rules to build and run bug-strstr1.
88963
88964 2010-10-05  Eric Blake  <eblake@redhat.com>
88965
88966         [BZ #12092]
88967         * string/str-two-way.h (two_way_long_needle): Always clear memory
88968         when skipping input due to the shift table.
88969
88970 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
88971
88972         [BZ #12005]
88973         * malloc/mcheck.c: Handle large requests.
88974
88975         [BZ #12077]
88976         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
88977         for strncmp and strncasecmp.
88978         * string/stratcliff.c: Add tests for strcmp and strncmp.
88979         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
88980
88981 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
88982
88983         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
88984         __set_fpscr.
88985
88986 2010-09-30  Andreas Jaeger  <aj@suse.de>
88987
88988         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
88989         (CGROUP_SUPER_MAGIC): Define.
88990         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
88991         Handle btrfs and cgroup file systems.
88992         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
88993         Likewise.
88994
88995 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
88996
88997         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
88998         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
88999
89000 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
89001
89002         [BZ #12067]
89003         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
89004         trying to locate the ELF header.
89005
89006 2010-09-27  Andreas Schwab  <schwab@redhat.com>
89007
89008         [BZ #11611]
89009         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
89010         Mask out sign-bit copies when constructing f_fsid.
89011
89012 2010-09-24  Petr Baudis <pasky@suse.cz>
89013
89014         * debug/stack_chk_fail_local.c: Add missing licence exception.
89015         * debug/warning-nop.c: Likewise.
89016
89017 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
89018
89019         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
89020         implementing getdents64 using getdents syscall, set d_type if
89021         __ASSUME_GETDENTS32_D_TYPE.
89022
89023 2010-09-16  Andreas Schwab  <schwab@redhat.com>
89024
89025         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
89026         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
89027
89028 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
89029
89030         [BZ #12037]
89031         * posix/unistd.h: Undo change of feature selection for ftruncate from
89032         2010-01-11.
89033
89034 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
89035
89036         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
89037         detection.
89038
89039 2010-09-20  Andreas Schwab  <schwab@redhat.com>
89040
89041         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
89042         fanotify_mark.
89043         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
89044
89045 2010-09-14  Andreas Schwab  <schwab@redhat.com>
89046
89047         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
89048         variables after CHECK_SP call.
89049         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
89050
89051 2010-09-13  Andreas Schwab  <schwab@redhat.com>
89052             Ulrich Drepper  <drepper@redhat.com>
89053
89054         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
89055         re-relocationg ld.so.
89056         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
89057         _dl_init_paths call.
89058         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
89059         here anymore.
89060
89061 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
89062
89063         * resolv/res_init.c (__res_vinit): Count the default server we added.
89064
89065 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
89066             Ulrich Drepper  <drepper@redhat.com>
89067
89068         [BZ #11968]
89069         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
89070         (____longjmp_chk): Use %ebx for saving value across system call.
89071         Add unwind info.
89072
89073 2010-09-06  Andreas Schwab  <schwab@redhat.com>
89074
89075         * manual/Makefile: Don't mix pattern rules with normal rules.
89076
89077 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
89078
89079         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
89080         operation.
89081         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
89082         * libio/iofopncook.c (_IO_cookie_init): Likewise.
89083         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
89084         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
89085         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
89086         Likewise.
89087
89088 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
89089
89090         [BZ #11979]
89091         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
89092         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
89093
89094 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
89095
89096         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
89097         * sysdeps/x86_64/addmul_1.S: Likewise.
89098         * sysdeps/x86_64/lshift.S: Likewise.
89099         * sysdeps/x86_64/mul_1.S: Likewise.
89100         * sysdeps/x86_64/rshift.S: Likewise.
89101         * sysdeps/x86_64/sub_n.S: Likewise.
89102         * sysdeps/x86_64/submul_1.S: Likewise.
89103
89104 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
89105
89106         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
89107         Define __sched_param instead of SCHED_* and sched_param when
89108         <bits/sched.h> is included with __need_schedparam defined.
89109         * bits/sched.h [__need_schedparam]
89110         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
89111         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
89112         (__defined_schedparam): Define to 1.
89113         (__sched_param): New structure, identical to sched_param.
89114         (__need_schedparam): Undefine.
89115
89116 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
89117
89118         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
89119         (epoll_create1): Declare.
89120
89121         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
89122
89123 2010-08-31  Andreas Schwab  <schwab@redhat.com>
89124
89125         [BZ #7066]
89126         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
89127         shifting retval into place.
89128
89129 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
89130
89131         * nis/rpcsvc/nis.h: Update copyright notice.
89132         * nis/rpcsvc/nis.x: Likewise.
89133         * nis/rpcsvc/nis_callback.h: Likewise.
89134         * nis/rpcsvc/nis_callback.x: Likewise.
89135         * nis/rpcsvc/nis_object.x: Likewise.
89136         * nis/rpcsvc/nis_tags.h: Likewise.
89137         * nis/rpcsvc/yp.h: Likewise.
89138         * nis/rpcsvc/yp.x: Likewise.
89139         * nis/rpcsvc/ypupd.h: Likewise.
89140         * nis/yp_xdr.c: Likewise.
89141         * nis/ypupdate_xdr.c: Likewise.
89142
89143         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
89144         mainly the body of pmap_getport.  Add parameters to specify timeouts.
89145         (pmap_getport): Use __libc_rpc_getport.
89146         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
89147         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
89148         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
89149
89150 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
89151
89152         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
89153         fanotify_mark.
89154
89155 2010-08-27  Roland McGrath  <roland@redhat.com>
89156
89157         * sysdeps/i386/i686/multiarch/Makefile
89158         (CFLAGS-varshift.c): New variable.
89159
89160 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
89161
89162         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
89163         * sysdeps/i386/i686/multiarch/varshift.c: New file.
89164
89165         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
89166
89167         * sysdeps/x86_64/strlen.S: Minimal code improvement.
89168
89169 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
89170
89171         * sysdeps/x86_64/strlen.S: Unroll the loop.
89172         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
89173         strlen-sse2 strlen-sse2-bsf.
89174         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
89175         __strlen_no_bsf if bit_Slow_BSF is set.
89176         (__strlen_sse42): Removed.
89177         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
89178         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
89179
89180 2010-08-25  Roland McGrath  <roland@redhat.com>
89181
89182         * sysdeps/x86_64/multiarch/varshift.S: File removed.
89183         * sysdeps/x86_64/multiarch/varshift.c: New file.
89184         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
89185         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
89186         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
89187         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
89188
89189 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
89190
89191         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
89192         strlen-sse2 strlen-sse2-bsf.
89193         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
89194         __strlen_sse2_bsf if bit_Slow_BSF is unset.
89195         (__strlen_sse2): Removed.
89196         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
89197         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
89198         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
89199         bit_Slow_BSF for Atom.
89200         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
89201         (index_Slow_BSF): Define.
89202         (HAS_SLOW_BSF): Define.
89203
89204 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
89205
89206         [BZ #10851]
89207         * resolv/res_init.c (__res_vinit): When no server address at all
89208         is given default to loopback.
89209
89210 2010-08-24  Roland McGrath  <roland@redhat.com>
89211
89212         * configure.in: Remove config-name.h generation.
89213         * configure: Regenerated.
89214         * config-name.in: File removed.
89215         * scripts/config-uname.sh: New file.
89216         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
89217         ($(objdir)config-name.h): New target.
89218
89219         * sunrpc/rpc_parse.h: Avoid nested comment.
89220
89221 2010-08-24  Richard Henderson  <rth@redhat.com>
89222             Ulrich Drepper  <drepper@redhat.com>
89223             H.J. Lu  <hongjiu.lu@intel.com>
89224
89225         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
89226         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
89227         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
89228         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
89229         _mm_alignr_epi8 with _mm_loadu_si128.
89230         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
89231         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
89232         (__m128i_shift_right): Removed.
89233         * sysdeps/i386/i686/multiarch/varshift.h: New file.
89234         * sysdeps/i386/i686/multiarch/varshift.S: New file.
89235         * sysdeps/x86_64/multiarch/varshift.h: New file.
89236         * sysdeps/x86_64/multiarch/varshift.S: New file.
89237
89238 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
89239
89240         * configure.in: Move assembler checks to before sysdep dir checking.
89241
89242 2010-08-20  Petr Baudis  <pasky@suse.cz>
89243
89244         * LICENSES: Sync the sunrpc license.
89245
89246 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
89247
89248         * sunrpc/auth_des.c: Update copyright notice once again.
89249         * sunrpc/auth_none.c: Likewise.
89250         * sunrpc/auth_unix.c: Likewise.
89251         * sunrpc/authdes_prot.c: Likewise.
89252         * sunrpc/authuxprot.c: Likewise.
89253         * sunrpc/bindrsvprt.c: Likewise.
89254         * sunrpc/clnt_gen.c: Likewise.
89255         * sunrpc/clnt_perr.c: Likewise.
89256         * sunrpc/clnt_raw.c: Likewise.
89257         * sunrpc/clnt_simp.c: Likewise.
89258         * sunrpc/clnt_tcp.c: Likewise.
89259         * sunrpc/clnt_udp.c: Likewise.
89260         * sunrpc/clnt_unix.c: Likewise.
89261         * sunrpc/des_crypt.c: Likewise.
89262         * sunrpc/des_soft.c: Likewise.
89263         * sunrpc/get_myaddr.c: Likewise.
89264         * sunrpc/getrpcport.c: Likewise.
89265         * sunrpc/key_call.c: Likewise.
89266         * sunrpc/key_prot.c: Likewise.
89267         * sunrpc/openchild.c: Likewise.
89268         * sunrpc/pm_getmaps.c: Likewise.
89269         * sunrpc/pm_getport.c: Likewise.
89270         * sunrpc/pmap_clnt.c: Likewise.
89271         * sunrpc/pmap_prot.c: Likewise.
89272         * sunrpc/pmap_prot2.c: Likewise.
89273         * sunrpc/pmap_rmt.c: Likewise.
89274         * sunrpc/rpc/auth.h: Likewise.
89275         * sunrpc/rpc/auth_unix.h: Likewise.
89276         * sunrpc/rpc/clnt.h: Likewise.
89277         * sunrpc/rpc/des_crypt.h: Likewise.
89278         * sunrpc/rpc/key_prot.h: Likewise.
89279         * sunrpc/rpc/netdb.h: Likewise.
89280         * sunrpc/rpc/pmap_clnt.h: Likewise.
89281         * sunrpc/rpc/pmap_prot.h: Likewise.
89282         * sunrpc/rpc/pmap_rmt.h: Likewise.
89283         * sunrpc/rpc/rpc.h: Likewise.
89284         * sunrpc/rpc/rpc_des.h: Likewise.
89285         * sunrpc/rpc/rpc_msg.h: Likewise.
89286         * sunrpc/rpc/svc.h: Likewise.
89287         * sunrpc/rpc/svc_auth.h: Likewise.
89288         * sunrpc/rpc/types.h: Likewise.
89289         * sunrpc/rpc/xdr.h: Likewise.
89290         * sunrpc/rpc_clntout.c: Likewise.
89291         * sunrpc/rpc_cmsg.c: Likewise.
89292         * sunrpc/rpc_common.c: Likewise.
89293         * sunrpc/rpc_cout.c: Likewise.
89294         * sunrpc/rpc_dtable.c: Likewise.
89295         * sunrpc/rpc_hout.c: Likewise.
89296         * sunrpc/rpc_main.c: Likewise.
89297         * sunrpc/rpc_parse.c: Likewise.
89298         * sunrpc/rpc_parse.h: Likewise.
89299         * sunrpc/rpc_prot.c: Likewise.
89300         * sunrpc/rpc_sample.c: Likewise.
89301         * sunrpc/rpc_scan.c: Likewise.
89302         * sunrpc/rpc_scan.h: Likewise.
89303         * sunrpc/rpc_svcout.c: Likewise.
89304         * sunrpc/rpc_tblout.c: Likewise.
89305         * sunrpc/rpc_util.c: Likewise.
89306         * sunrpc/rpc_util.h: Likewise.
89307         * sunrpc/rpcinfo.c: Likewise.
89308         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
89309         * sunrpc/rpcsvc/key_prot.x: Likewise.
89310         * sunrpc/rpcsvc/klm_prot.x: Likewise.
89311         * sunrpc/rpcsvc/mount.x: Likewise.
89312         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
89313         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
89314         * sunrpc/rpcsvc/rex.x: Likewise.
89315         * sunrpc/rpcsvc/rstat.x: Likewise.
89316         * sunrpc/rpcsvc/rusers.x: Likewise.
89317         * sunrpc/rpcsvc/sm_inter.x: Likewise.
89318         * sunrpc/rpcsvc/spray.x: Likewise.
89319         * sunrpc/rpcsvc/yppasswd.x: Likewise.
89320         * sunrpc/rtime.c: Likewise.
89321         * sunrpc/svc.c: Likewise.
89322         * sunrpc/svc_auth.c: Likewise.
89323         * sunrpc/svc_authux.c: Likewise.
89324         * sunrpc/svc_raw.c: Likewise.
89325         * sunrpc/svc_run.c: Likewise.
89326         * sunrpc/svc_simple.c: Likewise.
89327         * sunrpc/svc_tcp.c: Likewise.
89328         * sunrpc/svc_udp.c: Likewise.
89329         * sunrpc/svc_unix.c: Likewise.
89330         * sunrpc/svcauth_des.c: Likewise.
89331         * sunrpc/xcrypt.c: Likewise.
89332         * sunrpc/xdr.c: Likewise.
89333         * sunrpc/xdr_array.c: Likewise.
89334         * sunrpc/xdr_float.c: Likewise.
89335         * sunrpc/xdr_mem.c: Likewise.
89336         * sunrpc/xdr_rec.c: Likewise.
89337         * sunrpc/xdr_ref.c: Likewise.
89338         * sunrpc/xdr_sizeof.c: Likewise.
89339         * sunrpc/xdr_stdio.c: Likewise.
89340
89341         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
89342         handling.
89343
89344 2010-08-19  Andreas Schwab  <schwab@redhat.com>
89345
89346         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
89347
89348 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
89349
89350         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
89351         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
89352         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
89353         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
89354         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
89355         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
89356         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
89357         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
89358         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
89359         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
89360         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
89361         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
89362         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
89363         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
89364
89365 2010-07-26  Anton Blanchard  <anton@samba.org>
89366
89367         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
89368         * malloc/arena.c (heap_trim): Likewise.
89369
89370 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
89371
89372         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
89373         here.  Not...
89374         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
89375         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
89376
89377 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
89378
89379         * sysdeps/i386/elf/Makefile: New file.
89380
89381 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
89382
89383         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
89384         from fanotify_init.
89385         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
89386         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
89387
89388 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
89389
89390         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
89391         of strncasecmp_l.
89392         * sysdeps/multiarch/strcmp.S: Likewise.
89393
89394 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
89395
89396         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
89397         strncase_l-nonascii.
89398         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
89399         Add strncase_l-ssse3.
89400         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
89401         * sysdeps/x86_64/strcmp.S: Likewise.
89402         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
89403         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
89404         * sysdeps/x86_64/strncase.S: New file.
89405         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
89406         * sysdeps/x86_64/strncase_l.S: New file.
89407         * string/Makefile (strop-tests): Add strncasecmp.
89408         * string/test-strncasecmp.c: New file.
89409
89410         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
89411         warning.
89412
89413         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
89414         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
89415
89416 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
89417
89418         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
89419
89420 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
89421
89422         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
89423         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
89424         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
89425
89426 2010-05-01  Alan Modra  <amodra@gmail.com>
89427
89428         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
89429         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
89430         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
89431         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
89432         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
89433         tidying.  Don't tail-call __sigjmp_save for static lib.
89434         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
89435         save location.
89436         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
89437         (CALL_MCOUNT): Add eh info, and nop after bl.
89438         (TAIL_CALL_SYSCALL_ERROR): New macro.
89439         (PSEUDO_RET): Use it.
89440         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
89441         Correct save location of integer regs and cr.
89442         (_dl_profile_resolve): Correct cr save location.  Delete nops
89443         after bl when SHARED.  Reduce cfi size a little by better
89444         placement of cfi directives.
89445         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
89446         make a stack frame.  Instead use parm save area as a temp.
89447         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
89448         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
89449         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
89450         Don't make a stack frame for parent, use parm save area.
89451         Increase child stack frame to 112 bytes.  Don't save unused reg,
89452         and adjust reg usage.  Set up cfi on error recovery and
89453         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
89454         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
89455         (__makecontext): Add dummy nop after jump to exit.
89456         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
89457         Use correct parm save area and cr save, reduce stack frame.
89458         Correct cfi for possible PSEUDO_RET frame setup.
89459         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
89460         Branch to local label emitted by PSEUDO_RET rather than
89461         __syscall_error.
89462
89463 2010-08-12  Andreas Schwab  <schwab@redhat.com>
89464
89465         [BZ #11904]
89466         * locale/programs/locale.c (print_assignment): New function.
89467         (show_locale_vars): Use it.
89468
89469 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
89470
89471         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
89472         field.
89473         (struct statfs64): Likewise.
89474         (_STATFS_F_FLAGS): Define.
89475         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
89476         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
89477         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
89478         (ST_VALID): Define locally.
89479         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
89480         __statvfs_getflags, use the provided value.
89481         * sysdeps/unix/sysv/linux/kernel-features.h: Define
89482         __ASSUME_STATFS_F_FLAGS.
89483
89484         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
89485
89486         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
89487         Add sys/fanotify.h.
89488         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
89489         fanotify_mask for GLIBC_2.13.
89490         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
89491         fanotify_init and fanotify_mark.
89492         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
89493         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
89494
89495         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
89496         Add prlimit.
89497         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
89498         prlimit64 for GLIBC_2.13.
89499         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
89500         prlimit64.
89501         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
89502         syscall.
89503         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
89504         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
89505         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
89506         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
89507         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
89508         add prlimit alias.
89509         * sysdeps/unix/sysv/linux/prlimit.c: New file.
89510
89511         [BZ #11903]
89512         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
89513         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
89514
89515         * nss/Makefile: Add rules to build and run tst-nss-test1.
89516         * shlib-versions: Add entry for libnss_test1.
89517         * nss/nss_test1.c: New file.
89518         * nss/tst-nss-test1.c: New file.
89519
89520         * nss/nsswitch.c (__nss_database_custom): Define new variable.
89521         (__nss_configure_lookup): Set appropriate entry in
89522         __nss_configure_lookup to true.
89523         * nss/nsswitch.h: Define enum with indeces of databases in
89524         databases and __nss_database_custom arrays.  Declare
89525         __nss_database_custom.
89526         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
89527         to avoid using nscd when custom rules are installed.
89528         * nss/getXXbyYY_r.c: Likewise.
89529         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
89530
89531         * nss/nss_files/files-parse.c: Whitespace fixes.
89532
89533 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
89534
89535         [BZ #11883]
89536         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
89537         * posix/fnmatch_loop.c: Likewise.
89538
89539 2010-07-17  Andi Kleen  <ak@linux.intel.com>
89540
89541         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
89542         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
89543         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
89544         * Versions.def [GLIBC_2.13]: Add.
89545
89546 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
89547
89548         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
89549         Also fail if tpwd after pwuid call is NULL.
89550
89551 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
89552
89553         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
89554         when converting to ms.
89555
89556 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
89557
89558         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
89559         EOPNOTSUPP errors with ENOTTY.
89560         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
89561         EOPNOTSUPP errors with ENOTTY.
89562
89563 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
89564
89565         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
89566         Add strcasecmp_l-ssse3.
89567         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
89568         strcasecmp.
89569         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
89570         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
89571         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
89572
89573 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
89574
89575         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
89576
89577         * string/Makefile (strop-tests): Add strcasecmp.
89578         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
89579         strcasecmp_l-nonascii.
89580         (gen-as-const-headers): Add locale-defines.sym.
89581         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
89582         * sysdeps/x86_64/strcasecmp.S: New file.
89583         * sysdeps/x86_64/strcasecmp_l.S: New file.
89584         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
89585         * sysdeps/x86_64/locale-defines.sym: New file.
89586         * string/test-strcasecmp.c: New file.
89587
89588         * string/test-strcasestr.c: Test both ends of the range of characters.
89589         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
89590
89591 2010-07-29  Roland McGrath  <roland@redhat.com>
89592
89593         [BZ #11856]
89594         * manual/locale.texi (Yes-or-No Questions): Fix example code.
89595
89596 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
89597
89598         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
89599         for ld.so.
89600
89601 2010-07-27  Andreas Schwab  <schwab@redhat.com>
89602
89603         * manual/memory.texi (Malloc Tunable Parameters): Document
89604         M_PERTURB.
89605
89606 2010-07-26  Roland McGrath  <roland@redhat.com>
89607
89608         [BZ #11840]
89609         * configure.in (-fgnu89-inline check): Set and substitute
89610         gnu89_inline, not libc_cv_gnu89_inline.
89611         * configure: Regenerated.
89612         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
89613
89614 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
89615
89616         * string/test-strnlen.c: New file.
89617         * string/Makefile (strop-tests): Add strnlen.
89618         * string/tester.c (test_strnlen): Add a few more test cases.
89619         * string/tst-strlen.c: Better error reporting.
89620
89621         * sysdeps/x86_64/strnlen.S: New file.
89622
89623 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
89624
89625         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
89626         lower-latency instructions.
89627
89628 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
89629
89630         * string/test-strcasestr.c: New file.
89631         * string/test-strstr.c: New file.
89632         * string/Makefile (strop-tests): Add strstr and strcasestr.
89633         * string/str-two-way.h: Don't undefine MAX.
89634         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
89635
89636 2010-07-21  Andreas Schwab  <schwab@redhat.com>
89637
89638         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
89639         strcasestr-nonascii.
89640         (CFLAGS-strcasestr-nonascii.c): Define.
89641         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
89642         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
89643         Remove unused attribute.
89644
89645 2010-07-20  Roland McGrath  <roland@redhat.com>
89646
89647         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
89648         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
89649         ld.so.cache was broken.  With it, there is no way to disable dsocaps
89650         like LD_HWCAP_MASK can disable hwcaps.
89651
89652 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
89653
89654         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
89655
89656 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
89657
89658         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
89659         call in strcasestr.
89660         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
89661         __strcasestr_sse42_nonascii.
89662         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
89663         strcasestr-nonascii.c.
89664         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
89665
89666 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
89667
89668         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
89669         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
89670         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
89671         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
89672
89673 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
89674
89675         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
89676         fcntl.
89677
89678 2010-07-06  Andreas Schwab  <schwab@redhat.com>
89679
89680         [BZ #11577]
89681         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
89682         dl_signal_cerror.
89683
89684 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
89685
89686         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
89687         _PC_PIPE_BUF using F_GETPIPE_SZ.
89688
89689 2010-07-05  Roland McGrath  <roland@redhat.com>
89690
89691         * manual/arith.texi (Rounding Functions): Fix rint description
89692         implicit in round description.
89693
89694 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
89695
89696         * elf/Makefile: Fix linking for a few tests to make recent linker
89697         happy.
89698
89699 2010-06-30  Andreas Schwab  <schwab@redhat.com>
89700
89701         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
89702         $(common-objpfx)libc_nonshared.a.
89703
89704 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
89705
89706         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
89707         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
89708         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
89709         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
89710         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
89711         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
89712         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
89713         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
89714         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
89715         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
89716         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
89717         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
89718         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
89719         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
89720         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
89721         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
89722         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
89723         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
89724         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
89725         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
89726         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
89727         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
89728         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
89729         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
89730         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
89731         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
89732         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
89733         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
89734         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
89735         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
89736         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
89737         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
89738         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
89739         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
89740         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
89741         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
89742         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
89743         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
89744         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
89745         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
89746         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
89747         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
89748         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
89749         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
89750         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
89751         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
89752         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
89753         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
89754
89755 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
89756
89757         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
89758         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
89759         * string/memmove.c (memmove): Renamed to ...
89760         (MEMMOVE): ...this.  Default to memmove.
89761         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
89762         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
89763         (END_CHK): Define.
89764         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
89765         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
89766         mempcpy-ssse3-back memmove-ssse3-back.
89767         * sysdeps/x86_64/multiarch/bcopy.S: New file .
89768         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
89769         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
89770         * sysdeps/x86_64/multiarch/memcpy.S: New file.
89771         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
89772         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
89773         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
89774         * sysdeps/x86_64/multiarch/memmove.c: New file.
89775         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
89776         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
89777         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
89778         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
89779         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
89780         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
89781         Define.
89782         (index_Fast_Copy_Backward): Define.
89783         (HAS_ARCH_FEATURE): Define.
89784         (HAS_FAST_REP_STRING): Define.
89785         (HAS_FAST_COPY_BACKWARD): Define.
89786
89787 2010-06-21  Andreas Schwab  <schwab@redhat.com>
89788
89789         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
89790         Restore proper fallback handling.
89791
89792 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
89793
89794         [BZ #11701]
89795         * posix/group_member.c (__group_member): Correct checking loop.
89796
89797         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
89798         OOM in getpwuid_r correctly.  Return error number when the caller
89799         should return, otherwise -1.
89800         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
89801         call returning > 0 value.
89802         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
89803
89804 2010-06-07  Andreas Schwab  <schwab@redhat.com>
89805
89806         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
89807         libc_nonshared.a from targets in modules-names.
89808
89809 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
89810
89811         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
89812         requires it.
89813
89814 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
89815
89816         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
89817         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
89818         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
89819         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
89820
89821 2010-06-02  Andreas Schwab  <schwab@redhat.com>
89822
89823         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
89824
89825 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
89826
89827         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
89828         and F_GETPIPE_SZ.
89829         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
89830         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
89831         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
89832         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
89833         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
89834         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
89835
89836 2010-06-14  Roland McGrath  <roland@redhat.com>
89837
89838         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
89839
89840 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
89841
89842         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
89843         __REDIRECT followed by __THROW.
89844         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
89845         * posix/getopt.h (getopt): Likewise.
89846
89847 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
89848
89849         * hurd/lookup-at.c (__file_name_lookup_at): Accept
89850         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
89851         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
89852         in AT_FLAGS.
89853         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
89854         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
89855
89856 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
89857
89858         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
89859
89860 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
89861
89862         [BZ #11640]
89863         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
89864         Properly check family and model.
89865
89866 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
89867
89868         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
89869
89870 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
89871
89872         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
89873
89874 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
89875
89876         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
89877         symbol reference.
89878
89879 2010-05-19  Andreas Schwab  <schwab@redhat.com>
89880
89881         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
89882         symbol reference.
89883
89884 2010-05-21  Andreas Schwab  <schwab@redhat.com>
89885
89886         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
89887         and internal_recvmmsg.
89888         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
89889         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
89890         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
89891         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
89892
89893         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
89894         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
89895         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
89896
89897 2010-05-20  Andreas Schwab  <schwab@redhat.com>
89898
89899         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
89900
89901 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
89902
89903         POWER7 optimizations.
89904         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
89905         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
89906
89907 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
89908
89909         * version.h: Update for 2.13 development version.
89910
89911 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
89912
89913         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
89914         exceptions.  Return 0.
89915
89916 2010-05-07  Roland McGrath  <roland@redhat.com>
89917
89918         * elf/ldconfig.c (main): Add a const.
89919
89920 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
89921
89922         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
89923         (args_options): Add no-idn option.
89924         (ahosts_keys_int): Add idn_flags to ai_flags.
89925         (parse_option): Handle 'i' option to clear idn_flags.
89926
89927         * malloc/malloc.c (_int_free): Possible race in the most recently
89928         added check.  Only act on the data if no current modification
89929         happened.
89930
89931 See ChangeLog.17 for earlier changes.