pkgsrc/devel/boehm-gc/patches/patch-ae
wiz 937e1d7ac7 Avoid duplicate symbol definition for GC_push_regs in
sparc_netbsd_mach_dep.s and mach_dep.c.

From PR 42634 by Bertrand Joel.

Bump PKGREVISION.
2010-01-20 10:01:19 +00:00

20 lines
553 B
Text

$NetBSD: patch-ae,v 1.9 2010/01/20 10:01:19 wiz Exp $
--- mach_dep.c.orig 2007-08-13 21:49:11.000000000 +0000
+++ mach_dep.c
@@ -78,6 +78,7 @@ asm static void PushMacRegisters()
#if defined(USE_ASM_PUSH_REGS)
# define HAVE_PUSH_REGS
#else /* No asm implementation */
+#if !defined(SPARC)
void GC_push_regs()
{
# if defined(M68K) && defined(AMIGA)
@@ -150,6 +151,7 @@ void GC_push_regs()
# endif /* __MWERKS__ */
# endif /* MACOS */
}
+#endif /* !SPARC */
#endif /* !USE_ASM_PUSH_REGS */
#if defined(HAVE_PUSH_REGS) && defined(THREADS)