GNU C Library master sources branch, master, updated. glibc-2.11-351-ga7b420e

drepper@sourceware.org drepper@sourceware.org
Thu Apr 8 23:09:00 GMT 2010


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  a7b420eadcd706702b5244dfa3beee06c7a990aa (commit)
       via  85997fc3ebe20b96f24b590e998d3ff7b2b8148a (commit)
       via  39be1d1f7b55b4d63a218cd0ec99393acaf1f083 (commit)
       via  de240a05b3638879af2f9ab663c56ad8b26b1ad3 (commit)
       via  88e236a627d7195a938bce0b7cde92c2da2abedf (commit)
       via  7bfa311ff51999f9e92620268e493959a2f7bfb4 (commit)
      from  df5efd61b01c52573bfd011b93a96966047308c6 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a7b420eadcd706702b5244dfa3beee06c7a990aa

commit a7b420eadcd706702b5244dfa3beee06c7a990aa
Author: Ulrich Drepper <drepper@redhat.com>
Date:   Thu Apr 8 16:09:15 2010 -0700

    Fix whitespaces.

diff --git a/math/s_cproj.c b/math/s_cproj.c
index 90e5eba..cff75c4 100644
--- a/math/s_cproj.c
+++ b/math/s_cproj.c
@@ -33,7 +33,7 @@ __cproj (__complex__ double x)
 
       __real__ res = INFINITY;
       __imag__ res = __copysign (0.0, __imag__ x);
-      
+
       return res;
     }
 

http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=85997fc3ebe20b96f24b590e998d3ff7b2b8148a

commit 85997fc3ebe20b96f24b590e998d3ff7b2b8148a
Merge: 39be1d1 7bfa311
Author: Ulrich Drepper <drepper@redhat.com>
Date:   Thu Apr 8 16:06:54 2010 -0700

    Merge remote branch 'origin/roland/hwcap_mask'

