diff options
author | Andreas Jaeger <aj@suse.de> | 2004-01-23 13:17:52 +0000 |
---|---|---|
committer | Andreas Jaeger <aj@suse.de> | 2004-01-23 13:17:52 +0000 |
commit | 1f81acbcbc5f0a2641f380ecc15e2358784b2001 (patch) | |
tree | e29270dbff880d4a3be2347d61e0e00c7ff72ca5 | |
parent | 4ef0929571b55d93f88fa42d167804938af37fad (diff) | |
download | glibc-1f81acbcbc5f0a2641f380ecc15e2358784b2001.tar.gz glibc-1f81acbcbc5f0a2641f380ecc15e2358784b2001.tar.xz glibc-1f81acbcbc5f0a2641f380ecc15e2358784b2001.zip |
* sysdeps/ieee754/dbl-64/e_pow.c (log2): Rename to my_log2 to
avoid warnings for builtin function log2. 2004-01-22 Andreas Jaeger <aj@suse.de>
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | linuxthreads/ChangeLog | 5 | ||||
-rw-r--r-- | linuxthreads/spinlock.c | 4 | ||||
-rw-r--r-- | sysdeps/ieee754/dbl-64/e_pow.c | 10 |
4 files changed, 17 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog index 854dcef7d5..ec086db1c2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2004-01-22 Andreas Jaeger <aj@suse.de> + * sysdeps/ieee754/dbl-64/e_pow.c (log2): Rename to my_log2 to + avoid warnings for builtin function log2. + +2004-01-22 Andreas Jaeger <aj@suse.de> + * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Add proper unwind information. diff --git a/linuxthreads/ChangeLog b/linuxthreads/ChangeLog index 70558eb72e..827fdd9f97 100644 --- a/linuxthreads/ChangeLog +++ b/linuxthreads/ChangeLog @@ -1,3 +1,8 @@ +2004-01-22 Andreas Jaeger <aj@suse.de> + + * spinlock.c (__pthread_lock): Fix contraint to avoid warning. + (__pthread_release): Likewise. + 2004-01-16 Richard Henderson <rth@redhat.com> * attr.c: Include ldsodefs.h. diff --git a/linuxthreads/spinlock.c b/linuxthreads/spinlock.c index 47107bf9ee..08fff082ef 100644 --- a/linuxthreads/spinlock.c +++ b/linuxthreads/spinlock.c @@ -30,7 +30,7 @@ static inline void __pthread_release(int * spinlock) { WRITE_MEMORY_BARRIER(); *spinlock = __LT_SPINLOCK_INIT; - __asm __volatile ("" : "=m" (*spinlock) : "0" (*spinlock)); + __asm __volatile ("" : "=m" (*spinlock) : "m" (*spinlock)); } @@ -106,7 +106,7 @@ void internal_function __pthread_lock(struct _pthread_fastlock * lock, #ifdef BUSY_WAIT_NOP BUSY_WAIT_NOP; #endif - __asm __volatile ("" : "=m" (lock->__status) : "0" (lock->__status)); + __asm __volatile ("" : "=m" (lock->__status) : "m" (lock->__status)); } lock->__spinlock += (spin_count - lock->__spinlock) / 8; diff --git a/sysdeps/ieee754/dbl-64/e_pow.c b/sysdeps/ieee754/dbl-64/e_pow.c index e4be5c6ebf..d9bd8b479f 100644 --- a/sysdeps/ieee754/dbl-64/e_pow.c +++ b/sysdeps/ieee754/dbl-64/e_pow.c @@ -1,7 +1,7 @@ /* * IBM Accurate Mathematical Library * written by International Business Machines Corp. - * Copyright (C) 2001, 2002 Free Software Foundation + * Copyright (C) 2001, 2002, 2004 Free Software Foundation * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by @@ -22,7 +22,7 @@ /* */ /* FUNCTIONS: upow */ /* power1 */ -/* log2 */ +/* my_log2 */ /* log1 */ /* checkint */ /* FILES NEEDED: dla.h endian.h mpa.h mydefs.h */ @@ -46,7 +46,7 @@ double __exp1(double x, double xx, double error); static double log1(double x, double *delta, double *error); -static double log2(double x, double *delta, double *error); +static double my_log2(double x, double *delta, double *error); double __slowpow(double x, double y,double z); static double power1(double x, double y); static int checkint(double x); @@ -159,7 +159,7 @@ double __ieee754_pow(double x, double y) { /**************************************************************************/ static double power1(double x, double y) { double z,a,aa,error, t,a1,a2,y1,y2; - z = log2(x,&aa,&error); + z = my_log2(x,&aa,&error); t = y*134217729.0; y1 = t - (t-y); y2 = y - y1; @@ -272,7 +272,7 @@ static double log1(double x, double *delta, double *error) { /* Computing log(x)(x is left argument).The result is return double + delta.*/ /* The result is bounded by error (right argument) */ /****************************************************************************/ -static double log2(double x, double *delta, double *error) { +static double my_log2(double x, double *delta, double *error) { int i,j,m; #if 0 int n; |