]> git.ipfire.org Git - thirdparty/glibc.git/log
thirdparty/glibc.git
10 years agoCVE-2014-6040: Crashes on invalid input in IBM gconv modules [BZ #17325]
Florian Weimer [Wed, 3 Sep 2014 17:45:43 +0000 (19:45 +0200)] 
CVE-2014-6040: Crashes on invalid input in IBM gconv modules [BZ #17325]

These changes are based on the fix for BZ #14134 in commit
6e230d11837f3ae7b375ea69d7905f0d18eb79e5.

10 years agoPowerPC: Fix gprof entry point for LE
Adhemerval Zanella [Tue, 29 Jul 2014 18:56:44 +0000 (13:56 -0500)] 
PowerPC: Fix gprof entry point for LE

This patch fixes the ELFv2 gprof entry point since the ABI
does not define function descriptors.  It fixes BZ#17213.

This is a backport of a53fbd8e6cd2f69bdfa3431d616a5f332aea6664.

10 years agoCorrect DT_PPC64_NUM
Alan Modra [Mon, 14 Jul 2014 11:44:50 +0000 (21:14 +0930)] 
Correct DT_PPC64_NUM

[BZ #17153]
* elf/elf.h (DT_PPC64_NUM): Correct value.
* NEWS: Add to fixed bug list.

This is a backport of f6c44d475104e931bab2b4ffa499961088de673c.

10 years agoPowerPC: Cleanup powerpc memmove
Adhemerval Zanella [Tue, 8 Jul 2014 13:54:09 +0000 (08:54 -0500)] 
PowerPC: Cleanup powerpc memmove

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.

10 years agoPowerPC: Fix compiler warnings
Adhemerval Zanella [Tue, 8 Jul 2014 13:49:54 +0000 (08:49 -0500)] 
PowerPC: Fix compiler warnings

This patch fixes some compiler due trailing data in #undef directives
and due missing prototypes.

10 years agoPowerPC: Add ifunc tests for memmove
Adhemerval Zanella [Tue, 8 Jul 2014 13:35:44 +0000 (08:35 -0500)] 
PowerPC: Add ifunc tests for memmove

This patch add the missing ifunc tests definition for memmove ppc32
optimization patch (commit 07aedd7).

This is a backport of 91f4b564bd7bedcd93e7047cad570ce292d6330b.

10 years agoPowerPC: Align power7 memcpy using VSX to quadword
Adhemerval Zanella [Wed, 25 Jun 2014 16:54:31 +0000 (11:54 -0500)] 
PowerPC: Align power7 memcpy using VSX to quadword

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).

10 years agoPowerPC: optimized memmove for POWER7/PPC32
Adhemerval Zanella [Tue, 24 Jun 2014 13:47:52 +0000 (08:47 -0500)] 
PowerPC: optimized memmove for POWER7/PPC32

This patch adds a optimized memmove for power7 by using the optimized
power7 memcpy for forward copying.

10 years agoPowerPC: optimized memmove for POWER7/PPC64
Adhemerval Zanella [Fri, 20 Jun 2014 17:55:16 +0000 (12:55 -0500)] 
PowerPC: optimized memmove for POWER7/PPC64

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.

10 years agoPowerPC: memmove default implementation cleanup
Adhemerval Zanella [Tue, 24 Jun 2014 11:42:31 +0000 (06:42 -0500)] 
PowerPC: memmove default implementation cleanup

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.

This is a backport of d6f68bbef4427850c2901728a1d13efc0e687297.

10 years agoPowerPC: strcat optimization for PPC64/POWER7
Vidya Ranganathan [Thu, 12 Jun 2014 03:21:20 +0000 (22:21 -0500)] 
PowerPC: strcat optimization for PPC64/POWER7

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.

This is a backport of bc8ea38590070604006399e42469087e943fc8ec.

10 years agoPowerPC: sync hwcap.h capabilities
Adhemerval Zanella [Mon, 23 Jun 2014 14:38:47 +0000 (09:38 -0500)] 
PowerPC: sync hwcap.h capabilities

Linux commit dd58a092c4202f2bd490adab7285b3ff77f8e467 added the
PPC_FEATURE2_VEC_CRYPTO auvx capability to indicate whether to
hardware supports vector crypto hardware instructions.  This patch
adds its definition to powerpc hwcap bits.

This is a backport of db22400947e1c82153e5270d23fed53fc1e3a659.

10 years agoPowerPC: Fix nearbyintl failure for few inputs
Rajalakshmi Srinivasaraghavan [Tue, 17 Jun 2014 13:46:25 +0000 (08:46 -0500)] 
PowerPC: Fix nearbyintl failure for few inputs

This patch fixes few failures in nearbyintl() where the fraction part is
close to 0.5.i  The new tests added report few extra failures in
nearbyint_downward and nearbyint_towardzero which is a known issue.

Fixes #17031.

This is a backport of 754c5a08aacb44895d1ab97c553ce424eb43f761.

11 years agoPowerPC: Optimized strcmp for PPC64/POWER7
Vidya Ranganathan [Fri, 6 Jun 2014 12:56:07 +0000 (07:56 -0500)] 
PowerPC: Optimized strcmp for PPC64/POWER7

Optimization is achieved on 8 byte aligned strings with double word
comparison using cmpb instruction. On unaligned strings loop unrolling
is applied for Power7 gain.

It is a backport of e23d3d2690bf63207b1a47e83a94693daebbbfe5.

11 years agoPowerPC: Fix optimized strncat strlen call
Adhemerval Zanella [Fri, 6 Jun 2014 14:37:07 +0000 (09:37 -0500)] 
PowerPC: Fix optimized strncat strlen call

This patch fixes the optimized ppc64/power7 strncat strlen call for
static build without ifunc enabled.  The strlen symbol to call in such
situation is just strlen, instead of __GI_strlen (since the __GI_
alias is just created for shared objects).

It is a backport of ed36bfa18faf9be457575568e64b8409e46caa22.

11 years agoPowerPC: Fix --disable-multi-arch builds
Adhemerval Zanella [Tue, 8 Apr 2014 22:25:14 +0000 (17:25 -0500)] 
PowerPC: Fix --disable-multi-arch builds

This patch fixes some powerpc32 and powerpc64 builds with
--disable-multi-arch option along with different --with-cpu=powerN.
It cleanups the Implies directories by removing the multiarch
folder for non multiarch config and also fixing two assembly
implementations: powerpc64/power7/strncat.S that is calling the
wrong strlen; and power8/fpu/s_isnan.S that misses the hidden_def and
weak_alias directives.

It is a backport of de21c33c068c8e39afb5711613a7c083c11ce6a1.

11 years agoPowerPC: Remove 64 bits instructions in PPC32 code
Adhemerval Zanella [Thu, 22 May 2014 19:48:38 +0000 (14:48 -0500)] 
PowerPC: Remove 64 bits instructions in PPC32 code

This patch replaces the insrdi by insrwi in powerpc32 assembly.

It is a backport of d298c41635ce7f2dc7c3eccc842fe3aa754c0c8e.

11 years agoPowerPC: Fix memchr ifunc hidden symbol for PPC32
Adhemerval Zanella [Thu, 22 May 2014 12:53:44 +0000 (07:53 -0500)] 
PowerPC: Fix memchr ifunc hidden symbol for PPC32

This patch fixes a similar issue to
736c304a1ab4cee36a2f3343f1698bc0abae4608, where for PPC32 if the symbol
is defined as hidden (memchr) then compiler will create a local branc
(symbol@local) and the linker will not create a required PLT call to
make the ifunc work.  It changes the default hidden symbol (__GI_memchr)
to default memchr symbol for powerpc32 (__memchr_ppc32).

Backport of 3d2badacf185fac740a2992240a817fb2ca325af.

11 years agoPowerPC: Fix multiarch hypotf PPC64 path
Adhemerval Zanella [Mon, 19 May 2014 22:56:55 +0000 (17:56 -0500)] 
PowerPC: Fix multiarch hypotf PPC64 path

This patch moves the hypotf multiarch implementation to correct path.

11 years agoPowerPC: strncpy/stpncpy optimization for PPC64/POWER7
Vidya Ranganathan [Tue, 6 May 2014 00:10:45 +0000 (19:10 -0500)] 
PowerPC: strncpy/stpncpy optimization for PPC64/POWER7

The optimization is achieved by following techniques:
  > data alignment [gain from aligned memory access on read/write]
  > POWER7 gains performance with loop unrolling/unwinding
    [gain by reduction of branch penalty].
  > zero padding done by calling optimized memset

11 years agoPowerPC: ifunc improvement for internal calls
Adhemerval Zanella [Fri, 2 May 2014 17:00:36 +0000 (12:00 -0500)] 
PowerPC: ifunc improvement for internal calls

This patch changes de default symbol redirection for internal call of
memcpy, memset, memchr, and strlen to the IFUNC resolved ones.  The
performance improvement is noticeable in algorithms that uses these
symbols extensible, like the regex functions.

This is a backport of 19c4bec0f43599eecc2f32de96ae179cd7d64053.

11 years agoCorrect IBM long double frexpl.
Alan Modra [Wed, 16 Apr 2014 10:03:32 +0000 (19:33 +0930)] 
Correct IBM long double frexpl.

Besides fixing the bugzilla, this also fixes corner-cases where the high
and low double differ greatly in magnitude, and handles a denormal
input without resorting to a fp rescale.

[BZ #16740]
[BZ #16619]
* sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Rewrite.
* math/libm-test.inc (frexp_test_data): Add tests.

Backport of aa5f0ff11ad2cc85277c64cf65c723a9664e1149 and
9860b0450275ad2b69cb9360fd01d5c122a65fc5.

11 years agoPowerPC: Fix nearbyint/nearbyintf result for FE_DOWNWARD
Adhemerval Zanella [Sun, 6 Apr 2014 19:50:11 +0000 (14:50 -0500)] 
PowerPC: Fix nearbyint/nearbyintf result for FE_DOWNWARD

This patch fixes the powerpc32 optimized nearbyint/nearbyintf bogus
results for FE_DOWNWARD rounding mode.  This is due wrong instructions
sequence used in the rounding calculation (two subtractions instead of
adition and a subtraction).

Fixes BZ#16815.

Backport of 8bd70862e11023e7f827f240a5a214f847ae982d.

11 years agoCorrect IBM long double nextafterl.
Alan Modra [Wed, 2 Apr 2014 03:16:19 +0000 (13:46 +1030)] 
Correct IBM long double nextafterl.

Fix for values near a power of two, and some tidies.

[BZ #16739]
* sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Correct
output when value is near a power of two.  Use int64_t for lx and
remove casts.  Use decimal rather than hex exponent constants.
Don't use long double multiplication when double will suffice.
* math/libm-test.inc (nextafter_test_data): Add tests.
* NEWS: Add 16739 and 16786 to bug list.

Backport of b0abbc21034f0e5edc49023d8fda0616173faf17.

11 years agoCorrect prefetch hint in power7 memrchr.
Alan Modra [Wed, 2 Apr 2014 03:12:27 +0000 (13:42 +1030)] 
Correct prefetch hint in power7 memrchr.

Typo fix.

* sysdeps/powerpc/powerpc64/power7/memrchr.S: Correct stream hint.

Backport of af6b17973cbc07ac06cfb40eeab5cc2391fb489a.

11 years agoFix reference to toc symbol.
Alan Modra [Wed, 2 Apr 2014 03:10:21 +0000 (13:40 +1030)] 
Fix reference to toc symbol.

https://sourceware.org/ml/binutils/2014-03/msg00033.html removes the
"magic" treatment of symbols defined in a .toc section.

* sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference.

Backport of 483818d768ed99a5edf4114298a75ebedaee8d5c.

11 years agoFix s_copysign stack temp for PowerPC64 ELFv2
Alan Modra [Tue, 1 Apr 2014 03:37:42 +0000 (14:07 +1030)] 
Fix s_copysign stack temp for PowerPC64 ELFv2

[BZ #16786]
* sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.

Backport of c859b32e9d76afe8a3f20bb9528961a573c06937.

11 years agoPowerPC: Fix little endian enconding for mfvsrd
Adhemerval Zanella [Mon, 31 Mar 2014 13:07:55 +0000 (08:07 -0500)] 
PowerPC: Fix little endian enconding for mfvsrd

This patch fixes the MFVSRD_R3_V1 macro that encodes 'mfvsrd  r3,vs1'
(to support old binutils) for little endian.

Backport of 757d9dd5c3efa56fac75965abc014faaae7b7895.

11 years agoPowerPC: optimized strpbrk for POWER7
Adhemerval Zanella [Thu, 20 Mar 2014 20:28:07 +0000 (15:28 -0500)] 
PowerPC: optimized strpbrk for POWER7

This patch add an optimized strpbrk for POWER7 by using a different
algorithm than default implementation: it constructs a table based on
the 'accept' argument and use this table to check for any occurance on
the input string. The idea is similar as x86_64 uses.
For PowerPC some tunings were added, such as unroll loops and memory
clear using VSX instructions.

Backport of 6f23d0939e9651d8ac3c77a835fb6464b35a1dc4

11 years agoPowerPC: optimized strcspn for PPC64/POWER7
Adhemerval Zanella [Thu, 20 Mar 2014 16:24:52 +0000 (11:24 -0500)] 
PowerPC: optimized strcspn for PPC64/POWER7

This patch add a optimized strcspn for POWER7 by using a different
algorithm than default implementation: it constructs a table based on
the 'accept' argument and use this table to check for any occurance
on the input string. The idea is similar as x86_64 uses.
For PowerPC some tunings were added, such as unroll loops and align
stack memory to table to 16 bytes (so VSX clean can ran without
alignment issues).

Backport of 6eaf95cbfa0031ea267682dc2c9c17ed3e3dc167

11 years agoPowerPC: remove wrong roundl implementation for PowerPC64
Adhemerval Zanella [Fri, 14 Mar 2014 17:49:45 +0000 (12:49 -0500)] 
PowerPC: remove wrong roundl implementation for PowerPC64

The roundl assembly implementation
(sysdeps/powerpc/powerpc64/fpu/s_roundl.S)
returns wrong results for some inputs where first double is a exact
integer and the precision is determined by second long double.

Checking on implementation comments and history, I am very confident the
assembly implementation was based on a version before commit
5c68d401698a58cf7da150d9cce769fa6679ba5f that fixes BZ#2423 (Errors in
long double (ldbl-128ibm) rounding functions in glibc-2.4).

By just removing the implementation and make the build select
sysdeps/ieee754/ldbl-128ibm/s_roundl.c instead fixes the failing math.

This fixes 16707.

Backport of c7de50250367167d8c9f35594b264f6a0af8dd0c

11 years agoPowerPC: remove wrong nearbyintl implementation for PPC64
Adhemerval Zanella [Fri, 14 Mar 2014 17:27:52 +0000 (12:27 -0500)] 
PowerPC: remove wrong nearbyintl implementation for PPC64

The nearbyintl assembly implementation
(sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S)
returns wrong results for some inputs where first double is a exact
integer and the precision is determined by second long double.

Checking on implementation comments and history, I am very confident the
assembly implementation was based on a version before commit
5c68d401698a58cf7da150d9cce769fa6679ba5f that fixes BZ#2423 (Errors in
long double (ldbl-128ibm) rounding functions in glibc-2.4).

By just removing the implementation and make the build select
sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c instead fixes the failing
math.

Fixes BZ#16706.

Backport of 98fb27a373f37554232e0060eef1a5bb00a07eb0

11 years agoPowerPC: remove wrong ceill implementation for PowerPC64
Adhemerval Zanella [Fri, 14 Mar 2014 12:35:43 +0000 (07:35 -0500)] 
PowerPC: remove wrong ceill implementation for PowerPC64

The ceill assembly implementation (sysdeps/powerpc/powerpc64/fpu/s_ceill.S)
returns wrong results for some inputs where first double is a exact
integer and the precision is determined by second long double.

Checking on implementation comments and history, I am very confident the
assembly implementation was based on a version before commit
5c68d401698a58cf7da150d9cce769fa6679ba5f that fixes BZ#2423 (Errors in
long double (ldbl-128ibm) rounding functions in glibc-2.4).

By just removing the implementation and make the build select
sysdeps/ieee754/ldbl-128ibm/s_ceill.c instead fixes the failing math.

Fixes BZ#16701.

Backport of 374f7f61214967bb4e2257695aeeeecc2a77f369

11 years agoAdd truncl tests related to BZ#16414
Adhemerval Zanella [Fri, 14 Mar 2014 17:15:40 +0000 (12:15 -0500)] 
Add truncl tests related to BZ#16414

Backport of 4655c291d1808c35b7c54236ae62be7a3aaa0a2d

11 years agoPowerPC: Fix bzero definition for static libc for PPC32
Adhemerval Zanella [Wed, 12 Mar 2014 13:55:50 +0000 (08:55 -0500)] 
PowerPC: Fix bzero definition for static libc for PPC32

This patch fixes an issue for powerpc32-fpu static build which fails
with an 'bzero' undefined reference. This patch adds bzero ifunc selector
for static builds and fixes the '__bzero_ppc' reference to default
memset symbol (since static memset build does not provide ifunc
selector).

Fixes BZ#16689.

Backport of dd3946c615184e1957a0cb09352cac72be5d6d5b.

11 years agoPowerPC: Fix strspn for static build
Adhemerval Zanella [Tue, 11 Mar 2014 21:17:50 +0000 (16:17 -0500)] 
PowerPC: Fix strspn for static build

This patch makes the strspn ifunc selector build for static builds.

This is a backport of 27c7220a483bda576533aa9a0a9b42175644b1a1

11 years agoPowerPC: Fix bzero definition for static libc for PPC64
Adhemerval Zanella [Mon, 10 Mar 2014 20:26:20 +0000 (15:26 -0500)] 
PowerPC: Fix bzero definition for static libc for PPC64

This patch fixes an issue for powerpc64[le] static build where __bzero
is definied in multiple places (memset-ppc64.o and bzero.o). It is now
defined only in bzero.o and memset-ppc64.o only defined __bzero_ppc for
both dynamic and static library.

Fixes BZ#16683.

Backport of 4facea473059914983b7da8dd654c06b8e3dcc41

11 years agoPowerPC: strspn optimization for PPC64/POWER7
Vidya Ranganathan [Mon, 10 Mar 2014 16:20:36 +0000 (12:20 -0400)] 
PowerPC: strspn optimization for PPC64/POWER7

The optimization is achieved by following techniques:
  > hashing of needle.
  > hashing avoids scanning of duplicate entries in needle across the string.
  > initializing the hash table with Vector instructions (VSX) by quadword access.
  > unrolling when scanning for character in string across hash table.

11 years agoPowerPC: strncat optimization for PPC64
Adhemerval Zanella [Fri, 7 Mar 2014 12:09:47 +0000 (06:09 -0600)] 
PowerPC: strncat optimization for PPC64

The optimization is achieved by following techniques:
1. Doubleword aligned memory access and compares using
   cmpb instruction.
2. Loop unrolling for byte load/store.
3. CPU pre-fetch to avoid cache miss.

Backport of ba9cc0714e58a9e8fa73cf6b0e205cbf1e6b71f2

11 years agoPowerPC: strrchr optimization for POWER7/PPC64
Rajalakshmi Srinivasaraghavan [Mon, 3 Mar 2014 14:06:41 +0000 (08:06 -0600)] 
PowerPC: strrchr optimization for POWER7/PPC64

This patch optimizes strrchr() for ppc64. It uses aligned memory
access along with cmpb instruction and CPU prefetch to avoid
cache misses for speed improvement.

Backport of c7debbdfacbef150aaf9113eb05ccaf2b9e7af6c

11 years agoPowerPC: llround/llroundf POWER8 optimization
Adhemerval Zanella [Mon, 17 Feb 2014 16:44:08 +0000 (10:44 -0600)] 
PowerPC: llround/llroundf POWER8 optimization

This patch add a optimized llround/llroundf implementation for POWER8
using the new Move From VSR Doubleword instruction to gains some
cycles from FP to GRP register move.

Backport fe13a20c37578f08ce393ccaeb45caeb48815ca5

11 years agoPowerPC: llrint/llrintf POWER8 optimization
Adhemerval Zanella [Tue, 18 Feb 2014 14:29:29 +0000 (09:29 -0500)] 
PowerPC: llrint/llrintf POWER8 optimization

This patch add a optimized llrint/llrintf implementation for POWER8
using the new Move From VSR Doubleword instruction to gains some
cycles from FP to GRP register move.

Backport of 1ad8950a3ea4056ed343d681b5146f4b4aa27e10

11 years agoPowerPC: Optimized finite/finitef for POWER8
Adhemerval Zanella [Thu, 27 Feb 2014 15:46:46 +0000 (09:46 -0600)] 
PowerPC: Optimized finite/finitef for POWER8

This patch add a optimized finite/finitef implementation for POWER8
using the new Move From VSR Doubleword instruction to gains some
cycles from FP to GRP register move.

Backport of cac626d60a863e48ab75417064984769e58c5719.

11 years agoPowerPC: Optimized isinf/isinff for POWER8
Adhemerval Zanella [Thu, 27 Feb 2014 15:45:41 +0000 (09:45 -0600)] 
PowerPC: Optimized isinf/isinff for POWER8

This patch add a optimized isinf/isinff implementation for POWER8
using the new Move From VSR Doubleword instruction to gains some
cycles from FP to GRP register move.

Backport of 4393fc119c34e97519b9b7a4fc94066b283be452

11 years agoPowerPC: Optimized isnan/isnanf for POWER8
Adhemerval Zanella [Thu, 27 Feb 2014 15:43:51 +0000 (09:43 -0600)] 
PowerPC: Optimized isnan/isnanf for POWER8

This patch add a optimized isnan/isnanf implementation for POWER8
using the new Move From VSR Doubleword instruction to gains some
cycles from FP to GRP register move.

Backport of 487972aea52004f604c2878c8c9d3e77670f2c32

11 years agoPartially revert commit 2663b74f8103a2a8a46b4896439b7a452480fc7c
Tulio Magno Quites Machado Filho [Fri, 15 Nov 2013 13:44:20 +0000 (07:44 -0600)] 
Partially revert commit 2663b74f8103a2a8a46b4896439b7a452480fc7c

This change is necessary in order to avoid the issue documented at
http://sourceware.org/ml/libc-alpha/2013-05/msg00350.html.

11 years agoRemove assert() if DT_RUNPATH and DT_RPATH flags are found in ld.so.
Ryan S. Arnold [Fri, 15 Nov 2013 13:42:33 +0000 (07:42 -0600)] 
Remove assert() if DT_RUNPATH and DT_RPATH flags are found in ld.so.

11 years agoUpdate x86_64 libm-test-ulps on AMD family 21h model 1 (bug 16545).
Dylan Alex Simon [Wed, 12 Feb 2014 15:55:10 +0000 (15:55 +0000)] 
Update x86_64 libm-test-ulps on AMD family 21h model 1 (bug 16545).

(cherry picked from commit fbfdf9cb039486f66994637081862c01bbd6a765)

Conflicts:
NEWS

11 years agoUpdate version.h and include/features.h for 2.19 release glibc-2.19
Allan McRae [Fri, 7 Feb 2014 09:04:38 +0000 (19:04 +1000)] 
Update version.h and include/features.h for 2.19 release

11 years agoBug 15968 was fixed by commit 0748546f660d27a2ad29fa6174d456e2f6490758.
Joseph Myers [Fri, 7 Feb 2014 02:47:37 +0000 (02:47 +0000)] 
Bug 15968 was fixed by commit 0748546f660d27a2ad29fa6174d456e2f6490758.

11 years agoBug 6981 was fixed by commit 1484e65736f4cab27e5051e0f06be8470e69af82.
Joseph Myers [Fri, 7 Feb 2014 02:36:28 +0000 (02:36 +0000)] 
Bug 6981 was fixed by commit 1484e65736f4cab27e5051e0f06be8470e69af82.

11 years agoBZ #16529: Fix pedantic warning with netinet/in.h.
Carlos O'Donell [Thu, 6 Feb 2014 16:12:48 +0000 (11:12 -0500)] 
BZ #16529: Fix pedantic warning with netinet/in.h.

When compiling with pedantic the following warning is seen:

gcc -Wall -pedantic -O0 -o test test.c
In file included from test.c:3:0:
/path/inet/netinet/in.h:111:21: warning: comma at end of \
enumerator list [-Wpedantic]
     IPPROTO_MH = 135,      /* IPv6 mobility header.  */
                     ^

It is valid C99 to have a trailing comma after the last item in
an enumeration. However it is not valid C90. If possible glibc
attempts to keep all headers C90 + long long without requiring
C99 features. In this case it's easy to fix the headers and it
removes the warning seem with -pedantic.

11 years agoUpdate contrib.texi
Siddhesh Poyarekar [Thu, 6 Feb 2014 05:31:35 +0000 (11:01 +0530)] 
Update contrib.texi

Update blurb for Roland, Alex, Ryan, Joseph and Carlos.

11 years agoAdd missing ChangeLog from yesterday's sparc ULPs update.
David S. Miller [Thu, 6 Feb 2014 03:41:27 +0000 (19:41 -0800)] 
Add missing ChangeLog from yesterday's sparc ULPs update.

11 years agoRevert "microblaze BZ #15705: Define MMAP2_PAGE_SHIFT"
David Holsgrove [Wed, 5 Feb 2014 23:57:56 +0000 (09:57 +1000)] 
Revert "microblaze BZ #15705: Define MMAP2_PAGE_SHIFT"

This reverts commit 79b846ecc0275ceb02b5e2d3b03a34d7c43e6bf9.

Conflicts:

NEWS
ports/ChangeLog.microblaze

Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com>
11 years agoRevert "BZ 16133 has been fixed (async signal safe TLS)."
Allan McRae [Wed, 5 Feb 2014 11:22:19 +0000 (21:22 +1000)] 
Revert "BZ 16133 has been fixed (async signal safe TLS)."

This reverts commit a494421f5268df333c589d71104a39bb6a9cff19.

Conflicts:
NEWS

11 years agoRevert "Patch [1/4] async-signal safe TLS."
Allan McRae [Wed, 5 Feb 2014 11:21:09 +0000 (21:21 +1000)] 
Revert "Patch [1/4] async-signal safe TLS."

This reverts commit 69a17d9d245dc3551792e95e1823cc2d877592f3.

11 years agoRevert "Patch 3/4 of the effort to make TLS access async-signal-safe."
Allan McRae [Wed, 5 Feb 2014 11:21:00 +0000 (21:21 +1000)] 
Revert "Patch 3/4 of the effort to make TLS access async-signal-safe."

This reverts commit 35e8f7ab94c910659de9d507aa0f3e1f8973d914.

11 years agoRevert "Patch 2/4 of the effort to make TLS access async-signal-safe."
Allan McRae [Wed, 5 Feb 2014 11:19:51 +0000 (21:19 +1000)] 
Revert "Patch 2/4 of the effort to make TLS access async-signal-safe."

This reverts commit 1f33d36a8a9e78c81bed59b47f260723f56bb7e6.

Conflicts:
elf/dl-misc.c

Also reverts the follow commits that were bug fixes to new code introduced
in the above commit:
063b2acbce83549df82ab30f5af573f1b9c4bd19
b627fdd58554bc36bd344dc40a8787c4b7a9cc46
e81c64bba13d2d8b2a4e53254a82cc80f27c8497

11 years agoRevert "Async-signal safe TLS."
Allan McRae [Wed, 5 Feb 2014 11:14:59 +0000 (21:14 +1000)] 
Revert "Async-signal safe TLS."

This reverts commit 7f507ee17aee720fa423fa38502bc3caa0dd03d7.

Conflicts:
ChangeLog
nptl/tst-tls7.c
nptl/tst-tls7mod.c

11 years agoFix comment in kernel-features.h.
Carlos O'Donell [Wed, 5 Feb 2014 15:33:42 +0000 (10:33 -0500)] 
Fix comment in kernel-features.h.

Use "was" not "were."

11 years agoFix tst-setgetname for Linux kernels < 2.6.33.
Carlos O'Donell [Wed, 5 Feb 2014 15:10:34 +0000 (10:10 -0500)] 
Fix tst-setgetname for Linux kernels < 2.6.33.

Support for /proc/self/task/$tid/comm as added in Linux 2.6.33,
therefore since the test tst-setgetname relies on this functionality
to operate we must skip the test in kernels < 2.6.33. We wrap the
checks with __ASSUME_PROC_PID_TASK_COMM such that in the future when
we move arch_minimum_kernel to 2.6.33 we can remove this code.

11 years agomicroblaze: Update libm-test-ulps
David Holsgrove [Mon, 3 Feb 2014 23:30:34 +0000 (09:30 +1000)] 
microblaze: Update libm-test-ulps

Update libm-test-ulps for microblaze, and remove unneeded copy
libm-test-ulps_new.

ports/ChangeLog.microblaze

 2014-02-04  David Holsgrove <david.holsgrove@xilinx.com>

   * sysdeps/microblaze/libm-test-ulps: Update.
   * sysdeps/microblaze/libm-test-ulps_new: Deleted redundant file.

Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com>
11 years agomicroblaze BZ #15705: Define MMAP2_PAGE_SHIFT
David Holsgrove [Mon, 3 Feb 2014 23:26:15 +0000 (09:26 +1000)] 
microblaze BZ #15705: Define MMAP2_PAGE_SHIFT

Define MMAP2_PAGE_SHIFT to -1 for microblaze so the correct shift
for the syscall is determined dynamically using getpagesize

ports/ChangeLog.microblaze

 2014-02-04  David Holsgrove <david.holsgrove@xilinx.com>

   * sysdeps/unix/sysv/linux/microblaze/mmap64.c: New file.

Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com>
11 years agomicroblaze: Use <fenv.h> fallback functions
David Holsgrove [Mon, 3 Feb 2014 23:22:42 +0000 (09:22 +1000)] 
microblaze: Use <fenv.h> fallback functions

Delete redundant fegetround.c and fesetround.c for microblaze
and use the fallback functions instead.

ports/ChangeLog.microblaze

 2014-02-04  David Holsgrove <david.holsgrove@xilinx.com>

    * sysdeps/microblaze/fegetround.c: Delete redundant file.
    * sysdeps/microblaze/fesetround.c: Likewise.

Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com>
11 years agoUpdate NEWS for #16398
Siddhesh Poyarekar [Wed, 5 Feb 2014 07:20:22 +0000 (12:50 +0530)] 
Update NEWS for #16398

11 years agoFix infinite loop in ftell when writing wide char data (BZ #16398)
Siddhesh Poyarekar [Wed, 5 Feb 2014 07:19:00 +0000 (12:49 +0530)] 
Fix infinite loop in ftell when writing wide char data (BZ #16398)

ftell tries to avoid flushing the buffer when it is in write mode by
converting the wide char data and placing it into the binary buffer.
If the output buffer space is full and there is data to write, the
code reverts to flushing the buffer.  This breaks when there is space
in the buffer but it is not enough to convert the next character in
the wide data buffer, due to which __codecvt_do_out returns a
__codecvt_partial status.  In this case, ftell keeps running in an
infinite loop.

The fix here is to detect the __codecvt_partial status in addition to
checking if the buffer is full.  I have also added a test case that
demonstrates the infinite loop.

11 years agoUpdate contrib.texi
Siddhesh Poyarekar [Wed, 5 Feb 2014 06:52:58 +0000 (12:22 +0530)] 
Update contrib.texi

This may not be a complete list of new contributors added to the list,
so I'd love it if more people look at contributions and suggest
additions.

11 years agoAdjust sparc ULPs.
David S. Miller [Wed, 5 Feb 2014 04:54:58 +0000 (20:54 -0800)] 
Adjust sparc ULPs.

* sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from
32-bit.

11 years agoPowerPC: powerpc64le abilist for 2.17
Adhemerval Zanella [Tue, 4 Feb 2014 11:49:34 +0000 (09:49 -0200)] 
PowerPC: powerpc64le abilist for 2.17

This patch is the abifiles for powerpc64le based on GLIBC 2.17.

11 years agoPowerPC: Change powerpc64le start ABI to 2.17.
Adhemerval Zanella [Tue, 4 Feb 2014 11:49:08 +0000 (09:49 -0200)] 
PowerPC: Change powerpc64le start ABI to 2.17.

11 years agoabilist-pattern configurability
Adhemerval Zanella [Tue, 4 Feb 2014 11:48:47 +0000 (09:48 -0200)] 
abilist-pattern configurability

This patch creates implicit rules to match the abifiles if
abilist-pattern is defined in the architecture Makefile. This allows
machine specific Makefiles to define different abifiles names
(for instance *-le.abilist for powerpc64le).

11 years agoUpdate x86_64 ULPs (AMD family 21, model 2)
Eric Wong [Tue, 4 Feb 2014 00:33:57 +0000 (10:33 +1000)] 
Update x86_64 ULPs (AMD family 21, model 2)

Tested on an AMD FX-8320 CPU

11 years agoUpdate x86_64 ULPs (AMD Family 10h)
Eric Wong [Mon, 3 Feb 2014 23:41:18 +0000 (09:41 +1000)] 
Update x86_64 ULPs (AMD Family 10h)

11 years agoRemove excessive redundant ChangeLog header lines.
Roland McGrath [Mon, 3 Feb 2014 22:37:53 +0000 (14:37 -0800)] 
Remove excessive redundant ChangeLog header lines.

11 years ago[hppa] Regenerate libm-test-ulps.
Carlos O'Donell [Mon, 3 Feb 2014 21:21:13 +0000 (16:21 -0500)] 
[hppa] Regenerate libm-test-ulps.

Regenerate libm-test-ulps from scratch.

11 years agoFix manual build warnings.
Carlos O'Donell [Mon, 3 Feb 2014 17:43:25 +0000 (12:43 -0500)] 
Fix manual build warnings.

The mixed use of automatic and manual node next, previous,
and top specification causes warning when building the manual.
This fix explicitly specifies the node's next, previous and top
values to fix the warning.

11 years ago* manual/macros.texi: Add comments before MTASC-safety macros.
Alexandre Oliva [Mon, 3 Feb 2014 19:26:08 +0000 (17:26 -0200)] 
* manual/macros.texi: Add comments before MTASC-safety macros.

11 years ago* manual/users.texi: Document MTASC-safety properties.
Alexandre Oliva [Mon, 3 Feb 2014 19:25:38 +0000 (17:25 -0200)] 
* manual/users.texi: Document MTASC-safety properties.

11 years ago* manual/threads.texi (pthread_key_create, pthread_key_delete,
Alexandre Oliva [Mon, 3 Feb 2014 19:17:59 +0000 (17:17 -0200)] 
* manual/threads.texi (pthread_key_create, pthread_key_delete,
pthread_getspecific, pthread_setspecific): Format with
@deftypefun, and add @safety note.
* manual/signal.texi: Move comments that analyze the above
functions to their home place.

11 years agoUpdate Slovenian translations
Allan McRae [Mon, 3 Feb 2014 00:12:05 +0000 (10:12 +1000)] 
Update Slovenian translations

11 years ago* manual/time.texi (timegm): Add missing blank after @c.
Alexandre Oliva [Sun, 2 Feb 2014 23:50:54 +0000 (21:50 -0200)] 
* manual/time.texi (timegm): Add missing blank after @c.
Reported by Joseph Myers <joseph@codesourcery.com>.

11 years ago* manual/check-safety.sh: New.
Alexandre Oliva [Sat, 1 Feb 2014 06:31:05 +0000 (04:31 -0200)] 
* manual/check-safety.sh: New.
* manual/Makefile ($(objpfx)stamp-summary): Run it.

11 years ago* manual/terminal.texi: Document MTASC-safety properties.
Alexandre Oliva [Sat, 1 Feb 2014 05:53:15 +0000 (03:53 -0200)] 
* manual/terminal.texi: Document MTASC-safety properties.

11 years ago* manual/filesys.texi: Document MTASC-safety properties.
Alexandre Oliva [Sat, 1 Feb 2014 05:50:11 +0000 (03:50 -0200)] 
* manual/filesys.texi: Document MTASC-safety properties.

11 years ago* manual/errno.texi: Document MTASC-safety properties.
Alexandre Oliva [Sat, 1 Feb 2014 05:49:25 +0000 (03:49 -0200)] 
* manual/errno.texi: Document MTASC-safety properties.

11 years ago* manual/intro.texi: Document safety identifiers and
Alexandre Oliva [Sat, 1 Feb 2014 05:48:32 +0000 (03:48 -0200)] 
* manual/intro.texi: Document safety identifiers and
conditionals.

11 years ago* manual/string.texi (wcstok): Fix prototype.
Alexandre Oliva [Sat, 1 Feb 2014 05:38:33 +0000 (03:38 -0200)] 
* manual/string.texi (wcstok): Fix prototype.
(wcstok, strtok, strtok_r): Adjust reentrancy remarks.

11 years ago* manual/time.texi: Document MTASC-safety properties.
Alexandre Oliva [Sat, 1 Feb 2014 04:51:51 +0000 (02:51 -0200)] 
* manual/time.texi: Document MTASC-safety properties.

11 years ago* manual/string.texi: Document MTASC-safety properties.
Alexandre Oliva [Sat, 1 Feb 2014 04:46:54 +0000 (02:46 -0200)] 
* manual/string.texi: Document MTASC-safety properties.

11 years ago* manual/threads.texi: Document MTASC-safety properties.
Alexandre Oliva [Sat, 1 Feb 2014 03:29:35 +0000 (01:29 -0200)] 
* manual/threads.texi: Document MTASC-safety properties.

11 years ago* manual/stdio.texi: Document MTASC-safety properties.
Alexandre Oliva [Sat, 1 Feb 2014 03:27:52 +0000 (01:27 -0200)] 
* manual/stdio.texi: Document MTASC-safety properties.

11 years ago* manual/syslog.texi: Document MTASC-safety properties.
Alexandre Oliva [Sat, 1 Feb 2014 03:22:09 +0000 (01:22 -0200)] 
* manual/syslog.texi: Document MTASC-safety properties.

11 years ago* manual/sysinfo.texi: Document MTASC-safety properties.
Alexandre Oliva [Sat, 1 Feb 2014 03:16:09 +0000 (01:16 -0200)] 
* manual/sysinfo.texi: Document MTASC-safety properties.

11 years ago* manual/startup.texi: Document MTASC-safety properties.
Alexandre Oliva [Sat, 1 Feb 2014 03:04:59 +0000 (01:04 -0200)] 
* manual/startup.texi: Document MTASC-safety properties.

11 years ago* manual/socket.texi: Document MTASC-safety properties.
Alexandre Oliva [Sat, 1 Feb 2014 03:03:33 +0000 (01:03 -0200)] 
* manual/socket.texi: Document MTASC-safety properties.

11 years ago* manual/signal.texi: Document MTASC-safety properties.
Alexandre Oliva [Sat, 1 Feb 2014 02:58:50 +0000 (00:58 -0200)] 
* manual/signal.texi: Document MTASC-safety properties.

11 years ago* manual/setjmp.texi: Document MTASC-safety properties.
Alexandre Oliva [Sat, 1 Feb 2014 01:49:07 +0000 (23:49 -0200)] 
* manual/setjmp.texi: Document MTASC-safety properties.

11 years ago* manual/search.texi: Document MTASC-safety properties.
Alexandre Oliva [Sat, 1 Feb 2014 01:47:28 +0000 (23:47 -0200)] 
* manual/search.texi: Document MTASC-safety properties.

11 years ago* manual/resource.texi: Document MTASC-safety properties.
Alexandre Oliva [Sat, 1 Feb 2014 01:46:01 +0000 (23:46 -0200)] 
* manual/resource.texi: Document MTASC-safety properties.