Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/common/lib/libc/arch/sparc/string add a weak alias from ffs ...



details:   https://anonhg.NetBSD.org/src/rev/8ebe5e8b3a42
branches:  trunk
changeset: 766926:8ebe5e8b3a42
user:      mrg <mrg%NetBSD.org@localhost>
date:      Mon Jul 04 11:18:23 2011 +0000

description:
add a weak alias from ffs to __ffssi2.  sparc dynamic works with gcc 4.5 now.

diffstat:

 common/lib/libc/arch/sparc/string/ffs.S |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 78684a9f0ab0 -r 8ebe5e8b3a42 common/lib/libc/arch/sparc/string/ffs.S
--- a/common/lib/libc/arch/sparc/string/ffs.S   Mon Jul 04 11:01:40 2011 +0000
+++ b/common/lib/libc/arch/sparc/string/ffs.S   Mon Jul 04 11:18:23 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ffs.S,v 1.2 2009/12/19 19:09:48 pooka Exp $    */
+/*     $NetBSD: ffs.S,v 1.3 2011/07/04 11:18:23 mrg Exp $      */
 
 /*
  * Copyright (c) 1992, 1993
@@ -40,7 +40,7 @@
 #if 0
        .asciz "@(#)ffs.s       8.1 (Berkeley) 6/4/93"
 #else
-       RCSID("$NetBSD: ffs.S,v 1.2 2009/12/19 19:09:48 pooka Exp $")
+       RCSID("$NetBSD: ffs.S,v 1.3 2011/07/04 11:18:23 mrg Exp $")
 #endif
 #endif  /* LIBC_SCCS and not lint */
 
@@ -58,6 +58,7 @@
  * one, we just return the table value plus 24.  This means
  * that ffstab[0] must be -24 so that ffs(0) will return 0.
  */
+WEAK_ALIAS(__ffssi2,ffs)
 ENTRY(ffs)
 #ifdef PIC
        PICCY_SET(ffstab, %o2, %o3)



Home | Main Index | Thread Index | Old Index