platform/upstream/linaro-glibc.git
11 years agoConsolidate pthread_attr value validation
Siddhesh Poyarekar [Mon, 22 Apr 2013 04:58:31 +0000 (10:28 +0530)]
Consolidate pthread_attr value validation

Define inline functions that wrap around validation for each of the
pthread attributes to reduce duplication in code.

11 years agoMinor cleanup in getaddrinfo
Siddhesh Poyarekar [Mon, 22 Apr 2013 04:54:00 +0000 (10:24 +0530)]
Minor cleanup in getaddrinfo

Replace repeated computations of alloca size with a local variable
that stores the computed value.

11 years agoRussian translations update.
David S. Miller [Sun, 21 Apr 2013 19:36:14 +0000 (15:36 -0400)]
Russian translations update.

* po/ru.po: Update Russion translation from translation project.

11 years agoARM: Macroize assembly use of EABI unwind directives.
Roland McGrath [Fri, 19 Apr 2013 18:33:01 +0000 (11:33 -0700)]
ARM: Macroize assembly use of EABI unwind directives.

11 years agoRemove __wur from setfsuid and setfsgid.
Adam Conrad [Fri, 19 Apr 2013 05:58:16 +0000 (23:58 -0600)]
Remove __wur from setfsuid and setfsgid.

11 years agoMicroBlaze Port
David Holsgrove [Tue, 10 Jan 2012 05:38:42 +0000 (15:38 +1000)]
MicroBlaze Port

Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
11 years agoUpdate ChangeLog.
Carlos O'Donell [Thu, 18 Apr 2013 00:17:59 +0000 (17:17 -0700)]
Update ChangeLog.

Update ChangeLog for 0f122b8d12875181a4fba3449e3549d34d3dc398.

11 years agoConfiguring for i386 is no longer supported.
Carlos O'Donell [Thu, 18 Apr 2013 00:13:20 +0000 (17:13 -0700)]
Configuring for i386 is no longer supported.

We no longer support configuring for i386, nor do we
elide such a configuration to i686. Configuring with
i386-* is a failure, and we provide an example of
how to fix that.

---

2013-04-17  Carlos O'Donell  <carlos@redhat.com>

* configure.in: Remove i386 configure warning. Remove i386 case.
* configure: Regenerate.
* sysdeps/i386/configure.in: Raise error if config_machine is i386.
Add example to error message.
* sysdeps/i386/configure: Regenerate.

11 years agoAdd benchmark inputs for cos and tan
Siddhesh Poyarekar [Wed, 17 Apr 2013 12:15:55 +0000 (17:45 +0530)]
Add benchmark inputs for cos and tan

11 years agoDon't test O_RDONLY case in tst-aio7.
Roland McGrath [Tue, 16 Apr 2013 19:11:26 +0000 (12:11 -0700)]
Don't test O_RDONLY case in tst-aio7.

11 years agoDefine NOT_IN_libc when compiling benchmark programs
Siddhesh Poyarekar [Tue, 16 Apr 2013 13:04:03 +0000 (18:34 +0530)]
Define NOT_IN_libc when compiling benchmark programs

11 years agoAdd target bench-clean
Siddhesh Poyarekar [Tue, 16 Apr 2013 08:37:21 +0000 (14:07 +0530)]
Add target bench-clean

11 years agoAdding MicroBlaze support to elf/elf.h
David Holsgrove [Wed, 4 Jan 2012 03:56:48 +0000 (13:56 +1000)]
Adding MicroBlaze support to elf/elf.h

Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com>
11 years agoFix coding-style violation.
Thomas Schwinge [Mon, 15 Apr 2013 20:11:30 +0000 (22:11 +0200)]
Fix coding-style violation.

Introduced in commit ee091edf1a16312fff0cc3c6ae0116aded7f1dbf.

11 years agoProperly check for short writes when sending the response in nscd
Andreas Schwab [Tue, 4 Dec 2012 15:14:13 +0000 (16:14 +0100)]
Properly check for short writes when sending the response in nscd

11 years agoWrite to bench.out-tmp only once
Siddhesh Poyarekar [Mon, 15 Apr 2013 08:22:26 +0000 (13:52 +0530)]
Write to bench.out-tmp only once

Appending benchmark program output on every run could result in a case
where the benchmark run was cancelled, resulting in a partially
written file.  This file gets used again on the next run, resulting in
results being appended to old results.

