openbsd-ports/devel/boehm-gc/patches/patch-mach_dep_c
todd 33248e4bbc thanks to drahn@ update to gc6.1 (misc bugfixes, I've heard good things, etc,
best of all, you can drop this in on shared archs as a replacement for 6.0,
I've tested opencm and w3m)
2002-10-26 13:25:26 +00:00

13 lines
463 B
Plaintext

$OpenBSD: patch-mach_dep_c,v 1.2 2002/10/26 13:25:26 todd Exp $
--- mach_dep.c.orig Wed Jul 31 17:12:03 2002
+++ mach_dep.c Fri Oct 25 11:53:09 2002
@@ -446,7 +446,7 @@ ptr_t cold_gc_frame;
/* the stack. Return sp. */
# ifdef SPARC
asm(" .seg \"text\"");
-# ifdef SVR4
+# if defined(SVR4) || defined(__ELF__)
asm(" .globl GC_save_regs_in_stack");
asm("GC_save_regs_in_stack:");
asm(" .type GC_save_regs_in_stack,#function");