From: simonmar Date: Wed, 23 Jul 2003 13:39:11 +0000 (+0000) Subject: [project @ 2003-07-23 13:39:11 by simonmar] X-Git-Tag: Approx_11550_changesets_converted~657 X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=7d71bf0b4e294a7cb62037aedd087519ead9ade8;hp=9bb32dd2adae0a71b558b366bb73c4d4771ef80a [project @ 2003-07-23 13:39:11 by simonmar] Fix egregious bug in the unregisterised case for RET_N, which was causing an unregisterised compiler to crash. --- diff --git a/ghc/rts/PrimOps.hc b/ghc/rts/PrimOps.hc index f39768c..45717e5 100644 --- a/ghc/rts/PrimOps.hc +++ b/ghc/rts/PrimOps.hc @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: PrimOps.hc,v 1.109 2003/07/12 00:08:28 sof Exp $ + * $Id: PrimOps.hc,v 1.110 2003/07/23 13:39:11 simonmar Exp $ * * (c) The GHC Team, 1998-2002 * @@ -188,7 +188,7 @@ StgWord GHC_ZCCReturnable_static_info[1]; #define PUSHED(m) Sp -= (m); JMP_(ENTRY_CODE(Sp[m])); # define RET_P(a) PUSH(1,a); PUSHED(1) -# define RET_N(a) PUSH(1,a); PUSHED(2) +# define RET_N(a) PUSH(1,a); PUSHED(1) # define RET_PP(a,b) PUSH(2,a); PUSH(1,b); PUSHED(2) # define RET_NN(a,b) PUSH(2,a); PUSH(1,b); PUSHED(2)