[PATCH] libc_hidden_builtin_* for ffs
Jakub Jelinek
jakub@redhat.com
Mon Jul 5 17:10:00 GMT 2004
Hi!
This is a follow-up for the s390 .plt slot removal patch.
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.
--- libc/sysdeps/rs6000/ffs.c.jj 2001-07-06 06:56:02.000000000 +0200
+++ libc/sysdeps/rs6000/ffs.c 2004-07-05 09:00:52.095995998 +0200
@@ -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>
--- libc/sysdeps/alpha/alphaev67/ffs.S.jj 2001-07-06 06:55:47.000000000 +0200
+++ libc/sysdeps/alpha/alphaev67/ffs.S 2004-07-05 09:01:22.728610289 +0200
@@ -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)
--- libc/sysdeps/alpha/ffs.S.jj 2001-07-06 06:55:45.000000000 +0200
+++ libc/sysdeps/alpha/ffs.S 2004-07-05 09:01:35.806311016 +0200
@@ -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)
--- libc/sysdeps/s390/ffs.c.jj 2004-04-17 12:14:26.000000000 +0200
+++ libc/sysdeps/s390/ffs.c 2004-07-05 09:02:01.151854850 +0200
@@ -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)
--- libc/sysdeps/powerpc/ffs.c.jj 2004-04-13 10:42:55.000000000 +0200
+++ libc/sysdeps/powerpc/ffs.c 2004-07-05 09:02:13.574670713 +0200
@@ -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)
--- libc/sysdeps/i386/ffs.c.jj 2001-07-06 06:55:52.000000000 +0200
+++ libc/sysdeps/i386/ffs.c 2004-07-05 09:02:28.903975564 +0200
@@ -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)
--- libc/sysdeps/i386/i686/ffs.c.jj 2001-07-06 06:55:53.000000000 +0200
+++ libc/sysdeps/i386/i686/ffs.c 2004-07-05 09:02:47.277745146 +0200
@@ -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)
--- libc/sysdeps/m68k/ffs.c.jj 2001-07-06 06:55:55.000000000 +0200
+++ libc/sysdeps/m68k/ffs.c 2004-07-05 09:03:02.501068626 +0200
@@ -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)
--- libc/sysdeps/generic/ffs.c.jj 2001-07-06 06:55:49.000000000 +0200
+++ libc/sysdeps/generic/ffs.c 2004-07-05 09:03:18.445265364 +0200
@@ -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
--- libc/sysdeps/m88k/ffs.c.jj 2001-07-06 06:55:56.000000000 +0200
+++ libc/sysdeps/m88k/ffs.c 2004-07-05 09:03:28.242542833 +0200
@@ -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>
--- libc/sysdeps/am29k/ffs.c.jj 2001-07-06 06:55:47.000000000 +0200
+++ libc/sysdeps/am29k/ffs.c 2004-07-05 09:03:39.142626410 +0200
@@ -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>
--- libc/sysdeps/i960/ffs.c.jj 2001-07-06 06:55:54.000000000 +0200
+++ libc/sysdeps/i960/ffs.c 2004-07-05 09:03:48.763934818 +0200
@@ -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
--- libc/sysdeps/x86_64/ffs.c.jj 2001-09-19 12:12:08.000000000 +0200
+++ libc/sysdeps/x86_64/ffs.c 2004-07-05 09:04:03.252387494 +0200
@@ -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)
--- libc/include/string.h.jj 2004-06-11 14:45:47.000000000 +0200
+++ libc/include/string.h 2004-07-05 08:58:46.458085101 +0200
@@ -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
Jakub
More information about the Libc-hacker
mailing list