aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrendan Kehoe <brendan@zen.org>1995-03-10 02:10:40 +0000
committerBrendan Kehoe <brendan@zen.org>1995-03-10 02:10:40 +0000
commit127b3c3596da5da5b40cbfb4554cb101a2299635 (patch)
treea9603999ed3aaf6747ef21c526b4b5069747cb09
parent134c12361952e77e99fe59021aa3c30224345ac5 (diff)
downloadglibc-127b3c3596da5da5b40cbfb4554cb101a2299635.tar
glibc-127b3c3596da5da5b40cbfb4554cb101a2299635.tar.gz
glibc-127b3c3596da5da5b40cbfb4554cb101a2299635.tar.bz2
glibc-127b3c3596da5da5b40cbfb4554cb101a2299635.zip
* sysdeps/alpha/__math.h (__copysign): Use attribute instead of old __CONSTVALUE by adding forward decl first with the const attribute.
* sysdeps/alpha/__math.h (__copysign): Use attribute instead of old __CONSTVALUE by adding forward decl first with the const attribute.
-rw-r--r--ChangeLog3
-rw-r--r--sysdeps/alpha/__math.h4
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index f56d429064..5db7a446fc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
Thu Mar 9 17:16:53 1995 Brendan Kehoe (brendan@zen.org)
+ * sysdeps/alpha/__math.h (__copysign): Use attribute instead of old
+ __CONSTVALUE by adding forward decl first with the const attribute.
+
* configure.in: Match `osf*', not `osf1*'.
* configure: Likewise.
* sysdeps/unix/bsd/osf: Renamed from `sysdeps/unix/bsd/osf1'.
diff --git a/sysdeps/alpha/__math.h b/sysdeps/alpha/__math.h
index b06f716c50..06e43dbf04 100644
--- a/sysdeps/alpha/__math.h
+++ b/sysdeps/alpha/__math.h
@@ -18,7 +18,9 @@ Cambridge, MA 02139, USA. */
#if defined (__GNUC__) && !defined (__NO_MATH_INLINES)
-extern __inline __CONSTVALUE double
+extern __inline double __copysign (double __x, double __y) __attribute__ ((__const__));
+
+extern __inline double
__copysign (double __x, double __y)
{
__asm ("cpys %1, %2, %0" : "=f" (__x) : "f" (__y), "f" (__x));