This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
Community source repository for glibc add-on ports branch, master, updated. glibc-2.15-304-g8cac0ec
- From: rth at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 31 May 2012 14:43:50 -0000
- Subject: Community source repository for glibc add-on ports branch, master, updated. glibc-2.15-304-g8cac0ec
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 "Community source repository for glibc add-on ports".
The branch, master has been updated
via 8cac0ece48d57be4397e2ef3f124690391b7a6d5 (commit)
via 13488b2eaec9f589e488765687e131ec7c321c8f (commit)
from 3c9d6deca50d600669dfe45127602d1ad44f723f (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-ports.git;a=commitdiff;h=8cac0ece48d57be4397e2ef3f124690391b7a6d5
commit 8cac0ece48d57be4397e2ef3f124690391b7a6d5
Author: Richard Henderson <rth@twiddle.net>
Date: Wed May 30 20:55:56 2012 -0700
alpha: Add -mieee-with-inexact for fma compilation
diff --git a/ChangeLog.alpha b/ChangeLog.alpha
index 72e102a..48f3b97 100644
--- a/ChangeLog.alpha
+++ b/ChangeLog.alpha
@@ -1,5 +1,9 @@
2012-05-30 Richard Henderson <rth@twiddle.net>
+ * sysdeps/alpha/Makefile (CFLAGS-s_fma.c): Set -mieee-with-inexact.
+ (CFLAGS-s_fmaf.c): Likewise.
+ * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
+
* sysdeps/unix/sysv/linux/alpha/brk.S: Fix error path for PIC.
* sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
diff --git a/sysdeps/alpha/Makefile b/sysdeps/alpha/Makefile
index b08f69d..17fd3b8 100644
--- a/sysdeps/alpha/Makefile
+++ b/sysdeps/alpha/Makefile
@@ -37,6 +37,12 @@ ifeq ($(subdir),elf)
CFLAGS-rtld.c = -mbuild-constants
endif
+ifeq ($(subdir),math)
+# The fma routines rely on inexact being raised for correct results.
+CFLAGS-s_fma.c = -mieee-with-inexact
+CFLAGS-s_fmaf.c = -mieee-with-inexact
+endif
+
# Build everything with full IEEE math support, and with dynamic rounding;
# there are a number of math routines that are defined to work with the
# "current" rounding mode, and it's easiest to set this with all of them.
diff --git a/sysdeps/alpha/fpu/libm-test-ulps b/sysdeps/alpha/fpu/libm-test-ulps
index 3988426..908154c 100644
--- a/sysdeps/alpha/fpu/libm-test-ulps
+++ b/sysdeps/alpha/fpu/libm-test-ulps
@@ -1615,20 +1615,6 @@ Test "expm1 (500.0) == 1.4035922178528374107397703328409120821806e+217":
double: 1
idouble: 1
-# fma
-Test "fma (-0x1.19cab66d73e17p-959, 0x1.c7108a8c5ff51p-107, -0x0.80b0ad65d9b64p-1022) == -0x0.80b0ad65d9d59p-1022":
-double: 1
-idouble: 1
-Test "fma (0x1.0000002p+0, 0x1.ffffffcp-1, -0x1p-300) == 0x1.fffffffffffffp-1":
-double: 1
-idouble: 1
-Test "fma (0x1.153d650bb9f06p-907, 0x1.2d01230d48407p-125, -0x0.b278d5acfc3cp-1022) == -0x0.b22757123bbe9p-1022":
-double: 1
-idouble: 1
-Test "fma (0x1.4000004p-967, 0x1p-106, 0x0.000001p-1022) == 0x0.0000010000003p-1022":
-double: 1
-idouble: 1
-
# gamma
Test "gamma (-0.5) == log(2*sqrt(pi))":
ildouble: 1
http://sources.redhat.com/git/gitweb.cgi?p=glibc-ports.git;a=commitdiff;h=13488b2eaec9f589e488765687e131ec7c321c8f
commit 13488b2eaec9f589e488765687e131ec7c321c8f
Author: Richard Henderson <rth@twiddle.net>
Date: Wed May 30 20:53:54 2012 -0700
alpha: Fix error path for PIC __brk
diff --git a/ChangeLog.alpha b/ChangeLog.alpha
index 3366261..72e102a 100644
--- a/ChangeLog.alpha
+++ b/ChangeLog.alpha
@@ -1,5 +1,7 @@
2012-05-30 Richard Henderson <rth@twiddle.net>
+ * sysdeps/unix/sysv/linux/alpha/brk.S: Fix error path for PIC.
+
* sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
* sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove
diff --git a/sysdeps/unix/sysv/linux/alpha/brk.S b/sysdeps/unix/sysv/linux/alpha/brk.S
index 826d737..cb759db 100644
--- a/sysdeps/unix/sysv/linux/alpha/brk.S
+++ b/sysdeps/unix/sysv/linux/alpha/brk.S
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993, 1995, 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1993-2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Brendan Kehoe <brendan@zen.org>, 1993.
@@ -36,16 +36,22 @@ __curbrk: .skip 8
#endif
.text
-LEAF(__brk, 8)
+ .align 4
+ .globl __brk
+ .ent __brk
+ .usepv __brk, std
+
+ cfi_startproc
+__brk:
ldgp gp, 0(t12)
- subq sp, 8, sp
+ subq sp, 16, sp
+ cfi_adjust_cfa_offset (16)
#ifdef PROF
.set noat
lda AT, _mcount
jsr AT, (AT), _mcount
.set at
#endif
- .prologue 1
/* Save the requested brk across the system call. */
stq a0, 0(sp)
@@ -54,27 +60,25 @@ LEAF(__brk, 8)
call_pal PAL_callsys
ldq a0, 0(sp)
+ addq sp, 16, sp
+ cfi_adjust_cfa_offset (-16)
/* Be prepared for an OSF-style brk. */
- bne a3, $err1
+ bne a3, SYSCALL_ERROR_LABEL
beq v0, $ok
/* Correctly handle the brk(0) query case. */
cmoveq a0, v0, a0
xor a0, v0, t0
- bne t0, $err0
+ lda v0, ENOMEM
+ bne t0, SYSCALL_ERROR_LABEL
/* Update __curbrk and return cleanly. */
- mov zero, v0
+ lda v0, 0
$ok: stq a0, __curbrk
- addq sp, 8, sp
ret
- /* What a horrible way to die. */
-$err0: ldi v0, ENOMEM
-$err1: addq sp, 8, sp
- SYSCALL_ERROR_HANDLER
-
- END(__brk)
+PSEUDO_END(__brk)
+ cfi_endproc
weak_alias (__brk, brk)
-----------------------------------------------------------------------
Summary of changes:
ChangeLog.alpha | 6 ++++++
sysdeps/alpha/Makefile | 6 ++++++
sysdeps/alpha/fpu/libm-test-ulps | 14 --------------
sysdeps/unix/sysv/linux/alpha/brk.S | 32 ++++++++++++++++++--------------
4 files changed, 30 insertions(+), 28 deletions(-)
hooks/post-receive
--
Community source repository for glibc add-on ports