Nathan Sidwell [Fri, 28 Jun 2013 20:28:25 +0000 (20:28 +0000)]
Support no-FPU ColdFire in sysdeps/m68k/fpu_control.h.
Maciej W. Rozycki [Fri, 28 Jun 2013 16:43:07 +0000 (17:43 +0100)]
Add a dlopen/getpagesize static executable test.
Maciej W. Rozycki [Fri, 28 Jun 2013 15:20:26 +0000 (16:20 +0100)]
[BZ #15022] Correct global-scope dlopen issues in static executables.
This change creates a link map in static executables to serve as the
global search list for dlopen. It fixes a problem with the inability
to access the global symbol object and a crash on an attempt to map a
DSO into the global scope. Some code that has become dead after the
addition of this link map is removed too and test cases are provided.
Marcus Shawcroft [Fri, 28 Jun 2013 10:27:26 +0000 (11:27 +0100)]
[AArch64] Adjust elf_machine_dynamic to find _DYNAMIC via _GLOBAL_OFFSET_TABLE_
Marcus Shawcroft [Fri, 28 Jun 2013 10:23:58 +0000 (11:23 +0100)]
[AArch64] Simplify getcontext pstate initialization.
Maciej W. Rozycki [Thu, 27 Jun 2013 10:15:51 +0000 (11:15 +0100)]
_dl_static_init: Remove nested locking.
This function is now called from dl_open_worker with the GL(dl_load_lock)
lock held and no longer needs local protection. GL(dl_load_lock) also
correctly protects _dl_lookup_symbol_x called here that relies on the
caller to have serialized access to the data structures it uses.
Joseph Myers [Wed, 26 Jun 2013 23:10:48 +0000 (23:10 +0000)]
Require GCC 4.4 or later to build glibc.
H.J. Lu [Wed, 26 Jun 2013 22:23:08 +0000 (15:23 -0700)]
Add a test for BZ #15674
H.J. Lu [Wed, 26 Jun 2013 19:29:47 +0000 (12:29 -0700)]
Mention BZ #15674
Liubov Dmitrieva [Wed, 26 Jun 2013 19:28:43 +0000 (12:28 -0700)]
Fix buffers overrun in x86_64 memcmp-ssse3.S
Maciej W. Rozycki [Wed, 26 Jun 2013 18:14:29 +0000 (19:14 +0100)]
[BZ #15022] Avoid repeated calls to DL_STATIC_INIT for the same module.
Ryan S. Arnold [Wed, 26 Jun 2013 13:50:20 +0000 (08:50 -0500)]
Add AT_HWCAP2 as a new auxv_t a_type to elf.h.
Mike Frysinger [Tue, 25 Jun 2013 19:20:13 +0000 (15:20 -0400)]
drop NEWS mention
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Richard Henderson [Tue, 25 Jun 2013 16:27:01 +0000 (09:27 -0700)]
Fix missing libc-internal.h include.
* locale/programs/locarchive.c: Include <libc-internal.h>
Joseph Myers [Tue, 25 Jun 2013 17:21:48 +0000 (17:21 +0000)]
Update texinfo.tex.
Andreas Schwab [Tue, 25 Jun 2013 16:57:42 +0000 (18:57 +0200)]
m68k: fix bad use of register alias in cfi insn
Richard Henderson [Mon, 24 Jun 2013 16:59:26 +0000 (09:59 -0700)]
[BZ #15666] alpha: Add __sqrt*_finite definitions
With compatibility for ev6 and non-ev6 builds, as the non-ev6 did
manage to get definitions emitted for the float and double functions.
Mike Frysinger [Thu, 23 May 2013 16:42:28 +0000 (12:42 -0400)]
[BZ #10283] localedef: align fixed maps to SHMLBA
Many Linux arches require fixed mmaps to be aligned higher than pagesize,
so use the SHMLBA define as it represents this quantity exactly.
This fixes spurious errors seen on those arches like:
cannot map archive header: Invalid argument
URL: http://sourceware.org/bugzilla/show_bug.cgi?id=10283
Reported-by: CHIKAMA Masaki <masaki.chikama@gmail.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger [Tue, 28 May 2013 22:25:54 +0000 (18:25 -0400)]
libc-internal.h: add ALIGN helper macros
Rather than open coding the masks, add helper macros to do the magic.
This makes code easier to read.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Vladimir Nikulichev [Mon, 24 Jun 2013 21:08:07 +0000 (17:08 -0400)]
BZ #12310: pthread_exit in static app. segfaults
Static applications that call pthread_exit on the main
thread segfault. This is because after a thread terminates
__libc_start_main decrements __nptl_nthreads which is only
defined in pthread_create. Therefore the right solution is
to add a requirement to pthread_create from pthread_exit.
~~~
nptl/
2013-06-24 Vladimir Nikulichev <v.nikulichev@gmail.com>
[BZ #12310]
* pthread_exit.c: Add reference to pthread_create.
Ryan S. Arnold [Mon, 24 Jun 2013 20:33:32 +0000 (15:33 -0500)]
PowerPC: Enable POWER8 platform sans hwcap bits.
Siddhesh Poyarekar [Mon, 24 Jun 2013 16:16:41 +0000 (21:46 +0530)]
Regenerate INSTALL file
Siddhesh Poyarekar [Mon, 24 Jun 2013 12:37:37 +0000 (18:07 +0530)]
Fix typo in comment
Richard Henderson [Sun, 23 Jun 2013 18:05:40 +0000 (11:05 -0700)]
alpha: Update libm-test-ulps
Joseph Myers [Sat, 22 Jun 2013 19:32:50 +0000 (19:32 +0000)]
Include <string.h> in nptl/pthread_setattr_default_np.c.
Joseph Myers [Sat, 22 Jun 2013 19:30:10 +0000 (19:30 +0000)]
Include <string.h> in sysdeps/unix/sysv/linux/libc_fatal.c.
Joseph Myers [Sat, 22 Jun 2013 19:27:41 +0000 (19:27 +0000)]
Fix soft-fp shadowing between __FP_FRAC_ADD_3 and _FP_MUL_MEAT_2_wide_3mul (bug 15667).
Maciej W. Rozycki [Fri, 21 Jun 2013 23:39:42 +0000 (00:39 +0100)]
Remove dead DL_DST_REQ_STATIC code.
Kaz Kojima [Fri, 21 Jun 2013 22:46:45 +0000 (07:46 +0900)]
Add sh4 implementation of fegetexceptflag (bug 15655).
Joseph Myers [Fri, 21 Jun 2013 19:00:43 +0000 (19:00 +0000)]
Fix bad shift in soft-fp (bug 7006).
Maciej W. Rozycki [Fri, 21 Jun 2013 17:13:39 +0000 (18:13 +0100)]
dlfcn/Makefile: Avoid repeated $(*-ENV) definitions.
Kaz Kojima [Fri, 21 Jun 2013 09:07:31 +0000 (18:07 +0900)]
Add sh4 implementation of fegetexceptflag.
Adhemerval Zanella [Fri, 21 Jun 2013 00:40:55 +0000 (19:40 -0500)]
Fix loop construction to functions calls
Check wheter the compiler has the option -fno-tree-loop-distribute-patterns
to inhibit loop transformation to library calls and uses it on memset
and memmove default implementation to avoid recursive calls.
Joseph Myers [Thu, 20 Jun 2013 19:11:34 +0000 (19:11 +0000)]
Allow fesetround failures in math/test-misc.c if ROUNDING_TESTS fails.
Joseph Myers [Thu, 20 Jun 2013 19:10:44 +0000 (19:10 +0000)]
Avoid spurious failures from <fenv.h> fallback functions (bug 15654).
Roland McGrath [Tue, 18 Jun 2013 23:29:25 +0000 (16:29 -0700)]
Use rtld-CPPFLAGS in rtld-%.os rules for generated sources.
Roland McGrath [Tue, 18 Jun 2013 22:58:48 +0000 (15:58 -0700)]
sysdeps/arm/arm-mcount.S: Comment typo fix.
Roland McGrath [Tue, 18 Jun 2013 22:42:56 +0000 (15:42 -0700)]
ARM: Make armv7 memcpy implementations SFI-friendly
Roland McGrath [Tue, 18 Jun 2013 17:11:02 +0000 (10:11 -0700)]
ARM: Clean up __libc_ifunc_impl_list
Joseph Myers [Tue, 18 Jun 2013 00:35:03 +0000 (00:35 +0000)]
Fix warnings from ARM soft-float fpu_control.h.
Joseph Myers [Tue, 18 Jun 2013 00:30:44 +0000 (00:30 +0000)]
Wrap test-fpucw.c for ARM.
Adhemerval Zanella [Mon, 17 Jun 2013 20:50:53 +0000 (15:50 -0500)]
PowerPC: Reserve TCB space for EBB framework
This patch reserves four pointer to be used in future Event-Based
Branch framework for PowerPC.
Joseph Myers [Mon, 17 Jun 2013 17:20:23 +0000 (17:20 +0000)]
Make ARM feenableexcept detect failure (bug 14907).
Roland McGrath [Mon, 17 Jun 2013 16:54:51 +0000 (09:54 -0700)]
Sort sysd-rules-patterns by descending pattern length.
Roland McGrath [Mon, 17 Jun 2013 16:55:21 +0000 (09:55 -0700)]
Rewrite sysd-rules generation using an awk script.
Joseph Myers [Mon, 17 Jun 2013 11:48:11 +0000 (11:48 +0000)]
Use math-tests.h more in math/test-misc.
Joseph Myers [Sat, 15 Jun 2013 19:59:41 +0000 (19:59 +0000)]
Fix spurious "inexact" exceptions from dbl-64 sqrt (bug 15631).
Joseph Myers [Sat, 15 Jun 2013 19:58:38 +0000 (19:58 +0000)]
Add another fma test.
Siddhesh Poyarekar [Sat, 15 Jun 2013 06:57:40 +0000 (12:27 +0530)]
Add documentation for default pthread attribute functions
Siddhesh Poyarekar [Sat, 15 Jun 2013 06:54:15 +0000 (12:24 +0530)]
New API to set default thread attributes
This patch introduces two new convenience functions to set the default
thread attributes used for creating threads. This allows a programmer
to set the default thread attributes just once in a process and then
run pthread_create without additional attributes.
Joseph Myers [Fri, 14 Jun 2013 21:42:24 +0000 (21:42 +0000)]
Stop MIPS setjmp / longjmp saving / restoring floating-point flags (bug 14909).
Joseph Myers [Fri, 14 Jun 2013 21:19:35 +0000 (21:19 +0000)]
Update ARM _FPU_RESERVED value.
Joseph Myers [Fri, 14 Jun 2013 20:21:40 +0000 (20:21 +0000)]
Add math-tests.h for MIPS.
Liubov Dmitrieva [Fri, 14 Jun 2013 18:46:15 +0000 (20:46 +0200)]
Set fast unaligned load flag for new Intel microarchitecture
I have small patch for new Intel Silvermont machines.
http://newsroom.intel.com/community/intel_newsroom/blog/2013/05/06/intel-launches-low-power-high-performance-silvermont-microarchitecture
I checked this on my machine and see that strcpy, ... unaligned
versions are faster than ssse3 versions.
Siddhesh Poyarekar [Fri, 14 Jun 2013 18:39:26 +0000 (00:09 +0530)]
Add rtld-memset.S for x86_64
Resolves: BZ #15627
Add an assembler version of rtld-memset to avoid using SSE registers.
Joseph Myers [Fri, 14 Jun 2013 17:58:41 +0000 (17:58 +0000)]
Make tst-strtod-round use ROUNDING_TESTS.
Kirk Meyer [Fri, 14 Jun 2013 00:11:02 +0000 (10:11 +1000)]
MicroBlaze: negated errors in lowlevellock.h
The macros in lowlevellock.h are returning positive errors, but the
users of the macros expect negative. This causes e.g. sem_wait to
sometimes return an error with errno set to -EWOULDBLOCK.
Signed-off-by: Kirk Meyer <kirk.meyer@sencore.com>
Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com>
Roland McGrath [Thu, 13 Jun 2013 22:09:29 +0000 (15:09 -0700)]
Fix raciness in waitid test.
Siddhesh Poyarekar [Thu, 13 Jun 2013 19:50:06 +0000 (01:20 +0530)]
Avoid access beyond memory bounds in pthread_attr_getaffinity_np
Resolves BZ #15618.
pthread_attr_getaffinity_np may write beyond bounds of the input
cpuset buffer if the size of the input buffer is smaller than the
buffer present in the input pthread attributes. Fix is to copy to the
extent of the minimum of the source and the destination.
Siddhesh Poyarekar [Thu, 13 Jun 2013 17:42:00 +0000 (23:12 +0530)]
Fix NEWS entry about clock precision
Text by Roland McGrath.
Roland McGrath [Thu, 13 Jun 2013 17:26:44 +0000 (10:26 -0700)]
Don't let ld.so that failed its sanity check land in place.
Chris Metcalf [Wed, 12 Jun 2013 20:48:33 +0000 (16:48 -0400)]
tile: default to little-endian in bits/endian.h
This turns out to be helpful when doing a from-scratch cross-compile of
gcc and glibc, since you can then do "make install-headers" in glibc
even before you have a functioning tile gcc.
Joseph Myers [Thu, 13 Jun 2013 15:41:58 +0000 (15:41 +0000)]
Rework tst-strtod-round handling of inexact results.
Andreas Jaeger [Thu, 13 Jun 2013 07:52:49 +0000 (09:52 +0200)]
Fix formatting of comment
Johan Heikkila [Thu, 13 Jun 2013 07:50:02 +0000 (09:50 +0200)]
Update sv_FI@euro
[BZ#15432]
* locales/sv_FI@euro: Add LC_MEASUREMENT.
Johan Heikkila [Thu, 13 Jun 2013 07:49:03 +0000 (09:49 +0200)]
Update sv_FI
[BZ#15431]
* locales/sv_FI: Add LC_MEASUREMENT, use copy in LC_TELEPHONE,
update LC_ADDRESS with using postal_fmt from Finnish Post Office
recommendations at
http://www.posti.fi/hinnatjaohjeet/osoitejakuorimerkinnat/osoitemerkinnat.html
and add missing entries.
Siddhesh Poyarekar [Thu, 13 Jun 2013 04:49:49 +0000 (10:19 +0530)]
Fix ChangeLog entry
Siddhesh Poyarekar [Thu, 13 Jun 2013 04:24:35 +0000 (09:54 +0530)]
Improve precision of clock() function on Linux
Resolves #12515.
Use CLOCK_PROCESS_CPUTIME_ID instead of times to get better precision
in the value returned by clock.
Adhemerval Zanella [Wed, 12 Jun 2013 15:21:22 +0000 (10:21 -0500)]
Fix unsafe compiler optimization
GCC 4.8 enables -ftree-loop-distribute-patterns at -O3 by default and
this optimization may transform loops into memset/memmove calls. Without
proper handling this may generate unexpected PLT calls on GLIBC.
This patch fixes by create memset/memmove alias to internal GLIBC
__GI_memset/__GI_memmove symbols.
Joseph Myers [Wed, 12 Jun 2013 12:41:25 +0000 (12:41 +0000)]
Make more libm tests condition exceptions tests with math-tests.h.
Andreas Jaeger [Wed, 12 Jun 2013 08:12:19 +0000 (10:12 +0200)]
Update Interlingua translation from translation project
Siddhesh Poyarekar [Wed, 12 Jun 2013 05:06:48 +0000 (10:36 +0530)]
Set/restore rounding mode only when needed
The most common use case of math functions is with default rounding
mode, i.e. rounding to nearest. Setting and restoring rounding mode
is an unnecessary overhead for this, so I've added support for a
context, which does the set/restore only if the FP status needs a
change. The code is written such that only x86 uses these. Other
architectures should be unaffected by it, but would definitely benefit
if the set/restore has as much overhead relative to the rest of the
code, as the x86 bits do.
Here's a summary of the performance improvement due to these
improvements; I've only mentioned functions that use the set/restore
and have benchmark inputs for x86_64:
Before:
cos(): ITERS:4.69335e+08: TOTAL:28884.6Mcy, MAX:4080.28cy, MIN:57.562cy, 16248.6 calls/Mcy
exp(): ITERS:4.47604e+08: TOTAL:28796.2Mcy, MAX:207.721cy, MIN:62.385cy, 15543.9 calls/Mcy
pow(): ITERS:1.63485e+08: TOTAL:28879.9Mcy, MAX:362.255cy, MIN:172.469cy, 5660.86 calls/Mcy
sin(): ITERS:3.89578e+08: TOTAL:28900Mcy, MAX:704.859cy, MIN:47.583cy, 13480.2 calls/Mcy
tan(): ITERS:7.0971e+07: TOTAL:28902.2Mcy, MAX:1357.79cy, MIN:388.58cy, 2455.55 calls/Mcy
After:
cos(): ITERS:6.0014e+08: TOTAL:28875.9Mcy, MAX:364.283cy, MIN:45.716cy, 20783.4 calls/Mcy
exp(): ITERS:5.48578e+08: TOTAL:28764.9Mcy, MAX:191.617cy, MIN:51.011cy, 19071.1 calls/Mcy
pow(): ITERS:1.70013e+08: TOTAL:28873.6Mcy, MAX:689.522cy, MIN:163.989cy, 5888.18 calls/Mcy
sin(): ITERS:4.64079e+08: TOTAL:28891.5Mcy, MAX:6959.3cy, MIN:36.189cy, 16062.8 calls/Mcy
tan(): ITERS:7.2354e+07: TOTAL:28898.9Mcy, MAX:1295.57cy, MIN:380.698cy, 2503.7 calls/Mcy
So the improvements are:
cos: 27.9089%
exp: 22.6919%
pow: 4.01564%
sin: 19.1585%
tan: 1.96086%
The downside of the change is that it will have an adverse performance
impact on non-default rounding modes, but I think the tradeoff is
justified.
Siddhesh Poyarekar [Tue, 11 Jun 2013 16:44:43 +0000 (22:14 +0530)]
Convert iso-639.def to utf-8
Joseph Myers [Tue, 11 Jun 2013 15:44:31 +0000 (15:44 +0000)]
Add exception information to math-tests.h and use it in libm-test.inc.
Siddhesh Poyarekar [Tue, 11 Jun 2013 15:21:55 +0000 (20:51 +0530)]
Port remaining string benchmarks
There were a few more string benchmarks (strcpy_chk and stpcpy_check)
in the debug directory that needed to be ported over.
Ryan S. Arnold [Tue, 11 Jun 2013 14:33:33 +0000 (09:33 -0500)]
PowerPC: Remove redundant ports/sysdeps/powerpc/dl-procinfo.[ch].
Ryan S. Arnold [Tue, 11 Jun 2013 14:32:41 +0000 (09:32 -0500)]
PowerPC: Merge ports/ dl-procinfo.[ch] with base.
Andreas Schwab [Thu, 10 Jan 2013 16:46:49 +0000 (17:46 +0100)]
Update BIG5-HKSCS charmap to HKSCS-2008
Siddhesh Poyarekar [Tue, 11 Jun 2013 13:12:42 +0000 (18:42 +0530)]
Fix indentation and add copyright header to time.h
Siddhesh Poyarekar [Tue, 4 Jun 2013 12:41:43 +0000 (18:11 +0530)]
Remove performance-related bits from string tests
Siddhesh Poyarekar [Tue, 4 Jun 2013 11:18:56 +0000 (16:48 +0530)]
Copy over string performance tests into benchtests
Copy over already existing string performance tests into benchtests.
Bits not related to performance measurements have been omitted.
Siddhesh Poyarekar [Tue, 16 Apr 2013 12:07:24 +0000 (17:37 +0530)]
Begin porting string performance tests to benchtests
This is the initial support for string function performance tests,
along with copying tests for memcpy and memcpy-ifunc as proof of
concept. The string function benchmarks perform operations at
different alignments and for different sizes and compare performance
between plain operations and the optimized string operations. Due to
this their output is incompatible with the function benchmarks where
we're interested in fastest time, throughput, etc.
In future, the correctness checks in the benchmark tests can be
removed. Same goes for the performance measurements in the
string/test-*.
Andreas Schwab [Mon, 10 Jun 2013 12:39:09 +0000 (14:39 +0200)]
Fix handling of netgroup cache in nscd
Andreas Jaeger [Tue, 11 Jun 2013 06:49:00 +0000 (08:49 +0200)]
Update Chinese (traditional) translation from translation project
Ondrej Bilka [Tue, 11 Jun 2013 06:54:35 +0000 (08:54 +0200)]
Fix-trailing-whitespaces-in-libidn.
Siddhesh Poyarekar [Tue, 11 Jun 2013 05:41:11 +0000 (11:11 +0530)]
Fix symbol definitions for __clock_* functions
__clock_gettime and other __clock_* functions could result in an extra
PLT reference within libc.so if it actually gets used. None of the
code currently uses them, which is why this probably went unnoticed.
Joseph Myers [Mon, 10 Jun 2013 22:47:08 +0000 (22:47 +0000)]
Remove trailing whitespace from mach/*.sub.
Carlos O'Donell [Mon, 10 Jun 2013 16:05:11 +0000 (12:05 -0400)]
x86*: Return syscall error for lll_futex_wake.
It is very very possible that the futex syscall returns an
error and that the caller of lll_futex_wake may want to
look at that error and propagate the failure.
This patch allows a caller to see the syscall error.
There are no users of the syscall error at present, but
future cleanups are now be able to check for the error.
--
nplt/
2013-06-10 Carlos O'Donell <carlos@redhat.com>
* sysdeps/unix/sysv/linux/i386/lowlevellock.h
(lll_futex_wake): Return syscall error.
* sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
(lll_futex_wake): Return syscall error.
Joseph Myers [Mon, 10 Jun 2013 12:34:49 +0000 (12:34 +0000)]
Add rounding mode information to math-tests.h and use it in libm-test.inc.
Siddhesh Poyarekar [Mon, 10 Jun 2013 04:38:46 +0000 (10:08 +0530)]
Avoid overwriting earlier flags in CPPFLAGS-nonlib in benchtests
When setting BENCH_DURATION in CPPFLAGS-nonlib, append to the variable
instead of assigning to it, to avoid overwriting earlier set flags,
notably the -DNOT_IN_libc=1 flag.
Ondrej Bilka [Sat, 8 Jun 2013 20:50:29 +0000 (22:50 +0200)]
Fix previous commit.
Ondrej Bilka [Sat, 8 Jun 2013 18:03:24 +0000 (20:03 +0200)]
Silence warning: __inline is not at beginning of declaration.
Joseph Myers [Sat, 8 Jun 2013 14:55:32 +0000 (14:55 +0000)]
Avoid trailing whitespace in sysdeps/gnu/errlist.c.
Joseph Myers [Sat, 8 Jun 2013 00:22:23 +0000 (00:22 +0000)]
Use (void) in no-arguments function definitions.
Joseph Myers [Fri, 7 Jun 2013 22:24:35 +0000 (22:24 +0000)]
Avoid use of "register" as optimization hint.
Joseph Myers [Fri, 7 Jun 2013 14:56:03 +0000 (14:56 +0000)]
Remove trailing whitespace from localedata.
Joseph Myers [Thu, 6 Jun 2013 19:02:09 +0000 (19:02 +0000)]
Update miscellaneous scripts from upstream.
Ondrej Bilka [Thu, 6 Jun 2013 17:36:03 +0000 (19:36 +0200)]
Fix leading whitespaces.
Ondrej Bilka [Thu, 6 Jun 2013 14:11:10 +0000 (16:11 +0200)]
Fix ChangeLog.
Joseph Myers [Thu, 6 Jun 2013 12:06:15 +0000 (12:06 +0000)]
Remove trailing whitespace in nptl.