This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch, master, updated. glibc-2.14-352-g714fad2
- From: schwab at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 13 Oct 2011 15:15:30 -0000
- Subject: GNU C Library master sources branch, master, updated. glibc-2.14-352-g714fad2
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 714fad23c6f546c16a3f975cac984384a592537b (commit)
via 81dcc7fb74a766f970800b9975e85b5fe7f6ea38 (commit)
via 5298ffa828f2a7fe9e16c7f8971273a36a7530e6 (commit)
from f9e123204e9a96d421c9f9ce011d567ce9f8e217 (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=714fad23c6f546c16a3f975cac984384a592537b
commit 714fad23c6f546c16a3f975cac984384a592537b
Author: Andreas Schwab <schwab@redhat.com>
Date: Thu Oct 13 15:10:31 2011 +0200
Fix PLT use in feupdateenv on x86_64
diff --git a/ChangeLog b/ChangeLog
index 36cd1e2..9e61f35 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2011-10-13 Andreas Schwab <schwab@redhat.com>
+ * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
+ * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
+ feraiseexcept.
+
* sysdeps/x86_64/memrchr.S: Check for zero size.
* string/stratcliff.c: Add memrchr tests.
diff --git a/sysdeps/x86_64/fpu/feupdateenv.c b/sysdeps/x86_64/fpu/feupdateenv.c
index 291c56b..b2c6291 100644
--- a/sysdeps/x86_64/fpu/feupdateenv.c
+++ b/sysdeps/x86_64/fpu/feupdateenv.c
@@ -1,5 +1,5 @@
/* Install given floating-point environment and raise exceptions.
- Copyright (C) 1997,99,2000,01,07,2010 Free Software Foundation, Inc.
+ Copyright (C) 1997,99,2000,01,07,2010,2011 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
@@ -36,7 +36,7 @@ __feupdateenv (const fenv_t *envp)
/* Raise the saved exception. Incidently for us the implementation
defined format of the values in objects of type fexcept_t is the
same as the ones specified using the FE_* constants. */
- feraiseexcept ((int) temp);
+ __feraiseexcept ((int) temp);
/* Success. */
return 0;
diff --git a/sysdeps/x86_64/fpu/fraiseexcpt.c b/sysdeps/x86_64/fpu/fraiseexcpt.c
index d1d3c03..d0f1422 100644
--- a/sysdeps/x86_64/fpu/fraiseexcpt.c
+++ b/sysdeps/x86_64/fpu/fraiseexcpt.c
@@ -1,5 +1,5 @@
/* Raise given exceptions.
- Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+ Copyright (C) 2001, 2002, 2011 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -21,7 +21,7 @@
#include <math.h>
int
-feraiseexcept (int excepts)
+__feraiseexcept (int excepts)
{
/* Raise exceptions represented by EXPECTS. But we must raise only
one signal at a time. It is important that if the overflow/underflow
@@ -117,4 +117,4 @@ feraiseexcept (int excepts)
/* Success. */
return 0;
}
-libm_hidden_def (feraiseexcept)
+libm_hidden_ver (__feraiseexcept, feraiseexcept)
http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=81dcc7fb74a766f970800b9975e85b5fe7f6ea38
commit 81dcc7fb74a766f970800b9975e85b5fe7f6ea38
Author: Andreas Schwab <schwab@redhat.com>
Date: Thu Oct 13 13:33:58 2011 +0200
Check for zero size in memrchr for x86_64
diff --git a/ChangeLog b/ChangeLog
index a917b6e..36cd1e2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
2011-10-13 Andreas Schwab <schwab@redhat.com>
+ * sysdeps/x86_64/memrchr.S: Check for zero size.
+
* string/stratcliff.c: Add memrchr tests.
2011-10-12 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
diff --git a/sysdeps/x86_64/memrchr.S b/sysdeps/x86_64/memrchr.S
index 81b7a1c..70adca3 100644
--- a/sysdeps/x86_64/memrchr.S
+++ b/sysdeps/x86_64/memrchr.S
@@ -282,6 +282,9 @@ L(return_null):
.p2align 4
L(length_less16_offset0):
+ test %edx, %edx
+ jz L(return_null)
+
mov %dl, %cl
pcmpeqb (%rdi), %xmm1
http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=5298ffa828f2a7fe9e16c7f8971273a36a7530e6
commit 5298ffa828f2a7fe9e16c7f8971273a36a7530e6
Author: Andreas Schwab <schwab@redhat.com>
Date: Thu Oct 13 12:39:24 2011 +0200
Add memrchr tests
diff --git a/ChangeLog b/ChangeLog
index 1b7499c..a917b6e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-10-13 Andreas Schwab <schwab@redhat.com>
+
+ * string/stratcliff.c: Add memrchr tests.
+
2011-10-12 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
* sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
diff --git a/string/stratcliff.c b/string/stratcliff.c
index 5165be2..5176409 100644
--- a/string/stratcliff.c
+++ b/string/stratcliff.c
@@ -1,5 +1,5 @@
/* Test for string function add boundaries of usable memory.
- Copyright (C) 1996,1997,1999-2003,2007,2009,2010
+ Copyright (C) 1996,1997,1999-2003,2007,2009,2010,2011
Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
@@ -240,7 +240,7 @@ do_test (void)
}
}
- /* This function only exists for single-byte characters. */
+ /* These functions only exist for single-byte characters. */
#ifndef WCSTEST
/* rawmemchr test */
for (outer = nchars - 1; outer >= MAX (0, nchars - 128); --outer)
@@ -261,6 +261,37 @@ do_test (void)
adr[middle] = L('T');
}
}
+
+ /* memrchr test */
+ for (outer = nchars - 1; outer >= MAX (0, nchars - 128); --outer)
+ {
+ for (middle = MAX (outer, nchars - 64); middle < nchars; ++middle)
+ {
+ adr[middle] = L('V');
+
+ CHAR *cp = memrchr (&adr[outer], L('V'), nchars - outer);
+
+ if (cp - &adr[outer] != middle - outer)
+ {
+ printf ("%s flunked for outer = %d, middle = %d\n",
+ STRINGIFY (memrchr), outer, middle);
+ result = 1;
+ }
+
+ adr[middle] = L('T');
+ }
+ }
+ for (outer = nchars; outer >= MAX (0, nchars - 128); --outer)
+ {
+ CHAR *cp = memrchr (&adr[outer], L('V'), nchars - outer);
+
+ if (cp != NULL)
+ {
+ printf ("%s flunked for outer = %d\n",
+ STRINGIFY (memrchr), outer);
+ result = 1;
+ }
+ }
#endif
/* strcpy/wcscpy test */
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 10 ++++++++++
string/stratcliff.c | 35 +++++++++++++++++++++++++++++++++--
sysdeps/x86_64/fpu/feupdateenv.c | 4 ++--
sysdeps/x86_64/fpu/fraiseexcpt.c | 6 +++---
sysdeps/x86_64/memrchr.S | 3 +++
5 files changed, 51 insertions(+), 7 deletions(-)
hooks/post-receive
--
GNU C Library master sources