This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.20-261-g706688a


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  706688aaefdeb48e63519525f11108ce14844a26 (commit)
      from  12da14a59135fe331f294b91488c1bdf55b35b4e (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://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=706688aaefdeb48e63519525f11108ce14844a26

commit 706688aaefdeb48e63519525f11108ce14844a26
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Wed Nov 26 13:54:55 2014 +0000

    FIx ldbl-128ibm frexpl for 32-bit systems (bug 16619, bug 16740).
    
    This patch fixes bugs in ldbl-128ibm frexpl for 32-bit systems shown
    up by warnings:
    
    ../sysdeps/ieee754/ldbl-128ibm/s_frexpl.c:82:4: warning: left shift count >= width of type
    ../sysdeps/ieee754/ldbl-128ibm/s_frexpl.c:129:5: warning: left shift count >= width of type
    
    This did in fact show up in test-ldouble.out (alongside all the other
    problems there ... maybe we should again consider running the libm
    tests at finer granularity from the makefiles) as already covered by
    the testsuite after the previous patch that fixed these bugs for
    64-bit systems.  The fix is simply using 1LL instead of 1L when
    shifting by 52.
    
    Tested for powerpc32 (soft float).
    
    	[BZ #16619]
    	[BZ #16740]
    	* sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Use 1LL << 52
    	instead of 1L << 52.

diff --git a/ChangeLog b/ChangeLog
index 5581f08..90a948b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
 
+	[BZ #16619]
+	[BZ #16740]
+	* sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Use 1LL << 52
+	instead of 1L << 52.
+
 	* libio/bug-rewind.c (do_test): Check fwscanf return values.
 	* libio/bug-rewind2.c (do_test): Likewise.
 
diff --git a/NEWS b/NEWS
index 03f7a98..8f8203b 100644
--- a/NEWS
+++ b/NEWS
@@ -9,10 +9,10 @@ Version 2.21
 
 * The following bugs are resolved with this release:
 
-  6652, 12926, 14132, 14138, 14171, 14498, 15215, 15884, 16469, 17266,
-  17344, 17363, 17370, 17371, 17411, 17460, 17475, 17485, 17501, 17506,
-  17508, 17522, 17555, 17570, 17571, 17572, 17573, 17574, 17582, 17583,
-  17584, 17585, 17589, 17594, 17608, 17616, 17625, 17633.
+  6652, 12926, 14132, 14138, 14171, 14498, 15215, 15884, 16469, 16619,
+  16740, 17266, 17344, 17363, 17370, 17371, 17411, 17460, 17475, 17485,
+  17501, 17506, 17508, 17522, 17555, 17570, 17571, 17572, 17573, 17574,
+  17582, 17583, 17584, 17585, 17589, 17594, 17608, 17616, 17625, 17633.
 
 * CVE-2104-7817 The wordexp function could ignore the WRDE_NOCMD flag
   under certain input conditions resulting in the execution of a shell for
diff --git a/sysdeps/ieee754/ldbl-128ibm/s_frexpl.c b/sysdeps/ieee754/ldbl-128ibm/s_frexpl.c
index 483c6a8..52d2d3e 100644
--- a/sysdeps/ieee754/ldbl-128ibm/s_frexpl.c
+++ b/sysdeps/ieee754/ldbl-128ibm/s_frexpl.c
@@ -79,7 +79,7 @@ long double __frexpl(long double x, int *eptr)
       if (ix == 0
 	  && (int64_t) (hx ^ lx) < 0)
 	{
-	  hx += 1L << 52;
+	  hx += 1LL << 52;
 	  expon -= 1;
 	}
 
@@ -126,7 +126,7 @@ long double __frexpl(long double x, int *eptr)
 		     be wrong since the returned low double will be
 		     zero.  This can happen if the input was
 		     something weird like 0x1p1000 - 0x1p-1000.  */
-		  hx -= 1L << 52;
+		  hx -= 1LL << 52;
 		  expon += 1;
 		}
 	    }

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

Summary of changes:
 ChangeLog                              |    5 +++++
 NEWS                                   |    8 ++++----
 sysdeps/ieee754/ldbl-128ibm/s_frexpl.c |    4 ++--
 3 files changed, 11 insertions(+), 6 deletions(-)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]