--- gc-7.0/configure.ac.orig 2008-01-28 13:43:25.000000000 +0000 +++ gc-7.0/configure.ac 2008-01-28 13:44:30.000000000 +0000 @@ -392,6 +392,9 @@ dnl This is now redundant, but it is also important for incremental GC dnl performance under Irix. ;; + sparc*-*-linux*) + machdep="mach_dep.lo sparc_mach_dep.lo" + ;; sparc-*-netbsd*) machdep="mach_dep.lo sparc_netbsd_mach_dep.lo" ;; --- gc-7.1/mach_dep.c.orig 2007-08-13 23:49:11.000000000 +0200 +++ gc-7.1/mach_dep.c 2008-05-28 23:35:02.259767061 +0200 @@ -175,7 +175,7 @@ # if defined(HAVE_PUSH_REGS) GC_push_regs(); # elif defined(UNIX_LIKE) && !defined(DARWIN) && !defined(ARM32) && \ - !defined(HURD) + !defined(HURD) && !(defined(SPARC) && !defined(__arch64__)) /* Older versions of Darwin seem to lack getcontext(). */ /* ARM Linux often doesn't support a real getcontext(). */ ucontext_t ctxt;