summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-06-19 15:42:00 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-06-19 15:42:00 +0000
commitef8e0b4dffaec6789a1582d841ddb563cac2115d (patch)
tree13747312aeb11e2f8c8569fa01145dd167fefb22 /gc.c
parent37af62f08390813dd2be964d5da22d34a841d35d (diff)
* gc.c (rb_setjmp): avoid GCC 3.0 warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1532 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/gc.c b/gc.c
index 912f71c..cfe981d 100644
--- a/gc.c
+++ b/gc.c
@@ -894,11 +894,11 @@ rb_gc_mark_frame(frame)
#if defined(__human68k__) || defined(DJGPP)
#if defined(__human68k__)
typedef unsigned long rb_jmp_buf[8];
-__asm__ (".even
-_rb_setjmp:
- move.l 4(sp),a0
- movem.l d3-d7/a3-a5,(a0)
- moveq.l #0,d0
+__asm__ (".even\n\
+_rb_setjmp:\n\
+ move.l 4(sp),a0\n\
+ movem.l d3-d7/a3-a5,(a0)\n\
+ moveq.l #0,d0\n\
rts");
#ifdef setjmp
#undef setjmp
@@ -906,19 +906,19 @@ _rb_setjmp:
#else
#if defined(DJGPP)
typedef unsigned long rb_jmp_buf[6];
-__asm__ (".align 4
-_rb_setjmp:
- pushl %ebp
- movl %esp,%ebp
- movl 8(%ebp),%ebp
- movl %eax,(%ebp)
- movl %ebx,4(%ebp)
- movl %ecx,8(%ebp)
- movl %edx,12(%ebp)
- movl %esi,16(%ebp)
- movl %edi,20(%ebp)
- popl %ebp
- xorl %eax,%eax
+__asm__ (".align 4\n\
+_rb_setjmp:\n\
+ pushl %ebp\n\
+ movl %esp,%ebp\n\
+ movl 8(%ebp),%ebp\n\
+ movl %eax,(%ebp)\n\
+ movl %ebx,4(%ebp)\n\
+ movl %ecx,8(%ebp)\n\
+ movl %edx,12(%ebp)\n\
+ movl %esi,16(%ebp)\n\
+ movl %edi,20(%ebp)\n\
+ popl %ebp\n\
+ xorl %eax,%eax\n\
ret");
#endif
#endif