It could have been possible to remove the file before every benchmark
run, but it is easier to just write the output to bench.out-tmp only
once.

11 years agonscd: don't fork twice
Andreas Schwab [Sun, 23 Dec 2012 08:45:07 +0000 (09:45 +0100)]
nscd: don't fork twice

11 years agoFix off-by-one bug in tst-fwrite-error
Siddhesh Poyarekar [Mon, 15 Apr 2013 06:05:43 +0000 (11:35 +0530)]
Fix off-by-one bug in tst-fwrite-error

tst-fwrite-error did not allocate enough space for the string 'world'
and its NULL terminator.  Fixed.

11 years agoRebuild benchmark sources when Makefile is updated
Siddhesh Poyarekar [Mon, 15 Apr 2013 05:47:01 +0000 (11:17 +0530)]
Rebuild benchmark sources when Makefile is updated

Benchmark programs are generated using parameters from the Makefile,
so it is necessary to rebuild them whenever the parameters in the
Makefile are updated.  Hence, added a dependency for the generated C
source on the Makefile so that it gets regenerated when the Makefile
is updated.

11 years agoBZ#15361: Make aio_fsync not check open modes.
Roland McGrath [Fri, 12 Apr 2013 20:11:20 +0000 (13:11 -0700)]
BZ#15361: Make aio_fsync not check open modes.

11 years agoMove bench target to benchtests
Siddhesh Poyarekar [Fri, 12 Apr 2013 09:31:44 +0000 (15:01 +0530)]
Move bench target to benchtests

The bench target will only be used within the benchtests directory.

11 years agom68k: update libm test ULPs
Andreas Schwab [Thu, 11 Apr 2013 14:32:31 +0000 (16:32 +0200)]
m68k: update libm test ULPs

11 years agolibm-test.inc: Fix tests where cos(PI/2) != 0.
Carlos O'Donell [Thu, 11 Apr 2013 12:52:18 +0000 (08:52 -0400)]
libm-test.inc: Fix tests where cos(PI/2) != 0.

The value of PI is never exactly PI in any floating point representation,
and the value of PI/2 is never PI/2. It is wrong to expect cos(M_PI_2l)
to return 0, instead it will return an answer that is  non-zero because
M_PI_2l doesn't round to exactly PI/2 in the type used.

That is to say that the correct answer is to do the following:
* Take PI or PI/2.
* Round to the floating point representation.
* Take the rounded value and compute an infinite precision cos or sin.
* Use the rounded result of the infinite precision cos or sin as the
  answer to the test.

I used printf to do the type rounding, and Wolfram's Alpha to do the
infinite precision cos calculations.

The following changes bring x86-64 and x86 to 1/2 ulp for two tests.
It shows that the x86 cos implementation is quite good, and that
our test are flawed.

Unfortunately given that the rounding errors are type dependent we
need to fix this for each type. No regressions on x86-64 or x86.

---

2013-04-11  Carlos O'Donell  <carlos@redhat.com>

* math/libm-test.inc (cos_test): Fix PI/2 test.
(sincos_test): Likewise.
* sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
* sysdeps/i386/fpu/libm-test-ulps: Regenerate.

11 years agoExtend i486 pthread_cond_timedwait to use futex syscall with absolute timeout
Andreas Schwab [Thu, 22 Nov 2012 11:57:37 +0000 (12:57 +0100)]
Extend i486 pthread_cond_timedwait to use futex syscall with absolute timeout

11 years agoDon't accept exp char without preceding digits in scanf float parsing
Andreas Schwab [Mon, 14 Jan 2013 16:32:20 +0000 (17:32 +0100)]
Don't accept exp char without preceding digits in scanf float parsing

11 years agoFix invalid free of memory allocated during rtld init
Andreas Schwab [Tue, 15 Jan 2013 15:39:07 +0000 (16:39 +0100)]
Fix invalid free of memory allocated during rtld init

11 years agoDon't use run-via-rtld-prefix for anything other than tests
Siddhesh Poyarekar [Thu, 11 Apr 2013 04:07:50 +0000 (09:37 +0530)]
Don't use run-via-rtld-prefix for anything other than tests

run-via-rtld-prefix checks whether the program to be run is a static
test and skips if it is.  This is fine, except that it assumes that
the program to be run is the second $^, which is true only for tests.

