glibc:release/2.17/master

Last commit made on 2014-06-03
Get this branch:
git clone -b release/2.17/master https://git.launchpad.net/glibc

Branch merges

Branch information

Name:
release/2.17/master
Repository:
lp:glibc

Recent commits

0557361... by Guo Yixuan

Fixed pthread_spin_lock on sparc32/64 (bug 16882)

 [BZ #16882]
 * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S
 (pthread_spin_lock): Branch out of spin loop to proper location.
 * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S
 (pthread_spin_lock): Likewise.

 * nptl/tst-spin4.c: New test.
 * nptl/Makefile (tests): Add tst-spin4.

8c19f86... by "Jose E. Marchesi" <email address hidden>

Fix sparc memcpy data corruption when using niagara2 optimized routines.

 * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Add missing
 membar to avoid block loads/stores to overlap previous stores.

38736fd... by Aurelien Jarno <email address hidden>

SPARC: add prlimit and prlimit64 in <bits/resource.h> (BZ #16943)

prlimit and prlimit64 have been added in the main <bits/resource.h>, but
not in the SPARC specific version. Fix that.

Note: this is Debian bug#703559, reported by Emilio Pozuelo Monfort
<email address hidden>

(cherry picked from commit d16e6ec7ca2c861ba681e3a2fbd431725774292e)

4df7d90... by Aurelien Jarno <email address hidden>

SPARC: add EFD_SEMAPHORE in <bits/eventfd.h> (BZ #16916)

EFD_SEMAPHORE has been added in the main <bits/eventfd.h>, but not in
the SPARC specific version. Fix that.

(cherry picked from commit 83df9ad0cc861ef24f08a88c5a4c055e2516d33c)

26c9b01... by DaveM

NEWS: Add 16885 to fixed bug list.

7269784... by DaveM

Fix v9/64-bit strcmp when string ends in multiple zero bytes.

 [BZ #16885]
 * sysdeps/sparc/sparc64/strcmp.S: Fix end comparison handling when
 multiple zero bytes exist at the end of a string.
 Reported by Aurelien Jarno <email address hidden>

 * string/test-strcmp.c (check): Add explicit test for situations where
 there are multiple zero bytes after the first.

cec2409... by "H.J. Lu" <email address hidden>

Disable x87 inline functions for SSE2 math

When i386 and x86-64 mathinline.h was merged into a single mathinline.h,
"gcc -m32" enables x87 inline functions on x86-64 even when -mfpmath=sse
and SSE2 is enabled. It is a regression on x86-64. We should check
__SSE2_MATH__ instead of __x86_64__ when disabling x87 inline functions.

(cherry picked from commit 409e00bd69b8d8dd74d7327085351d26769ea6fc)

Conflicts:
 ChangeLog
 NEWS
 sysdeps/x86/fpu/bits/mathinline.h

3db0119... by Maxim Kuvyrkov <email address hidden>

Fix race in free() of fastbin chunk: BZ #15073

Perform sanity check only if we have_lock. Due to lockless nature of fastbins
we need to be careful derefencing pointers to fastbin entries (chunksize(old)
in this case) in multithreaded environments.

The fix is to add have_lock to the if-condition checks. The rest of the patch
only makes code more readable.

 * malloc/malloc.c (_int_free): Perform sanity check only if we
 have_lock.

Conflicts:

 ChangeLog
 NEWS

15256e5... by Chris Metcalf <email address hidden>

tile BZ #15759: Fix bug in _dl_unmap

We returned without calling __munmap if not in the simulator.
Now we call a separate sim_dlclose() function to make the
control flow work correctly.

(cherry picked from commit 1fe2988f523ddbad93ca7abc98fea982f2ae0505)

Conflicts:
 NEWS

ca40236... by Chris Metcalf <email address hidden>

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.

(cherry picked from commit ad36ba2bd67398edefe31aa039090912f76bffce)