From: simonmar Date: Mon, 23 Jul 2001 15:11:55 +0000 (+0000) Subject: [project @ 2001-07-23 15:11:55 by simonmar] X-Git-Tag: Approximately_9120_patches~1479 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=1fdd21b3cac37f4831d2cb4f4578c80c860a932c;p=ghc-hetmet.git [project @ 2001-07-23 15:11:55 by simonmar] Grrr. Do not #include "Stg.h" in plain C code, because that enables all the global register variables. #include "Rts.h" directly instead. This was correct in the original StgLongLong.c, why on earth it was changed is beyond me. --- diff --git a/ghc/lib/std/cbits/longlong.c b/ghc/lib/std/cbits/longlong.c index d418053..5a7bd55 100644 --- a/ghc/lib/std/cbits/longlong.c +++ b/ghc/lib/std/cbits/longlong.c @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: longlong.c,v 1.2 2001/07/14 00:06:15 sof Exp $ + * $Id: longlong.c,v 1.3 2001/07/23 15:11:55 simonmar Exp $ * * (c) The GHC Team, 1998-1999 * @@ -26,7 +26,7 @@ The exceptions to the rule are primops that cast to and from 64-bit entities (these are defined in PrimOps.h) */ -#include "Stg.h" +#include "Rts.h" #ifdef SUPPORT_LONG_LONGS