summaryrefslogtreecommitdiff
path: root/strings/strstr-sparc.s
diff options
context:
space:
mode:
authorunknown <tim@threads.polyesthetic.msg>2000-11-06 12:23:19 -0500
committerunknown <tim@threads.polyesthetic.msg>2000-11-06 12:23:19 -0500
commita948b3d66b8cc70dc3a163e10d46fb87300cb914 (patch)
tree6adb6499e148792b64f8bcf0177271789a3e4bfb /strings/strstr-sparc.s
parent6cffc526b58e25509b1ef8665864e0c753aab279 (diff)
downloadmariadb-git-a948b3d66b8cc70dc3a163e10d46fb87300cb914.tar.gz
Changes from teg@redhat.com - subtle bugs that only show up under
certain circumstances. include/global.h: Fix for gcc with strict aliasing. Thanks to teg@redhat.com for the patch. strings/strstr-sparc.s: %g6 -> %o2 %g6 and %g7 are reserved for OS use by Sun's ABI. Thanks to teg@redhat.com for the patch.
Diffstat (limited to 'strings/strstr-sparc.s')
-rw-r--r--strings/strstr-sparc.s4
1 files changed, 2 insertions, 2 deletions
diff --git a/strings/strstr-sparc.s b/strings/strstr-sparc.s
index d0d3659b1f8..141c3aa4209 100644
--- a/strings/strstr-sparc.s
+++ b/strings/strstr-sparc.s
@@ -31,12 +31,12 @@ strstr:
! if (*str++ == *search) {
! i=(char*) str; j=(char*) search+1;
- ldsb [%o1],%g6 ! g6= First char of search
+ ldsb [%o1],%o2 ! g6= First char of search
.top:
ldsb [%o0],%g3 ! g3= First char of rest of str
cmp %g3,0
be .abort ! Found end null ;
- cmp %g3,%g6
+ cmp %g3,%o2
bne .top
add %o0,1,%o0