]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Mon, 5 Jul 2004 17:36:34 +0000 (17:36 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 5 Jul 2004 17:36:34 +0000 (17:36 +0000)
* include/string.h (ffs): Add libc_hidden_builtin_proto.
* sysdeps/rs6000/ffs.c (ffs): Add libc_hidden_builtin_def.
* sysdeps/alpha/alphaev67/ffs.S (ffs): Likewise.
* sysdeps/alpha/ffs.S (ffs): Likewise.
* sysdeps/s390/ffs.c (ffs): Likewise.
* sysdeps/powerpc/ffs.c (ffs): Likewise.
* sysdeps/i386/ffs.c (ffs): Likewise.
* sysdeps/i386/i686/ffs.c (ffs): Likewise.
* sysdeps/m68k/ffs.c (ffs): Likewise.
* sysdeps/generic/ffs.c (ffs): Likewise.
* sysdeps/m88k/ffs.c (ffs): Likewise.
* sysdeps/am29k/ffs.c (ffs): Likewise.
* sysdeps/i960/ffs.c (ffs): Likewise.
* sysdeps/x86_64/ffs.c (ffs): Likewise.

* Makerules (check-abi): Use diff -p -U 0 instead of diff -pu0.

21 files changed:
ChangeLog
Makerules
include/string.h
linuxthreads/ChangeLog
linuxthreads/sysdeps/ia64/pt-machine.h
linuxthreads/sysdeps/s390/pspinlock.c
nptl/ChangeLog
nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
sysdeps/alpha/alphaev67/ffs.S
sysdeps/alpha/ffs.S
sysdeps/am29k/ffs.c
sysdeps/generic/ffs.c
sysdeps/i386/ffs.c
sysdeps/i386/i686/ffs.c
sysdeps/i960/ffs.c
sysdeps/m68k/ffs.c
sysdeps/m88k/ffs.c
sysdeps/powerpc/ffs.c
sysdeps/rs6000/ffs.c
sysdeps/s390/ffs.c
sysdeps/x86_64/ffs.c

index ffa376d0e87168865e01872e4ffff3cf59542c4c..44484f0f857702777b6fb15e0f9c417fa2d45060 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,22 @@
 2004-07-05  Jakub Jelinek  <jakub@redhat.com>
 
+       * include/string.h (ffs): Add libc_hidden_builtin_proto.
+       * sysdeps/rs6000/ffs.c (ffs): Add libc_hidden_builtin_def.
+       * sysdeps/alpha/alphaev67/ffs.S (ffs): Likewise.
+       * sysdeps/alpha/ffs.S (ffs): Likewise.
+       * sysdeps/s390/ffs.c (ffs): Likewise.
+       * sysdeps/powerpc/ffs.c (ffs): Likewise.
+       * sysdeps/i386/ffs.c (ffs): Likewise.
+       * sysdeps/i386/i686/ffs.c (ffs): Likewise.
+       * sysdeps/m68k/ffs.c (ffs): Likewise.
+       * sysdeps/generic/ffs.c (ffs): Likewise.
+       * sysdeps/m88k/ffs.c (ffs): Likewise.
+       * sysdeps/am29k/ffs.c (ffs): Likewise.
+       * sysdeps/i960/ffs.c (ffs): Likewise.
+       * sysdeps/x86_64/ffs.c (ffs): Likewise.
+
+       * Makerules (check-abi): Use diff -p -U 0 instead of diff -pu0.
+
        * sysdeps/powerpc/novmx-longjmp.c (__libc_longjmp,
        __libc_siglongjmp): Remove symbol_version.
        * sysdeps/powerpc/longjmp.c (__libc_longjmp, __libc_siglongjmp):
index c29c3401e1fb7ee3c6513db2fcc4a41f42973833..01c98611696803224b222b545fe0858736edc424 100644 (file)
--- a/Makerules
+++ b/Makerules
@@ -1191,7 +1191,7 @@ define check-abi
        LC_ALL=C \
        $(AWK) -f $< -v 'config=$(check-abi-config)' \
               $(filter %.abilist,$^) \
-       | { diff -pu0 - $(filter %.symlist,$^) $(check-abi-warn) ; }
+       | { diff -p -U 0 - $(filter %.symlist,$^) $(check-abi-warn) ; }
 endef
 ifeq ($(enable-check-abi),warn)
 check-abi-warn = || echo '*** WARNING: $*.so failed ABI check'
index 702fca0d86ad258baf90672bde63f857d9e97f3f..7c05abf7d0192ec04d0b440abe216c129911ed86 100644 (file)
@@ -100,6 +100,7 @@ libc_hidden_builtin_proto (stpcpy)
 libc_hidden_builtin_proto (strrchr)
 libc_hidden_builtin_proto (strspn)
 libc_hidden_builtin_proto (strstr)
+libc_hidden_builtin_proto (ffs)
 
 # ifndef _ISOMAC
 #  ifndef index
index 69209f89144446797b7ad3c6f9275d8cecd91ff2..75dea5863812c120d9bf520ee669b26037fa903d 100644 (file)
@@ -1,3 +1,12 @@
+2004-07-05  Jakub Jelinek  <jakub@redhat.com>
+
+       * sysdeps/s390/pspinlock.c (__pthread_spin_lock,
+       __pthread_spin_trylock): Use constraint "m" instead of "0" for
+       futex.
+       * sysdeps/ia64/pt-machine.h (__compare_and_swap,
+       __compare_and_swap_with_release_semantic, testandset): Use
+       constraint "m" instead of "0" for futex.
+
 2004-06-29  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
 
        * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (CENABLE): Fix
index a04ae81e2ceb6ef7c2136c5c07efa9b3ce2b6957..6c5dfe93bb8e9c409a534ac833823a0c97901467 100644 (file)
@@ -89,7 +89,7 @@ __compare_and_swap (long int *p, long int oldval, long int newval)
        ("mov ar.ccv=%4;;\n\t"
        "cmpxchg8.acq %0=%1,%2,ar.ccv"
        : "=r" (readval), "=m" (__atomic_fool_gcc (p))
-       : "r"(newval), "1" (__atomic_fool_gcc (p)), "r" (oldval)
+       : "r"(newval), "m" (__atomic_fool_gcc (p)), "r" (oldval)
        : "memory");
   return readval == oldval;
 }
