summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2009-11-01 20:04:31 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2009-11-01 20:04:31 +0000
commit65e55ba5363ddb8414996c65b83ecc2f517bac54 (patch)
treecbad3276ef758b644531d3679761b3e26b3067fb /lib
parent21b530064debd18b8ff2bc0d3cec9ac1a11ae3c5 (diff)
Use a local numeric label to branch to the start of the function, instead of
referencing it by name; silences a linker warning; no functional change.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/arch/mips64/string/index.S5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/arch/mips64/string/index.S b/lib/libc/arch/mips64/string/index.S
index 3ecc90b5243..e8b87a2f05d 100644
--- a/lib/libc/arch/mips64/string/index.S
+++ b/lib/libc/arch/mips64/string/index.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: index.S,v 1.3 2005/08/07 16:40:15 espie Exp $ */
+/* $OpenBSD: index.S,v 1.4 2009/11/01 20:04:30 miod Exp $ */
/*-
* Copyright (c) 1991, 1993
* The Regents of the University of California. All rights reserved.
@@ -35,10 +35,11 @@
LEAF(index, 0)
.set reorder
+0:
lbu a2, 0(a0) # get a byte
addu a0, a0, 1
beq a2, a1, fnd
- bne a2, zero, index
+ bne a2, zero, 0b
notfnd:
move v0, zero
j ra