diff --cc ChangeLog
index f8e36af,cb02ba1..e53d5bf
--- a/ChangeLog
+++ b/ChangeLog
@@@ -1,98 -1,11 +1,102 @@@
 +2010-04-07  Andreas Schwab  <schwab@redhat.com>
 +
 +	* sysdeps/unix/sysv/linux/i386/fallocate.c: Set errno on error.
 +	* sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
 +
 +2010-04-08  Andreas Jaeger  <aj@suse.de>
 +
 +	[BZ #10401]
 +	* math/s_cprojl.c (__cprojl): Fix implementation to follow C99
 +	standard.
 +	* math/s_cprojf.c (__cprojf): Likewise.
 +	* math/s_cproj.c (__cproj): Likewise.
 +	* sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
 +	* math/libm-test.inc (cproj_test): Fix test.
 +
 +2010-04-08  Roland McGrath  <roland@redhat.com>
 +
 +	* Makerules (libc-abis): Variable removed.
 +	($(common-objpfx)libc-abis.h): Depend on Makerules too.
 +	Use automatic variables in commands.
 +	Depend on first libc-abis from $(sysdirs) or $(..).
 +
 +2010-04-07  Ulrich Drepper  <drepper@redhat.com>
 +
 +	* posix/bug-getopt1.c: New file.
 +	* posix/bug-getopt2.c: New file.
 +	* posix/bug-getopt3.c: New file.
 +	* posix/bug-getopt4.c: New file.
 +	* posix/bug-getopt5.c: New file.
 +
 +2009-12-01  Eric Blake  <ebb9@byu.net>
 +
 +	[BZ #11039]
 +	* posix/getopt.c (_getopt_internal_r): Skip optional - or + before
 +	checking lead byte of optstring for :.
 +
 +	[BZ #11040]
 +	* posix/getopt.c (_getopt_internal_r): Reject '-;' as short
 +	option, since it conflicts with "W;" optstring extension.
 +
 +2009-12-02  Eric Blake  <ebb9@byu.net>
 +
 +	[BZ #11041]
 +	* posix/getopt.c (_getopt_internal_r): Handle '-Wfoo' identically
 +	to '--foo', with optional argument or non-ambiguous prefix.
 +
 +2010-04-07  Ulrich Drepper  <drepper@redhat.com>
 +
 +	[BZ #11134]
 +	* nis/libnsl.h (NSS_FLAG_ADJUNCT_AS_SHADOW): Define.
 +	* nis/nss: Document new ADJUNCT_AS_SHADOW variable.
 +	* nis/nss-default.c: Handle ADJUNCT_AS_SHADOW variable.
 +	* nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Minor cleanups.
 +	(internal_nis_getpwent_r): Don't fill in password from adjunct table
 +	if NSS_FLAG_ADJUNCT_AS_SHADOW is set.
 +	(_nss_nis_getpwnam_r): Likewise.
 +	(_nss_nis_getpwuid_r): Likewise.
 +	* nis/nss_nis/nis-spwd.c (ent_adjunct_used): New global variable.
 +	(_nss_nis_setspent): Also reset ent_adjunct_used.
 +	(internal_nis_getspent_r): If new_start is set and shadow.byname table
 +	does not exist and NSS_FLAG_ADJUNCT_AS_SHADOW is set, try to get
 +	passwd.adjunct.byname table.  If new_start is not set get next entry
 +	from the initially used table.  Synthesize shadow.byname table if
 +	necessary by adding two empty fields.
 +	(_nss_nis_getspnam_r): If shadow.byname table does not exist and
 +	NSS_FLAG_ADJUNCT_AS_SHADOW is set, try to get passwd.adjunct.byname
 +	table and synthesize shadow.byname table.
 +
 +2010-04-06  H.J. Lu  <hongjiu.lu@intel.com>
 +
 +	* Makerules (libc-abis): Add $(..) to libc-abis.
 +
 +2010-04-06  Joseph Myers  <joseph@codesourcery.com>
 +
 +	* Makerules (libc-abis): Fix search for libc-abis in add-ons.
 +
 +2010-04-05  Thomas Schwinge  <thomas@schwinge.name>
 +
 +	* sysdeps/gnu/unwind-resume.c: New, moved from nptl/sysdeps/pthread/.
 +	* sysdeps/gnu/rt-unwind-resume.c: Likewise.
 +	* sysdeps/gnu/Makefile: Add sections for csu and rt subdirs to
 +	build unwind-resume code, previously in nptl/sysdeps/pthread/Makefile.
 +
  2010-04-05  Roland McGrath  <roland@redhat.com>
  
+ 	* elf/dl-cache.c (_dl_load_cache_lookup): Obey dl_hwcap_mask.
+ 
+ 	* elf/dl-support.c (_dl_hwcap_mask): New variable.
+ 
  	* elf/rtld.c (dl_main) [HAVE_AUX_VECTOR]: Add a cast.
  
 +2010-03-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
 +
 +	* Makeconfig: Propagate -fdebug-prefix-map from CFLAGS to ASFLAGS.
 +
 +2010-03-30  Joseph Myers  <joseph@codesourcery.com>
 +
 +	* elf/elf.h (ELFOSABI_ARM_AEABI): Define.
 +
  2010-04-05  Ulrich Drepper  <drepper@redhat.com>
  
  	* po/nl.po: Update from translation team.

http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=39be1d1f7b55b4d63a218cd0ec99393acaf1f083

commit 39be1d1f7b55b4d63a218cd0ec99393acaf1f083
Merge: de240a0 df5efd6
Author: Ulrich Drepper <drepper@redhat.com>
Date:   Thu Apr 8 15:57:39 2010 -0700

    Merge branch 'master' of ssh://sources.redhat.com/git/glibc
    
    Conflicts:
    	ChangeLog

diff --cc ChangeLog
index 03ba71f,71a392e..f8e36af
--- a/ChangeLog
+++ b/ChangeLog
@@@ -1,18 -1,10 +1,25 @@@
 +2010-04-07  Andreas Schwab  <schwab@redhat.com>
 +
 +	* sysdeps/unix/sysv/linux/i386/fallocate.c: Set errno on error.
 +	* sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
 +
 +2010-04-08  Andreas Jaeger  <aj@suse.de>
 +
 +	[BZ #10401]
 +	* math/s_cprojl.c (__cprojl): Fix implementation to follow C99
 +	standard.
 +	* math/s_cprojf.c (__cprojf): Likewise.
 +	* math/s_cproj.c (__cproj): Likewise.
 +	* sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
 +	* math/libm-test.inc (cproj_test): Fix test.
 +
+ 2010-04-08  Roland McGrath  <roland@redhat.com>
+ 
+ 	* Makerules (libc-abis): Variable removed.
+ 	($(common-objpfx)libc-abis.h): Depend on Makerules too.
+ 	Use automatic variables in commands.
+ 	Depend on first libc-abis from $(sysdirs) or $(..).
+ 
  2010-04-07  Ulrich Drepper  <drepper@redhat.com>
  
  	* posix/bug-getopt1.c: New file.

http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=de240a05b3638879af2f9ab663c56ad8b26b1ad3

commit de240a05b3638879af2f9ab663c56ad8b26b1ad3
Author: Andreas Schwab <schwab@redhat.com>
Date:   Thu Apr 8 15:44:55 2010 -0700

    Fix fallocate error return on i386.

diff --git a/ChangeLog b/ChangeLog
index d3f1ac8..03ba71f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-04-07  Andreas Schwab  <schwab@redhat.com>
+
+	* sysdeps/unix/sysv/linux/i386/fallocate.c: Set errno on error.
+	* sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
+
 2010-04-08  Andreas Jaeger  <aj@suse.de>
 
 	[BZ #10401]
diff --git a/sysdeps/unix/sysv/linux/i386/fallocate.c b/sysdeps/unix/sysv/linux/i386/fallocate.c
index 14e7883..1434a83 100644
--- a/sysdeps/unix/sysv/linux/i386/fallocate.c
+++ b/sysdeps/unix/sysv/linux/i386/fallocate.c
@@ -30,7 +30,13 @@ int
 fallocate (int fd, int mode, __off_t offset, __off_t len)
 {
 #ifdef __NR_fallocate
-  return __call_fallocate (fd, mode, offset, len);
+  int err = __call_fallocate (fd, mode, offset, len);
+  if (__builtin_expect (err, 0))
+    {
+      __set_errno (err);
+      err = -1;
+    }
+  return err;
 #else
   __set_errno (ENOSYS);
   return -1;
diff --git a/sysdeps/unix/sysv/linux/i386/fallocate64.c b/sysdeps/unix/sysv/linux/i386/fallocate64.c
index 85f315c..063bab0 100644
--- a/sysdeps/unix/sysv/linux/i386/fallocate64.c
+++ b/sysdeps/unix/sysv/linux/i386/fallocate64.c
@@ -30,7 +30,13 @@ int
 fallocate64 (int fd, int mode, __off64_t offset, __off64_t len)
 {
 #ifdef __NR_fallocate
-  return __call_fallocate (fd, mode, offset, len);
+  int err = __call_fallocate (fd, mode, offset, len);
+  if (__builtin_expect (err, 0))
+    {
+      __set_errno (err);
+      err = -1;
+    }
+  return err;
 #else
   __set_errno (ENOSYS);
   return -1;

http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=88e236a627d7195a938bce0b7cde92c2da2abedf

commit 88e236a627d7195a938bce0b7cde92c2da2abedf
Author: Ulrich Drepper <drepper@redhat.com>
Date:   Thu Apr 8 15:32:51 2010 -0700

    Fix cproj implmentation.

diff --git a/ChangeLog b/ChangeLog
index c2ce3a9..d3f1ac8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2010-04-08  Andreas Jaeger  <aj@suse.de>
+
+	[BZ #10401]
+	* math/s_cprojl.c (__cprojl): Fix implementation to follow C99
+	standard.
+	* math/s_cprojf.c (__cprojf): Likewise.
+	* math/s_cproj.c (__cproj): Likewise.
+	* sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
+	* math/libm-test.inc (cproj_test): Fix test.
+
 2010-04-07  Ulrich Drepper  <drepper@redhat.com>
 
 	* posix/bug-getopt1.c: New file.
diff --git a/math/libm-test.inc b/math/libm-test.inc
index 260d3ec..6650b88 100644
--- a/math/libm-test.inc
+++ b/math/libm-test.inc
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997-2006, 2007, 2009 Free Software Foundation, Inc.
+/* Copyright (C) 1997-2006, 2007, 2009, 2010 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Andreas Jaeger <aj@suse.de>, 1997.
 
@@ -2087,7 +2087,7 @@ cproj_test (void)
   TEST_c_c (cproj, minus_infty, minus_infty, plus_infty, minus_zero);
 
   TEST_c_c (cproj, 1.0, 0.0, 1.0, 0.0);
-  TEST_c_c (cproj, 2.0, 3.0, 0.2857142857142857142857142857142857L, 0.42857142857142857142857142857142855L);
+  TEST_c_c (cproj, 2.0, 3.0, 2.0, 3.0);
 
   END (cproj, complex);
 }
diff --git a/math/s_cproj.c b/math/s_cproj.c
index 8e7ca41..90e5eba 100644
--- a/math/s_cproj.c
+++ b/math/s_cproj.c
@@ -1,5 +1,5 @@
 /* Compute projection of complex double value to Riemann sphere.
-   Copyright (C) 1997, 1999 Free Software Foundation, Inc.
+   Copyright (C) 1997, 1999, 2010 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
 
@@ -25,24 +25,19 @@
 __complex__ double
 __cproj (__complex__ double x)
 {
-  __complex__ double res;
-
   if (isnan (__real__ x) && isnan (__imag__ x))
     return x;
   else if (!isfinite (__real__ x) || !isfinite (__imag__ x))
     {
+      __complex__ double res;
+
       __real__ res = INFINITY;
       __imag__ res = __copysign (0.0, __imag__ x);
-    }
-  else
-    {
-      double den = __real__ x * __real__ x + __imag__ x * __imag__ x + 1.0;
-
-      __real__ res = (2.0 * __real__ x) / den;
-      __imag__ res = (2.0 * __imag__ x) / den;
+      
+      return res;
     }
 
-  return res;
+  return x;
 }
 weak_alias (__cproj, cproj)
 #ifdef NO_LONG_DOUBLE
diff --git a/math/s_cprojf.c b/math/s_cprojf.c
index 83df13c..e7eacaf 100644
--- a/math/s_cprojf.c
+++ b/math/s_cprojf.c
@@ -1,5 +1,5 @@
 /* Compute projection of complex float value to Riemann sphere.
-   Copyright (C) 1997, 1999 Free Software Foundation, Inc.
+   Copyright (C) 1997, 1999, 2010 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
 
@@ -25,24 +25,19 @@
 __complex__ float
 __cprojf (__complex__ float x)
 {
-  __complex__ float res;
-
   if (isnan (__real__ x) && isnan (__imag__ x))
     return x;
   else if (!isfinite (__real__ x) || !isfinite (__imag__ x))
     {
+      __complex__ float res;
+
       __real__ res = INFINITY;
       __imag__ res = __copysignf (0.0, __imag__ x);
-    }
-  else
-    {
-      float den = __real__ x * __real__ x + __imag__ x * __imag__ x + 1.0;
 
-      __real__ res = (2.0 * __real__ x) / den;
-      __imag__ res = (2.0 * __imag__ x) / den;
+      return res;
     }
 
-  return res;
+  return x;
 }
 #ifndef __cprojf
 weak_alias (__cprojf, cprojf)
diff --git a/math/s_cprojl.c b/math/s_cprojl.c
index c70cdc4..19c17a8 100644
--- a/math/s_cprojl.c
+++ b/math/s_cprojl.c
@@ -1,5 +1,5 @@
 /* Compute projection of complex long double value to Riemann sphere.
-   Copyright (C) 1997, 1999 Free Software Foundation, Inc.
+   Copyright (C) 1997, 1999, 2010 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
 
@@ -25,24 +25,18 @@
 __complex__ long double
 __cprojl (__complex__ long double x)
 {
-  __complex__ long double res;
-
   if (isnan (__real__ x) && isnan (__imag__ x))
     return x;
   else if (!isfinite (__real__ x) || !isfinite (__imag__ x))
     {
+      __complex__ long double res;
+
       __real__ res = INFINITY;
       __imag__ res = __copysignl (0.0, __imag__ x);
-    }
-  else
-    {
-      long double den = (__real__ x * __real__ x + __imag__ x * __imag__ x
-			 + 1.0);
 
-      __real__ res = (2.0 * __real__ x) / den;
-      __imag__ res = (2.0 * __imag__ x) / den;
+      return res;
     }
 
-  return res;
+  return x;
 }
 weak_alias (__cprojl, cprojl)
diff --git a/sysdeps/ieee754/ldbl-128ibm/s_cprojl.c b/sysdeps/ieee754/ldbl-128ibm/s_cprojl.c
index 2167db3..b2a09ae 100644
--- a/sysdeps/ieee754/ldbl-128ibm/s_cprojl.c
+++ b/sysdeps/ieee754/ldbl-128ibm/s_cprojl.c
@@ -1,5 +1,5 @@
 /* Compute projection of complex long double value to Riemann sphere.
-   Copyright (C) 1997,1999,2006 Free Software Foundation, Inc.
+   Copyright (C) 1997,1999,2006,2010 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
 
@@ -25,30 +25,18 @@
 __complex__ long double
 __cprojl (__complex__ long double x)
 {
-  __complex__ long double res;
-
   if (isnan (__real__ x) && isnan (__imag__ x))
     return x;
   else if (!isfinite (__real__ x) || !isfinite (__imag__ x))
     {
+      __complex__ long double res;
+
       __real__ res = INFINITY;
       __imag__ res = __copysignl (0.0, __imag__ x);
-    }
-  else
-    {
-      long double den = (__real__ x * __real__ x + __imag__ x * __imag__ x
-			 + 1.0);
-
-      __real__ res = (2.0 * __real__ x) / den;
-      __imag__ res = (2.0 * __imag__ x) / den;
-      /* __gcc_qmul does not respect -0.0 so we need the following fixup.  */
-       if (__real__ x == 0.0)
-         __real__ res = __real__ x;
 
-       if (__imag__ x == 0.0)
-         __imag__ res = __imag__ x;
+      return res;
     }
 
-  return res;
+  return x;
 }
 long_double_symbol (libm, __cprojl, cprojl);

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                                  |   19 +++++++++++++++++++
 elf/dl-cache.c                             |   13 ++++++++-----
 elf/dl-support.c                           |   10 +++++++++-
 math/libm-test.inc                         |    4 ++--
 math/s_cproj.c                             |   15 +++++----------
 math/s_cprojf.c                            |   15 +++++----------
 math/s_cprojl.c                            |   16 +++++-----------
 sysdeps/ieee754/ldbl-128ibm/s_cprojl.c     |   22 +++++-----------------
 sysdeps/unix/sysv/linux/i386/fallocate.c   |    8 +++++++-
 sysdeps/unix/sysv/linux/i386/fallocate64.c |    8 +++++++-
 10 files changed, 72 insertions(+), 58 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources



More information about the Glibc-cvs mailing list