aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2014-12-16Revert "Use pragmas rather than makefiles for necessary options for unwind ↵Roland McGrath7-21/+5
code." This reverts commit c324fcfe75c3976ae0b16943df00710e1d0d74f7.
2014-12-16Use pragmas rather than makefiles for necessary options for unwind code.Roland McGrath7-5/+21
2014-12-16Fix x86_64 memrchr namespace (bug 17719).Joseph Myers4-8/+14
On x86_64, memrchr (not a standard function) is defined as a strong symbol, instead of a weak alias of __memrchr as on other architectures. This results in linknamespace test failures from the use of __memrchr from dirname. (Not a conformance issue because of the mem* reservation, but contrary to glibc conventions.) This patch makes x86_64 follow other architectures by defining memrchr as a weak alias. Tested for x86_64 (testsuite, and that disassembly of installed shared libraries is unchanged by the patch). [BZ #17719] * sysdeps/x86_64/memrchr.S (memrchr): Rename to __memrchr and define as weak alias of __memrchr. (__memrchr): Do not define as strong alias of memrchr. * conform/Makefile (test-xfail-XPG4/libgen.h/linknamespace): Remove variable. (test-xfail-UNIX98/libgen.h/linknamespace): Likewise. (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise. (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
2014-12-16Fix resolver if_* namespace (bug 17717).Joseph Myers8-31/+87
Resolver code, brought in by pthreads (at least), uses if_* interfaces that weren't in POSIX before 2001, resulting in linknamespace failures. This patch changes those interfaces to be weak aliases of __if_* and makes the resolver use __if_* directly. Tested for x86_64 (testsuite, and that disassembly of installed shared libraries is unchanged by this patch). [BZ #17717] * inet/if_index.c (if_nametoindex): Rename to __if_nametoindex and define as weak alias of __if_nametoindex. Use libc_hidden_weak. (if_indextoname): Rename to __if_indextoname and define as weak alias of __if_indextoname. Use libc_hidden_weak. (if_freenameindex): Rename to __if_freenameindex and define as weak alias of __if_freenameindex. (if_nameindex): Rename to __if_nameindex and define as weak alias of __if_nameindex. * sysdeps/mach/hurd/if_index.c (if_nametoindex): Rename to __if_nametoindex and define as weak alias of __if_nametoindex. Use libc_hidden_weak. (if_freenameindex): Rename to __if_freenameindex and define as weak alias of __if_freenameindex. (if_nameindex): Rename to __if_nameindex and define as weak alias of __if_nameindex. (if_indextoname): Rename to __if_indextoname and define as weak alias of __if_indextoname. Use libc_hidden_weak. * sysdeps/unix/sysv/linux/if_index.c (if_nametoindex): Rename to __if_nametoindex and define as weak alias of __if_nametoindex. Use libc_hidden_weak. (if_freenameindex): Rename to __if_freenameindex and define as weak alias of __if_freenameindex. Use libc_hidden_weak. (if_nameindex_netlink): Use __if_freenameindex instead of if_freenameindex. (if_nameindex): Rename to __if_nameindex and define as weak alias of __if_nameindex. Use libc_hidden_weak. (if_indextoname): Rename to __if_indextoname and define as weak alias of __if_indextoname. Use libc_hidden_weak. * include/net/if.h [!_ISOMAC] (__if_nametoindex): Declare and use libc_hidden_proto. [!_ISOMAC] (__if_freenameindex): Likewise. * resolv/res_init.c (__res_vinit): Use __if_nametoindex instead of if_nametoindex. * conform/Makefile (test-xfail-XPG4/grp.h/linknamespace): Remove variable. (test-xfail-XPG4/pwd.h/linknamespace): Likewise. (test-xfail-UNIX98/aio.h/linknamespace): Likewise. (test-xfail-UNIX98/grp.h/linknamespace): Likewise. (test-xfail-UNIX98/pthread.h/linknamespace): Likewise. (test-xfail-UNIX98/pwd.h/linknamespace): Likewise. (test-xfail-UNIX98/sched.h/linknamespace): Likewise. (test-xfail-UNIX98/time.h/linknamespace): Likewise.
2014-12-16Remove some semaphore.h linknamespace XFAILs.Joseph Myers2-3/+7
Roland's recent sem_* changes introduced some XPASSes for semaphore.h linknamespace tests by removing a non-static variable "mountpoint". This patch removes the XFAILs for the fixed bug. Tested for x86_64. * conform/Makefile (test-xfail-UNIX98/semaphore.h/linknamespace): Remove variable. (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise. (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
2014-12-16Fix the 'array subscript is above array bounds' warning correctlySiddhesh Poyarekar2-1/+10
Use DIAG_IGNORE_NEEDS_COMMENT instead since the compiler should have seen that NS never goes beyond MAXNS.
2014-12-16Fix 'array subscript is above array bounds' warning in res_send.cSiddhesh Poyarekar2-1/+6
I see this warning in my build on F21 x86_64, which seems to be due to a weak check for array bounds. Fixed by making the bounds check stronger. This is not an actual bug since nscount is never set to anything greater than MAXNS. The compiler however does not know this, so we need the stronger bounds check to quieten the compiler.
2014-12-16Modify libio/tst-fopenloc.c to use test-skeleton.cArjun Shankar2-2/+7
This test would earlier fail when run under test-skeleton.c due to bug #17522 in 'fputws'. That bug is now fixed and so this test may be modified.
2014-12-16Modify stdlib/tst-bsearch.c to use test-skeleton.cArjun Shankar2-12/+19
This test used to define a 'struct entry' that conflicts with the definition in search.h included in test-skeleton. The struct is now renamed 'item'.
2014-12-16Modify stdio-common/tst-fseek.c to use test-skeleton.cArjun Shankar2-2/+10
This test needs a TIMEOUT longer than the default 2 seconds since it sleeps twice for a second each.
2014-12-16Ignore warning in string/tester.c.Torvald Riegel2-0/+13
2014-12-16Fix warning in misc/tst-mntent2.c.Torvald Riegel2-1/+5
2014-12-16Fix warning in elf/tst-unique4lib.cc.Torvald Riegel2-1/+5
2014-12-16Avoid infinite loop in nss_dns getnetbyname [BZ #17630]Florian Weimer3-4/+13
2014-12-16stdio-common/Makefile: readd bug26 testcaseAllan McRae2-1/+5
This testcase was accidentally removed in commit a5357b7c.
2014-12-16Return allocated array instead of unallocated.Ondřej Bílka3-9/+15
In locale/programs/ld-ctype.c we returned array that was on stack. Fixed by returning static array instead.
2014-12-15Add comments for the generic lowlevellock implementation.Torvald Riegel4-18/+124
Patch by Bernard Ogden <bernie.ogden@linaro.org>.
2014-12-15Fix nptl/tst-sem4: always start with a fresh semaphore.Torvald Riegel2-2/+10
2014-12-15Fix nptl/tst-mutex5.c: Do not skip tests if elision is enabled.Torvald Riegel2-3/+4
2014-12-15stdio-common: Include <libc-internal.h> in some testsAdhemerval Zanella3-0/+7
This patch adds the missing libc-internal.h include on test-vprintf.c tst-sprintf.c.
2014-12-15Remove custom pthread_once implementation on s390.Torvald Riegel2-110/+4
2014-12-15CVE-2012-3406: Stack overflow in vfprintf [BZ #16617]Jeff Law7-8/+207
A larger number of format specifiers coudld cause a stack overflow, potentially allowing to bypass _FORTIFY_SOURCE format string protection.
2014-12-15Bump required version of texinfo to 4.7Will Newton5-4/+12
It seems we require texinfo 4.7 for the --plaintext option, so document that and check for the correct version in configure. ChangeLog: 2014-12-15 Will Newton <will.newton@linaro.org> * manual/install.texi: Bump required version of texinfo to 4.7 from 4.5. * INSTALL: Regenerated. * configure.ac: Check for makeinfo version 4.7 and above. * configure: Regenerated.
2014-12-12NPTL: Refactor named semaphore code to use shm-directory.hRoland McGrath14-183/+113
2014-12-12NPTL: Add stubs for Linux-only extension functions.Roland McGrath5-0/+133
2014-12-12Fix NPTL build for !__ASSUME_SET_ROBUST_LIST case.Roland McGrath2-1/+6
2014-12-12resolv: Suppress maybe uninitialized warningStefan Liebler2-1/+32
In send_vc function at resolv/res_send.c, There is the following warning on some architectures: 'resplen' may be used uninitialized in this function [-Wmaybe-uninitialized] And this is a false positive. This patch suppress the compiler warning.
2014-12-12Get rid of warning comparision will always evaluate as trueStefan Liebler3-3/+15
2014-12-11Fix for test "malloc_usable_size: expected 7 but got 11"James Lemke2-44/+43
[BZ #17581] Revert this fix while investigating a problem.
2014-12-11Refactor shm_{open,unlink} code to separate Linux-specific directory choice ↵Roland McGrath9-282/+290
from POSIX-generic code.
2014-12-12* Fix SH specific compiler warnings which are for integer-pointerKaz Kojima5-5/+14
type conversions without cast.
2014-12-11Move semaphore.h to sysdeps/pthread/.Joseph Myers3-1/+8
Carlos reported failures in conform/ tests in environments where the compiler used could only find headers in glibc's source and build trees, not any previously installed headers <https://sourceware.org/ml/libc-alpha/2014-09/msg00040.html>. This patch moves nptl/semaphore.h to sysdeps/pthread/semaphore.h so that it can be found by builds from all glibc subdirectories; it's not in any way NPTL-specific. (I left the Makefile setting to install this header in nptl/, but maybe it should move as well - it's just not clear to me what ifeq ($(subdir),...) conditional should be used to select the directory to associate the header with for installation purposes. The path in the toplevel Makefile used for begin-end-check also remains hardcoded; it's a known todo issue to rework that test to run in each subdirectory checking the headers installed from that subdirectory, rather than a separate hardcoded list.) Tested for x86_64 (testsuite, and that installed stripped shared libraries are unchanged by the patch). I did *not* test a configuration such as that in which Carlos saw failure. * nptl/semaphore.h: Move to ... * sysdeps/pthread/semaphore.h: ... here. * Makefile (installed-headers): Change nptl/semaphore.h to sysdeps/pthread/semaphore.h.
2014-12-11Suppress -Wformat-security in tst-error1.c.Roland McGrath2-0/+14
2014-12-11Eliminate -Wno-format from printf/scanf tests.Roland McGrath9-13/+80
2014-12-11Add more headers to include/ for conform tests.Joseph Myers3-0/+5
Carlos reported failures in conform/ tests in environments where the compiler used could only find headers in glibc's source and build trees, not any previously installed headers <https://sourceware.org/ml/libc-alpha/2014-09/msg00040.html>. This patch adds wrappers for two of the affected headers to include/, which is the normal way to make headers visible when building or testing in directories other than the one containing the header (I suppose these headers weren't needed in any such directories except conform/, or other build or test failures would have resulted). I believe the same issue applies at least to regexp.h and re_comp.h - we don't currently have conform/ expectations for those, but when such expectations are added we'll also need to add header wrappers. Tested for x86_64 (testsuite, and that installed stripped shared libraries are unchanged by the patch). I did *not* test a configuration such as that in which Carlos saw failure. * include/cpio.h: New file. * include/fmtmsg.h: Likewise.
2014-12-11Clean up localedata tests printf formats, don't use -Wno-format.Joseph Myers8-22/+35
2014-12-11Fix -Wformat-security warnings in posix/regexbug1.cRoland McGrath2-2/+7
2014-12-11tile: add inhibit_loop_to_libcall to string functionsChris Metcalf4-3/+10
Without this, on gcc 4.8.2 the built glibc crashes when memcpy or memset are invoked, since they call themselves recursively. See commit 85c2e6110c9a01ec for the generic inhibit_loop_to_libcall.
2014-12-11Fix __sendmmsg prototype guardsAdhemerval Zanella2-0/+7
Add __USE_GNU guards on 'socket/sys/socket.h' __sendmmsg prototype.
2014-12-11 * sysdeps/mips/dl-trampoline.c: Modify switch expression to haveSteve Ellcey2-1/+6
integer value instead of boolean.
2014-12-112014-12-11 Steve Ellcey <sellcey@imgtec.com>Steve Ellcey2-1/+5
* malloc/malloc.c: Fix powerof2 check.
2014-12-11Get rid of warning inlining failed in call to maybe_swap_uint32Stefan Liebler2-1/+7
2014-12-11S/390: Get rid of assembler warning value truncated.Stefan Liebler2-1/+6
2014-12-11Constify string parametersAndreas Schwab2-2/+7
2014-12-11powerpc: Fix lgammal_r overflow warningsAdhemerval Zanella2-1/+14
ldbl-128ibm uses ldbl-128 e_lgammal_r implementation as is, however some constants definitions overflows for IBM long double range. This patch suppress the compiler warnings until the ldbl-128ibm implementation is fixed.
2014-12-11Remove obsolete commentAndreas Schwab1-3/+0
2014-12-11Properly handle forced elision in pthread_mutex_trylock (bug 16657)Andreas Schwab5-20/+17
2014-12-11Remove duplication from gconv-modulesAndreas Schwab2-7/+4
2014-12-11intl: Merge with gettext version 0.19.3Will Newton26-1129/+1442
This patch merges the latest release of gettext into the intl subdirectory. The initial motivation was to include the plural.y changes which enable building with bison 3.0, but the majority of the other changes are merely cosmetic so it seemed like merging the whole directory was simpler than trying to take it piecemeal. The merge was done by copying across the latext gettext code and adding in a few small glibc changes that have been added over the years that seemed beneficial, as well as a couple of small build fixes that should be merged back to gettext. I also reverted the gettext commit: commit 279b57fc367251666f00e8e2b599b83703451afb Author: Bruno Haible <bruno@clisp.org> Date: Fri Jun 14 12:03:49 2002 +0000 Make absolute pathnames inside $LANGUAGE work. As it caused localedata/tst-setlocale3 to fail and it wasn't clear that glibc wanted that behaviour. The merge has dropped many uses of __glibc_likely/unlikely. This is intentional given that it eases merging. It seems to me that the cost of continually rewriting these lines when merging and the risk of adding bugs when doing so outweighs the benefits of using these macros when code is shared with another project. Tested with make check on x86_64. ChangeLog: 2014-12-11 Will Newton <will.newton@linaro.org> Merge gettext 0.19.3 into intl/. This involves a number of cosmetic changes to comments and ANSI function definitions and prototypes throughout all the files. The gettext copyright header is used but with the date ranges taken from the glibc copy. * NEWS: Add gettext merge to 2.21. * intl/bindtextdom.c: Switch to gettext copyright. Use ANSI definitions and prototypes. Use gl_* locking primitives rather than __libc_* ones. Use __builtin_expect rather than __glibc_likely/unlikely. * intl/dcgettext.c: Switch to gettext copyright. Use ANSI definitions and prototypes. * intl/dcigettext.c: Switch to gettext copyright. Use ANSI definitions and prototypes. (INTDIV0_RAISES_SIGFPE): New define. Use gl_* locking primitives rather than __libc_* ones. Include eval-plural.h instead of plural-eval.c. Use __builtin_expect rather than __glibc_likely/unlikely. * intl/dcngettext.c: Switch to gettext copyright. Use ANSI definitions and prototypes. * intl/dgettext.c: Likewise. * intl/dngettext.c: Likewise. * intl/plural-eval.c: Renamed to... * intl/eval-plural.h: ...this. * intl/explodename.c: Switch to gettext copyright. Use ANSI definitions and prototypes. (_nl_explode_name): Use strchr instead of __rawmemchr. * intl/finddomain.c: Switch to gettext copyright. Use ANSI definitions and prototypes. Use gl_* locking primitives rather than __libc_* ones. (_nl_find_domain): Use malloc rather than alloca for allocation of temporary locale name. * intl/gettext.c: Switch to gettext copyright. Use ANSI definitions and prototypes. * intl/gettextP.h: Switch to gettext copyright. Use ANSI definitions and prototypes. Use gl_* locking primitives rather than __libc_* ones. * intl/gmo.h: Switch to gettext copyright. (struct sysdep_string): Move struct segment_pair outside of struct definition. * intl/hash-string.c: Use ANSI definitions and prototypes. * intl/hash-string.h: Switch to gettext copyright. Use ANSI definitions and prototypes. * intl/l10nflist.c: Switch to gettext copyright. Use ANSI definitions and prototypes. (_nl_normalize_codeset): Avoid integer overflow. * intl/loadinfo.h: Switch to gettext copyright. Use ANSI definitions and prototypes. (LIBINTL_DLL_EXPORTED): New define. (PATH_SEPARATOR): New define. * intl/loadmsgcat.c: Switch to gettext copyright. * intl/localealias.c: Switch to gettext copyright. Use ANSI definitions and prototypes. (_nl_expand_alias): Use PATH_SEPARATOR. * intl/ngettext.c: Switch to gettext copyright. Use ANSI definitions and prototypes. * intl/plural-exp.c: Likewise. * intl/plural-exp.h: Switch to gettext copyright. Use ANSI definitions and prototypes. (struct expression): Move definition of enum operator outside of struct definition. * intl/plural.c: Regenerate. * intl/plural.y: Switch to gettext copyright. Use ANSI definitions and prototypes. Port to bison 3.0. * intl/textdomain.c: Switch to gettext copyright. Use ANSI definitions and prototypes. Use gl_* locking primitives rather than __libc_* ones.
2014-12-102014-12-10 Steve Ellcey <sellcey@imgtec.com>Steve Ellcey2-0/+5
* debug/warning-nop.c: Add used atrribute.