This change creates an rtld-prefix, which is simply the dynamic linker
prefix with the necessary arguments and uses that in the non-test
targets.

11 years agoRemove eval
Siddhesh Poyarekar [Thu, 11 Apr 2013 03:45:52 +0000 (09:15 +0530)]
Remove eval

It's not needed.

11 years agoAccept leading and trailing spaces in getdate input string
Siddhesh Poyarekar [Wed, 10 Apr 2013 06:01:46 +0000 (11:31 +0530)]
Accept leading and trailing spaces in getdate input string

Fixes #15346.

The POSIX description of getdate allows for extra spaces in the
getdate input string.  __getdate_r uses strptime internally, which
works fine with extra spaces between format strings (and hence within
an input string) but not with leading and trailing spaces.  So we trim
off the leading and trailing spaces before we pass it on to strptime.

11 years agoBZ#14280: Fix Hurd ioctl macro to avoid warning.
Roland McGrath [Mon, 8 Apr 2013 21:31:38 +0000 (14:31 -0700)]
BZ#14280: Fix Hurd ioctl macro to avoid warning.

11 years agosem_post.c: Include atomic.h.
Carlos O'Donell [Sun, 7 Apr 2013 20:13:02 +0000 (16:13 -0400)]
sem_post.c: Include atomic.h.

The sem_post.c file uses atomic functions without including
atomic.h. Add `#include <atomic.h>' to the file to prevent
any compile time warnings when other headers change and
atomic.h isn't implicitly included.

---
nptl/

2013-04-07  Carlos O'Donell  <carlos@redhat.com>

* sysdeps/unix/sysv/linux/sem_post.c: Include atomic.h.

11 years agoREADME.libm-test: Use testrun.sh to run libm test.
Carlos O'Donell [Sat, 6 Apr 2013 21:13:19 +0000 (17:13 -0400)]
README.libm-test: Use testrun.sh to run libm test.

Document the use of the convenience testrun.sh script for
running the libm test.

---

2013-04-06  Carlos O'Donell  <carlos@redhat.com>

* math/README.libm-test (How can I generate "libm-test-ulps"?):
Use testrun.sh to run libm tests.

11 years agodl_open_worker: Memset all of seen array.
Carlos O'Donell [Sat, 6 Apr 2013 21:00:02 +0000 (17:00 -0400)]
dl_open_worker: Memset all of seen array.

The seen array was doubled in size recently, but the memset to clear
the array was not adjusted. We adjust the memset to always be correct
regardless of the size of seen.

---

2013-04-06  Carlos O'Donell  <carlos@redhat.com>

[BZ #15309]
* elf/dl-open.c (dl_open_worker): memset all of seen array.

11 years agofi_FI: Define yesstr, nostr
Marko Myllynen [Sat, 6 Apr 2013 20:33:26 +0000 (16:33 -0400)]
fi_FI: Define yesstr, nostr

Define yesstr/nostr in fi_FI (as "Kyllä" and "Ei").

Fixes part of BZ#15264.

---

2013-04-06  Marko Myllynen  <myllynen@redhat.com>

[BZ #15264]
* locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.

11 years agoNew Makefile target `regen-ulps'.
Carlos O'Donell [Sat, 6 Apr 2013 20:22:47 +0000 (16:22 -0400)]
New Makefile target `regen-ulps'.

The wiki "Regeneration" page has this to say about update ULPs.

"The libm-test-ulps files are semiautomatically updated. To
update an ulps baseline, run each of the failing tests (test-float,
 test-double, etc.) with -u; this will generate a file called ULPs;
concatenate each of those files with the existing libm-test-ulps
file, after removing any entries for particularly huge numbers of
ulps that you do not want to mark as expected. Then run
gen-libm-test.pl -n -u FILE where FILE is the concatenated file
produced in the previous step. This generates a file called
NewUlps which is the new sorted version of libm-test-ulps."

The same information is listed in math/README.libm-test, and is a
lot of manual work that you often want to run over-and-over again
while working on a particular test.

The `regen-ulps' convenience target does this automatically for
developers.

We strictly assume the source tree is readonly and add a
new --output-dir option to libm-test.inc to allow for writing
out ULPs to $(objpfx).

When run the new target does the following:
* Starts with the baseline ULPs file.
* Runs each of the libm math tests with -u.
* Adds new changes seen with -u to the baseline.
* Sorts and prepares the test output with gen-libm-test.pl.
* Leaves math/NewUlps in your build tree to copy to your source
  tree, cleanup, and checkin.

