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 Don't export __ffstab, it's used only i...



details:   https://anonhg.NetBSD.org/src/rev/b17d509d6acb
branches:  trunk
changeset: 750186:b17d509d6acb
user:      pooka <pooka%NetBSD.org@localhost>
date:      Sat Dec 19 19:09:48 2009 +0000

description:
Don't export __ffstab, it's used only in this routine.  This gets
rid of one of those evil common symbols in the __ namespace.

reviewed by martin

diffstat:

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

diffs (78 lines):

diff -r dcecef5e2a86 -r b17d509d6acb common/lib/libc/arch/sparc/string/ffs.S
--- a/common/lib/libc/arch/sparc/string/ffs.S   Sat Dec 19 18:25:54 2009 +0000
+++ b/common/lib/libc/arch/sparc/string/ffs.S   Sat Dec 19 19:09:48 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ffs.S,v 1.1 2005/12/20 19:28:50 christos Exp $ */
+/*     $NetBSD: ffs.S,v 1.2 2009/12/19 19:09:48 pooka 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.1 2005/12/20 19:28:50 christos Exp $")
+       RCSID("$NetBSD: ffs.S,v 1.2 2009/12/19 19:09:48 pooka Exp $")
 #endif
 #endif  /* LIBC_SCCS and not lint */
 
@@ -60,9 +60,9 @@
  */
 ENTRY(ffs)
 #ifdef PIC
-       PICCY_SET(_C_LABEL(__ffstab), %o2, %o3)
+       PICCY_SET(ffstab, %o2, %o3)
 #else
-       set     _C_LABEL(__ffstab), %o2
+       set     ffstab, %o2
 #endif
        andcc   %o0, 0xff, %o1  ! get low byte
        be,a    1f              ! try again if 0
@@ -94,7 +94,7 @@
        retl
         add    %o0, 24, %o0
 
-RODATA(__ffstab)
+ffstab:
        .byte   -24,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1 /* 00-0f */
        .byte   5,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1 /* 10-1f */
        .byte   6,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1 /* 20-2f */
diff -r dcecef5e2a86 -r b17d509d6acb common/lib/libc/arch/sparc64/string/ffs.S
--- a/common/lib/libc/arch/sparc64/string/ffs.S Sat Dec 19 18:25:54 2009 +0000
+++ b/common/lib/libc/arch/sparc64/string/ffs.S Sat Dec 19 19:09:48 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ffs.S,v 1.1 2005/12/20 19:28:50 christos Exp $ */
+/*     $NetBSD: ffs.S,v 1.2 2009/12/19 19:09:48 pooka 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.1 2005/12/20 19:28:50 christos Exp $")
+       RCSID("$NetBSD: ffs.S,v 1.2 2009/12/19 19:09:48 pooka Exp $")
 #endif
 #endif  /* LIBC_SCCS and not lint */
 
@@ -82,9 +82,9 @@
  */
 ENTRY(ffs)
 #ifdef PIC
-       PICCY_SET(_C_LABEL(__ffstab), %o2, %o3)
+       PICCY_SET(ffstab, %o2, %o3)
 #else
-       set     _C_LABEL(__ffstab), %o2
+       set     ffstab, %o2
 #endif
        andcc   %o0, 0xff, %o1  ! get low byte
        be,a    1f              ! try again if 0
@@ -116,7 +116,7 @@
        retl
         add    %o0, 24, %o0
 
-RODATA(__ffstab)
+ffstab:
        .byte   -24,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1 /* 00-0f */
        .byte   5,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1 /* 10-1f */
        .byte   6,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1 /* 20-2f */



Home | Main Index | Thread Index | Old Index