[kaffe] CVS kaffe (dalibor): Fix for string concatenation on alpha
Kaffe CVS
cvs-commits at kaffe.org
Tue Mar 9 09:18:01 PST 2004
PatchSet 4494
Date: 2004/03/09 16:59:44
Author: dalibor
Branch: HEAD
Tag: (none)
Log:
Fix for string concatenation on alpha
2004-03-09 Dalibor Topic <robilad at kaffe.org>
Merged in a fix from NetBSD, PR pkg/22437.
2003-09-16 Jonathan Perkin <jonathan at perkin.org.uk>
* config/alpha/trampolines.c:
Fixed string concatenation.
Members:
ChangeLog:1.2074->1.2075
config/alpha/trampolines.c:1.7->1.8
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2074 kaffe/ChangeLog:1.2075
--- kaffe/ChangeLog:1.2074 Tue Mar 9 15:29:25 2004
+++ kaffe/ChangeLog Tue Mar 9 16:59:44 2004
@@ -1,5 +1,14 @@
2004-03-09 Dalibor Topic <robilad at kaffe.org>
+ Merged in a fix from NetBSD, PR pkg/22437.
+
+ 2003-09-16 Jonathan Perkin <jonathan at perkin.org.uk>
+
+ * config/alpha/trampolines.c:
+ Fixed string concatenation.
+
+2004-03-09 Dalibor Topic <robilad at kaffe.org>
+
* config/s390/sysdepCallMethod.h:
Fixed typo. Fixes a bug in Debian's BTS:
#227745: kaffe FTBFS on buildd for s390.
Index: kaffe/config/alpha/trampolines.c
diff -u kaffe/config/alpha/trampolines.c:1.7 kaffe/config/alpha/trampolines.c:1.8
--- kaffe/config/alpha/trampolines.c:1.7 Mon Jun 18 10:39:22 2001
+++ kaffe/config/alpha/trampolines.c Tue Mar 9 16:59:45 2004
@@ -32,11 +32,11 @@
#if !defined(START_ASM_FUNC)
#define START_ASM_FUNC(FUNC) \
- ".text \n\
- .align 3 \n\
- .globl " C_FUNC_NAME(FUNC) " \n\
- .ent " C_FUNC_NAME(FUNC) " \n\
-" C_FUNC_NAME(FUNC) ":"
+ ".text \n"\
+ ".align 3 \n"\
+ ".globl " C_FUNC_NAME(FUNC) " \n"\
+ ".ent " C_FUNC_NAME(FUNC) " \n"\
+ C_FUNC_NAME(FUNC) ":"
#endif
#if !defined(END_ASM_FUNC)
#define END_ASM_FUNC(FUNC) \
@@ -44,59 +44,59 @@
#endif
asm(
- START_ASM_FUNC(alpha_do_fixup_trampoline) " \n\
- .frame $30,14*8,$26,0 \n\
- .mask 0x04000000,-14*8 \n\
- ldgp $29,0($27) \n\
- lda $30,-14*8($30) # reserve 14 on stack \n\
- \n\
- # Save frame registers \n\
- stq $26,0*8($30) # ra \n\
- .prologue 1 \n\
- \n\
- # Save register arguments as local variables \n\
- stq $16,1*8($30) # a0 \n\
- stq $17,2*8($30) # a1 \n\
- stq $18,3*8($30) # a2 \n\
- stq $19,4*8($30) # a3 \n\
- stq $20,5*8($30) # a4 \n\
- stq $21,6*8($30) # a5 \n\
- stt $f16,7*8($30) \n\
- stt $f17,8*8($30) \n\
- stt $f18,9*8($30) \n\
- stt $f19,10*8($30) \n\
- stt $f20,11*8($30) \n\
- stt $f21,12*8($30) \n\
- \n\
- # Compute the address of methodTrampoline.method \n\
- lda $16,8($1) \n\
- # Call C to do the fixup \n\
- jsr $26," C_FUNC_NAME(soft_fixup_trampoline) " \n\
- ldgp $29,0($26) \n\
- mov $0,$27 \n\
- \n\
- # Reload register arguments \n\
- ldq $16,1*8($30) # a0 \n\
- ldq $17,2*8($30) # a1 \n\
- ldq $18,3*8($30) # a2 \n\
- ldq $19,4*8($30) # a3 \n\
- ldq $20,5*8($30) # a4 \n\
- ldq $21,6*8($30) # a5 \n\
- ldt $f16,7*8($30) \n\
- ldt $f17,8*8($30) \n\
- ldt $f18,9*8($30) \n\
- ldt $f19,10*8($30) \n\
- ldt $f20,11*8($30) \n\
- ldt $f21,12*8($30) \n\
- \n\
- ldq $26,0*8($30) # ra \n\
- lda $30,14*8($30) # release stack \n\
- \n\
- # Jump to translated method \n\
- jmp $31,($27),0 \n\
- \n\
- # for __alpha_nextFrame() \n\
- ret $31,($26),1 \n"
+ START_ASM_FUNC(alpha_do_fixup_trampoline) " \n"
+" .frame $30,14*8,$26,0 \n"
+" .mask 0x04000000,-14*8 \n"
+" ldgp $29,0($27) \n"
+" lda $30,-14*8($30) # reserve 14 on stack \n"
+" \n"
+" # Save frame registers \n"
+" stq $26,0*8($30) # ra \n"
+" .prologue 1 \n"
+" \n"
+" # Save register arguments as local variables \n"
+" stq $16,1*8($30) # a0 \n"
+" stq $17,2*8($30) # a1 \n"
+" stq $18,3*8($30) # a2 \n"
+" stq $19,4*8($30) # a3 \n"
+" stq $20,5*8($30) # a4 \n"
+" stq $21,6*8($30) # a5 \n"
+" stt $f16,7*8($30) \n"
+" stt $f17,8*8($30) \n"
+" stt $f18,9*8($30) \n"
+" stt $f19,10*8($30) \n"
+" stt $f20,11*8($30) \n"
+" stt $f21,12*8($30) \n"
+" \n"
+" # Compute the address of methodTrampoline.method \n"
+" lda $16,8($1) \n"
+" # Call C to do the fixup \n"
+" jsr $26," C_FUNC_NAME(soft_fixup_trampoline) " \n"
+" ldgp $29,0($26) \n"
+" mov $0,$27 \n"
+" \n"
+" # Reload register arguments \n"
+" ldq $16,1*8($30) # a0 \n"
+" ldq $17,2*8($30) # a1 \n"
+" ldq $18,3*8($30) # a2 \n"
+" ldq $19,4*8($30) # a3 \n"
+" ldq $20,5*8($30) # a4 \n"
+" ldq $21,6*8($30) # a5 \n"
+" ldt $f16,7*8($30) \n"
+" ldt $f17,8*8($30) \n"
+" ldt $f18,9*8($30) \n"
+" ldt $f19,10*8($30) \n"
+" ldt $f20,11*8($30) \n"
+" ldt $f21,12*8($30) \n"
+" \n"
+" ldq $26,0*8($30) # ra \n"
+" lda $30,14*8($30) # release stack \n"
+" \n"
+" # Jump to translated method \n"
+" jmp $31,($27),0 \n"
+" \n"
+" # for __alpha_nextFrame() \n"
+" ret $31,($26),1 \n"
END_ASM_FUNC(alpha_do_fixup_trampoline)
);
More information about the kaffe
mailing list