From 2c68584cdd5fdd2ff82292a47410a8602c7c35b5 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 29 Apr 1999 10:56:31 +0000 Subject: Update. 1999-04-29 Andreas Jaeger * resolv/res_hconf.c (_res_hconf_init): Remove unused variable end. --- ChangeLog | 4 ++++ linuxthreads/ChangeLog | 5 +++++ linuxthreads/sysdeps/sparc/sparc64/pt-machine.h | 6 +++--- resolv/res_hconf.c | 2 +- 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index f81dd744a5..16f0742db2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +1999-04-29 Andreas Jaeger + + * resolv/res_hconf.c (_res_hconf_init): Remove unused variable end. + 1999-04-28 Ulrich Drepper * argp/argp-ba.c (argp_program_bug_address): Don't initialize with 0. diff --git a/linuxthreads/ChangeLog b/linuxthreads/ChangeLog index a33730213b..9c45f6e746 100644 --- a/linuxthreads/ChangeLog +++ b/linuxthreads/ChangeLog @@ -1,3 +1,8 @@ +1999-04-29 Ulrich Drepper + + * sysdeps/sparc/sparc64/pt-machine.h (__compare_and_swap): cas + instruction does not allow memory element to use offset. + 1999-04-28 Ulrich Drepper * manager.c (pthread_allocate_stack): Optimize initialization of new diff --git a/linuxthreads/sysdeps/sparc/sparc64/pt-machine.h b/linuxthreads/sysdeps/sparc/sparc64/pt-machine.h index c4489b3d82..101b85516a 100644 --- a/linuxthreads/sysdeps/sparc/sparc64/pt-machine.h +++ b/linuxthreads/sysdeps/sparc/sparc64/pt-machine.h @@ -1,6 +1,6 @@ /* Machine-dependent pthreads configuration and inline functions. Sparc v9 version. - Copyright (C) 1997, 1998 Free Software Foundation, Inc. + Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Richard Henderson . @@ -63,9 +63,9 @@ __compare_and_swap (long int *p, long int oldval, long int newval) { long int readval; - __asm__ __volatile__ ("cas %1, %2, %0" + __asm__ __volatile__ ("cas [%4], %2, %0" : "=r"(readval), "=m"(*p) - : "r"(oldval), "m"(*p), "0"(newval)); + : "r"(oldval), "m"(*p), "r"(p), "0"(newval)); return readval == newval; } diff --git a/resolv/res_hconf.c b/resolv/res_hconf.c index ab49ccf9d6..56b9535d5e 100644 --- a/resolv/res_hconf.c +++ b/resolv/res_hconf.c @@ -313,7 +313,7 @@ _res_hconf_init (void) { const char *hconf_name; int line_num = 0; - char buf[256], *end, *envval; + char buf[256], *envval; FILE *fp; if (_res_hconf.initialized) -- cgit v1.2.3