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.15-548-gf402708
- From: kkojima at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 5 Apr 2012 02:59:44 -0000
- Subject: GNU C Library master sources branch, master, updated. glibc-2.15-548-gf402708
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 f402708f8a593280992bdaf037f57c6a16c233cc (commit)
from 2ecccfc97ac9e755f6b67fa0bac785148c7b8256 (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=f402708f8a593280992bdaf037f57c6a16c233cc
commit f402708f8a593280992bdaf037f57c6a16c233cc
Author: Kaz Kojima <kkojima@rr.iij4u.or.jp>
Date: Thu Apr 5 11:58:30 2012 +0900
Fix return value of SH fesetround.
diff --git a/ChangeLog b/ChangeLog
index 9c99479..b7c05b6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2012-04-05 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
+ * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
+ which ROUND is no valid rounding mode.
+
+2012-04-05 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
+
* sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
read again.
* sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
diff --git a/sysdeps/sh/sh4/fpu/fesetround.c b/sysdeps/sh/sh4/fpu/fesetround.c
index 5df96d2..3269199 100644
--- a/sysdeps/sh/sh4/fpu/fesetround.c
+++ b/sysdeps/sh/sh4/fpu/fesetround.c
@@ -1,5 +1,5 @@
/* Set current rounding direction.
- Copyright (C) 1998, 2000, 2005 Free Software Foundation, Inc.
+ Copyright (C) 1998, 2000, 2005, 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Andreas Jaeger <aj@arthur.rhein-neckar.de>, 1998.
@@ -27,7 +27,7 @@ fesetround (int round)
if ((round & ~0x3) != 0)
/* ROUND is no valid rounding mode. */
- return 0;
+ return 1;
/* Get current state. */
_FPU_GETCW (cw);
@@ -38,6 +38,6 @@ fesetround (int round)
/* Set new state. */
_FPU_SETCW (cw);
- return 1;
+ return 0;
}
libm_hidden_def (fesetround)
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 5 +++++
sysdeps/sh/sh4/fpu/fesetround.c | 6 +++---
2 files changed, 8 insertions(+), 3 deletions(-)
hooks/post-receive
--
GNU C Library master sources