X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rts%2Fsm%2FEvac.h;h=ad56c644d829f9a818263ef7662addadb841453d;hb=bef3da1e26639303fccbf26c312d2833eedb486e;hp=33ee4c51955da972aca784def1da81ce6efd7b61;hpb=d13df738cbbe8017ae19ae2702f4e10805ee521b;p=ghc-hetmet.git diff --git a/rts/sm/Evac.h b/rts/sm/Evac.h index 33ee4c5..ad56c64 100644 --- a/rts/sm/Evac.h +++ b/rts/sm/Evac.h @@ -1,6 +1,6 @@ /* ----------------------------------------------------------------------------- * - * (c) The GHC Team 1998-2006 + * (c) The GHC Team 1998-2008 * * Generational garbage collector: evacuation functions * @@ -11,6 +11,11 @@ * * ---------------------------------------------------------------------------*/ +#ifndef SM_EVAC_H +#define SM_EVAC_H + +#include "BeginPrivate.h" + // Use a register argument for evacuate, if available. // Earlier, the regparm attribute was used whenever __GNUC__ >= 2, but this // generated warnings on PPC. So the use is restricted further. @@ -21,13 +26,18 @@ // registers EAX, EDX, and ECX instead of on the stack. Functions that // take a variable number of arguments will continue to be passed all of // their arguments on the stack. -#if __GNUC__ >= 2 && (defined(x86_64_TARGET_ARCH) || defined(i386_TARGET_ARCH)) +#if __GNUC__ >= 2 && (defined(x86_64_HOST_ARCH) || defined(i386_HOST_ARCH)) #define REGPARM1 __attribute__((regparm(1))) #else #define REGPARM1 #endif REGPARM1 void evacuate (StgClosure **p); -REGPARM1 void evacuate0 (StgClosure **p); +REGPARM1 void evacuate1 (StgClosure **p); extern lnat thunk_selector_depth; + +#include "EndPrivate.h" + +#endif /* SM_EVAC_H */ +