@@ -105,7 +105,7 @@ __compare_and_swap_with_release_semantics (long int *p,
        ("mov ar.ccv=%4;;\n\t"
        "cmpxchg8.rel %0=%1,%2,ar.ccv"
        : "=r" (readval), "=m" (__atomic_fool_gcc (p))
-       : "r"(newval), "1" (__atomic_fool_gcc (p)), "r" (oldval)
+       : "r"(newval), "m" (__atomic_fool_gcc (p)), "r" (oldval)
        : "memory");
   return readval == oldval;
 }
@@ -121,7 +121,7 @@ testandset (int *spinlock)
   __asm__ __volatile__(
        "xchg4 %0=%1,%2"
        : "=r"(ret), "=m"(__atomic_fool_gcc (spinlock))
-       : "r"(1), "1"(__atomic_fool_gcc (spinlock))
+       : "r"(1), "m"(__atomic_fool_gcc (spinlock))
        : "memory");
 
   return ret;
index 71ec6b2ae923542a075d0e593805d4af135e7f31..f963f35371e80e6b95c3aa05be23115b16b3da10 100644 (file)
@@ -1,5 +1,5 @@
 /* POSIX spinlock implementation.  S/390 version.
-   Copyright (C) 2000 Free Software Foundation, Inc.
+   Copyright (C) 2000, 2004 Free Software Foundation, Inc.
    Contributed by Martin Schwidefsky (schwidefsky@de.ibm.com).
    This file is part of the GNU C Library.
 
@@ -39,7 +39,7 @@ __pthread_spin_lock (pthread_spinlock_t *lock)
               "    cs    0,1,%1\n"
               "    jl    0b\n"
               : "=m" (*lock)
-              : "0" (*lock) : "0", "1", "cc" );
+              : "m" (*lock) : "0", "1", "cc" );
   return 0;
 }
 weak_alias (__pthread_spin_lock, pthread_spin_lock)
@@ -53,7 +53,7 @@ __pthread_spin_trylock (pthread_spinlock_t *lock)
               "    basr  1,0\n"
               "0:  cs    %1,1,%0"
               : "=m" (*lock), "=&d" (oldval)
-              : "0" (*lock) : "1", "cc" );
+              : "m" (*lock) : "1", "cc" );
   return oldval == 0 ? 0 : EBUSY;
 }
 weak_alias (__pthread_spin_trylock, pthread_spin_trylock)
index 5c4c43dbf35b5cb849b16aae8ab6f08b5e525ffc..ca178dffc5163847a3da9146905929027d00651c 100644 (file)
@@ -1,5 +1,8 @@
 2004-07-05  Jakub Jelinek  <jakub@redhat.com>
 
+       * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_unlock): Use
+       constraint "m" instead of "0" for futex.
+
        * shlib-versions: Add powerpc64-.*-linux.*.
 
 2004-07-04  Jakub Jelinek  <jakub@redhat.com>
index ca8d568038582466c711c80d4396cb9e93fb9a30..40c2518af6aa7ca0d3f84de20a3d2f3a874fb1ed 100644 (file)
@@ -272,7 +272,7 @@ extern int lll_unlock_wake_cb (int *__futex) attribute_hidden;
                              ".previous\n"                                   \
                              "2:"                                            \
                              : "=m" (futex), "=&D" (ignore)                  \
-                             : "0" (futex)                                   \
+                             : "m" (futex)                                   \
                              : "ax", "cx", "r11", "cc", "memory"); })
 #endif
 
index 6d87008988a774061461ec7cf67a88f196a568bb..fb1cdd932c426b3bdc86e5d8156ce9ddaebe580a 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000 Free Software Foundation, Inc.
+/* Copyright (C) 2000, 2004 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -48,3 +48,4 @@ ENTRY(__ffs)
 END(__ffs)
 
 weak_alias (__ffs, ffs)
+libc_hidden_builtin_def (ffs)
index c73d822841eaedf01f32247edf2b755c36be057e..5f2074ee7c427b9d2796aba7bc1be1782bc943a0 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997, 1998, 2004 Free Software Foundation, Inc.
    Contributed by David Mosberger (davidm@cs.arizona.edu).
    This file is part of the GNU C Library.
 
@@ -86,5 +86,6 @@ $ffsl..ng:
 END(ffsl)
 
 weak_alias (__ffs, ffs)
+libc_hidden_builtin_def (ffs)
 weak_extern (ffsl)
 weak_alias (ffsl, ffsll)
index a1a74445c7f1a55ed137e3c256ba1f4949788afa..6f080db4422fcbfaeb4d1ac7379a2461d40bf11c 100644 (file)
@@ -1,6 +1,6 @@
 /* ffs -- find first set bit in a word, counted from least significant end.
    For Amd 290x0.
-   Copyright (C) 1991, 1992, 1997 Free Software Foundation, Inc.
+   Copyright (C) 1991, 1992, 1997, 2004 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Torbjorn Granlund (tege@sics.se).
 
@@ -36,6 +36,7 @@ __ffs (x)
   return 32 - cnt;
 }
 weak_alias (__ffs, ffs)
+libc_hidden_builtin_def (ffs)
 
 #else
 #include <sysdeps/generic/ffs.c>
index b7ed839b901264d70cb8d462cf77c5be25905d1f..06a1542bd9fbe41ed334eaee8d49b53896579724 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1992, 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1992, 1997, 1998, 2004 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Torbjorn Granlund (tege@sics.se).
 
@@ -47,6 +47,7 @@ __ffs (i)
   return table[x >> a] + a;
 }
 weak_alias (__ffs, ffs)
+libc_hidden_builtin_def (ffs)
 
 #if ULONG_MAX == UINT_MAX
 #undef ffsl
index 7476de19634c2eaaa7e72329f64725176493ac1e..695d48be56301e4e8a9d73cffe8037bd012a164e 100644 (file)
@@ -1,7 +1,7 @@
 /* ffs -- find first set bit in a word, counted from least significant end.
    For Intel 80x86, x>=3.
    This file is part of the GNU C Library.
-   Copyright (C) 1991, 92, 93, 94, 97, 98 Free Software Foundation, Inc.
+   Copyright (C) 1991, 92, 93, 94, 97, 98, 2004 Free Software Foundation, Inc.
    Contributed by Torbjorn Granlund (tege@sics.se).
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -42,6 +42,7 @@ __ffs (x)
   return cnt;
 }
 weak_alias (__ffs, ffs)
+libc_hidden_builtin_def (ffs)
 #undef ffsl
 weak_alias (__ffs, ffsl)
 
index 6891045371286b8736610fa2dd3e9e73f68ea70f..fd7ef1a3d647a02168819e5f1b33c2b286c901fd 100644 (file)
@@ -1,7 +1,7 @@
 /* ffs -- find first set bit in a word, counted from least significant end.
    For Intel 80x86, x>=6.
    This file is part of the GNU C Library.
-   Copyright (C) 1991, 92, 93, 94, 97, 98 Free Software Foundation, Inc.
+   Copyright (C) 1991, 92, 93, 94, 97, 98, 2004 Free Software Foundation, Inc.
    Contributed by Ulrich Drepper <drepper@cygnus.com>.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -40,6 +40,7 @@ __ffs (x)
   return cnt + 1;
 }
 weak_alias (__ffs, ffs)
+libc_hidden_builtin_def (ffs)
 #undef ffsl
 weak_alias (__ffs, ffsl)
 
index 979696ec197bd53f7871db77551778f9b4eb175f..ad907a4ecbcd52783f2998b923a249d3146c5083 100644 (file)
@@ -1,7 +1,7 @@
 /* ffs -- find first set bit in a word, counted from least significant end.
    For i960 Core architecture
    This file is part of the GNU C Library.
-   Copyright (C) 1994, 1997 Free Software Foundation, Inc.
+   Copyright (C) 1994, 1997, 2004 Free Software Foundation, Inc.
    Contributed by Joel Sherrill (jsherril@redstone-emh2.army.mil),
    On-Line Applications Research Corporation.
 
@@ -37,6 +37,7 @@ __ffs (x)
   return cnt;
 }
 weak_alias (__ffs, ffs)
+libc_hidden_builtin_def (ffs)
 
 #else
 
index a29612133376013bce5a26a4a8f8fe3fd88eef53..189936b94f847cc8db5349d24e435c4c9374fb29 100644 (file)
@@ -1,7 +1,7 @@
 /* ffs -- find first set bit in a word, counted from least significant end.
    For mc68020, mc68030, mc68040.
    This file is part of the GNU C Library.
-   Copyright (C) 1991, 1992, 1997, 1998 Free Software Foundation, Inc.
+   Copyright (C) 1991, 1992, 1997, 1998, 2004 Free Software Foundation, Inc.
    Contributed by Torbjorn Granlund (tege@sics.se).
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -37,6 +37,7 @@ __ffs (x)
   return 32 - cnt;
 }
 weak_alias (__ffs, ffs)
+libc_hidden_builtin_def (ffs)
 #undef ffsl
 weak_alias (__ffs, ffsl)
 
index fe78ebc154265068a973833246d3840a0f913d49..b7db70fd3b42b18012c5bccb34944826e18a9388 100644 (file)
@@ -1,7 +1,7 @@
 /* ffs -- find first set bit in a word, counted from least significant end.
    For Motorola 88000.
    This file is part of the GNU C Library.
-   Copyright (C) 1991, 1992, 1997 Free Software Foundation, Inc.
+   Copyright (C) 1991, 1992, 1997, 2004 Free Software Foundation, Inc.
    Contributed by Torbjorn Granlund (tege@sics.se).
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -38,6 +38,7 @@ __ffs (x)
   return cnt + 1;
 }
 weak_alias (__ffs, ffs)
+libc_hidden_builtin_def (ffs)
 
 #else
 #include <sysdeps/generic/ffs.c>
index b2b7b7c0719f3c060bd50687f63350e1d64e7ee9..f45b5ea8e2f233730e17b79d80f978a4fabe957b 100644 (file)
@@ -36,6 +36,7 @@ __ffs (int x)
   return 32 - cnt;
 }
 weak_alias (__ffs, ffs)
+libc_hidden_builtin_def (ffs)
 #if ULONG_MAX == UINT_MAX
 #undef ffsl
 weak_alias (__ffs, ffsl)
index 802bbc8c31efa4adeaf916991e9c784d297ea0d0..4d0172704473ee9945273c1792f07161b14b0acb 100644 (file)
@@ -1,6 +1,6 @@
 /* ffs -- find first set bit in a word, counted from least significant end.
    For IBM rs6000.
-   Copyright (C) 1991, 1992, 1997 Free Software Foundation, Inc.
+   Copyright (C) 1991, 1992, 1997, 2004 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Torbjorn Granlund (tege@sics.se).
 
@@ -35,6 +35,7 @@ __ffs (x)
   return 32 - cnt;
 }
 weak_alias (__ffs, ffs)
+libc_hidden_builtin_def (ffs)
 
 #else
 #include <sysdeps/generic/ffs.c>
index dfd724e11bf887b8f9f85b85e4b4692c38c23585..aa17233dbe02cdad49c356c776fe5da6c4aaf47d 100644 (file)
@@ -64,6 +64,7 @@ __ffs (x)
 }
 
 weak_alias (__ffs, ffs)
+libc_hidden_builtin_def (ffs)
 #if ULONG_MAX == UINT_MAX
 #undef ffsl
 weak_alias (__ffs, ffsl)
index 791e6ead70b195da3ea45c6cc1bf154e927630c2..b7e512c05c6fe1aa0a20fe8648be8caf851efba3 100644 (file)
@@ -1,7 +1,7 @@
 /* ffs -- find first set bit in a word, counted from least significant end.
    For AMD x86-64.
    This file is part of the GNU C Library.
-   Copyright (C) 1991,92,93,94,97,98,2001 Free Software Foundation, Inc.
+   Copyright (C) 1991,92,93,94,97,98,2001,2004 Free Software Foundation, Inc.
    Contributed by Ulrich Drepper <drepper@cygnus.com>.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -36,3 +36,4 @@ __ffs (int x)
   return cnt + 1;
 }
 weak_alias (__ffs, ffs)
+libc_hidden_builtin_def (ffs)