platform/upstream/linaro-glibc.git
11 years agoFormat mptan.c
Siddhesh Poyarekar [Wed, 27 Feb 2013 05:55:39 +0000 (11:25 +0530)]
Format mptan.c

11 years agoFormat mplog.c
Siddhesh Poyarekar [Wed, 27 Feb 2013 05:54:45 +0000 (11:24 +0530)]
Format mplog.c

11 years agoFix last change.
Roland McGrath [Wed, 27 Feb 2013 02:50:17 +0000 (18:50 -0800)]
Fix last change.

11 years agoGeneralize %.v.i rule a bit.
Roland McGrath [Wed, 27 Feb 2013 00:01:06 +0000 (16:01 -0800)]
Generalize %.v.i rule a bit.

11 years agoAnother tweak to the multiplication algorithm
Siddhesh Poyarekar [Tue, 26 Feb 2013 15:58:16 +0000 (21:28 +0530)]
Another tweak to the multiplication algorithm

Reduce the formula to calculate mantissa so that we reduce the net
number of multiplications performed.

11 years agoDon't duplicate mpone and mptwo
Siddhesh Poyarekar [Tue, 26 Feb 2013 09:45:27 +0000 (15:15 +0530)]
Don't duplicate mpone and mptwo

11 years agoFix FPE in memusagestat when malloc utilization is zero
Siddhesh Poyarekar [Tue, 26 Feb 2013 08:54:40 +0000 (14:24 +0530)]
Fix FPE in memusagestat when malloc utilization is zero