The math test documentation in math/README.libm-test is updated
document the new Makefile target.

---

2013-04-06  Carlos O'Donell  <carlos@redhat.com>

* Makefile.in (regen-ulps): New target.
* math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
[ifneq (no,$(PERL)] (run-regen-ulps): New variable.
[ifneq (no,$(PERL)] (regen-ulps): New target.
[ifeq (no,$(PERL)] (regen-ulps): New target.
* math/libm-test.inc (ulps_file_name): Define.
(output_dir): New variable.
(options): Add "output-dir" option.
(parse_opt): Handle 'o' case.
(main): If output_dir is non-NULL use it as a prefix
otherwise use "".
* math/README.libm-test: Update `How can I generate "libm-test-ulps"?'

11 years agoi386: Fail at configure time for i386 builds.
Carlos O'Donell [Sat, 6 Apr 2013 16:00:35 +0000 (12:00 -0400)]
i386: Fail at configure time for i386 builds.

This change does two things:

* Treats a target i386-* as if it were i686.
* Fails configure if the user is generating code
  for i386.

We no longer support i386 code-generation because the i386
lacks the atomic operations we need in glibc.

You can still configure for i386-*, but you get i686 code.

You can't build with --march=i386, --mtune=i386 or a compiler
that defaults to i386 code-generation.

I've added two i386 entries in the master todo list to discuss
merging and renaming:
http://sourceware.org/glibc/wiki/Development_Todo/Master#i386

The failure modes are fail-safe here. You compile for i386,
get i686, and try to run on i386 and it fails. The configure
log has a warning saying we elided to i686. There is no situation
that I can see where we run into any serious problems.

The patch makes the current state better in that we get less
confused users and we build successfully in more default
configurations.

The next enhancement would be to add --march=i?86
as suggested in #c20 of BZ#10062 for any i?86-* builds, which
would solve the problem of a 32-bit compiler that defaults to
i386 code-gen and glibc configured for i686-* target. Which
previously failed at build time, and now will fail at configure
time (requires adding --march=i686).

Updated NEWS with BZ #10060 and #10062.

No regressions.

---

2013-04-06  Carlos O'Donell  <carlos@redhat.com>

[BZ #10060, #10062]
* aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
* sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
fail configure if __sync_val_compare_and_swap is not inlined.
* sysdeps/i386/configure: Regenerate.
* configure.in: Build for i686 when configured for i386.
* configure: Regenerate.
* README: Remove i386 reference.

11 years agoUpdate ChangeLog.
Carlos O'Donell [Sat, 6 Apr 2013 15:41:44 +0000 (11:41 -0400)]
Update ChangeLog.

Update ChangeLog for commit:
24116fcdbe55d58aa35fc77444ae71a9dec9fff6

11 years agos390/s390x: Undef PSEUDO before redef.
Carlos O'Donell [Sat, 6 Apr 2013 14:53:54 +0000 (10:53 -0400)]
s390/s390x: Undef PSEUDO before redef.

The s390 and s390x sysdep.h files include the more generic sysdep.h.
The more generic sysdep.h defines PSEUDO. This causes an annoying
CPP warning saying the PSEUDO was redefined. This patch removes the
warning by undefining PSEUDO before the redefinition. This is in line
with what all the other machines do.

---

2013-04-06  Carlos O'Donell  <carlos@redhat.com>

* sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
* sysdeps/s390/s390-64/sysdep.h: Likewise.

11 years agoMore tests for external charater sequences representing NaNs.
Thomas Schwinge [Fri, 5 Apr 2013 18:28:47 +0000 (20:28 +0200)]
More tests for external charater sequences representing NaNs.

11 years agoProperly collect individual tests' results.
Thomas Schwinge [Fri, 5 Apr 2013 13:58:27 +0000 (15:58 +0200)]
Properly collect individual tests' results.

Fixup for commit 003c9895a89e71767ad64bafac1ca99622be2eb7.

11 years ago[BZ #14686, #15336] Fix standard compliance. Don't use hard-coded qNaN values.
Thomas Schwinge [Thu, 4 Apr 2013 15:35:12 +0000 (17:35 +0200)]
[BZ #14686, #15336] Fix standard compliance.  Don't use hard-coded qNaN values.

11 years ago[BZ #15335, #15342] Fix standard compliance. Don't use hard-coded qNaN values.
Thomas Schwinge [Wed, 3 Apr 2013 20:00:21 +0000 (22:00 +0200)]
[BZ #15335, #15342] Fix standard compliance.  Don't use hard-coded qNaN values.

11 years agoRemove unreachable code.
Thomas Schwinge [Wed, 3 Apr 2013 19:10:02 +0000 (21:10 +0200)]
Remove unreachable code.

The case of y == 0 is handled at the beginning of the function.

11 years agoRemove unused hard-coded qNaN definition.
Thomas Schwinge [Wed, 3 Apr 2013 20:17:47 +0000 (22:17 +0200)]
Remove unused hard-coded qNaN definition.

11 years agoAdd BZ #15337 to NEWS
Siddhesh Poyarekar [Thu, 4 Apr 2013 14:17:41 +0000 (19:47 +0530)]
Add BZ #15337 to NEWS

11 years agoFix static build when configured with --disable-hidden-plt
Siddhesh Poyarekar [Thu, 4 Apr 2013 14:13:56 +0000 (19:43 +0530)]
Fix static build when configured with --disable-hidden-plt

Fixes BZ #15337.

Static builds fail with the following warning:

/home/tools/glibc/glibc/nptl/../nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S:80:
undefined reference to `__GI___pthread_unwind'

When the source is configured with --disable-hidden-plt.  This is
because the preprocessor conditional in cancellation.S only checks if
the build is for SHARED, whereas hidden_def is defined appropriately
only for a SHARED build that will have symbol versioning *and* hidden
defs are enabled.  The last case is false here.

11 years agoFix missing underflow from cexp (bug 14478).
Joseph Myers [Wed, 3 Apr 2013 16:51:46 +0000 (16:51 +0000)]
Fix missing underflow from cexp (bug 14478).

11 years agoUpdate NEWS
Andreas Schwab [Wed, 3 Apr 2013 15:53:57 +0000 (17:53 +0200)]
Update NEWS

11 years agoFix stack overflow in getaddrinfo with many results
Andreas Schwab [Thu, 21 Mar 2013 14:50:27 +0000 (15:50 +0100)]
Fix stack overflow in getaddrinfo with many results

11 years agoRefer to two GCC PRs.
Thomas Schwinge [Wed, 3 Apr 2013 12:13:44 +0000 (14:13 +0200)]
Refer to two GCC PRs.

11 years agoUpdate bench.out and bench.out.old only upon completion
Siddhesh Poyarekar [Wed, 3 Apr 2013 08:50:56 +0000 (14:20 +0530)]
Update bench.out and bench.out.old only upon completion

Write output from the currently running benchmark into a temporary
file and move files around only once the current run is complete.
That way we don't lose data from the last two runs due to an
incomplete run.

11 years agoEcho benchmark that is currently running
Siddhesh Poyarekar [Wed, 3 Apr 2013 08:02:37 +0000 (13:32 +0530)]
Echo benchmark that is currently running

This will be useful when the benchmark has many functions.

11 years agoAdd benchmark inputs for atan
Siddhesh Poyarekar [Wed, 3 Apr 2013 08:08:39 +0000 (13:38 +0530)]
Add benchmark inputs for atan

Add separate inputs for slow and fast paths of atan

11 years agoRemove TWO
Siddhesh Poyarekar [Wed, 3 Apr 2013 05:44:39 +0000 (11:14 +0530)]
Remove TWO

Minor cleanup to remove the macro TWO and use the value directly
instead.

11 years agoPreserve errno across _PC_CHOWN_RESTRICTED call on XFS
Siddhesh Poyarekar [Wed, 3 Apr 2013 05:26:45 +0000 (10:56 +0530)]
Preserve errno across _PC_CHOWN_RESTRICTED call on XFS

Fix BZ #15305.

On kernel versions earlier than 2.6.29, the Linux kernel exported a
sysctl called restrict_chown for xfs, which could be used to allow
chown to users other than the owner.  2.6.29 removed this support,
causing the open_not_cancel_2 to fail and thus modify errno.  The fix
is to save and restore errno so that the caller sees it as unmodified.

Additionally, since the code to check the sysctl is not useful on
newer kernels, we add an ifdef so that in future the code block gets
rmeoved completely.

11 years agoFix cacosh inaccuracy and spurious exceptions (bug 15327).
Joseph Myers [Tue, 2 Apr 2013 22:54:00 +0000 (22:54 +0000)]
Fix cacosh inaccuracy and spurious exceptions (bug 15327).

11 years agoUse mantissa_t in mpexp
Siddhesh Poyarekar [Tue, 2 Apr 2013 12:23:09 +0000 (17:53 +0530)]
Use mantissa_t in mpexp

11 years agoAdd benchmark inputs for sin
Siddhesh Poyarekar [Mon, 1 Apr 2013 09:15:54 +0000 (14:45 +0530)]
Add benchmark inputs for sin

11 years agoAdd benchmark tests for slowpow and slowexp
Siddhesh Poyarekar [Tue, 2 Apr 2013 05:06:01 +0000 (10:36 +0530)]
Add benchmark tests for slowpow and slowexp

Separate benchmarks for the fast and slow implementations of pow and
exp since measuring both together doesn't make sense.  Adjust the
iterations for pow and exp accordingly so that they run long enough
for the measurements to be meaningful.

11 years agoAdd missing ChangeLog from commit 60c414c346a1d5ef0510ffbdc0ab75f288ee4d3f
Adhemerval Zanella [Tue, 2 Apr 2013 12:08:09 +0000 (07:08 -0500)]
Add missing ChangeLog from commit 60c414c346a1d5ef0510ffbdc0ab75f288ee4d3f

11 years agoNew <math.h> macro named issignaling to check for a signaling NaN (sNaN).
Thomas Schwinge [Tue, 2 Apr 2013 11:51:02 +0000 (13:51 +0200)]
New <math.h> macro named issignaling to check for a signaling NaN (sNaN).

It is based on draft TS 18661 and currently enabled as a GNU extension.

11 years agoPowerPC: remove branch prediction from rint implementation
Adhemerval Zanella [Fri, 29 Mar 2013 23:15:28 +0000 (18:15 -0500)]
PowerPC: remove branch prediction from rint implementation

The branch prediction hints is actually hurts performance in this case.
The assembly implementation make two assumptions: 1. 'fabs (x) < 2^52'
is unlikely and 2. 'x > 0.0' is unlike (if 1. is true). Since it a
general floating point function, expected input is not bounded and then
it is better to let the hardware handle the branches.

11 years agoUpdate German translations.
David S. Miller [Sat, 30 Mar 2013 20:58:52 +0000 (16:58 -0400)]
Update German translations.

* po/de.po: Update from translation team.

11 years agoFix casinh inaccuracy for imaginary part < 1.0, real part small (bug 10357).
Joseph Myers [Sat, 30 Mar 2013 13:31:53 +0000 (13:31 +0000)]
Fix casinh inaccuracy for imaginary part < 1.0, real part small (bug 10357).

11 years agoRemove usage of ONE macro
Siddhesh Poyarekar [Fri, 29 Mar 2013 11:23:05 +0000 (16:53 +0530)]
Remove usage of ONE macro

I missed this instance, which caused a build failure in powerpc.

11 years agoRemove ONE and MONE
Siddhesh Poyarekar [Fri, 29 Mar 2013 11:10:36 +0000 (16:40 +0530)]
Remove ONE and MONE

11 years agoFormat s_tan.c
Siddhesh Poyarekar [Fri, 29 Mar 2013 11:08:27 +0000 (16:38 +0530)]
Format s_tan.c

11 years agoRemove ZERO and MZERO macros
Siddhesh Poyarekar [Fri, 29 Mar 2013 11:07:26 +0000 (16:37 +0530)]
Remove ZERO and MZERO macros

11 years agoFormat s_atan.c
Siddhesh Poyarekar [Fri, 29 Mar 2013 11:04:28 +0000 (16:34 +0530)]
Format s_atan.c

11 years agoFormat e_log.c
Siddhesh Poyarekar [Fri, 29 Mar 2013 11:01:52 +0000 (16:31 +0530)]
Format e_log.c

11 years agoAvoid unconditional __call_tls_dtors calls in static linking.
Roland McGrath [Thu, 28 Mar 2013 23:52:57 +0000 (16:52 -0700)]
Avoid unconditional __call_tls_dtors calls in static linking.

11 years agoUse __ehdr_start, if available, as fallback for AT_PHDR.
Roland McGrath [Thu, 28 Mar 2013 23:15:48 +0000 (16:15 -0700)]
Use __ehdr_start, if available, as fallback for AT_PHDR.

11 years agoMake _dl_phdr pointer to const.
Roland McGrath [Thu, 28 Mar 2013 22:39:32 +0000 (15:39 -0700)]
Make _dl_phdr pointer to const.

11 years agoConsolidate declarations of _dl_phdr, _dl_phnum.
Roland McGrath [Thu, 28 Mar 2013 22:33:57 +0000 (15:33 -0700)]
Consolidate declarations of _dl_phdr, _dl_phnum.

11 years agoFix typo in bug number in NEWS.
Joseph Myers [Thu, 28 Mar 2013 21:43:56 +0000 (21:43 +0000)]
Fix typo in bug number in NEWS.

11 years agoNever call syslog in __libc_message.
Roland McGrath [Thu, 28 Mar 2013 17:38:37 +0000 (10:38 -0700)]
Never call syslog in __libc_message.

11 years agoPowerPC: .eh_frame info in crt1.o isn't useful and triggers gold bug 14675.
Alan Modra [Thu, 28 Mar 2013 17:16:28 +0000 (12:16 -0500)]
PowerPC: .eh_frame info in crt1.o isn't useful and triggers gold bug 14675.

The .eh_frame info in crt1.o isn't useful and this patch prevents it from
being generated on PowerPC.  It triggers the following gold bug:

http://sourceware.org/bugzilla/show_bug.cgi?id=14675

11 years agoFix e_logl (128ibm) spurious underflow
Adhemerval Zanella [Thu, 28 Mar 2013 12:52:48 +0000 (09:52 -0300)]
Fix e_logl (128ibm) spurious underflow

11 years agoDon't add input group during initgroups_dyn in hesiod
Siddhesh Poyarekar [Thu, 28 Mar 2013 06:15:47 +0000 (11:45 +0530)]
Don't add input group during initgroups_dyn in hesiod

Fixes BZ #15304.

The *initgroups_dyn functions are called with a group argument.  This
group gid is usually skipped while populating the grouplist since the
caller adds that group id in advance.

The hesiod initgroups_dyn implementation however adds the group gid to
the list if it does not already exist.  While it works fine for the
usual initgroups, it breaks nscd since it calls initgroups_dyn with -1
as the gid (to have all groups included).

11 years agoFormat and clean up s_atan2.c
Siddhesh Poyarekar [Thu, 28 Mar 2013 05:26:06 +0000 (10:56 +0530)]
Format and clean up s_atan2.c

11 years agoFix casinh inaccuracy near i, imaginary part > 1 (bug 15307).
Joseph Myers [Wed, 27 Mar 2013 14:38:44 +0000 (14:38 +0000)]
Fix casinh inaccuracy near i, imaginary part > 1 (bug 15307).

11 years agoARM: fix preconfigure.
Mans Rullgard [Tue, 26 Mar 2013 20:53:16 +0000 (20:53 +0000)]
ARM: fix preconfigure.

11 years agoUse integral constants
Siddhesh Poyarekar [Tue, 26 Mar 2013 14:54:04 +0000 (20:24 +0530)]
Use integral constants

The compiler is smart enough to convert those into double for powerpc,
but if we put them as doubles, it adds overhead by performing those
operations in floating point mode.

11 years agoRemoved commented code
Siddhesh Poyarekar [Tue, 26 Mar 2013 14:44:18 +0000 (20:14 +0530)]
Removed commented code

11 years agoMake mantissa type of mp_no configurable
Siddhesh Poyarekar [Tue, 26 Mar 2013 13:58:50 +0000 (19:28 +0530)]
Make mantissa type of mp_no configurable

The mantissa of mp_no is intended to take only integral values.  This
is a relatively good choice for powerpc due to its 4 fpus, but not for
other architectures, which suffer due to this choice.  This change
makes the default mantissa a long integer and allows powerpc to
override it.  Additionally, some operations have been optimized for
integer manipulation, resulting in a significant improvement in
performance.

11 years agoPowerPC: fix libm ABI issue for llroundl
Adhemerval Zanella [Tue, 26 Mar 2013 13:01:57 +0000 (10:01 -0300)]
PowerPC: fix libm ABI issue for llroundl

11 years agoFix docs for scalbn* and scalbl* functions
Mark H Weaver [Sun, 24 Mar 2013 23:52:10 +0000 (19:52 -0400)]
Fix docs for scalbn* and scalbl* functions

* manual/arith.texi (Normalization Functions): Fix prototypes
for scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.

11 years agoUpdate sparc ULPs.
David S. Miller [Fri, 22 Mar 2013 20:29:31 +0000 (13:29 -0700)]
Update sparc ULPs.

* sysdeps/sparc/fpu/libm-test-ulps: Update.

11 years agoBZ#13889: expl (709.75) wrongly overflows for ldbl-128ibm
Adhemerval Zanella [Fri, 22 Mar 2013 15:39:10 +0000 (12:39 -0300)]
BZ#13889: expl (709.75) wrongly overflows for ldbl-128ibm

The patch increase the high value to check if expl overflows. Current
high mark value is not really correct, the algorithm accepts high values.
It also adds a correct wrapper function to check for overflow and underflow.

11 years agoBZ#11120: fix x86_64/strcmp.S NOT_IN_libc safeguards
Dmitry V. Levin [Thu, 21 Mar 2013 23:02:37 +0000 (23:02 +0000)]
BZ#11120: fix x86_64/strcmp.S NOT_IN_libc safeguards

Due to a typo repeated several times, this bug hasn't been fixed yet,
despite being marked as resolved in glibc 2.12.

* sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
with NOT_IN_libc.

11 years agoPowerPC: fix sqrtl ABI issue
Adhemerval Zanella [Thu, 21 Mar 2013 17:15:45 +0000 (14:15 -0300)]
PowerPC: fix sqrtl ABI issue

This patch fixes a sqrtl ABI issue when building for powerpc64.

11 years agolibm-test: Properly wrap blocks consisting of several statements.
Thomas Schwinge [Thu, 21 Mar 2013 15:07:48 +0000 (16:07 +0100)]
libm-test: Properly wrap blocks consisting of several statements.

11 years agoOn 32-bit x86, disable certain tests involving sNaN values.
Thomas Schwinge [Tue, 19 Mar 2013 09:16:49 +0000 (10:16 +0100)]
On 32-bit x86, disable certain tests involving sNaN values.

Follow-up to commit 495ded2c8c1eb8c0ac4b54add2dd397852e19cba.

11 years agoFix Bessel function spurious overflows for ldbl-128 / ldbl-128ibm (bug 15285).
Joseph Myers [Thu, 21 Mar 2013 13:57:21 +0000 (13:57 +0000)]
Fix Bessel function spurious overflows for ldbl-128 / ldbl-128ibm (bug 15285).

11 years agoAllow adding of arbitrary code to benchmark tests
Siddhesh Poyarekar [Thu, 21 Mar 2013 11:05:48 +0000 (16:35 +0530)]
Allow adding of arbitrary code to benchmark tests

This allows us to define custom functions in C code files and
benchmark scenarios rather than just functions.  The main current use
of this is to separate the slow and fast path benchmarks for math
functions.

11 years agoFix casinh inaccuracy for argument with imaginary part 1 (bug 15287).
Joseph Myers [Thu, 21 Mar 2013 10:27:10 +0000 (10:27 +0000)]
Fix casinh inaccuracy for argument with imaginary part 1 (bug 15287).

11 years agoReplace 8388608.0 with HALFRAD in mp code
Siddhesh Poyarekar [Thu, 21 Mar 2013 07:37:44 +0000 (13:07 +0530)]
Replace 8388608.0 with HALFRAD in mp code

Minor cleanup

11 years agoUse LIBC_CONFIG_VAR for MIPS default-abi setting.
Joseph Myers [Thu, 21 Mar 2013 00:41:56 +0000 (00:41 +0000)]
Use LIBC_CONFIG_VAR for MIPS default-abi setting.

11 years agoUse LIBC_CONFIG_VAR for ARM default-abi setting.
Joseph Myers [Wed, 20 Mar 2013 23:15:42 +0000 (23:15 +0000)]
Use LIBC_CONFIG_VAR for ARM default-abi setting.

11 years agoMove system-specific settings out of toplevel configure.in and config.make.in.
Joseph Myers [Wed, 20 Mar 2013 22:37:06 +0000 (22:37 +0000)]
Move system-specific settings out of toplevel configure.in and config.make.in.