Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/arch/sparc64/gen Check how the compiler expects the...
details: https://anonhg.NetBSD.org/src/rev/ce355f8727a4
branches: trunk
changeset: 542547:ce355f8727a4
user: martin <martin%NetBSD.org@localhost>
date: Sat Feb 01 09:19:58 2003 +0000
description:
Check how the compiler expects the return value of this function
by testing SOFTFLOATSPARC64_FOR_GCC.
Should fix PR port-sparc64/20140.
diffstat:
lib/libc/arch/sparc64/gen/fabs.S | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 912fd3555543 -r ce355f8727a4 lib/libc/arch/sparc64/gen/fabs.S
--- a/lib/libc/arch/sparc64/gen/fabs.S Sat Feb 01 07:50:38 2003 +0000
+++ b/lib/libc/arch/sparc64/gen/fabs.S Sat Feb 01 09:19:58 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fabs.S,v 1.2 2000/07/23 07:12:22 eeh Exp $ */
+/* $NetBSD: fabs.S,v 1.3 2003/02/01 09:19:58 martin Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -44,7 +44,7 @@
#if 0
.asciz "@(#)fabs.s 8.1 (Berkeley) 6/4/93"
#else
- RCSID("$NetBSD: fabs.S,v 1.2 2000/07/23 07:12:22 eeh Exp $")
+ RCSID("$NetBSD: fabs.S,v 1.3 2003/02/01 09:19:58 martin Exp $")
#endif
#endif /* LIBC_SCCS and not lint */
@@ -52,7 +52,9 @@
ENTRY(fabs)
+#ifndef SOFTFLOATSPARC64_FOR_GCC
stx %o0, [%sp + BIAS + 32] ! return value => %f0:f1
ldd [%sp + BIAS + 32], %f0 ! (via kernel %o0/%o1 slot)
+#endif
retl
fabss %f0, %f0 ! return absolute value
Home |
Main Index |
Thread Index |
Old Index