[BZ #15160]

Draw graphs for heap and stack only if MAXSIZE_HEAP and MAXSIZE_STACK
are non-zero.

11 years agoBring back definition of __attribute__ for non-gcc and older gcc
Paul Eggert [Tue, 26 Feb 2013 08:47:12 +0000 (14:17 +0530)]
Bring back definition of __attribute__ for non-gcc and older gcc

gnulib copies this file over and needs it.

11 years agoFix some build warnings
Siddhesh Poyarekar [Tue, 26 Feb 2013 05:10:19 +0000 (10:40 +0530)]
Fix some build warnings

11 years agoRemove commented declarations
Siddhesh Poyarekar [Mon, 25 Feb 2013 12:41:14 +0000 (18:11 +0530)]
Remove commented declarations

11 years agoUse long wherever possible in mpa.c
Siddhesh Poyarekar [Mon, 25 Feb 2013 11:13:02 +0000 (16:43 +0530)]
Use long wherever possible in mpa.c

Using long throughout like powerpc does is beneficial since it reduces
the need to switch to 32-bit instructions.  It gives a very minor
performance improvement.

11 years agoFormat slowexp.c
Siddhesh Poyarekar [Mon, 25 Feb 2013 10:43:35 +0000 (16:13 +0530)]
Format slowexp.c

11 years agoReformat slowpow.c
Siddhesh Poyarekar [Mon, 25 Feb 2013 10:38:37 +0000 (16:08 +0530)]
Reformat slowpow.c

11 years agoRemove commented code
Siddhesh Poyarekar [Mon, 25 Feb 2013 09:21:57 +0000 (14:51 +0530)]
Remove commented code

11 years agoSync up powerpc __mp_dbl with default code
Siddhesh Poyarekar [Mon, 25 Feb 2013 06:31:45 +0000 (12:01 +0530)]
Sync up powerpc __mp_dbl with default code

11 years agoFix menu ordering in socket.texi.
Allan McRae [Fri, 22 Feb 2013 07:09:55 +0000 (17:09 +1000)]
Fix menu ordering in socket.texi.

Match the order of (sub)sections in the menu to that in the file..

11 years agoAdd @detailmenu to subsection node listing
Allan McRae [Fri, 22 Feb 2013 04:45:17 +0000 (14:45 +1000)]
Add @detailmenu to subsection node listing

Surround the "Detailed Node Listing" section of the info page menu with
@detailmenu flags to avoid confusing texinfo.  Resolves a large number
of warnings printed by texinfo-5.0.

11 years agoAdd priority inheritance futex support on sparc.
David S. Miller [Thu, 21 Feb 2013 23:20:27 +0000 (15:20 -0800)]
Add priority inheritance futex support on sparc.

* sysdeps/unix/sysv/linux/sparc/lowlevellock.h
(FUTEX_WAIT_REQUEUE_PI): Define.
(FUTEX_CMP_REQUEUE_PI): Likewise.
(lll_futex_wait_requeue_pi): Likewise.
(lll_futex_timed_wait_requeue_pi): Likewise.
(lll_futex_cmp_requeue_pi): Likewise.

11 years agoRemove remaining bounded-pointers support from i386 .S files.
Joseph Myers [Thu, 21 Feb 2013 22:21:52 +0000 (22:21 +0000)]
Remove remaining bounded-pointers support from i386 .S files.

11 years agonptl: Fix comment typo in fork.c.
Carlos O'Donell [Thu, 21 Feb 2013 14:36:43 +0000 (09:36 -0500)]
nptl: Fix comment typo in fork.c.

11 years agoMove @end statement to start of line
Allan McRae [Thu, 21 Feb 2013 06:19:17 +0000 (16:19 +1000)]
Move @end statement to start of line

Fixes a warning with texinfo-5.0.

11 years agoMark __inv as static in powerpc
Siddhesh Poyarekar [Thu, 21 Feb 2013 09:35:28 +0000 (15:05 +0530)]
Mark __inv as static in powerpc

11 years agoFix whitespace differences between generic and powerpc mpa.c
Siddhesh Poyarekar [Thu, 21 Feb 2013 08:59:18 +0000 (14:29 +0530)]
Fix whitespace differences between generic and powerpc mpa.c

11 years agoS/390: Fix _dl_runtime_profile for 32 bit.
Andreas Krebbel [Thu, 21 Feb 2013 08:47:55 +0000 (09:47 +0100)]
S/390: Fix _dl_runtime_profile for 32 bit.

11 years agoMark ZERO inputs to __mul as unlikely on powerpc
Siddhesh Poyarekar [Thu, 21 Feb 2013 06:47:29 +0000 (12:17 +0530)]
Mark ZERO inputs to __mul as unlikely on powerpc

Syncs up with generic code.

11 years agoAdd FUTEX_*_REQUEUE_PI support for Alpha.
Richard Henderson [Thu, 21 Feb 2013 00:57:55 +0000 (16:57 -0800)]
Add FUTEX_*_REQUEUE_PI support for Alpha.

11 years agoalpha: Include errno.h in sysdep.h
Richard Henderson [Thu, 21 Feb 2013 00:49:25 +0000 (16:49 -0800)]
alpha: Include errno.h in sysdep.h

Recent changes in malloc-sysdep.h exposed this error, the
symptom being __set_errno was not defined early enough.

11 years agomanual: Remove frobnicate @pxref.
Carlos O'Donell [Wed, 20 Feb 2013 18:27:38 +0000 (13:27 -0500)]
manual: Remove frobnicate @pxref.

We remove the frobnicate @pxref in the "System Databases and Name
Service Switch" chapter. The @pxref doesn't make sense in the given
context.

11 years agoRespect the user's namespace in installed header files.
Thomas Schwinge [Wed, 20 Feb 2013 17:51:56 +0000 (18:51 +0100)]
Respect the user's namespace in installed header files.

Fixup for commit c7b275d6b3bceb6b400fa3044d13d1001bc605ca.

11 years agoAdd ARM relocation constants to elf/elf.h.
Petr Machata [Wed, 20 Feb 2013 16:19:04 +0000 (16:19 +0000)]
Add ARM relocation constants to elf/elf.h.

11 years agoProperly sort a libc.abilist file.
Thomas Schwinge [Wed, 20 Feb 2013 07:42:50 +0000 (08:42 +0100)]
Properly sort a libc.abilist file.

Inconsistency introduced in commit 84b3fd8407cc9a2e7f487b6247681bd8a78a4560.

11 years agobits/nan.h: Change __attribute_used__ to __attribute__ ((unused)).
Thomas Schwinge [Tue, 19 Feb 2013 12:06:39 +0000 (13:06 +0100)]
bits/nan.h: Change __attribute_used__ to __attribute__ ((unused)).

11 years agoAdd missing __attribute_used__.
Thomas Schwinge [Tue, 19 Feb 2013 11:49:12 +0000 (12:49 +0100)]
Add missing __attribute_used__.

Generic IEEE 754 file has been changed in commit
b575c52b86fe0c00adec925e356eb72cf95b23a7.

11 years agoAlign to generic file.
Thomas Schwinge [Tue, 19 Feb 2013 11:20:43 +0000 (12:20 +0100)]
Align to generic file.

11 years agoCopy comment about inner loop from powerpc mpa.c to the default one
Siddhesh Poyarekar [Wed, 20 Feb 2013 13:26:20 +0000 (18:56 +0530)]
Copy comment about inner loop from powerpc mpa.c to the default one

11 years agoRemove some bounded-pointers support from i386 .S files.
Joseph Myers [Tue, 19 Feb 2013 21:58:08 +0000 (21:58 +0000)]
Remove some bounded-pointers support from i386 .S files.

11 years agoMerge branch 'master' of ssh://sourceware.org/git/glibc
Jakub Jelinek [Tue, 19 Feb 2013 16:57:37 +0000 (17:57 +0100)]
Merge branch 'master' of ssh://sourceware.org/git/glibc

11 years ago * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
Jakub Jelinek [Tue, 19 Feb 2013 16:56:59 +0000 (17:56 +0100)]
* stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
macro.

11 years agoFix some testsuite build warning fixes in libm
Siddhesh Poyarekar [Tue, 19 Feb 2013 15:50:44 +0000 (21:20 +0530)]
Fix some testsuite build warning fixes in libm

11 years agoAdd NEWS entry for C++11 thread_local support.
Siddhesh Poyarekar [Tue, 19 Feb 2013 04:28:05 +0000 (09:58 +0530)]
Add NEWS entry for C++11 thread_local support.

11 years agoFix copyright year in new files
Siddhesh Poyarekar [Tue, 19 Feb 2013 03:48:37 +0000 (09:18 +0530)]
Fix copyright year in new files

11 years agoAdd FUTEX_*_REQUEUE_PI support for MIPS.
Joseph Myers [Tue, 19 Feb 2013 00:49:25 +0000 (00:49 +0000)]
Add FUTEX_*_REQUEUE_PI support for MIPS.

11 years agoAdd FUTEX_*_REQUEUE_PI support for ARM.
Joseph Myers [Mon, 18 Feb 2013 23:49:05 +0000 (23:49 +0000)]
Add FUTEX_*_REQUEUE_PI support for ARM.

11 years agostdlib.h: use existing malloc/alloc_size attribute defines
Mike Frysinger [Sat, 29 Dec 2012 21:49:53 +0000 (16:49 -0500)]
stdlib.h: use existing malloc/alloc_size attribute defines

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agosys/cdefs.h: export __attribute_alloc_size__
Mike Frysinger [Sun, 30 Dec 2012 18:07:07 +0000 (13:07 -0500)]
sys/cdefs.h: export __attribute_alloc_size__

Since we want to use this in installed headers, move it to the installed
sys/cdefs.h.  This requires a slight tweaking of the name (add trailing
underscores).

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agounify xmalloc prototypes & friends
Mike Frysinger [Sun, 30 Dec 2012 22:41:42 +0000 (17:41 -0500)]
unify xmalloc prototypes & friends

These prototypes are duplicated in many places.  Add a dedicated
header for holding prototypes for program-specific functions to
avoid that.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoAdd __cxa_thread_atexit_impl to aarch64 abilist
Siddhesh Poyarekar [Mon, 18 Feb 2013 16:53:19 +0000 (22:23 +0530)]
Add __cxa_thread_atexit_impl to aarch64 abilist

11 years agoFix ChangeLogs
Siddhesh Poyarekar [Mon, 18 Feb 2013 16:11:34 +0000 (21:41 +0530)]
Fix ChangeLogs

11 years agoC++11 thread_local destructors support
Siddhesh Poyarekar [Mon, 18 Feb 2013 13:38:21 +0000 (19:08 +0530)]
C++11 thread_local destructors support

This feature is specifically for the C++ compiler to offload calling
thread_local object destructors on thread program exit, to glibc.
This is to overcome the possible complication of destructors of
thread_local objects getting called after the DSO in which they're
defined is unloaded by the dynamic linker.  The DSO is marked as
'unloadable' if it has a constructed thread_local object and marked as
'unloadable' again when all the constructed thread_local objects
defined in it are destroyed.

11 years agoFix build warnings in some test cases
Siddhesh Poyarekar [Mon, 18 Feb 2013 12:47:05 +0000 (18:17 +0530)]
Fix build warnings in some test cases

Include stdlib.h to get declaration of exit(3)

11 years agoNew function _dl_find_dso_for_object
Siddhesh Poyarekar [Mon, 18 Feb 2013 12:30:17 +0000 (18:00 +0530)]
New function _dl_find_dso_for_object

Consolidate code to search for an address within a DSO.

11 years agoFUTEX_*_REQUEUE_PI support for non-x86 code
Siddhesh Poyarekar [Mon, 18 Feb 2013 10:37:10 +0000 (16:07 +0530)]
FUTEX_*_REQUEUE_PI support for non-x86 code

Add FUTEX_*_REQUEUE_PI support for the default C code and also add
implementations for s-390 and ppc.

11 years agoS/390: Fix _dl_runtime_profile
Andreas Krebbel [Mon, 18 Feb 2013 09:29:40 +0000 (10:29 +0100)]
S/390: Fix _dl_runtime_profile

11 years agoRemove bounded-pointers handling from x86_64 assembly sources.
Joseph Myers [Sun, 17 Feb 2013 21:57:26 +0000 (21:57 +0000)]
Remove bounded-pointers handling from x86_64 assembly sources.

11 years agoSort Versions files
Andreas Jaeger [Sun, 17 Feb 2013 15:26:35 +0000 (16:26 +0100)]
Sort Versions files

11 years agoFix ChangeLog date (again)
Siddhesh Poyarekar [Fri, 15 Feb 2013 18:51:14 +0000 (00:21 +0530)]
Fix ChangeLog date (again)

I just realized that it's 16-Feb in India, but not in UTC.  Make it
15th again.

11 years agoDon't require LIM to determine loop end in __sqr
Siddhesh Poyarekar [Fri, 15 Feb 2013 18:45:57 +0000 (00:15 +0530)]
Don't require LIM to determine loop end in __sqr

11 years agoUse intermediate variable to compute exponent in __mul
Siddhesh Poyarekar [Fri, 15 Feb 2013 18:39:29 +0000 (00:09 +0530)]
Use intermediate variable to compute exponent in __mul

11 years agoFix determination of lower precision in __mul
Siddhesh Poyarekar [Fri, 15 Feb 2013 18:26:20 +0000 (23:56 +0530)]
Fix determination of lower precision in __mul

11 years agoRemove bounded-pointers build system support.
Joseph Myers [Fri, 15 Feb 2013 15:07:54 +0000 (15:07 +0000)]
Remove bounded-pointers build system support.

11 years agoRemove miscellaneous bounded-pointers relics in C code.
Joseph Myers [Fri, 15 Feb 2013 00:51:53 +0000 (00:51 +0000)]
Remove miscellaneous bounded-pointers relics in C code.

11 years agohppa: Remove unused lll_unlock_wake_cb.
Carlos O'Donell [Thu, 14 Feb 2013 15:34:48 +0000 (10:34 -0500)]
hppa: Remove unused lll_unlock_wake_cb.

There hasn't been a use for lll_unlock_wake_cb since it was
removed globally in 2007-05-29. This patch removes the
function from hppa's lowlevellock.[ch] implementation.

11 years agoaarch64: Update libm-test-ulps.
Marcus Shawcroft [Thu, 14 Feb 2013 14:06:12 +0000 (14:06 +0000)]
aarch64: Update libm-test-ulps.

11 years agoRemove bp-sym.h and BP_SYM uses from C code.
Joseph Myers [Thu, 14 Feb 2013 13:12:02 +0000 (13:12 +0000)]
Remove bp-sym.h and BP_SYM uses from C code.

11 years agoRemove redundant return keyword
Siddhesh Poyarekar [Thu, 14 Feb 2013 10:13:25 +0000 (15:43 +0530)]
Remove redundant return keyword

11 years agoUse __sqr instead of __mul wherever possible
Siddhesh Poyarekar [Thu, 14 Feb 2013 06:09:14 +0000 (11:39 +0530)]
Use __sqr instead of __mul wherever possible

11 years agoNew __sqr function as a faster special case of __mul
Siddhesh Poyarekar [Thu, 14 Feb 2013 05:01:09 +0000 (10:31 +0530)]
New __sqr function as a faster special case of __mul

11 years agoRemove __ptrvalue, __bounded and __unbounded.
Joseph Myers [Wed, 13 Feb 2013 23:30:40 +0000 (23:30 +0000)]
Remove __ptrvalue, __bounded and __unbounded.

11 years agoFix up ChangeLog.
Roland McGrath [Wed, 13 Feb 2013 18:45:31 +0000 (10:45 -0800)]
Fix up ChangeLog.

11 years agoInstall stdlib-bsearch.h header
Ondrej Bilka [Wed, 13 Feb 2013 12:44:36 +0000 (13:44 +0100)]
Install stdlib-bsearch.h header

11 years agoCall memcpy in generic mempcpy
Ondrej Bilka [Wed, 13 Feb 2013 11:57:41 +0000 (12:57 +0100)]
Call memcpy in generic mempcpy

11 years agoRemove unnecessary factorial array
Siddhesh Poyarekar [Wed, 13 Feb 2013 11:49:06 +0000 (17:19 +0530)]
Remove unnecessary factorial array

kf is n! at the end of the loop, so storing the values is unnecessary.

11 years agoBetter exp polynomial
Siddhesh Poyarekar [Wed, 13 Feb 2013 09:19:50 +0000 (14:49 +0530)]
Better exp polynomial

The lesser the __mul calls, the better it is for performance.

11 years agoOptimized mp multiplication
Siddhesh Poyarekar [Wed, 13 Feb 2013 08:46:23 +0000 (14:16 +0530)]
Optimized mp multiplication

Don't bother multiplying zeroes since that only wastes cycles.

11 years agoClean up add_magnitudes and sub_magnitudes
Siddhesh Poyarekar [Wed, 13 Feb 2013 08:25:29 +0000 (13:55 +0530)]
Clean up add_magnitudes and sub_magnitudes

11 years agoRemove redunant "warning: " prefix from stub warnings.
Roland McGrath [Wed, 13 Feb 2013 00:15:59 +0000 (16:15 -0800)]
Remove redunant "warning: " prefix from stub warnings.

11 years agoFix buffer overrun in regexp matcher
Andreas Schwab [Tue, 29 Jan 2013 13:45:15 +0000 (14:45 +0100)]
Fix buffer overrun in regexp matcher

11 years agoFix handling of collating symbols in regexps
Andreas Schwab [Mon, 4 Feb 2013 09:16:33 +0000 (10:16 +0100)]
Fix handling of collating symbols in regexps

11 years agoFix typo, improve comment, remove superfluous #undefs, add missing #undef.
Tom de Vries [Mon, 11 Feb 2013 22:47:13 +0000 (23:47 +0100)]
Fix typo, improve comment, remove superfluous #undefs, add missing #undef.

11 years agoFix log entry in last change.
Roland McGrath [Mon, 11 Feb 2013 22:32:57 +0000 (14:32 -0800)]
Fix log entry in last change.

11 years agoAdd inline bsearch expansion.
Ondrej Bilka [Mon, 11 Feb 2013 22:18:09 +0000 (23:18 +0100)]
Add inline bsearch expansion.

11 years agoFix some errors in declarations in the manual.
Roland McGrath [Mon, 11 Feb 2013 22:12:47 +0000 (14:12 -0800)]
Fix some errors in declarations in the manual.

11 years agoRemove dead CFLAGS lines from string/Makefile
Tom de Vries [Mon, 11 Feb 2013 21:06:00 +0000 (22:06 +0100)]
Remove dead CFLAGS lines from string/Makefile

11 years agoFix a typo in the mremap comment.
Roland McGrath [Mon, 11 Feb 2013 21:06:09 +0000 (13:06 -0800)]
Fix a typo in the mremap comment.

11 years agoAdd CFI information for MIPS assembly sources.
Joseph Myers [Mon, 11 Feb 2013 18:19:14 +0000 (18:19 +0000)]
Add CFI information for MIPS assembly sources.

11 years agoFix typo in ChangeLog entry for commit 03759f47db62930f2dddf1c9733ef89b9d99e2da
Tom de Vries [Mon, 11 Feb 2013 13:52:13 +0000 (14:52 +0100)]
Fix typo in ChangeLog entry for commit 03759f47db62930f2dddf1c9733ef89b9d99e2da

11 years agoFix PF_LOCAL socket example sockaddr_un size calculation.
Roland McGrath [Fri, 8 Feb 2013 22:55:50 +0000 (14:55 -0800)]
Fix PF_LOCAL socket example sockaddr_un size calculation.

11 years agom68k: update kernel-features.h
Andreas Schwab [Fri, 8 Feb 2013 22:18:53 +0000 (23:18 +0100)]
m68k: update kernel-features.h

11 years agoRemove CHECK_N and bp-checks.h.
Joseph Myers [Fri, 8 Feb 2013 20:06:30 +0000 (20:06 +0000)]
Remove CHECK_N and bp-checks.h.

11 years agoRemove dead variable in generic strcpy.
Roland McGrath [Fri, 8 Feb 2013 18:46:32 +0000 (10:46 -0800)]
Remove dead variable in generic strcpy.

11 years agoSupport sysdeps/.../include/ directories.
Roland McGrath [Fri, 8 Feb 2013 18:18:52 +0000 (10:18 -0800)]
Support sysdeps/.../include/ directories.

11 years agoRefactor code out of nscd's two main poll loops.
Carlos O'Donell [Thu, 7 Feb 2013 19:28:53 +0000 (14:28 -0500)]
Refactor code out of nscd's two main poll loops.

We refactor the inotify file checking code and the
database clearing code out of the main_loop_poll and
mail_loop_epoll functions. We document some the related
functions with appropriate comments.

11 years agoAdd more comments to _dl_load_cache_lookup().
Carlos O'Donell [Thu, 7 Feb 2013 18:53:46 +0000 (13:53 -0500)]
Add more comments to _dl_load_cache_lookup().

Calling _dl_load_cache_lookup will load the cache if not already.
If loading the cache fails no more attempts will be made to load
the cache.

11 years agoBZ #15006: Updates NEWS and ChangeLog.
Carlos O'Donell [Fri, 8 Feb 2013 17:37:44 +0000 (12:37 -0500)]
BZ #15006: Updates NEWS and ChangeLog.

11 years agoARM: Support loading unmarked objects from cache.
Carlos O'Donell [Fri, 8 Feb 2013 17:26:12 +0000 (12:26 -0500)]
ARM: Support loading unmarked objects from cache.

ARM now supports loading unmarked objects from
the dynamic loader cache. Unmarked objects can
be used with the hard-float or soft-float ABI.
We must support loading unmarked objects during
the transition period from a binutils that does
not mark objects to one that does mark them with
the correct ELF flags.

Signed-off-by: Carlos O'Donell <carlos@redhat.com>
11 years agoUse ENTRY and END in more MIPS .S files.
Joseph Myers [Fri, 8 Feb 2013 02:03:10 +0000 (02:03 +0000)]
Use ENTRY and END in more MIPS .S files.

11 years agoRemove CHECK_1 and CHECK_1_NULL_OK.
Joseph Myers [Fri, 8 Feb 2013 01:12:11 +0000 (01:12 +0000)]
Remove CHECK_1 and CHECK_1_NULL_OK.

11 years agoRemove CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH for C code.
Joseph Myers [Fri, 8 Feb 2013 01:10:40 +0000 (01:10 +0000)]
Remove CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH for C code.

11 years agoRemove lots of inline keywords.
Roland McGrath [Thu, 7 Feb 2013 22:44:18 +0000 (14:44 -0800)]
Remove lots of inline keywords.

11 years agoMove nss directory into sysdeps Subdirs.
Roland McGrath [Tue, 5 Feb 2013 22:32:48 +0000 (14:32 -0800)]
Move nss directory into sysdeps Subdirs.