aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2014-07-09Fix -Wmaybe-uninitialized warning in xdr.cSiddhesh Poyarekar2-1/+3
While we're at fixing build warnings, here's one unnecessary warning that can be fixed fairly easily. The SIZE variable is never actually use uninitialized, but the compiler cannot make that out and thinks (correctly) that there is a potential for accessing SIZE without initializing it. Make this safe by initializing SIZE to 0. Tested on x86_64.
2014-07-09Fix Wundef warning for __cplusplusSiddhesh Poyarekar2-1/+6
All current uses of the __cplusplus macro only check if it is defined or not. Fix this #if to use $ifdef like the rest of the code.
2014-07-08Check value at resplen2 if it is not NULLSiddhesh Poyarekar2-4/+8
There was a typo in the previous patch due to which resplen2 was checked for non-zero instead of the value at resplen2. Fix that and improve the condition by checking resplen2 for non-NULL (instead of answerp2) and also adding the check in a third place.
2014-07-08Fix Wundef warning for ELF_MACHINE_NO_REL on i386Siddhesh Poyarekar2-0/+5
2014-07-08PowerPC: Cleanup powerpc memmoveAdhemerval Zanella6-25/+15
Now that MEMCPY_OK_FOR_FWD_MEMMOVE should be define on memcopy.h there is no need to specialized powerpc memmove implementation. This patch moves the define set to powerpc memcopy and cleanup its definition on powerpc code.
2014-07-08PowerPC: Fix compiler warningsAdhemerval Zanella4-3/+12
This patch fixes some compiler due trailing data in #undef directives and due missing prototypes.
2014-07-08PowerPC: Add ifunc tests for memmoveAdhemerval Zanella2-0/+11
This patch add the missing ifunc tests definition for memmove ppc32 optimization patch (commit 07aedd7).
2014-07-08Fix Wundef warning with SHOJI_IS_RIGHTSiddhesh Poyarekar18-468/+37
The macro is not defined anywhere, so it looks like we're convinced that Shoji is wrong :)
2014-07-07PowerPC: Align power7 memcpy using VSX to quadwordAdhemerval Zanella3-20/+10
This patch changes power7 memcpy to use VSX instructions only when memory is aligned to quardword. It is to avoid unaligned kernel traps on non-cacheable memory (for instance, memory-mapped I/O).
2014-07-07PowerPC: optimized memmove for POWER7/PPC32Adhemerval Zanella5-1/+109
This patch adds a optimized memmove for power7 by using the optimized power7 memcpy for forward copying.
2014-07-07PowerPC: optimized memmove for POWER7/PPC64Adhemerval Zanella11-2/+1037
This patch adds an optimized memmove optimization for POWER7/powerpc64. Basically the idea is to use the memcpy for POWER7 on non-overlapped memory regions and a optimized backward memcpy for memory regions that overlap (similar to the idea of string/memmove.c). The backward memcpy algorithm used is similar the one use for memcpy for POWER7, with adjustments done for alignment. The difference is memory is always aligned to 16 bytes before using VSX/altivec instructions.
2014-07-07PowerPC: memmove default implementation cleanupAdhemerval Zanella2-97/+5
This patch removes the powerpc specific logic in memmove and instead include default implementation with MEMCPY_OK_FOR_FWD_MEMMOVE defined. This lead in a increase performance, since the constraints to use memcpy in powerpc code are too restrictive and memcpy can be used for any forward memmove.
2014-07-07PowerPC: Guard CALL_ELF check for ppc64 only in link.hAdhemerval Zanella2-2/+9
This patch fixes powerpc32 undef compiler warnings for _CALL_ELF, since it is defined only for powerpc64.
2014-07-07Remove old stub lowlevellock.h file. It is not even useful as documentation.Roland McGrath2-83/+2
2014-07-07NPTL is no longer an add-on!Roland McGrath31-165/+62
2014-07-07Get rid of nptl/sysdeps/ entirely!Roland McGrath84-664/+528
2014-07-05Add comment for MEMCPY_OK_FOR_FWD_MEMMOVESiddhesh Poyarekar2-0/+8
2014-07-04string/memchr.c: Merge from gnulibWill Newton2-139/+101
Merge most of the gnulib implementation of memchr. The changes that remain are: - copyright header - bp-sym.h removed - reg_char removed - allow MEMCHR to be redefined - non-conforming whitespace changes The merged code fixes a number of -Wundef warnings and also introduces an optimized algorithm. I haven't detected any performance difference in the new code which I believe is down to the quite specific circumstances required to hit it. However the new code is approximately half the size of the old code on AArch64 (which uses generic memchr). ChangeLog: 2014-07-04 Will Newton <will.newton@linaro.org> * string/memchr.c: Merge from gnulib. [_LIBC]: Remove conditionals. (__ptr_t): Remove define. (LONG_MAX_32_BITS): Likewise. (LONG_MAX): Likewise. (MEMCHR): Use ANSI prototype and optimize algorithm.
2014-07-04ARM: Define ELF_MACHINE_NO_RELWill Newton2-0/+5
Fix a -Wundef warning on ARM. ChangeLog: 2014-07-04 Will Newton <will.newton@linaro.org> * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_REL): Define.
2014-07-03Fix ia64 build error in lll_futex_timed_wait_bitsetRoland McGrath2-1/+4
2014-07-03Fix unwind.h configure check for bare environment.Roland McGrath3-2/+19
2014-07-03Add missing #include in sysdeps/alpha/fpu/s_nearbyint.cRoland McGrath2-1/+5
2014-07-03Robustify Linux kernel headers configure checksRoland McGrath3-153/+37
2014-07-03S390: Quash unused variable warning due to no-op THREAD_SET_POINTER_GUARD.Roland McGrath2-1/+4
2014-07-03Restore subdir conditional for tst-timer dependency.Siddhesh Poyarekar2-0/+9
2014-07-03alpha: Remove nearbyint and nearbyintf implementationsRichard Henderson3-72/+5
The original implementation was written for EV5, which does not record inexact in the status register for /SU (but no /I) insns. But EV6 does record the inexact status; the lack of /I simply means that the exception is suppressed. Adding feholdexcept becomes the bulk of the overhead, so we might as well use the default implementation.
2014-07-03alpha: Implement math_opt_barrier and math_force_evalRichard Henderson2-0/+9
2014-07-03alpha: Fix lround implementationsRichard Henderson3-8/+11
Use chopped rounding to add 0.5.
2014-07-03alpha: Remove round and roundf implementationsRichard Henderson3-91/+3
Two bugs in these implementations: First is that the add of 0.5 was not done in chopped rounding mode (easily fixable). Second is that the method generates incorrect inexact exceptions for small integral values (not easily fixable).
2014-07-03Changelog for last 8 patchesRichard Henderson1-0/+82
2014-07-03Rely on HP_TIMING_AVAIL implies HP_SMALL_TIMING_AVAILRichard Henderson3-21/+7
2014-07-03Always provide HP_SMALL_TIMING_AVAILRichard Henderson9-0/+9
2014-07-03aarch64: Add hp-timing.hRichard Henderson1-0/+37
2014-07-03Unify hp-timing implementationsRichard Henderson10-344/+82
Provide an hp-timing-common.h for ports to use.
2014-07-03Remove HP_TIMING_DIFF_INIT and dl_hp_timing_overheadRichard Henderson25-310/+1
Without HP_TIMING_ACCUM, dl_hp_timing_overhead is write-only. If we remove it, there's no point in HP_TIMING_DIFF_INIT either.
2014-07-03Removing HP_TIMING_ACCUM as unusedRichard Henderson9-145/+12
2014-07-03Removing HP_TIMING_ZERO as unusedRichard Henderson8-33/+0
2014-07-03powerpc: Remove dummy hp-timing.hRichard Henderson1-81/+0
It's the same as the generic dummy version.
2014-07-03stdlib/tst-strtod-overflow: Bump timeout up yetMaciej W. Rozycki2-1/+5
This test case is very, especially on targets using soft-float or QEMU (where soft-float is used internally), and appears to be the only such outlier. Therefore rather than requiring to have TIMEOUTFACTOR set large enough globally, bump up the local scaling factor instead. * stdlib/tst-strtod-overflow.c (TIMEOUT): Bump up to 30.
2014-07-03Sync up loadmsgcat.c with gettextSiddhesh Poyarekar2-14/+77
2014-07-03Fix Wundef warning for __STDC_VERSION__Siddhesh Poyarekar2-1/+8
c4c4124473c187b5c4642611390897666c3d3970 added the _Noreturn macro for pre-C11 compilers, but it now throws a new Wundef warning during `make check` for __STDC_VERSION__ which gcc does not define by default. The following patch fixes this in line with other uses of __STDC_VERSION__ in the file.
2014-07-03Don't use __glibc_unlikely in shared codeSiddhesh Poyarekar2-2/+4
2014-07-03Fix -Wundef warning on PAGE_COPY_THRESHOLDSiddhesh Poyarekar9-53/+62
The PAGE_COPY_THRESHOLD macro is meant to be overridden by architecture-specific pagecopy.h, but it is currently done only by mach; all other architectures use the default. Check to see if the macro is defined in addition to whether it is set to a non-zero value.
2014-07-02PowerPC: strcat optimization for PPC64/POWER7Vidya Ranganathan7-4/+118
This patch adds an ifunc power7 strcat symbol that uses the logic on sysdeps/powerpc/strcat.c but call power7 strlen/strcpy symbols instead of default ones.
2014-07-02Add missing #include for MIN use in dl-sysdep.c.Roland McGrath2-0/+5
2014-07-02Fix typo and formatting in loadmsgcat.cSiddhesh Poyarekar2-18/+15
This reduces the differences with gettext version of loadmsgcat.c
2014-07-02Fix typo in macro nameSiddhesh Poyarekar2-1/+5
It is _POSIX_SIGNALS and not _POSUX_SIGNALS
2014-07-02malloc/obstack: Merge from gnulibWill Newton3-148/+162
Merge the latest version of the obstack.c and obstack.h files from gnulib. The majority of this change is coding style and cosmetic comment changes but it also fixes a -Wundef warning in the build as a side effect. 2014-07-02 Will Newton <will.newton@linaro.org> * malloc/obstack.c: Merge from gnulib master. [HAVE_CONFIG_H]: Remove conditional code. [!_LIBC]: Include config.h. [!ELIDE_CODE]: Don't include inttypes.h, include stdint.h unconditionally. (print_and_abort): Mark as _Noreturn. (_obstack_allocated_p): Mark as __attribute_pure__. (obstack_free): Rename to __obstack_free. [!__attribute__]: Remove conditional code. * malloc/obstack.h: Merge from gnulib master. [__cplusplus]: Move conditional down. [!__attribute_pure__]: Define __attribute_pure__ here if it is not already defined. (_obstack_memory_used): Mark as __attribute_pure__. [!__obstack_free]: Define as obstack_free. [__GNUC__]: Remove check for ancient NeXT gcc.
2014-07-02misc/sys/cdefs.h: Add _Noreturn macro for pre-C11 compilersPaul Eggert2-0/+13
2014-07-02 Will Newton <will.newton@linaro.org> Paul Eggert <eggert@cs.ucla.edu> * misc/sys/cdefs.h (_Noreturn): New macro, for pre-C11 compilers.
2014-07-02Add comment to gethnamaddr.c to warn that the file is unmaintainedSiddhesh Poyarekar2-0/+10