diff options
author | monty@butch. <> | 2002-11-07 03:54:00 +0200 |
---|---|---|
committer | monty@butch. <> | 2002-11-07 03:54:00 +0200 |
commit | a2bdf9265f3a0874f8d58bec690da4af07bca4cb (patch) | |
tree | 2cbd26b72e2ab9ce6d8a7e6cf96fab865fec9834 /strings/strappend-sparc.s | |
parent | 5333cfb4298899c0985fc07f229c99866ef656cc (diff) | |
download | mariadb-git-a2bdf9265f3a0874f8d58bec690da4af07bca4cb.tar.gz |
Portability fixes for Fortre C++ 5.0 (on Sun) in 32 and 64 bit modes.
Diffstat (limited to 'strings/strappend-sparc.s')
-rw-r--r-- | strings/strappend-sparc.s | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/strings/strappend-sparc.s b/strings/strappend-sparc.s index 69bb555aa47..30b621c3fce 100644 --- a/strings/strappend-sparc.s +++ b/strings/strappend-sparc.s @@ -22,28 +22,28 @@ .type strappend,#function .proc 020 strappend: - add %o0, %o1, %g3 ! g3 = endpos - ldsb [%o0], %g2 + add %o0, %o1, %o3 ! o3 = endpos + ldsb [%o0], %o4 .loop1: add %o0, 1, %o0 ! find end of str - cmp %g2, 0 + cmp %o4, 0 bne,a .loop1 - ldsb [%o0], %g2 + ldsb [%o0], %o4 sub %o0, 1, %o0 - cmp %o0, %g3 + cmp %o0, %o3 bgeu .end nop stb %o2, [%o0] .loop2: add %o0, 1, %o0 - cmp %o0, %g3 + cmp %o0, %o3 blu,a .loop2 stb %o2, [%o0] .end: retl - stb %g0, [%g3] + stb %g0, [%o3] .strappend_end: .size strappend,.strappend_end-strappend .ident "Matt Wagner & Monty" |