[Gc] [PATCH] GNU/Hurd has no getcontext()

Boehm, Hans hans.boehm at hp.com
Mon Aug 13 14:51:25 PDT 2007


Thanks.  I put that into my 7.0 tree (to be checked in shortly), though
with a test on HURD (from gcconfig.h) instead of __GNU__ .

Hans

> -----Original Message-----
> From: gc-bounces at napali.hpl.hp.com 
> [mailto:gc-bounces at napali.hpl.hp.com] On Behalf Of Samuel Thibault
> Sent: Wednesday, August 08, 2007 4:33 PM
> To: gc at napali.hpl.hp.com
> Subject: [Gc] [PATCH] GNU/Hurd has no getcontext()
> 
> Hi,
> 
> Unfortunately GNU/Hurd has no getcontext(), here is a patch:
> 
> diff -u -p -r1.5 mach_dep.c
> --- mach_dep.c  2 Jul 2007 17:17:46 -0000       1.5
> +++ mach_dep.c  8 Aug 2007 23:31:12 -0000
> @@ -174,7 +174,7 @@ void GC_with_callee_saves_pushed(void (*
> 
>  #   if defined(HAVE_PUSH_REGS)
>        GC_push_regs();
> -#   elif defined(UNIX_LIKE) && !defined(DARWIN) && !defined(ARM32)
> +#   elif defined(UNIX_LIKE) && !defined(DARWIN) && 
> !defined(ARM32) && !defined(__GNU__)
>        /* Older versions of Darwin seem to lack getcontext(). */
>        /* ARM Linux often doesn't support a real getcontext(). */
>        ucontext_t ctxt;
> 
> Samuel
> _______________________________________________
> Gc mailing list
> Gc at linux.hpl.hp.com
> http://www.hpl.hp.com/hosted/linux/mail-archives/gc/
> 



More information about the Gc mailing list