* 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.
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):
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'
libc_hidden_builtin_proto (strrchr)
libc_hidden_builtin_proto (strspn)
libc_hidden_builtin_proto (strstr)
+libc_hidden_builtin_proto (ffs)
# ifndef _ISOMAC
# ifndef index
+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
("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;
}
("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;
}
__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;
/* 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.
" 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)
" 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)
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>
".previous\n" \
"2:" \
: "=m" (futex), "=&D" (ignore) \
- : "0" (futex) \
+ : "m" (futex) \
: "ax", "cx", "r11", "cc", "memory"); })
#endif
-/* 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
END(__ffs)
weak_alias (__ffs, ffs)
+libc_hidden_builtin_def (ffs)
-/* 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.
END(ffsl)
weak_alias (__ffs, ffs)
+libc_hidden_builtin_def (ffs)
weak_extern (ffsl)
weak_alias (ffsl, ffsll)
/* 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).
return 32 - cnt;
}
weak_alias (__ffs, ffs)
+libc_hidden_builtin_def (ffs)
#else
#include <sysdeps/generic/ffs.c>
-/* 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).
return table[x >> a] + a;
}
weak_alias (__ffs, ffs)
+libc_hidden_builtin_def (ffs)
#if ULONG_MAX == UINT_MAX
#undef ffsl
/* 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
return cnt;
}
weak_alias (__ffs, ffs)
+libc_hidden_builtin_def (ffs)
#undef ffsl
weak_alias (__ffs, ffsl)
/* 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
return cnt + 1;
}
weak_alias (__ffs, ffs)
+libc_hidden_builtin_def (ffs)
#undef ffsl
weak_alias (__ffs, ffsl)
/* 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.
return cnt;
}
weak_alias (__ffs, ffs)
+libc_hidden_builtin_def (ffs)
#else
/* 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
return 32 - cnt;
}
weak_alias (__ffs, ffs)
+libc_hidden_builtin_def (ffs)
#undef ffsl
weak_alias (__ffs, ffsl)
/* 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
return cnt + 1;
}
weak_alias (__ffs, ffs)
+libc_hidden_builtin_def (ffs)
#else
#include <sysdeps/generic/ffs.c>
return 32 - cnt;
}
weak_alias (__ffs, ffs)
+libc_hidden_builtin_def (ffs)
#if ULONG_MAX == UINT_MAX
#undef ffsl
weak_alias (__ffs, ffsl)
/* 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).
return 32 - cnt;
}
weak_alias (__ffs, ffs)
+libc_hidden_builtin_def (ffs)
#else
#include <sysdeps/generic/ffs.c>
}
weak_alias (__ffs, ffs)
+libc_hidden_builtin_def (ffs)
#if ULONG_MAX == UINT_MAX
#undef ffsl
weak_alias (__ffs, ffsl)
/* 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
return cnt + 1;
}
weak_alias (__ffs, ffs)
+libc_hidden_builtin_def (ffs)